Lines Matching refs:read_tail
136 static uint8_t *read_tail = NULL;
751 read_tail = read_area;
758 if (byte_cnt <= (read_tail - read_head)) {
768 for (i = 0; i < (read_tail - read_head); ++i) {
772 read_tail = read_head + i;
779 if ((m = pcp_peek(read_tail, mtu_size)) < 0) {
784 if ((ret = read(chnl_fd, read_tail, m)) < 0) {
794 m = byte_cnt - (read_tail - read_head);
796 read_tail, m)) <= 0) {
800 read_tail += ret;
805 n = MIN(byte_cnt, (read_tail - read_head));
839 read_tail = read_area;
846 if (byte_cnt <= (read_tail - read_head)) {
854 for (i = 0; i < (read_tail - read_head); ++i) {
858 read_tail = read_head + i;
860 n = byte_cnt - (read_tail - read_head);
863 read_tail, n)) <= 0) {
866 read_tail += ret;
871 n = MIN(byte_cnt, (read_tail - read_head));
909 if (byte_cnt <= (read_tail - read_head)) {
919 for (i = 0; i < (read_tail - read_head); ++i) {
1225 while ((read_tail - read_head) < sizeof (host_magic_num)) {