Lines Matching refs:unit

220 static struct sound_unit *__sound_remove_unit(struct sound_unit **list, int unit)  in __sound_remove_unit()  argument
225 if(p->unit_minor==unit) in __sound_remove_unit()
232 printk(KERN_ERR "Sound device %d went missing!\n", unit); in __sound_remove_unit()
302 static void sound_remove_unit(struct sound_unit **list, int unit) in sound_remove_unit() argument
307 p = __sound_remove_unit(list, unit); in sound_remove_unit()
354 int register_sound_special_device(const struct file_operations *fops, int unit, in register_sound_special_device() argument
357 const int chain = unit % SOUND_STEP; in register_sound_special_device()
368 if (unit >= SOUND_STEP) in register_sound_special_device()
370 max_unit = unit + 1; in register_sound_special_device()
386 if (unit >= SOUND_STEP) in register_sound_special_device()
388 max_unit = unit + 1; in register_sound_special_device()
409 if (unit >= SOUND_STEP) in register_sound_special_device()
415 return sound_insert_unit(&chains[chain], fops, -1, unit, max_unit, in register_sound_special_device()
421 int register_sound_special(const struct file_operations *fops, int unit) in register_sound_special() argument
423 return register_sound_special_device(fops, unit, NULL); in register_sound_special()
486 void unregister_sound_special(int unit) in unregister_sound_special() argument
488 sound_remove_unit(&chains[unit % SOUND_STEP], unit); in unregister_sound_special()
501 void unregister_sound_mixer(int unit) in unregister_sound_mixer() argument
503 sound_remove_unit(&chains[0], unit); in unregister_sound_mixer()
518 void unregister_sound_dsp(int unit) in unregister_sound_dsp() argument
520 sound_remove_unit(&chains[3], unit); in unregister_sound_dsp()
526 static struct sound_unit *__look_for_unit(int chain, int unit) in __look_for_unit() argument
531 while(s && s->unit_minor <= unit) in __look_for_unit()
533 if(s->unit_minor==unit) in __look_for_unit()
543 int unit = iminor(inode); in soundcore_open() local
547 chain=unit&0x0F; in soundcore_open()
550 unit&=0xF0; in soundcore_open()
551 unit|=3; in soundcore_open()
556 s = __look_for_unit(chain, unit); in soundcore_open()
569 request_module("sound-slot-%i", unit>>4); in soundcore_open()
570 request_module("sound-service-%i-%i", unit>>4, chain); in soundcore_open()
579 if (request_module("char-major-%d-%d", SOUND_MAJOR, unit) > 0) in soundcore_open()
583 s = __look_for_unit(chain, unit); in soundcore_open()