Lines Matching refs:str
45 char *str, *fw_ver, *whitespace;
52 str = strnstr(fw_str, "fw-", VERSION_MAX_LEN);
53 if (!str)
57 str += 3;
58 ver_offset = str - fw_str;
61 whitespace = strnstr(str, " ", VERSION_MAX_LEN - ver_offset);
65 strscpy(fw_ver, str, whitespace - str + 1);
76 * @str: the given string
82 static char *extract_u32_until_given_char(char *str, u32 *ver_num, char given_char)
86 ch = strchrnul(str, given_char);
87 if (*ch == '\0' || ch == str || ch - str >= sizeof(num_str))
90 memcpy(num_str, str, ch - str);