Lines Matching refs:dst
133 static bool unescape_space(char **src, char **dst) in unescape_space() argument
135 char *p = *dst, *q = *src; in unescape_space()
156 *dst += 1; in unescape_space()
161 static bool unescape_octal(char **src, char **dst) in unescape_octal() argument
163 char *p = *dst, *q = *src; in unescape_octal()
175 *dst += 1; in unescape_octal()
180 static bool unescape_hex(char **src, char **dst) in unescape_hex() argument
182 char *p = *dst, *q = *src; in unescape_hex()
199 *dst += 1; in unescape_hex()
204 static bool unescape_special(char **src, char **dst) in unescape_special() argument
206 char *p = *dst, *q = *src; in unescape_special()
224 *dst += 1; in unescape_special()
268 int string_unescape(char *src, char *dst, size_t size, unsigned int flags) in string_unescape() argument
270 char *out = dst; in string_unescape()
299 return out - dst; in string_unescape()
303 static bool escape_passthrough(unsigned char c, char **dst, char *end) in escape_passthrough() argument
305 char *out = *dst; in escape_passthrough()
309 *dst = out + 1; in escape_passthrough()
313 static bool escape_space(unsigned char c, char **dst, char *end) in escape_space() argument
315 char *out = *dst; in escape_space()
345 *dst = out; in escape_space()
349 static bool escape_special(unsigned char c, char **dst, char *end) in escape_special() argument
351 char *out = *dst; in escape_special()
375 *dst = out; in escape_special()
379 static bool escape_null(unsigned char c, char **dst, char *end) in escape_null() argument
381 char *out = *dst; in escape_null()
393 *dst = out; in escape_null()
397 static bool escape_octal(unsigned char c, char **dst, char *end) in escape_octal() argument
399 char *out = *dst; in escape_octal()
414 *dst = out; in escape_octal()
418 static bool escape_hex(unsigned char c, char **dst, char *end) in escape_hex() argument
420 char *out = *dst; in escape_hex()
435 *dst = out; in escape_hex()
497 int string_escape_mem(const char *src, size_t isz, char *dst, size_t osz, in string_escape_mem() argument
500 char *p = dst; in string_escape_mem()
542 return p - dst; in string_escape_mem()
546 int string_escape_mem_ascii(const char *src, size_t isz, char *dst, in string_escape_mem_ascii() argument
549 char *p = dst; in string_escape_mem_ascii()
561 return p - dst; in string_escape_mem_ascii()
572 char *dst; in kstrdup_quotable() local
581 dst = kmalloc(dlen + 1, gfp); in kstrdup_quotable()
582 if (!dst) in kstrdup_quotable()
585 WARN_ON(string_escape_mem(src, slen, dst, dlen, flags, esc) != dlen); in kstrdup_quotable()
586 dst[dlen] = '\0'; in kstrdup_quotable()
588 return dst; in kstrdup_quotable()