Lines Matching full:units
21 * string_get_size - get the size in the specified units
24 * @units: units to use (powers of 1000 or 1024)
29 * giving the size in the required units. @buf should have room for
33 void string_get_size(u64 size, u64 blk_size, const enum string_size_units units, in string_get_size() argument
65 * coefficient * divisor[units]^i in string_get_size()
75 do_div(blk_size, divisor[units]); in string_get_size()
80 do_div(size, divisor[units]); in string_get_size()
89 while (size >= divisor[units]) { in string_get_size()
90 remainder = do_div(size, divisor[units]); in string_get_size()
100 if (units == STRING_UNITS_2) { in string_get_size()
103 * divisor[units], which is 1 << 10 for STRING_UNITS_2 */ in string_get_size()
125 unit = units_str[units][i]; in string_get_size()