Lines Matching refs:dst
132 static bool unescape_space(char **src, char **dst) in unescape_space() argument
134 char *p = *dst, *q = *src; in unescape_space()
155 *dst += 1; in unescape_space()
160 static bool unescape_octal(char **src, char **dst) in unescape_octal() argument
162 char *p = *dst, *q = *src; in unescape_octal()
174 *dst += 1; in unescape_octal()
179 static bool unescape_hex(char **src, char **dst) in unescape_hex() argument
181 char *p = *dst, *q = *src; in unescape_hex()
198 *dst += 1; in unescape_hex()
203 static bool unescape_special(char **src, char **dst) in unescape_special() argument
205 char *p = *dst, *q = *src; in unescape_special()
223 *dst += 1; in unescape_special()
266 int string_unescape(char *src, char *dst, size_t size, unsigned int flags) in string_unescape() argument
268 char *out = dst; in string_unescape()
297 return out - dst; in string_unescape()
301 static bool escape_passthrough(unsigned char c, char **dst, char *end) in escape_passthrough() argument
303 char *out = *dst; in escape_passthrough()
307 *dst = out + 1; in escape_passthrough()
311 static bool escape_space(unsigned char c, char **dst, char *end) in escape_space() argument
313 char *out = *dst; in escape_space()
343 *dst = out; in escape_space()
347 static bool escape_special(unsigned char c, char **dst, char *end) in escape_special() argument
349 char *out = *dst; in escape_special()
373 *dst = out; in escape_special()
377 static bool escape_null(unsigned char c, char **dst, char *end) in escape_null() argument
379 char *out = *dst; in escape_null()
391 *dst = out; in escape_null()
395 static bool escape_octal(unsigned char c, char **dst, char *end) in escape_octal() argument
397 char *out = *dst; in escape_octal()
412 *dst = out; in escape_octal()
416 static bool escape_hex(unsigned char c, char **dst, char *end) in escape_hex() argument
418 char *out = *dst; in escape_hex()
433 *dst = out; in escape_hex()
493 int string_escape_mem(const char *src, size_t isz, char *dst, size_t osz, in string_escape_mem() argument
496 char *p = dst; in string_escape_mem()
538 return p - dst; in string_escape_mem()
549 char *dst; in kstrdup_quotable() local
558 dst = kmalloc(dlen + 1, gfp); in kstrdup_quotable()
559 if (!dst) in kstrdup_quotable()
562 WARN_ON(string_escape_mem(src, slen, dst, dlen, flags, esc) != dlen); in kstrdup_quotable()
563 dst[dlen] = '\0'; in kstrdup_quotable()
565 return dst; in kstrdup_quotable()