Lines Matching refs:ind

110 	int ind = 0;  in do_buff_decode()  local
190 if (ind >= len) { in do_buff_decode()
194 bits = buff[ind++]; in do_buff_decode()
216 if (ind + width > len) { in do_buff_decode()
222 ARG_PUT(buff[ind]); in do_buff_decode()
223 ind++; in do_buff_decode()
227 ARG_PUT(buff[ind] << 8 | buff[ind + 1]); in do_buff_decode()
228 ind += 2; in do_buff_decode()
232 ARG_PUT(buff[ind] << 16 | in do_buff_decode()
233 buff[ind + 1] << 8 | buff[ind + 2]); in do_buff_decode()
234 ind += 3; in do_buff_decode()
238 ARG_PUT(buff[ind] << 24 | buff[ind + 1] << 16 | in do_buff_decode()
239 buff[ind + 2] << 8 | buff[ind + 3]); in do_buff_decode()
240 ind += 4; in do_buff_decode()
256 if (ind + width > len) { in do_buff_decode()
264 &buff[ind], width, field_name); in do_buff_decode()
268 bcopy(&buff[ind], dest, width); in do_buff_decode()
279 ind += width; in do_buff_decode()
307 ind += width; /* Relative seek */ in do_buff_decode()
309 ind = width; /* Absolute seek */ in do_buff_decode()
553 int ind; in do_encode() local
562 ind = 0; in do_encode()
586 ind = value; in do_encode()
602 if (ind < vec_max) { in do_encode()
603 buff[ind++] = val; in do_encode()
610 if (ind < vec_max) { in do_encode()
611 buff[ind++] = val; in do_encode()
618 if (ind < vec_max) in do_encode()
619 buff[ind++] = value; in do_encode()
623 if (ind < vec_max - 2 + 1) { in do_encode()
624 buff[ind++] = value >> 8; in do_encode()
625 buff[ind++] = value; in do_encode()
630 if (ind < vec_max - 3 + 1) { in do_encode()
631 buff[ind++] = value >> 16; in do_encode()
632 buff[ind++] = value >> 8; in do_encode()
633 buff[ind++] = value; in do_encode()
638 if (ind < vec_max - 4 + 1) { in do_encode()
639 buff[ind++] = value >> 24; in do_encode()
640 buff[ind++] = value >> 16; in do_encode()
641 buff[ind++] = value >> 8; in do_encode()
642 buff[ind++] = value; in do_encode()
655 if (shift && ind < vec_max) { in do_encode()
656 buff[ind++] = val; in do_encode()
662 *used = ind; in do_encode()