Lines Matching refs:list
174 static int __sound_insert_unit(struct sound_unit * s, struct sound_unit **list, const struct file_o… in __sound_insert_unit() argument
180 while (*list && (*list)->unit_minor<n) in __sound_insert_unit()
181 list=&((*list)->next); in __sound_insert_unit()
186 if(*list==NULL || (*list)->unit_minor>n) in __sound_insert_unit()
188 list=&((*list)->next); in __sound_insert_unit()
196 while (*list) { in __sound_insert_unit()
197 if ((*list)->unit_minor==n) in __sound_insert_unit()
199 if ((*list)->unit_minor>n) in __sound_insert_unit()
201 list=&((*list)->next); in __sound_insert_unit()
216 s->next=*list; in __sound_insert_unit()
217 *list=s; in __sound_insert_unit()
227 static struct sound_unit *__sound_remove_unit(struct sound_unit **list, int unit) in __sound_remove_unit() argument
229 while(*list) in __sound_remove_unit()
231 struct sound_unit *p=*list; in __sound_remove_unit()
234 *list=p->next; in __sound_remove_unit()
237 list=&(p->next); in __sound_remove_unit()
254 static int sound_insert_unit(struct sound_unit **list, const struct file_operations *fops, int inde… in sound_insert_unit() argument
264 r = __sound_insert_unit(s, list, fops, index, low, top); in sound_insert_unit()
284 __sound_remove_unit(list, s->unit_minor); in sound_insert_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()