Lines Matching refs:flags
268 int string_unescape(char *src, char *dst, size_t size, unsigned int flags) in string_unescape() argument
277 if (flags & UNESCAPE_SPACE && in string_unescape()
281 if (flags & UNESCAPE_OCTAL && in string_unescape()
285 if (flags & UNESCAPE_HEX && in string_unescape()
289 if (flags & UNESCAPE_SPECIAL && in string_unescape()
498 unsigned int flags, const char *only) in string_escape_mem() argument
518 if ((flags & ESCAPE_NP && isprint(c)) || in string_escape_mem()
522 if (flags & ESCAPE_SPACE && escape_space(c, &p, end)) in string_escape_mem()
525 if (flags & ESCAPE_SPECIAL && escape_special(c, &p, end)) in string_escape_mem()
528 if (flags & ESCAPE_NULL && escape_null(c, &p, end)) in string_escape_mem()
532 if (flags & ESCAPE_OCTAL && escape_octal(c, &p, end)) in string_escape_mem()
535 if (flags & ESCAPE_HEX && escape_hex(c, &p, end)) in string_escape_mem()
573 const int flags = ESCAPE_HEX; in kstrdup_quotable() local
580 dlen = string_escape_mem(src, slen, NULL, 0, flags, esc); in kstrdup_quotable()
585 WARN_ON(string_escape_mem(src, slen, dst, dlen, flags, esc) != dlen); in kstrdup_quotable()