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