Lines Matching refs:ind

107 	int ind = 0;  in do_buff_decode()  local
187 if (ind >= len) { in do_buff_decode()
191 bits = buff[ind++]; in do_buff_decode()
213 if (ind + width > len) { in do_buff_decode()
219 ARG_PUT(buff[ind]); in do_buff_decode()
220 ind++; in do_buff_decode()
224 ARG_PUT(buff[ind] << 8 | buff[ind + 1]); in do_buff_decode()
225 ind += 2; in do_buff_decode()
229 ARG_PUT(buff[ind] << 16 | in do_buff_decode()
230 buff[ind + 1] << 8 | buff[ind + 2]); in do_buff_decode()
231 ind += 3; in do_buff_decode()
235 ARG_PUT(buff[ind] << 24 | buff[ind + 1] << 16 | in do_buff_decode()
236 buff[ind + 2] << 8 | buff[ind + 3]); in do_buff_decode()
237 ind += 4; in do_buff_decode()
253 if (ind + width > len) { in do_buff_decode()
261 &buff[ind], width, field_name); in do_buff_decode()
265 bcopy(&buff[ind], dest, width); in do_buff_decode()
276 ind += width; in do_buff_decode()
304 ind += width; /* Relative seek */ in do_buff_decode()
306 ind = width; /* Absolute seek */ in do_buff_decode()
550 int ind; in do_encode() local
559 ind = 0; in do_encode()
583 ind = value; in do_encode()
599 if (ind < vec_max) { in do_encode()
600 buff[ind++] = val; in do_encode()
607 if (ind < vec_max) { in do_encode()
608 buff[ind++] = val; in do_encode()
615 if (ind < vec_max) in do_encode()
616 buff[ind++] = value; in do_encode()
620 if (ind < vec_max - 2 + 1) { in do_encode()
621 buff[ind++] = value >> 8; in do_encode()
622 buff[ind++] = value; in do_encode()
627 if (ind < vec_max - 3 + 1) { in do_encode()
628 buff[ind++] = value >> 16; in do_encode()
629 buff[ind++] = value >> 8; in do_encode()
630 buff[ind++] = value; in do_encode()
635 if (ind < vec_max - 4 + 1) { in do_encode()
636 buff[ind++] = value >> 24; in do_encode()
637 buff[ind++] = value >> 16; in do_encode()
638 buff[ind++] = value >> 8; in do_encode()
639 buff[ind++] = value; in do_encode()
652 if (shift && ind < vec_max) { in do_encode()
653 buff[ind++] = val; in do_encode()
659 *used = ind; in do_encode()