Home
last modified time | relevance | path

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

/lib/
Dstring_helpers.c34 void string_get_size(u64 size, u64 blk_size, const enum string_size_units units, in string_get_size() argument
76 do_div(blk_size, divisor[units]); in string_get_size()
81 do_div(size, divisor[units]); in string_get_size()
90 while (size >= divisor[units]) { in string_get_size()
91 remainder = do_div(size, divisor[units]); in string_get_size()
101 if (units == STRING_UNITS_2) { in string_get_size()
126 unit = units_str[units][i]; in string_get_size()
Dtest-string_helpers.c339 static __init void test_string_get_size_check(const char *units, in test_string_get_size_check() argument
352 size, blk_size, units); in test_string_get_size_check()