Lines Matching defs:stime
33 struct snd_hrtimer *stime = container_of(hrt, struct snd_hrtimer, hrt);
34 struct snd_timer *t = stime->timer;
42 stime->in_callback = true;
51 snd_timer_interrupt(stime->timer, ticks);
59 stime->in_callback = false;
65 struct snd_hrtimer *stime;
67 stime = kzalloc_obj(*stime);
68 if (!stime)
70 stime->timer = t;
71 hrtimer_setup(&stime->hrt, snd_hrtimer_callback, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
72 t->private_data = stime;
78 struct snd_hrtimer *stime = t->private_data;
80 if (stime) {
83 stime->in_callback = 1; /* skip start/stop */
86 hrtimer_cancel(&stime->hrt);
87 kfree(stime);
95 struct snd_hrtimer *stime = t->private_data;
97 if (stime->in_callback)
99 hrtimer_start(&stime->hrt, ns_to_ktime(t->sticks * resolution),
106 struct snd_hrtimer *stime = t->private_data;
108 if (stime->in_callback)
110 hrtimer_try_to_cancel(&stime->hrt);