Home
last modified time | relevance | path

Searched refs:match_string (Results 1 - 25 of 122) sorted by relevance

12345

/kernel/linux/linux-5.10/drivers/usb/common/
H A Dcommon.c116 ret = match_string(ssp_rate, ARRAY_SIZE(ssp_rate), maximum_speed); in usb_get_maximum_speed()
120 ret = match_string(speed_names, ARRAY_SIZE(speed_names), maximum_speed); in usb_get_maximum_speed()
143 ret = match_string(ssp_rate, ARRAY_SIZE(ssp_rate), maximum_speed); in usb_get_maximum_ssp_rate()
186 ret = match_string(usb_dr_modes, ARRAY_SIZE(usb_dr_modes), str); in usb_get_dr_mode_from_string()
/kernel/linux/linux-6.6/drivers/usb/common/
H A Dcommon.c117 ret = match_string(ssp_rate, ARRAY_SIZE(ssp_rate), maximum_speed); in usb_get_maximum_speed()
121 ret = match_string(speed_names, ARRAY_SIZE(speed_names), maximum_speed); in usb_get_maximum_speed()
144 ret = match_string(ssp_rate, ARRAY_SIZE(ssp_rate), maximum_speed); in usb_get_maximum_ssp_rate()
187 ret = match_string(usb_dr_modes, ARRAY_SIZE(usb_dr_modes), str); in usb_get_dr_mode_from_string()
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/
H A Dnand_macronix.c181 i = match_string(broken_get_timings, ARRAY_SIZE(broken_get_timings), in macronix_nand_fix_broken_get_timings()
320 i = match_string(deep_power_down_dev, ARRAY_SIZE(deep_power_down_dev), in macronix_nand_deep_power_down_support()
464 if (match_string(supported_otp_models, in macronix_nand_setup_otp()
/kernel/linux/linux-6.6/drivers/crypto/intel/qat/qat_common/
H A Dadf_cfg_services.c38 ret = match_string(adf_cfg_services, ARRAY_SIZE(adf_cfg_services), in adf_get_service_enabled()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
H A Dnand_macronix.c171 i = match_string(broken_get_timings, ARRAY_SIZE(broken_get_timings), in macronix_nand_fix_broken_get_timings()
310 i = match_string(deep_power_down_dev, ARRAY_SIZE(deep_power_down_dev), in macronix_nand_deep_power_down_support()
/kernel/linux/linux-5.10/mm/
H A Dvmpressure.c379 ret = match_string(vmpressure_str_levels, VMPRESSURE_NUM_LEVELS, token); in vmpressure_register_event()
387 ret = match_string(vmpressure_str_modes, VMPRESSURE_NUM_MODES, token); in vmpressure_register_event()
/kernel/linux/linux-6.6/mm/
H A Dvmpressure.c391 ret = match_string(vmpressure_str_levels, VMPRESSURE_NUM_LEVELS, token); in vmpressure_register_event()
399 ret = match_string(vmpressure_str_modes, VMPRESSURE_NUM_MODES, token); in vmpressure_register_event()
/kernel/linux/linux-6.6/drivers/thermal/intel/int340x_thermal/
H A Dprocessor_thermal_rfim.c114 ret = match_string(match_strs, -1, attr->attr.name);\
148 ret = match_string(match_strs, -1, attr->attr.name);\
H A Dprocessor_thermal_mbox.c158 ret = match_string(workload_types, -1, str_preference); in workload_type_store()
/kernel/linux/linux-6.6/drivers/char/ipmi/
H A Dipmi_si_hardcode.c73 t = match_string(si_to_str, -1, si_type_str); in ipmi_hardcode_init_one()
/kernel/linux/linux-5.10/drivers/usb/typec/
H A Dclass.c1467 return match_string(typec_pwr_opmodes, in typec_find_pwr_opmode()
1482 return match_string(typec_orientations, ARRAY_SIZE(typec_orientations), in typec_find_orientation()
1497 return match_string(typec_port_power_roles, in typec_find_port_power_role()
1512 return match_string(typec_roles, ARRAY_SIZE(typec_roles), name); in typec_find_power_role()
1526 return match_string(typec_port_data_roles, in typec_find_port_data_role()
/kernel/linux/linux-5.10/lib/
H A Dstring.c721 * match_string - matches given string in an array
737 int match_string(const char * const *array, size_t n, const char *string) in match_string() function
752 EXPORT_SYMBOL(match_string); variable
760 * Returns index of @str in the @array or -EINVAL, just like match_string().
/kernel/linux/linux-6.6/lib/
H A Dstring_helpers.c928 * match_string - matches given string in an array
944 int match_string(const char * const *array, size_t n, const char *string) in match_string() function
959 EXPORT_SYMBOL(match_string); variable
967 * Returns index of @str in the @array or -EINVAL, just like match_string().
/kernel/linux/linux-5.10/drivers/ata/
H A Dpata_hpt366.c184 i = match_string(list, -1, model_num); in hpt_dma_blacklisted()
/kernel/linux/linux-5.10/drivers/gpu/drm/
H A Ddrm_panel_orientation_quirks.c394 i = match_string(data->bios_dates, -1, bios_date); in drm_get_panel_orientation_quirk()
/kernel/linux/linux-6.6/drivers/platform/x86/hp/
H A Dhp-wmi.c435 tablet_found = match_string(tablet_chassis_types, in hp_wmi_get_tablet_mode()
471 return match_string(omen_thermal_profile_boards, in is_omen_thermal_profile()
484 int matches = match_string(omen_thermal_profile_force_v0_boards, in omen_get_thermal_policy_version()
1320 return match_string(victus_thermal_profile_boards, in is_victus_thermal_profile()
/kernel/linux/linux-6.6/drivers/iio/frequency/
H A Dadmv1014.c726 ret = match_string(input_mode_names, ARRAY_SIZE(input_mode_names), str); in admv1014_properties_parse()
737 ret = match_string(quad_se_mode_names, ARRAY_SIZE(quad_se_mode_names), str); in admv1014_properties_parse()
/kernel/linux/linux-6.6/drivers/usb/typec/
H A Dclass.c1894 return match_string(typec_pwr_opmodes, in typec_find_pwr_opmode()
1909 return match_string(typec_orientations, ARRAY_SIZE(typec_orientations), in typec_find_orientation()
1924 return match_string(typec_port_power_roles, in typec_find_port_power_role()
1939 return match_string(typec_roles, ARRAY_SIZE(typec_roles), name); in typec_find_power_role()
1953 return match_string(typec_port_data_roles, in typec_find_port_data_role()
/kernel/linux/linux-5.10/sound/firewire/oxfw/
H A Doxfw.c60 return match_string(models, ARRAY_SIZE(models), model) >= 0; in detect_loud_models()
/kernel/linux/linux-5.10/drivers/staging/gdm724x/
H A Dgdm_tty.c59 ret = match_string(DRIVER_STRING, TTY_MAX_COUNT, in gdm_tty_install()
/kernel/linux/linux-5.10/drivers/staging/hisysevent/
H A Dhisysevent_builder.c61 ret = match_string(time_zone_list, ARRAY_SIZE(time_zone_list), time_zone_formatted); in parse_time_zone()
/kernel/linux/linux-6.6/drivers/ata/
H A Dpata_hpt366.c181 i = match_string(list, -1, model_num); in hpt_dma_blacklisted()
/kernel/linux/linux-6.6/include/linux/
H A Dstring.h227 int match_string(const char * const *array, size_t n, const char *string);
/kernel/linux/linux-6.6/drivers/staging/hisysevent/
H A Dhisysevent_builder.c61 ret = match_string(time_zone_list, ARRAY_SIZE(time_zone_list), time_zone_formatted); in parse_time_zone()
/kernel/linux/linux-6.6/drivers/staging/gdm724x/
H A Dgdm_tty.c56 ret = match_string(DRIVER_STRING, TTY_MAX_COUNT, in gdm_tty_install()

Completed in 24 milliseconds

12345