match_string
i = match_string(regnames, N_PTREGS, regname);
i = match_string(mtrr_strings, MTRR_NUM_TYPES, ptr);
i = match_string(hash_algo_name, HASH_ALGO__LAST,
if (match_string(acpi_system_dev_ids, -1, acpi_device_hid(device)) >= 0) {
index = match_string(ids, -1, info->hardware_id.string);
index = match_string(ids, -1, cid_list->ids[i].string);
i = match_string(list, -1, model_num);
i = match_string(list, -1, model_num);
ret = match_string(values, nval, string);
ret = match_string(array, n, string);
e = match_string(ipmi_panic_event_str, -1, strstrip(valcp));
t = match_string(si_to_str, -1, si_type_str);
ret = match_string(cprman_parent_names,
frac->mux_frac_idx = match_string(child->parent_names,
i = match_string(emc_parent_clk_names, ARRAY_SIZE(emc_parent_clk_names),
ret = match_string(energy_perf_strings, -1, str_preference);
i = match_string(data->bios_dates, -1, bios_date);
i = match_string(pipe_crc_sources, ARRAY_SIZE(pipe_crc_sources), buf);
i = match_string(nv17_tv_norm_names, num_tv_norms,
i = match_string(nv50_crc_sources, ARRAY_SIZE(nv50_crc_sources), buf);
ret = match_string(ltc4282_gpio1_modes,
ret = match_string(ltc4282_gpio2_modes,
int div = match_string(ltc4282_dividers,
int div = match_string(ltc4282_dividers,
err = match_string(asus_wmi_boards, ARRAY_SIZE(asus_wmi_boards),
err = match_string(asus_msi_boards, ARRAY_SIZE(asus_msi_boards),
i = match_string(msc_mode, ARRAY_SIZE(msc_mode), mode);
ret = match_string(dbgfs_attr_source, ARRAY_SIZE(dbgfs_attr_source),
i = match_string(sun50i_a100_ledc_formats, ARRAY_SIZE(sun50i_a100_ledc_formats), format);
ret = match_string(port_modes, ARRAY_SIZE(port_modes), mode);
priv->phy_type = match_string(phy_types, NR_PHY_TYPES, phy_name);
i = match_string(broken_get_timings, ARRAY_SIZE(broken_get_timings),
i = match_string(deep_power_down_dev, ARRAY_SIZE(deep_power_down_dev),
if (match_string(supported_otp_models,
i = match_string(cudbg_region, ARRAY_SIZE(cudbg_region), region_name);
i = match_string(ecrc_policy_str, ARRAY_SIZE(ecrc_policy_str), str);
err = match_string(lane->soc->funcs, lane->soc->num_funcs, function);
int err = match_string(modes, ARRAY_SIZE(modes), mode);
func = match_string(grp->funcs, NB_FUNCS, name);
f = match_string(gp->funcs, NB_FUNCS, name);
ret = match_string(groups, num_groups, group);
ret = match_string(groups, num_groups, gname);
ret = match_string(amd_x3d_mode_strings, ARRAY_SIZE(amd_x3d_mode_strings), x3d_mode);
return match_string(omen_timed_thermal_profile_boards,
return match_string(victus_thermal_profile_boards,
tablet_found = match_string(tablet_chassis_types,
return match_string(omen_thermal_profile_boards,
int matches = match_string(omen_thermal_profile_force_v0_boards,
if (match_string(CONFIGS[i]->allowed_fw, -1, fw_version) != -EINVAL) {
j = match_string(supplicants, ext->num_supplicants, psy->desc->name);
j = match_string(supplicants, ext->num_supplicants, psy->desc->name);
j = match_string(supplicants, ext->num_supplicants, psy->desc->name);
j = match_string(supplicants, ext->num_supplicants, psy->desc->name);
slot = match_string(fps_slots, ARRAY_SIZE(fps_slots), fps_str);
index = match_string(en_modes, ARRAY_SIZE(en_modes), str);
index = match_string(strength_names, ARRAY_SIZE(strength_names), str);
ret = match_string(ptc_strings, -1, attr->attr.name);
ret = match_string(ptc_strings, -1, attr->attr.name);
ret = match_string(match_strs, -1, attr->attr.name);\
ret = match_string(match_strs, -1, attr->attr.name);\
ret = match_string(workload_types, -1, str_preference);
ret = match_string(ssp_rate, ARRAY_SIZE(ssp_rate), maximum_speed);
ret = match_string(usb_dr_modes, ARRAY_SIZE(usb_dr_modes), str);
ret = match_string(speed_names, ARRAY_SIZE(speed_names), maximum_speed);
return match_string(typec_pwr_opmodes,
return match_string(typec_orientations, ARRAY_SIZE(typec_orientations),
return match_string(typec_port_power_roles,
return match_string(typec_roles, ARRAY_SIZE(typec_roles), name);
return match_string(typec_port_data_roles,
ret = match_string(modes, ARRAY_SIZE(modes), mode);
i = match_string(lcd_types, -1, s);
c->auth_hash_algo = match_string(hash_algo_name, HASH_ALGO__LAST,
int match_string(const char * const *array, size_t n, const char *string);
i = match_string(rdmacg_resource_names, RDMACG_RESOURCE_MAX, name);
i = match_string(sched_feat_names, __SCHED_FEAT_NR, cmp);
ret = match_string(trace_options, -1, cmp);
option = match_string(osnoise_options_str, OSN_MAX, option_str);
idx = match_string(map->class_names, map->length, class_string);
cls_id = match_string(map->class_names, map->length, cl_str);
EXPORT_SYMBOL(match_string);
i = match_string(si_names, ARRAY_SIZE(si_names), name);
mode = match_string(policy_modes, MPOL_MAX, str);
ret = match_string(vmpressure_str_levels, VMPRESSURE_NUM_LEVELS, token);
ret = match_string(vmpressure_str_modes, VMPRESSURE_NUM_MODES, token);
i = match_string(audit_mode_names, AUDIT_MAX_INDEX, val);
i = match_string(aa_profile_mode_names, APPARMOR_MODE_NAMES_MAX_INDEX,
i = match_string(hash_algo_name, HASH_ALGO__LAST, str);
idx = match_string(hash_algo_name, HASH_ALGO__LAST, token);
return match_string(models, ARRAY_SIZE(models), model) >= 0;
j = match_string(known_ctl_names, CONTROL_COUNT, ctl->id.name);
ret = match_string(eq_mode_name, ARRAY_SIZE(eq_mode_name), name);
ret = match_string(bq_mode_name, ARRAY_SIZE(bq_mode_name), name);
i = match_string(e->texts, e->items, control_name);