Home
last modified time | relevance | path

Searched refs:groupsize (Results 1 – 2 of 2) sorted by relevance

/lib/
Dhexdump.c105 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()
[all …]
Dtest_hexdump.c68 int groupsize, char *test, in test_hexdump_prepare_test() argument
74 int gs = groupsize, rs = rowsize; in test_hexdump_prepare_test()
125 static void __init test_hexdump(size_t len, int rowsize, int groupsize, in test_hexdump() argument
134 hex_dump_to_buffer(data_b, len, rowsize, groupsize, real, sizeof(real), in test_hexdump()
138 test_hexdump_prepare_test(len, rowsize, groupsize, test, sizeof(test), in test_hexdump()
142 pr_err("Len: %zu row: %d group: %d\n", len, rowsize, groupsize); in test_hexdump()
161 int rowsize, int groupsize, in test_hexdump_overflow() argument
166 int rs = rowsize, gs = groupsize; in test_hexdump_overflow()