Lines Matching defs:master
94 unsigned int lost; /* counter of master tick lost */
106 unsigned int lost; /* counter of master tick lost */
216 /* move the slave if it belongs to the master; return 1 if match */
217 static int check_matching_master_slave(struct snd_timer_instance *master,
220 if (slave->slave_class != master->slave_class ||
221 slave->slave_id != master->slave_id)
223 if (master->timer->num_instances >= master->timer->max_instances)
225 list_move_tail(&slave->open_list, &master->slave_list_head);
226 master->timer->num_instances++;
228 spin_lock(&master->timer->lock);
229 slave->master = master;
230 slave->timer = master->timer;
232 list_add_tail(&slave->active_list, &master->slave_active_head);
233 spin_unlock(&master->timer->lock);
239 * look for a master instance matching with the slave id of the given slave.
247 struct snd_timer_instance *master;
252 list_for_each_entry(master, &timer->open_list_head, open_list) {
253 err = check_matching_master_slave(master, slave);
263 * look for slave instances matching with the slave id of the given master.
268 static int snd_timer_check_master(struct snd_timer_instance *master)
275 err = check_matching_master_slave(master, slave);
287 * when opening a master, the slave id must be here given.
320 /* open a master instance */
429 slave->master = NULL;
529 /* start/continue a master timer */
602 if (timeri->master && timeri->timer) {
605 &timeri->master->slave_active_head);
616 /* stop/pause a master timer */