Lines Matching refs:match
811 static bool hid_sensor_custom_prop_match_str(const u16 *prop, const char *match,
814 while (count-- && *prop && *match) {
815 if (*prop != (u16) *match)
818 match++;
821 return (count == -1) || *prop == (u16)*match;
852 const struct hid_sensor_custom_match *match,
855 struct dmi_system_id dmi[] = { match->dmi, { 0 } };
858 !hid_sensor_custom_prop_match_str(prop->serial_num + 5, match->luid,
862 if (match->model &&
863 !hid_sensor_custom_prop_match_str(prop->model, match->model,
867 if (match->manufacturer &&
868 !hid_sensor_custom_prop_match_str(prop->manufacturer, match->manufacturer,
872 if (match->check_dmi && !dmi_check_system(dmi))
912 const struct hid_sensor_custom_match *match =
924 while (match->tag) {
925 if (hid_sensor_custom_do_match(hsdev, match, prop)) {
926 *known = match;
930 match++;
941 const struct hid_sensor_custom_match *match)
948 memcpy(real_usage, match->luid, 4);
956 match->tag, real_usage);
972 const struct hid_sensor_custom_match *match;
987 ret = hid_sensor_custom_get_known(hsdev, &match);
990 hid_sensor_register_platform_device(pdev, hsdev, match);