Lines Matching refs:size
23 * string_get_size - get the size in the specified units
24 * @size: The size to be converted in blocks
25 * @blk_size: Size of the block (use 1 for size in bytes)
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,
61 size = 0;
62 if (size == 0)
65 /* This is Napier's algorithm. Reduce the original block size to
81 while (size >> 32) {
82 do_div(size, divisor[units]);
88 size *= blk_size;
91 while (size >= divisor[units]) {
92 remainder = do_div(size, divisor[units]);
98 sf_cap = size;
111 * an arithmetical round up and carry it through to size */
115 size += 1;
129 snprintf(buf, len, "%u%s %s", (u32)size,
278 * @size: size of the destination buffer (0 to unlimit)
284 * Because the size of the output will be the same as or less than the size of
313 int string_unescape(char *src, char *dst, size_t size, unsigned int flags)
317 while (*src && --size) {
318 if (src[0] == '\\' && src[1] != '\0' && size > 1) {
320 size--;
490 * @isz: source buffer size
492 * @osz: destination buffer size
559 * The total size of the escaped output that would be generated for
884 size_t size;
887 size = strlen(s);
888 if (!size)
891 end = s + size - 1;
1019 * @dest_len: The destination buffer size