Lines Matching refs:tail
89 volatile u_int16_t head, tail; in tws_trace() local
93 tail = sc->trace_q.tail; in tws_trace()
97 strncpy(rec[tail].fname, file, TWS_TRACE_FNAME_LEN); in tws_trace()
98 strncpy(rec[tail].func, fun, TWS_TRACE_FUNC_LEN); in tws_trace()
99 rec[tail].linenum = linenum; in tws_trace()
100 strncpy(rec[tail].desc, desc, TWS_TRACE_DESC_LEN); in tws_trace()
101 rec[tail].val1 = val1; in tws_trace()
102 rec[tail].val2 = val2; in tws_trace()
104 tail = (tail+1) % sc->trace_q.depth; in tws_trace()
106 if ( head == tail ) { in tws_trace()
110 sc->trace_q.tail = tail; in tws_trace()