Lines Matching refs:stime
32 struct snd_hrtimer *stime = container_of(hrt, struct snd_hrtimer, hrt); in snd_hrtimer_callback() local
33 struct snd_timer *t = stime->timer; in snd_hrtimer_callback()
41 stime->in_callback = true; in snd_hrtimer_callback()
50 snd_timer_interrupt(stime->timer, ticks); in snd_hrtimer_callback()
58 stime->in_callback = false; in snd_hrtimer_callback()
64 struct snd_hrtimer *stime; in snd_hrtimer_open() local
66 stime = kzalloc(sizeof(*stime), GFP_KERNEL); in snd_hrtimer_open()
67 if (!stime) in snd_hrtimer_open()
69 stime->timer = t; in snd_hrtimer_open()
70 hrtimer_setup(&stime->hrt, snd_hrtimer_callback, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in snd_hrtimer_open()
71 t->private_data = stime; in snd_hrtimer_open()
77 struct snd_hrtimer *stime = t->private_data; in snd_hrtimer_close() local
79 if (stime) { in snd_hrtimer_close()
82 stime->in_callback = 1; /* skip start/stop */ in snd_hrtimer_close()
85 hrtimer_cancel(&stime->hrt); in snd_hrtimer_close()
86 kfree(stime); in snd_hrtimer_close()
94 struct snd_hrtimer *stime = t->private_data; in snd_hrtimer_start() local
96 if (stime->in_callback) in snd_hrtimer_start()
98 hrtimer_start(&stime->hrt, ns_to_ktime(t->sticks * resolution), in snd_hrtimer_start()
105 struct snd_hrtimer *stime = t->private_data; in snd_hrtimer_stop() local
107 if (stime->in_callback) in snd_hrtimer_stop()
109 hrtimer_try_to_cancel(&stime->hrt); in snd_hrtimer_stop()