Lines Matching refs:list
162 static int __sound_insert_unit(struct sound_unit * s, struct sound_unit **list, const struct file_o… in __sound_insert_unit() argument
168 while (*list && (*list)->unit_minor<n) in __sound_insert_unit()
169 list=&((*list)->next); in __sound_insert_unit()
174 if(*list==NULL || (*list)->unit_minor>n) in __sound_insert_unit()
176 list=&((*list)->next); in __sound_insert_unit()
184 while (*list) { in __sound_insert_unit()
185 if ((*list)->unit_minor==n) in __sound_insert_unit()
187 if ((*list)->unit_minor>n) in __sound_insert_unit()
189 list=&((*list)->next); in __sound_insert_unit()
204 s->next=*list; in __sound_insert_unit()
205 *list=s; in __sound_insert_unit()
215 static struct sound_unit *__sound_remove_unit(struct sound_unit **list, int unit) in __sound_remove_unit() argument
217 while(*list) in __sound_remove_unit()
219 struct sound_unit *p=*list; in __sound_remove_unit()
222 *list=p->next; in __sound_remove_unit()
225 list=&(p->next); in __sound_remove_unit()
242 static int sound_insert_unit(struct sound_unit **list, const struct file_operations *fops, int inde… in sound_insert_unit() argument
252 r = __sound_insert_unit(s, list, fops, index, low, top); in sound_insert_unit()
272 __sound_remove_unit(list, s->unit_minor); in sound_insert_unit()
298 static void sound_remove_unit(struct sound_unit **list, int unit) in sound_remove_unit() argument
303 p = __sound_remove_unit(list, unit); in sound_remove_unit()