Lines Matching refs:unit

212 static struct sound_unit *__sound_remove_unit(struct sound_unit **list, int unit)  in __sound_remove_unit()  argument
217 if(p->unit_minor==unit) in __sound_remove_unit()
224 printk(KERN_ERR "Sound device %d went missing!\n", unit); in __sound_remove_unit()
295 static void sound_remove_unit(struct sound_unit **list, int unit) in sound_remove_unit() argument
300 p = __sound_remove_unit(list, unit); in sound_remove_unit()
347 int register_sound_special_device(const struct file_operations *fops, int unit, in register_sound_special_device() argument
350 const int chain = unit % SOUND_STEP; in register_sound_special_device()
361 if (unit >= SOUND_STEP) in register_sound_special_device()
363 max_unit = unit + 1; in register_sound_special_device()
379 if (unit >= SOUND_STEP) in register_sound_special_device()
381 max_unit = unit + 1; in register_sound_special_device()
402 if (unit >= SOUND_STEP) in register_sound_special_device()
408 return sound_insert_unit(&chains[chain], fops, -1, unit, max_unit, in register_sound_special_device()
414 int register_sound_special(const struct file_operations *fops, int unit) in register_sound_special() argument
416 return register_sound_special_device(fops, unit, NULL); in register_sound_special()
479 void unregister_sound_special(int unit) in unregister_sound_special() argument
481 sound_remove_unit(&chains[unit % SOUND_STEP], unit); in unregister_sound_special()
494 void unregister_sound_mixer(int unit) in unregister_sound_mixer() argument
496 sound_remove_unit(&chains[0], unit); in unregister_sound_mixer()
511 void unregister_sound_dsp(int unit) in unregister_sound_dsp() argument
513 sound_remove_unit(&chains[3], unit); in unregister_sound_dsp()
519 static struct sound_unit *__look_for_unit(int chain, int unit) in __look_for_unit() argument
524 while(s && s->unit_minor <= unit) in __look_for_unit()
526 if(s->unit_minor==unit) in __look_for_unit()
536 int unit = iminor(inode); in soundcore_open() local
540 chain=unit&0x0F; in soundcore_open()
543 unit&=0xF0; in soundcore_open()
544 unit|=3; in soundcore_open()
549 s = __look_for_unit(chain, unit); in soundcore_open()
562 request_module("sound-slot-%i", unit>>4); in soundcore_open()
563 request_module("sound-service-%i-%i", unit>>4, chain); in soundcore_open()
572 if (request_module("char-major-%d-%d", SOUND_MAJOR, unit) > 0) in soundcore_open()
576 s = __look_for_unit(chain, unit); in soundcore_open()