Lines Matching refs:unit

227 static struct sound_unit *__sound_remove_unit(struct sound_unit **list, int unit)  in __sound_remove_unit()  argument
232 if(p->unit_minor==unit) in __sound_remove_unit()
239 printk(KERN_ERR "Sound device %d went missing!\n", unit); in __sound_remove_unit()
309 static void sound_remove_unit(struct sound_unit **list, int unit) in sound_remove_unit() argument
314 p = __sound_remove_unit(list, unit); in sound_remove_unit()
361 int register_sound_special_device(const struct file_operations *fops, int unit, in register_sound_special_device() argument
364 const int chain = unit % SOUND_STEP; in register_sound_special_device()
375 if (unit >= SOUND_STEP) in register_sound_special_device()
377 max_unit = unit + 1; in register_sound_special_device()
393 if (unit >= SOUND_STEP) in register_sound_special_device()
395 max_unit = unit + 1; in register_sound_special_device()
416 if (unit >= SOUND_STEP) in register_sound_special_device()
422 return sound_insert_unit(&chains[chain], fops, -1, unit, max_unit, in register_sound_special_device()
428 int register_sound_special(const struct file_operations *fops, int unit) in register_sound_special() argument
430 return register_sound_special_device(fops, unit, NULL); in register_sound_special()
513 void unregister_sound_special(int unit) in unregister_sound_special() argument
515 sound_remove_unit(&chains[unit % SOUND_STEP], unit); in unregister_sound_special()
528 void unregister_sound_mixer(int unit) in unregister_sound_mixer() argument
530 sound_remove_unit(&chains[0], unit); in unregister_sound_mixer()
543 void unregister_sound_midi(int unit) in unregister_sound_midi() argument
545 sound_remove_unit(&chains[2], unit); in unregister_sound_midi()
560 void unregister_sound_dsp(int unit) in unregister_sound_dsp() argument
562 sound_remove_unit(&chains[3], unit); in unregister_sound_dsp()
568 static struct sound_unit *__look_for_unit(int chain, int unit) in __look_for_unit() argument
573 while(s && s->unit_minor <= unit) in __look_for_unit()
575 if(s->unit_minor==unit) in __look_for_unit()
585 int unit = iminor(inode); in soundcore_open() local
589 chain=unit&0x0F; in soundcore_open()
592 unit&=0xF0; in soundcore_open()
593 unit|=3; in soundcore_open()
598 s = __look_for_unit(chain, unit); in soundcore_open()
611 request_module("sound-slot-%i", unit>>4); in soundcore_open()
612 request_module("sound-service-%i-%i", unit>>4, chain); in soundcore_open()
621 if (request_module("char-major-%d-%d", SOUND_MAJOR, unit) > 0) in soundcore_open()
625 s = __look_for_unit(chain, unit); in soundcore_open()