Lines Matching refs:minor
87 seq_printf(seq, "%3i %s\n", p->minor, p->name ? p->name : ""); in misc_seq_show()
102 int minor = iminor(inode); in misc_open() local
110 if (c->minor == minor) { in misc_open()
118 request_module("char-major-%d-%d", MISC_MAJOR, minor); in misc_open()
122 if (c->minor == minor) { in misc_open()
177 bool is_dynamic = (misc->minor == MISC_DYNAMIC_MINOR); in misc_register()
190 misc->minor = DYNAMIC_MINORS - i - 1; in misc_register()
196 if (c->minor == misc->minor) { in misc_register()
203 dev = MKDEV(MISC_MAJOR, misc->minor); in misc_register()
210 int i = DYNAMIC_MINORS - misc->minor - 1; in misc_register()
214 misc->minor = MISC_DYNAMIC_MINOR; in misc_register()
240 int i = DYNAMIC_MINORS - misc->minor - 1; in misc_deregister()
247 device_destroy(misc_class, MKDEV(MISC_MAJOR, misc->minor)); in misc_deregister()