Lines Matching defs: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,
66 * coefficient * divisor[units]^i
76 do_div(blk_size, divisor[units]);
81 do_div(size, divisor[units]);
90 while (size >= divisor[units]) {
91 remainder = do_div(size, divisor[units]);
101 if (units == STRING_UNITS_2) {
104 * divisor[units], which is 1 << 10 for STRING_UNITS_2 */
126 unit = units_str[units][i];