Lines Matching refs:minor
122 unsigned int minor = iminor(file_inode(file)); in pp_read() local
131 pr_debug(CHRDEV "%x: claim the port first\n", minor); in pp_read()
200 unsigned int minor = iminor(file_inode(file)); in pp_write() local
210 pr_debug(CHRDEV "%x: claim the port first\n", minor); in pp_write()
287 static int register_device(int minor, struct pp_struct *pp) in register_device() argument
295 name = kasprintf(GFP_KERNEL, CHRDEV "%x", minor); in register_device()
299 port = parport_find_number(minor); in register_device()
358 unsigned int minor = iminor(file_inode(file)); in pp_do_ioctl() local
377 int err = register_device(minor, pp); in pp_do_ioctl()
480 port = parport_find_number(minor); in pp_do_ioctl()
514 pr_debug(CHRDEV "%x: claim the port first\n", minor); in pp_do_ioctl()
695 unsigned int minor = iminor(inode); in pp_open() local
698 if (minor >= PARPORT_MAX) in pp_open()
724 unsigned int minor = iminor(inode); in pp_release() local
763 "because user-space forgot\n", minor); in pp_release()
771 pr_debug(CHRDEV "%x: unregistered pardevice\n", minor); in pp_release()