Lines Matching refs:groupsize
105 int hex_dump_to_buffer(const void *buf, size_t len, int rowsize, int groupsize, in hex_dump_to_buffer() argument
120 if (!is_power_of_2(groupsize) || groupsize > 8) in hex_dump_to_buffer()
121 groupsize = 1; in hex_dump_to_buffer()
122 if ((len % groupsize) != 0) /* no mixed size output */ in hex_dump_to_buffer()
123 groupsize = 1; in hex_dump_to_buffer()
125 ngroups = len / groupsize; in hex_dump_to_buffer()
126 ascii_column = rowsize * 2 + rowsize / groupsize + 1; in hex_dump_to_buffer()
134 if (groupsize == 8) { in hex_dump_to_buffer()
145 } else if (groupsize == 4) { in hex_dump_to_buffer()
156 } else if (groupsize == 2) { in hex_dump_to_buffer()
203 return ascii ? ascii_column + len : (groupsize * 2 + 1) * ngroups - 1; in hex_dump_to_buffer()
240 int rowsize, int groupsize, in print_hex_dump() argument
254 hex_dump_to_buffer(ptr + i, linelen, rowsize, groupsize, in print_hex_dump()