• Home
  • Raw
  • Download

Lines Matching refs:len

67 static void __init test_hexdump_prepare_test(size_t len, int rowsize,  in test_hexdump_prepare_test()  argument
73 size_t l = len; in test_hexdump_prepare_test()
84 if (!is_power_of_2(gs) || gs > 8 || (len % gs != 0)) 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()
152 size_t len = get_random_int() % d + 1; in test_hexdump_set() local
154 test_hexdump(len, rowsize, 4, ascii); in test_hexdump_set()
155 test_hexdump(len, rowsize, 2, ascii); in test_hexdump_set()
156 test_hexdump(len, rowsize, 8, ascii); in test_hexdump_set()
157 test_hexdump(len, rowsize, 1, ascii); in test_hexdump_set()
160 static void __init test_hexdump_overflow(size_t buflen, size_t len, in test_hexdump_overflow() argument
174 r = hex_dump_to_buffer(data_b, len, rs, gs, buf, buflen, ascii); in test_hexdump_overflow()
180 ae = rs * 2 /* hex */ + rs / gs /* spaces */ + 1 /* space */ + len /* ascii */; in test_hexdump_overflow()
181 he = (gs * 2 /* hex */ + 1 /* space */) * len / gs - 1 /* no trailing space */; in test_hexdump_overflow()
190 test_hexdump_prepare_test(len, rs, gs, test, sizeof(test), ascii); in test_hexdump_overflow()
201 len, buflen, strnlen(buf, sizeof(buf))); in test_hexdump_overflow()
215 size_t len = get_random_int() % rs + gs; in test_hexdump_overflow_set() local
217 test_hexdump_overflow(buflen, rounddown(len, gs), rs, gs, ascii); in test_hexdump_overflow_set()