Lines Matching refs:stime
46 struct snd_hrtimer *stime = container_of(hrt, struct snd_hrtimer, hrt); in snd_hrtimer_callback() local
47 struct snd_timer *t = stime->timer; in snd_hrtimer_callback()
55 stime->in_callback = true; in snd_hrtimer_callback()
64 snd_timer_interrupt(stime->timer, ticks); in snd_hrtimer_callback()
72 stime->in_callback = false; in snd_hrtimer_callback()
80 struct snd_hrtimer *stime; in snd_hrtimer_open() local
82 stime = kzalloc(sizeof(*stime), GFP_KERNEL); in snd_hrtimer_open()
83 if (!stime) in snd_hrtimer_open()
85 hrtimer_init(&stime->hrt, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in snd_hrtimer_open()
86 stime->timer = t; in snd_hrtimer_open()
87 stime->hrt.function = snd_hrtimer_callback; in snd_hrtimer_open()
88 t->private_data = stime; in snd_hrtimer_open()
94 struct snd_hrtimer *stime = t->private_data; in snd_hrtimer_close() local
96 if (stime) { in snd_hrtimer_close()
99 stime->in_callback = 1; /* skip start/stop */ in snd_hrtimer_close()
102 hrtimer_cancel(&stime->hrt); in snd_hrtimer_close()
103 kfree(stime); in snd_hrtimer_close()
111 struct snd_hrtimer *stime = t->private_data; in snd_hrtimer_start() local
113 if (stime->in_callback) in snd_hrtimer_start()
115 hrtimer_start(&stime->hrt, ns_to_ktime(t->sticks * resolution), in snd_hrtimer_start()
122 struct snd_hrtimer *stime = t->private_data; in snd_hrtimer_stop() local
124 if (stime->in_callback) in snd_hrtimer_stop()
126 hrtimer_try_to_cancel(&stime->hrt); in snd_hrtimer_stop()