Lines Matching refs:str
345 static int str_to_immediate(char *str, unsigned long *imm) in str_to_immediate() argument
347 if (isdigit(str[0])) in str_to_immediate()
348 return kstrtoul(str, 0, imm); in str_to_immediate()
349 else if (str[0] == '-') in str_to_immediate()
350 return kstrtol(str, 0, (long *)imm); in str_to_immediate()
351 else if (str[0] == '+') in str_to_immediate()
352 return kstrtol(str + 1, 0, (long *)imm); in str_to_immediate()
356 static int __parse_imm_string(char *str, char **pbuf, int offs) in __parse_imm_string() argument
358 size_t len = strlen(str); in __parse_imm_string()
360 if (str[len - 1] != '"') { in __parse_imm_string()
364 *pbuf = kstrndup(str, len - 1, GFP_KERNEL); in __parse_imm_string()