Lines Matching refs:unit_minor
111 int unit_minor; member
168 while (*list && (*list)->unit_minor<n) in __sound_insert_unit()
174 if(*list==NULL || (*list)->unit_minor>n) in __sound_insert_unit()
185 if ((*list)->unit_minor==n) in __sound_insert_unit()
187 if ((*list)->unit_minor>n) in __sound_insert_unit()
197 s->unit_minor=n; in __sound_insert_unit()
220 if(p->unit_minor==unit) in __sound_remove_unit()
268 r = __register_chrdev(SOUND_MAJOR, s->unit_minor, 1, s->name, in sound_insert_unit()
272 __sound_remove_unit(list, s->unit_minor); in sound_insert_unit()
274 low = s->unit_minor + SOUND_STEP; in sound_insert_unit()
283 device_create(sound_class, dev, MKDEV(SOUND_MAJOR, s->unit_minor), in sound_insert_unit()
285 return s->unit_minor; in sound_insert_unit()
307 __unregister_chrdev(SOUND_MAJOR, p->unit_minor, 1, in sound_remove_unit()
309 device_destroy(sound_class, MKDEV(SOUND_MAJOR, p->unit_minor)); in sound_remove_unit()
527 while(s && s->unit_minor <= unit) in __look_for_unit()
529 if(s->unit_minor==unit) in __look_for_unit()