Home
last modified time | relevance | path

Searched refs:blk_size (Results 1 – 3 of 3) sorted by relevance

/lib/tests/
A Dstring_helpers_kunit.c461 #define test_string_get_size_one(size, blk_size, exp_result10, exp_result2) \ argument
465 __test_string_get_size(test, (size), (blk_size), (exp_result10), \
475 const u64 blk_size) in test_string_get_size_check() argument
479 size, blk_size, units); in test_string_get_size_check()
497 const u64 size, const u64 blk_size, in __test_string_get_size_one() argument
516 string_get_size(size, blk_size, STRING_UNITS_10 | units, buf10, sizeof(buf10)); in __test_string_get_size_one()
517 string_get_size(size, blk_size, STRING_UNITS_2 | units, buf2, sizeof(buf2)); in __test_string_get_size_one()
519 test_string_get_size_check(test, prefix10, exp10, buf10, size, blk_size); in __test_string_get_size_one()
520 test_string_get_size_check(test, prefix2, exp2, buf2, size, blk_size); in __test_string_get_size_one()
524 const u64 size, const u64 blk_size, in __test_string_get_size() argument
[all …]
/lib/
A Dstring_helpers.c39 int string_get_size(u64 size, u64 blk_size, const enum string_size_units units, in string_get_size() argument
65 if (blk_size == 0) in string_get_size()
81 while (blk_size >> 32) { in string_get_size()
82 do_div(blk_size, divisor[units_base]); in string_get_size()
93 size *= blk_size; in string_get_size()
A Dtest_firmware.c1230 u32 blk_size; in test_fw_upload_write() local
1235 blk_size = min_t(u32, TEST_UPLOAD_BLK_SIZE, size); in test_fw_upload_write()
1236 memcpy(tst->buf + offset, data + offset, blk_size); in test_fw_upload_write()
1238 *written = blk_size; in test_fw_upload_write()

Completed in 12 milliseconds