Lines Matching refs:flags

14 static __init bool test_string_check_buf(const char *name, unsigned int flags,  in test_string_check_buf()  argument
22 pr_warn("Test '%s' failed: flags = %u\n", name, flags); in test_string_check_buf()
37 unsigned int flags; member
44 .flags = UNESCAPE_SPACE,
49 .flags = UNESCAPE_OCTAL,
54 .flags = UNESCAPE_HEX,
59 .flags = UNESCAPE_SPECIAL,
63 static void __init test_string_unescape(const char *name, unsigned int flags, in test_string_unescape() argument
84 if (flags & strings[i].flags) { in test_string_unescape()
96 if (flags == UNESCAPE_ANY) in test_string_unescape()
99 q_real = string_unescape_inplace(out_real, flags); in test_string_unescape()
100 } else if (flags == UNESCAPE_ANY) { in test_string_unescape()
103 q_real = string_unescape(in, out_real, q_real, flags); in test_string_unescape()
106 test_string_check_buf(name, flags, in, p - 1, out_real, q_real, in test_string_unescape()
116 unsigned int flags; member
130 .flags = ESCAPE_SPACE,
133 .flags = ESCAPE_SPACE | ESCAPE_OCTAL,
136 .flags = ESCAPE_SPACE | ESCAPE_HEX,
144 .flags = ESCAPE_SPECIAL,
147 .flags = ESCAPE_SPECIAL | ESCAPE_OCTAL,
150 .flags = ESCAPE_SPECIAL | ESCAPE_HEX,
158 .flags = ESCAPE_SPACE,
161 .flags = ESCAPE_SPECIAL,
164 .flags = ESCAPE_SPACE | ESCAPE_SPECIAL,
167 .flags = ESCAPE_OCTAL,
170 .flags = ESCAPE_SPACE | ESCAPE_OCTAL,
173 .flags = ESCAPE_SPECIAL | ESCAPE_OCTAL,
176 .flags = ESCAPE_SPACE | ESCAPE_SPECIAL | ESCAPE_OCTAL,
179 .flags = ESCAPE_NP,
182 .flags = ESCAPE_SPACE | ESCAPE_NP,
185 .flags = ESCAPE_SPECIAL | ESCAPE_NP,
188 .flags = ESCAPE_SPACE | ESCAPE_SPECIAL | ESCAPE_NP,
191 .flags = ESCAPE_OCTAL | ESCAPE_NP,
194 .flags = ESCAPE_SPACE | ESCAPE_OCTAL | ESCAPE_NP,
197 .flags = ESCAPE_SPECIAL | ESCAPE_SPACE | ESCAPE_OCTAL |
201 .flags = ESCAPE_NP | ESCAPE_HEX,
214 .flags = ESCAPE_OCTAL,
217 .flags = ESCAPE_HEX,
225 .flags = ESCAPE_OCTAL,
233 .flags = ESCAPE_OCTAL,
242 unsigned int flags) in test_string_find_match() argument
247 if (!flags) in test_string_find_match()
251 flags &= ~ESCAPE_NULL; in test_string_find_match()
254 if (flags & ESCAPE_OCTAL) in test_string_find_match()
255 flags &= ~ESCAPE_HEX; in test_string_find_match()
258 if (s1->flags == flags) in test_string_find_match()
264 test_string_escape_overflow(const char *in, int p, unsigned int flags, const char *esc, in test_string_escape_overflow() argument
269 q_real = string_escape_mem(in, p, NULL, 0, flags, esc); in test_string_escape_overflow()
272 name, flags, q_test, q_real); in test_string_escape_overflow()
277 unsigned int flags, const char *esc) in test_string_escape() argument
294 if (flags & ESCAPE_NULL) { in test_string_escape()
301 out = test_string_find_match(s2, flags); in test_string_escape()
316 q_real = string_escape_mem(in, p, out_real, out_size, flags, esc); in test_string_escape()
318 test_string_check_buf(name, flags, in, p, out_real, q_real, out_test, in test_string_escape()
321 test_string_escape_overflow(in, p, flags, esc, q_test, name); in test_string_escape()