Lines Matching refs:tread
71 int tread; /* enhanced read with timestamps and events */ member
1353 struct snd_timer_tread64 *tread) in snd_timer_user_append_to_tqueue() argument
1358 memcpy(&tu->tqueue[tu->qtail++], tread, sizeof(*tread)); in snd_timer_user_append_to_tqueue()
1376 if ((tu->filter & (1 << event)) == 0 || !tu->tread) in snd_timer_user_ccallback()
1465 if (tu->tread) { in realloc_user_queue()
1781 tu->timeri->callback = tu->tread in snd_timer_user_tselect()
1902 if (tu->tread) { in snd_timer_user_params()
1903 struct snd_timer_tread64 tread; in snd_timer_user_params() local
1904 memset(&tread, 0, sizeof(tread)); in snd_timer_user_params()
1905 tread.event = SNDRV_TIMER_EVENT_EARLY; in snd_timer_user_params()
1906 tread.tstamp_sec = 0; in snd_timer_user_params()
1907 tread.tstamp_nsec = 0; in snd_timer_user_params()
1908 tread.val = 0; in snd_timer_user_params()
1909 snd_timer_user_append_to_tqueue(tu, &tread); in snd_timer_user_params()
2048 old_tread = tu->tread; in snd_timer_user_tread()
2051 tu->tread = TREAD_FORMAT_NONE; in snd_timer_user_tread()
2054 tu->tread = TREAD_FORMAT_TIME64; in snd_timer_user_tread()
2056 tu->tread = TREAD_FORMAT_TIME32; in snd_timer_user_tread()
2058 if (tu->tread != old_tread && in snd_timer_user_tread()
2060 tu->tread = old_tread; in snd_timer_user_tread()
2145 struct snd_timer_tread64 *tread; in snd_timer_user_read() local
2153 switch (tu->tread) { in snd_timer_user_read()
2206 tread = &tu->tqueue[qhead]; in snd_timer_user_read()
2208 switch (tu->tread) { in snd_timer_user_read()
2210 if (copy_to_user(buffer, tread, in snd_timer_user_read()
2217 .event = tread->event, in snd_timer_user_read()
2218 .tstamp_sec = tread->tstamp_sec, in snd_timer_user_read()
2219 .tstamp_nsec = tread->tstamp_nsec, in snd_timer_user_read()
2220 .val = tread->val, in snd_timer_user_read()