Lines Matching refs:str
69 char *str;
76 str = dmi_alloc(len);
77 if (str != NULL)
78 strcpy(str, bp);
80 return str;
942 * @str: string to check for
944 int dmi_name_in_serial(const char *str)
947 if (dmi_ident[f] && strstr(dmi_ident[f], str))
954 * @str: Case sensitive Name
956 int dmi_name_in_vendors(const char *str)
962 if (dmi_ident[f] && strstr(dmi_ident[f], str))
1122 * @str: string to compare the DMI field to
1124 * Returns true if the requested field equals to the str (including NULL).
1126 bool dmi_match(enum dmi_field f, const char *str)
1130 if (info == NULL || str == NULL)
1131 return info == str;
1133 return !strcmp(info, str);