Lines Matching refs:w
81 uint32_t w = slot->dsp_ptr; in mtrace_out() local
84 if (w > r) { in mtrace_out()
85 avail = MTRACE_LOG_BUF_SIZE - w + r - 1; in mtrace_out()
86 } else if (w == r) { in mtrace_out()
89 avail = r - w - 1; in mtrace_out()
100 if (w + out >= MTRACE_LOG_BUF_SIZE) { in mtrace_out()
101 size_t tail = MTRACE_LOG_BUF_SIZE - w; in mtrace_out()
104 memcpy(data + w, str, tail); in mtrace_out()
106 w = head; in mtrace_out()
108 memcpy(data + w, str, out); in mtrace_out()
109 w += out; in mtrace_out()
112 slot->dsp_ptr = w; in mtrace_out()