Lines Matching defs: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;
64 struct snd_hrtimer *stime;
66 stime = kzalloc(sizeof(*stime), GFP_KERNEL);
67 if (!stime)
69 hrtimer_init(&stime->hrt, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
70 stime->timer = t;
71 stime->hrt.function = snd_hrtimer_callback;
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);