Lines Matching refs: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);
237 * look for a master instance matching with the slave id of the given slave.
238 * when found, relink the open_link of the slave.
242 static int snd_timer_check_slave(struct snd_timer_instance *slave)
251 err = check_matching_master_slave(master, slave);
261 * look for slave instances matching with the slave id of the given master.
268 struct snd_timer_instance *slave, *tmp;
272 list_for_each_entry_safe(slave, tmp, &snd_timer_slave_list, open_list) {
273 err = check_matching_master_slave(master, slave);
285 * when opening a master, the slave id must be here given.
297 /* open a slave instance */
300 pr_debug("ALSA: timer: invalid slave class %i\n",
383 /* remove slave links, called from snd_timer_close_locked() below */
387 struct snd_timer_instance *slave, *tmp;
392 list_for_each_entry_safe(slave, tmp, &timeri->slave_list_head, open_list) {
393 list_move_tail(&slave->open_list, &snd_timer_slave_list);
395 slave->master = NULL;
396 slave->timer = NULL;
397 list_del_init(&slave->ack_list);
398 list_del_init(&slave->active_list);
438 /* slave doesn't need to release timer resources below */
574 /* start/continue a slave timer */
636 /* stop/pause a slave timer */