Lines Matching refs:ind

108 	int ind = 0;  in do_buff_decode()  local
188 if (ind >= len) { in do_buff_decode()
192 bits = buff[ind++]; in do_buff_decode()
214 if (ind + width > len) { in do_buff_decode()
220 ARG_PUT(buff[ind]); in do_buff_decode()
221 ind++; in do_buff_decode()
225 ARG_PUT(buff[ind] << 8 | buff[ind + 1]); in do_buff_decode()
226 ind += 2; in do_buff_decode()
230 ARG_PUT(buff[ind] << 16 | in do_buff_decode()
231 buff[ind + 1] << 8 | buff[ind + 2]); in do_buff_decode()
232 ind += 3; in do_buff_decode()
236 ARG_PUT(buff[ind] << 24 | buff[ind + 1] << 16 | in do_buff_decode()
237 buff[ind + 2] << 8 | buff[ind + 3]); in do_buff_decode()
238 ind += 4; in do_buff_decode()
254 if (ind + width > len) { in do_buff_decode()
262 &buff[ind], width, field_name); in do_buff_decode()
266 bcopy(&buff[ind], dest, width); in do_buff_decode()
277 ind += width; in do_buff_decode()
305 ind += width; /* Relative seek */ in do_buff_decode()
307 ind = width; /* Absolute seek */ in do_buff_decode()
551 int ind; in do_encode() local
560 ind = 0; in do_encode()
584 ind = value; in do_encode()
600 if (ind < vec_max) { in do_encode()
601 buff[ind++] = val; in do_encode()
608 if (ind < vec_max) { in do_encode()
609 buff[ind++] = val; in do_encode()
616 if (ind < vec_max) in do_encode()
617 buff[ind++] = value; in do_encode()
621 if (ind < vec_max - 2 + 1) { in do_encode()
622 buff[ind++] = value >> 8; in do_encode()
623 buff[ind++] = value; in do_encode()
628 if (ind < vec_max - 3 + 1) { in do_encode()
629 buff[ind++] = value >> 16; in do_encode()
630 buff[ind++] = value >> 8; in do_encode()
631 buff[ind++] = value; in do_encode()
636 if (ind < vec_max - 4 + 1) { in do_encode()
637 buff[ind++] = value >> 24; in do_encode()
638 buff[ind++] = value >> 16; in do_encode()
639 buff[ind++] = value >> 8; in do_encode()
640 buff[ind++] = value; in do_encode()
653 if (shift && ind < vec_max) { in do_encode()
654 buff[ind++] = val; in do_encode()
660 *used = ind; in do_encode()