Lines Matching defs:slave

117 /* list of slave instances */
120 /* lock for slave active lists */
216 /* move the slave if it belongs to the master; return 1 if match */
218 struct snd_timer_instance *slave)
220 if (slave->slave_class != master->slave_class ||
221 slave->slave_id != master->slave_id)
225 list_move_tail(&slave->open_list, &master->slave_list_head);
229 slave->master = master;
230 slave->timer = master->timer;
231 if (slave->flags & SNDRV_TIMER_IFLG_RUNNING)
232 list_add_tail(&slave->active_list, &master->slave_active_head);
239 * look for a master instance matching with the slave id of the given slave.
240 * when found, relink the open_link of the slave.
244 static int snd_timer_check_slave(struct snd_timer_instance *slave)
253 err = check_matching_master_slave(master, slave);
263 * look for slave instances matching with the slave id of the given master.
270 struct snd_timer_instance *slave, *tmp;
274 list_for_each_entry_safe(slave, tmp, &snd_timer_slave_list, open_list) {
275 err = check_matching_master_slave(master, slave);
287 * when opening a master, the slave id must be here given.
299 /* open a slave instance */
302 pr_debug("ALSA: timer: invalid slave class %i\n",
393 struct snd_timer_instance *slave, *tmp;
421 /* remove slave links */
425 list_for_each_entry_safe(slave, tmp, &timeri->slave_list_head,
427 list_move_tail(&slave->open_list, &snd_timer_slave_list);
429 slave->master = NULL;
430 slave->timer = NULL;
431 list_del_init(&slave->ack_list);
432 list_del_init(&slave->active_list);
437 /* slave doesn't need to release timer resources below */
585 /* start/continue a slave timer */
664 /* stop/pause a slave timer */