Lines Matching refs:dst
23 #define rest(dst, end) ((end) > (dst) ? (end) - (dst) : 0) argument
26 static int __init copy_xbc_key_value_list(char *dst, size_t size) in copy_xbc_key_value_list() argument
29 char *key, *end = dst + size; in copy_xbc_key_value_list()
42 ret = snprintf(dst, rest(dst, end), "%s = ", key); in copy_xbc_key_value_list()
45 dst += ret; in copy_xbc_key_value_list()
53 ret = snprintf(dst, rest(dst, end), "%c%s%c%s", in copy_xbc_key_value_list()
57 dst += ret; in copy_xbc_key_value_list()
60 ret = snprintf(dst, rest(dst, end), "\"\"\n"); in copy_xbc_key_value_list()
63 dst += ret; in copy_xbc_key_value_list()
67 ret = snprintf(dst, rest(dst, end), "# Parameters from bootloader:\n# %s\n", in copy_xbc_key_value_list()
70 dst += ret; in copy_xbc_key_value_list()
75 return ret < 0 ? ret : dst - (end - size); in copy_xbc_key_value_list()