Lines Matching defs:tail
126 UINT32 tail = g_dmesgInfo->logTail;
139 if (head < tail) { /* Case A */
376 UINT32 tail = g_dmesgInfo->logTail;
384 ret = memcpy_s(buf + tail, bufSize - tail, dst, bufSize - tail);
389 ret = memcpy_s(buf, bufSize, dst + bufSize - tail, tail);
397 if (logLen > (bufSize - tail)) { /* need cycle back to start */
398 ret = memcpy_s(buf + tail, bufSize - tail, dst, bufSize - tail);
403 ret = memcpy_s(buf, bufSize, dst + bufSize - tail, logLen - (bufSize - tail));
409 g_dmesgInfo->logTail = logLen - (bufSize - tail);
412 ret = memcpy_s(buf + tail, bufSize - tail, dst, logLen);
431 UINT32 tail = g_dmesgInfo->logTail;
440 ret = memcpy_s(buf + tail, bufSize - tail, dst, writeLen);
450 ret = memcpy_s(buf + tail, bufSize - tail, dst, logLen);
465 UINT32 tail = g_dmesgInfo->logTail;
472 if (logLen >= (bufSize - tail)) { /* need cycle to start ,then became B */
473 writeLen = bufSize - tail;
474 ret = memcpy_s(buf + tail, writeLen, dst, writeLen);
488 ret = memcpy_s(buf + tail, bufSize - tail, dst, logLen);
674 UINT32 logSize, bufSize, head, tail, intSave;
685 tail = g_dmesgInfo->logTail;
699 if (head < tail) {
709 ret = memcpy_s(buf + bufSize - head, logSize - (bufSize - head), logBuf, tail);