Lines Matching defs:units
23 * string_get_size - get the size in the specified units
26 * @units: units to use (powers of 1000 or 1024)
31 * giving the size in the required units. @buf should have room for
35 void string_get_size(u64 size, u64 blk_size, const enum string_size_units units,
67 * coefficient * divisor[units]^i
77 do_div(blk_size, divisor[units]);
82 do_div(size, divisor[units]);
91 while (size >= divisor[units]) {
92 remainder = do_div(size, divisor[units]);
102 if (units == STRING_UNITS_2) {
105 * divisor[units], which is 1 << 10 for STRING_UNITS_2 */
127 unit = units_str[units][i];