Lines Matching full:units
22 * string_get_size - get the size in the specified units
25 * @units: units to use (powers of 1000 or 1024)
30 * giving the size in the required units. @buf should have room for
34 void string_get_size(u64 size, u64 blk_size, const enum string_size_units units, in string_get_size() argument
66 * coefficient * divisor[units]^i in string_get_size()
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()
104 * divisor[units], which is 1 << 10 for STRING_UNITS_2 */ in string_get_size()
126 unit = units_str[units][i]; in string_get_size()