Lines Matching refs:t
33 struct snd_timer *t = stime->timer; in snd_hrtimer_callback() local
38 spin_lock(&t->lock); in snd_hrtimer_callback()
39 if (!t->running) in snd_hrtimer_callback()
42 ticks = t->sticks; in snd_hrtimer_callback()
43 spin_unlock(&t->lock); in snd_hrtimer_callback()
52 spin_lock(&t->lock); in snd_hrtimer_callback()
53 if (t->running) { in snd_hrtimer_callback()
54 hrtimer_add_expires_ns(hrt, t->sticks * resolution); in snd_hrtimer_callback()
60 spin_unlock(&t->lock); in snd_hrtimer_callback()
64 static int snd_hrtimer_open(struct snd_timer *t) in snd_hrtimer_open() argument
72 stime->timer = t; in snd_hrtimer_open()
74 t->private_data = stime; in snd_hrtimer_open()
78 static int snd_hrtimer_close(struct snd_timer *t) in snd_hrtimer_close() argument
80 struct snd_hrtimer *stime = t->private_data; in snd_hrtimer_close()
83 spin_lock_irq(&t->lock); in snd_hrtimer_close()
84 t->running = 0; /* just to be sure */ in snd_hrtimer_close()
86 spin_unlock_irq(&t->lock); in snd_hrtimer_close()
90 t->private_data = NULL; in snd_hrtimer_close()
95 static int snd_hrtimer_start(struct snd_timer *t) in snd_hrtimer_start() argument
97 struct snd_hrtimer *stime = t->private_data; in snd_hrtimer_start()
101 hrtimer_start(&stime->hrt, ns_to_ktime(t->sticks * resolution), in snd_hrtimer_start()
106 static int snd_hrtimer_stop(struct snd_timer *t) in snd_hrtimer_stop() argument
108 struct snd_hrtimer *stime = t->private_data; in snd_hrtimer_stop()