Lines Matching defs:size
22 * string_get_size - get the size in the specified units
23 * @size: The size to be converted in blocks
24 * @blk_size: Size of the block (use 1 for size in bytes)
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,
60 size = 0;
61 if (size == 0)
64 /* This is Napier's algorithm. Reduce the original block size to
80 while (size >> 32) {
81 do_div(size, divisor[units]);
87 size *= blk_size;
90 while (size >= divisor[units]) {
91 remainder = do_div(size, divisor[units]);
97 sf_cap = size;
110 * an arithmetical round up and carry it through to size */
114 size += 1;
128 snprintf(buf, len, "%u%s %s", (u32)size,
233 * @size: size of the destination buffer (0 to unlimit)
239 * Because the size of the output will be the same as or less than the size of
268 int string_unescape(char *src, char *dst, size_t size, unsigned int flags)
272 while (*src && --size) {
273 if (src[0] == '\\' && src[1] != '\0' && size > 1) {
275 size--;
442 * @isz: source buffer size
444 * @osz: destination buffer size
492 * The total size of the escaped output that would be generated for