Home
last modified time | relevance | path

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

/lib/
Dtest_hexdump.c67 static void __init test_hexdump_prepare_test(size_t len, int rowsize, 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()
149 static void __init test_hexdump_set(int rowsize, bool ascii) in test_hexdump_set() argument
151 size_t d = min_t(size_t, sizeof(data_b), rowsize); in test_hexdump_set()
154 test_hexdump(len, rowsize, 4, ascii); in test_hexdump_set()
155 test_hexdump(len, rowsize, 2, ascii); in test_hexdump_set()
[all …]
Dhexdump.c105 int hex_dump_to_buffer(const void *buf, size_t len, int rowsize, int groupsize, in hex_dump_to_buffer() argument
115 if (rowsize != 16 && rowsize != 32) in hex_dump_to_buffer()
116 rowsize = 16; in hex_dump_to_buffer()
118 if (len > rowsize) /* limit to one line at a time */ in hex_dump_to_buffer()
119 len = rowsize; in hex_dump_to_buffer()
126 ascii_column = rowsize * 2 + rowsize / groupsize + 1; in hex_dump_to_buffer()
240 int rowsize, int groupsize, in print_hex_dump() argument
247 if (rowsize != 16 && rowsize != 32) in print_hex_dump()
248 rowsize = 16; in print_hex_dump()
250 for (i = 0; i < len; i += rowsize) { in print_hex_dump()
[all …]