Lines Matching refs:flags
406 unsigned int flags:8; /* flags to number() */ member
423 int need_pfx = ((spec.flags & SPECIAL) && spec.base != 10); in number()
431 locase = (spec.flags & SMALL); in number()
432 if (spec.flags & LEFT) in number()
433 spec.flags &= ~ZEROPAD; in number()
435 if (spec.flags & SIGN) { in number()
440 } else if (spec.flags & PLUS) { in number()
443 } else if (spec.flags & SPACE) { in number()
478 if (!(spec.flags & (ZEROPAD | LEFT))) { in number()
505 if (!(spec.flags & LEFT)) { in number()
506 char c = ' ' + (spec.flags & ZEROPAD); in number()
543 spec.flags = SPECIAL | SMALL | ZEROPAD; in special_hex_number()
585 if (!(spec.flags & LEFT)) { in widen_string()
676 spec.flags |= SMALL; in pointer_string()
679 spec.flags |= ZEROPAD; in pointer_string()
958 .flags = SPECIAL | SMALL,
970 .flags = ZEROPAD,
977 .flags = ZEROPAD,
995 .flags = SPECIAL | SMALL | ZEROPAD, in resource_string()
1001 .flags = SPECIAL | SMALL | ZEROPAD, in resource_string()
1007 .flags = SMALL | ZEROPAD, in resource_string()
1012 .flags = LEFT, in resource_string()
1018 #define FLAG_BUF_SIZE (2 * sizeof(res->flags)) in resource_string()
1032 if (res->flags & IORESOURCE_IO) { in resource_string()
1035 } else if (res->flags & IORESOURCE_MEM) { in resource_string()
1038 } else if (res->flags & IORESOURCE_IRQ) { in resource_string()
1041 } else if (res->flags & IORESOURCE_DMA) { in resource_string()
1044 } else if (res->flags & IORESOURCE_BUS) { in resource_string()
1052 if (decode && res->flags & IORESOURCE_UNSET) { in resource_string()
1063 if (res->flags & IORESOURCE_MEM_64) in resource_string()
1065 if (res->flags & IORESOURCE_PREFETCH) in resource_string()
1067 if (res->flags & IORESOURCE_WINDOW) in resource_string()
1069 if (res->flags & IORESOURCE_DISABLED) in resource_string()
1073 p = number(p, pend, res->flags, default_flag_spec); in resource_string()
1145 spec = (struct printf_spec){ .flags = SMALL | ZEROPAD, .base = 16 }; in bitmap_string()
1569 unsigned int flags = 0; in escaped_string() local
1581 flags |= ESCAPE_ANY; in escaped_string()
1584 flags |= ESCAPE_SPECIAL; in escaped_string()
1587 flags |= ESCAPE_HEX; in escaped_string()
1590 flags |= ESCAPE_NULL; in escaped_string()
1593 flags |= ESCAPE_OCTAL; in escaped_string()
1596 flags |= ESCAPE_NP; in escaped_string()
1599 flags |= ESCAPE_SPACE; in escaped_string()
1607 if (!flags) in escaped_string()
1608 flags = ESCAPE_ANY_NP; in escaped_string()
1617 buf += string_escape_mem(addr, len, buf, buf < end ? end - buf : 0, flags, NULL); in escaped_string()
1835 char *format_flags(char *buf, char *end, unsigned long flags, in format_flags() argument
1840 for ( ; flags && names->name; names++) { in format_flags()
1842 if ((flags & mask) != mask) in format_flags()
1847 flags &= ~mask; in format_flags()
1848 if (flags) { in format_flags()
1855 if (flags) in format_flags()
1856 buf = number(buf, end, flags, default_flag_spec); in format_flags()
1865 unsigned long flags; in flags_string() local
1873 flags = *(unsigned long *)flags_ptr; in flags_string()
1875 flags &= (1UL << NR_PAGEFLAGS) - 1; in flags_string()
1879 flags = *(unsigned long *)flags_ptr; in flags_string()
1883 flags = *(gfp_t *)flags_ptr; in flags_string()
1890 return format_flags(buf, end, flags, names); in flags_string()
1933 .flags = SMALL, in device_node_string()
2245 spec->flags |= LEFT; in format_decode()
2273 spec->flags = 0; in format_decode()
2281 case '-': spec->flags |= LEFT; break; in format_decode()
2282 case '+': spec->flags |= PLUS; break; in format_decode()
2283 case ' ': spec->flags |= SPACE; break; in format_decode()
2284 case '#': spec->flags |= SPECIAL; break; in format_decode()
2285 case '0': spec->flags |= ZEROPAD; break; in format_decode()
2362 spec->flags |= SMALL; in format_decode()
2371 spec->flags |= SIGN; in format_decode()
2393 spec->type = FORMAT_TYPE_ULONG + (spec->flags & SIGN); in format_decode()
2400 spec->type = FORMAT_TYPE_UBYTE + (spec->flags & SIGN); in format_decode()
2403 spec->type = FORMAT_TYPE_USHORT + (spec->flags & SIGN); in format_decode()
2406 spec->type = FORMAT_TYPE_UINT + (spec->flags & SIGN); in format_decode()
2507 if (!(spec.flags & LEFT)) { in vsnprintf()
2567 if (spec.flags & SIGN) in vsnprintf()
2983 if (!(spec.flags & LEFT)) { in bstr_printf()