Lines Matching refs:minor
86 seq_printf(seq, "%3i %s\n", p->minor, p->name ? p->name : ""); in misc_seq_show()
114 int minor = iminor(inode); in misc_open() local
122 if (c->minor == minor) { in misc_open()
130 request_module("char-major-%d-%d", MISC_MAJOR, minor); in misc_open()
134 if (c->minor == minor) { in misc_open()
189 bool is_dynamic = (misc->minor == MISC_DYNAMIC_MINOR); in misc_register()
201 misc->minor = DYNAMIC_MINORS - i - 1; in misc_register()
207 if (c->minor == misc->minor) { in misc_register()
214 dev = MKDEV(MISC_MAJOR, misc->minor); in misc_register()
221 int i = DYNAMIC_MINORS - misc->minor - 1; in misc_register()
225 misc->minor = MISC_DYNAMIC_MINOR; in misc_register()
251 int i = DYNAMIC_MINORS - misc->minor - 1; in misc_deregister()
258 device_destroy(misc_class, MKDEV(MISC_MAJOR, misc->minor)); in misc_deregister()