Lines Matching refs:stime
32 struct snd_hrtimer *stime = container_of(hrt, struct snd_hrtimer, hrt);
33 struct snd_timer *t = stime->timer;
41 stime->in_callback = true;
50 snd_timer_interrupt(stime->timer, ticks);
58 stime->in_callback = false;
66 struct snd_hrtimer *stime;
68 stime = kzalloc(sizeof(*stime), GFP_KERNEL);
69 if (!stime)
71 hrtimer_init(&stime->hrt, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
72 stime->timer = t;
73 stime->hrt.function = snd_hrtimer_callback;
74 t->private_data = stime;
80 struct snd_hrtimer *stime = t->private_data;
82 if (stime) {
85 stime->in_callback = 1; /* skip start/stop */
88 hrtimer_cancel(&stime->hrt);
89 kfree(stime);
97 struct snd_hrtimer *stime = t->private_data;
99 if (stime->in_callback)
101 hrtimer_start(&stime->hrt, ns_to_ktime(t->sticks * resolution),
108 struct snd_hrtimer *stime = t->private_data;
110 if (stime->in_callback)
112 hrtimer_try_to_cancel(&stime->hrt);