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()
50 if (!atomic_read(&stime->running)) in snd_hrtimer_callback()
54 snd_timer_interrupt(stime->timer, t->sticks * oruns); in snd_hrtimer_callback()
56 if (!atomic_read(&stime->running)) in snd_hrtimer_callback()
63 struct snd_hrtimer *stime; in snd_hrtimer_open() local
65 stime = kmalloc(sizeof(*stime), GFP_KERNEL); in snd_hrtimer_open()
66 if (!stime) in snd_hrtimer_open()
68 hrtimer_init(&stime->hrt, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in snd_hrtimer_open()
69 stime->timer = t; in snd_hrtimer_open()
70 stime->hrt.function = snd_hrtimer_callback; in snd_hrtimer_open()
71 atomic_set(&stime->running, 0); in snd_hrtimer_open()
72 t->private_data = stime; in snd_hrtimer_open()
78 struct snd_hrtimer *stime = t->private_data; in snd_hrtimer_close() local
80 if (stime) { in snd_hrtimer_close()
81 hrtimer_cancel(&stime->hrt); in snd_hrtimer_close()
82 kfree(stime); in snd_hrtimer_close()
90 struct snd_hrtimer *stime = t->private_data; in snd_hrtimer_start() local
92 atomic_set(&stime->running, 0); in snd_hrtimer_start()
93 hrtimer_try_to_cancel(&stime->hrt); in snd_hrtimer_start()
94 hrtimer_start(&stime->hrt, ns_to_ktime(t->sticks * resolution), in snd_hrtimer_start()
96 atomic_set(&stime->running, 1); in snd_hrtimer_start()
102 struct snd_hrtimer *stime = t->private_data; in snd_hrtimer_stop() local
103 atomic_set(&stime->running, 0); in snd_hrtimer_stop()
104 hrtimer_try_to_cancel(&stime->hrt); in snd_hrtimer_stop()