Lines Matching defs:str
69 char *str;
76 str = dmi_alloc(len);
77 if (str != NULL)
78 strcpy(str, bp);
80 return str;
949 * @str: string to check for
951 int dmi_name_in_serial(const char *str)
954 if (dmi_ident[f] && strstr(dmi_ident[f], str))
961 * @str: Case sensitive Name
963 int dmi_name_in_vendors(const char *str)
969 if (dmi_ident[f] && strstr(dmi_ident[f], str))
1129 * @str: string to compare the DMI field to
1131 * Returns true if the requested field equals to the str (including NULL).
1133 bool dmi_match(enum dmi_field f, const char *str)
1137 if (info == NULL || str == NULL)
1138 return info == str;
1140 return !strcmp(info, str);