Lines Matching defs:read_head
135 static uint8_t *read_head = NULL;
750 read_head = read_area;
758 if (byte_cnt <= (read_tail - read_head)) {
759 (void) memcpy(buf, read_head, byte_cnt);
760 read_head += byte_cnt;
768 for (i = 0; i < (read_tail - read_head); ++i) {
769 read_area[i] = read_head[i];
771 read_head = read_area;
772 read_tail = read_head + i;
794 m = byte_cnt - (read_tail - read_head);
805 n = MIN(byte_cnt, (read_tail - read_head));
806 (void) memcpy(buf, read_head, n);
808 read_head += n;
838 read_head = read_area;
846 if (byte_cnt <= (read_tail - read_head)) {
854 for (i = 0; i < (read_tail - read_head); ++i) {
855 read_area[i] = read_head[i];
857 read_head = read_area;
858 read_tail = read_head + i;
860 n = byte_cnt - (read_tail - read_head);
871 n = MIN(byte_cnt, (read_tail - read_head));
909 if (byte_cnt <= (read_tail - read_head)) {
910 (void) memcpy(buf, read_head, byte_cnt);
919 for (i = 0; i < (read_tail - read_head); ++i) {
920 peek_read_area[i] = read_head[i];
1225 while ((read_tail - read_head) < sizeof (host_magic_num)) {
1234 if (memcmp(read_head, magic_num_buf,
1236 read_head += 1;