Lines Matching defs:tail
394 SANE_Int tail;
401 tail = ring->end - ring->wp;
402 if (size < tail) {
411 memcpy(ring->wp, buf, tail);
412 size -= tail;
415 memcpy(ring->wp, buf + tail, size);
418 ring->fill += (tail + size);
426 SANE_Int tail;
436 tail = ring->end - ring->rp;
437 if (size < tail) {
448 memcpy(buf, ring->rp, tail);
449 size -= tail;
452 memcpy(buf + tail, ring->rp, size);
455 ring->fill -= (size + tail);
457 return size + tail;
463 SANE_Int tail;
468 tail = ring->end - ring->rp;
469 if (size < tail) {
473 ring->rp = ring->ring + (size - tail);