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()
66 struct snd_hrtimer *stime; in snd_hrtimer_open() local
68 stime = kzalloc(sizeof(*stime), GFP_KERNEL); in snd_hrtimer_open()
69 if (!stime) in snd_hrtimer_open()
71 hrtimer_init(&stime->hrt, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in snd_hrtimer_open()
72 stime->timer = t; in snd_hrtimer_open()
73 stime->hrt.function = snd_hrtimer_callback; in snd_hrtimer_open()
74 t->private_data = stime; in snd_hrtimer_open()
80 struct snd_hrtimer *stime = t->private_data; in snd_hrtimer_close() local
82 if (stime) { in snd_hrtimer_close()
85 stime->in_callback = 1; /* skip start/stop */ in snd_hrtimer_close()
88 hrtimer_cancel(&stime->hrt); in snd_hrtimer_close()
89 kfree(stime); in snd_hrtimer_close()
97 struct snd_hrtimer *stime = t->private_data; in snd_hrtimer_start() local
99 if (stime->in_callback) in snd_hrtimer_start()
101 hrtimer_start(&stime->hrt, ns_to_ktime(t->sticks * resolution), in snd_hrtimer_start()
108 struct snd_hrtimer *stime = t->private_data; in snd_hrtimer_stop() local
110 if (stime->in_callback) in snd_hrtimer_stop()
112 hrtimer_try_to_cancel(&stime->hrt); in snd_hrtimer_stop()