Lines Matching refs:groupsize
127 int hex_dump_to_buffer(const void *buf, size_t len, int rowsize, int groupsize, in hex_dump_to_buffer() argument
142 if (!is_power_of_2(groupsize) || groupsize > 8) in hex_dump_to_buffer()
143 groupsize = 1; in hex_dump_to_buffer()
144 if ((len % groupsize) != 0) /* no mixed size output */ in hex_dump_to_buffer()
145 groupsize = 1; in hex_dump_to_buffer()
147 ngroups = len / groupsize; in hex_dump_to_buffer()
148 ascii_column = rowsize * 2 + rowsize / groupsize + 1; in hex_dump_to_buffer()
156 if (groupsize == 8) { in hex_dump_to_buffer()
167 } else if (groupsize == 4) { in hex_dump_to_buffer()
178 } else if (groupsize == 2) { in hex_dump_to_buffer()
225 return ascii ? ascii_column + len : (groupsize * 2 + 1) * ngroups - 1; in hex_dump_to_buffer()
262 int rowsize, int groupsize, in print_hex_dump() argument
276 hex_dump_to_buffer(ptr + i, linelen, rowsize, groupsize, in print_hex_dump()