| /linux/drivers/watchdog/ |
| H A D | mlx_wdt.c | 229 if (strnstr(data->label, "action", sizeof(data->label))) in mlxreg_wdt_config() 231 else if (strnstr(data->label, "timeout", sizeof(data->label))) in mlxreg_wdt_config() 233 else if (strnstr(data->label, "timeleft", sizeof(data->label))) in mlxreg_wdt_config() 235 else if (strnstr(data->label, "ping", sizeof(data->label))) in mlxreg_wdt_config() 237 else if (strnstr(data->label, "reset", sizeof(data->label))) in mlxreg_wdt_config() 242 if (strnstr(pdata->identity, mlxreg_wdt_main_info.identity, in mlxreg_wdt_config()
|
| /linux/mm/kmsan/ |
| H A D | report.c | 46 if ((strnstr(buf, "__msan_", len) == buf) || in get_stack_skipnr() 47 (strnstr(buf, "kmsan_", len) == buf)) in get_stack_skipnr()
|
| H A D | kmsan_test.c | 49 if (strnstr(buf, "BUG: KMSAN: ", len)) { in probe_console()
|
| /linux/security/apparmor/ |
| H A D | policy_ns.c | 179 for (split = strnstr(hname, "//", n); split; in __aa_lookupn_ns() 180 split = strnstr(hname, "//", n)) { in __aa_lookupn_ns()
|
| H A D | policy.c | 605 for (split = strnstr(hname, "//", n); split; in __lookupn_profile() 606 split = strnstr(hname, "//", n)) { in __lookupn_profile()
|
| /linux/drivers/hwmon/ |
| H A D | mlxreg-fan.c | 470 if (strnstr(data->label, "tacho", sizeof(data->label))) { in mlxreg_fan_config() 492 } else if (strnstr(data->label, "pwm", sizeof(data->label))) { in mlxreg_fan_config() 511 } else if (strnstr(data->label, "conf", sizeof(data->label))) { in mlxreg_fan_config()
|
| /linux/lib/ |
| H A D | string.c | 777 char *strnstr(const char *s1, const char *s2, size_t len) in strnstr() function 792 EXPORT_SYMBOL(strnstr);
|
| /linux/drivers/crypto/marvell/octeontx2/ |
| H A D | otx2_cptpf_ucode.c | 138 if (!strnstr(tmp_ver_str, ver_str_prefix, OTX2_CPT_UCODE_VER_STR_SZ)) in get_ucode_type() 142 if (strnstr(tmp_ver_str, "se-", OTX2_CPT_UCODE_VER_STR_SZ) && in get_ucode_type() 146 if (strnstr(tmp_ver_str, "ie-", OTX2_CPT_UCODE_VER_STR_SZ) && in get_ucode_type() 150 if (strnstr(tmp_ver_str, "ae", OTX2_CPT_UCODE_VER_STR_SZ) && in get_ucode_type() 1682 if (strnstr(val, " ", strlen(val))) in otx2_cpt_dl_custom_egrp_create()
|
| /linux/kernel/kcsan/ |
| H A D | kcsan_test.c | 111 if (strnstr(buf, "BUG: KCSAN: ", len) && strnstr(buf, "test_", len)) { in probe_console() 120 } else if ((nlines == 1 || nlines == 2) && strnstr(buf, "bytes by", len)) { in probe_console() 123 if (strnstr(buf, "race at unknown origin", len)) { in probe_console()
|
| /linux/drivers/accel/habanalabs/common/ |
| H A D | firmware_if.c | 78 str = strnstr(fw_str, "fw-", VERSION_MAX_LEN); in extract_fw_ver_from_str() 87 whitespace = strnstr(str, " ", VERSION_MAX_LEN - ver_offset); in extract_fw_ver_from_str() 141 end = strnstr(fw_str, "-rc-", VERSION_MAX_LEN); in hl_get_sw_major_minor_subminor() 146 end = strnstr(fw_str, "-fw-", VERSION_MAX_LEN); in hl_get_sw_major_minor_subminor() 1651 preboot_ver = strnstr(prop->preboot_ver, "Preboot", in hl_fw_static_read_device_fw_version() 2327 preboot_ver = strnstr(prop->preboot_ver, "Preboot", VERSION_MAX_LEN); in hl_fw_dynamic_read_device_fw_version()
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | eprom.c | 235 p = strnstr(buffer, IMAGE_TRAIL_MAGIC, P1_SIZE); in read_partition_platform_config()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_ras_eeprom.c | 204 else if (strnstr(atom_ctx->vbios_pn, in __get_eeprom_i2c_addr() 215 if (strnstr(atom_ctx->vbios_pn, "D673", in __get_eeprom_i2c_addr() 222 if (strnstr(atom_ctx->vbios_pn, "D707", in __get_eeprom_i2c_addr()
|
| /linux/drivers/block/rnbd/ |
| H A D | rnbd-srv.c | 616 a = strnstr(dev_search_path, "%SESSNAME%", sizeof(dev_search_path)); in rnbd_srv_get_full_path()
|
| /linux/mm/kasan/ |
| H A D | kasan_test_c.c | 56 if (strnstr(buf, "BUG: KASAN: ", len)) in probe_console() 58 else if (strnstr(buf, "Asynchronous fault: ", len)) in probe_console()
|
| /linux/sound/soc/codecs/ |
| H A D | wcd9335.c | 2577 if (strnstr(w->name, "MIC BIAS1", sizeof("MIC BIAS1"))) in __wcd9335_codec_enable_micbias() 2579 else if (strnstr(w->name, "MIC BIAS2", sizeof("MIC BIAS2"))) in __wcd9335_codec_enable_micbias() 2581 else if (strnstr(w->name, "MIC BIAS3", sizeof("MIC BIAS3"))) in __wcd9335_codec_enable_micbias() 2583 else if (strnstr(w->name, "MIC BIAS4", sizeof("MIC BIAS4"))) in __wcd9335_codec_enable_micbias()
|
| H A D | wcd938x.c | 1099 if (strnstr(w->name, "ADC", sizeof("ADC"))) { in wcd938x_tx_swr_ctrl() 1126 if (strnstr(w->name, "ADC", sizeof("ADC"))) { in wcd938x_tx_swr_ctrl()
|
| H A D | wcd939x.c | 1022 if (strnstr(w->name, "ADC", sizeof("ADC"))) { in wcd939x_tx_swr_ctrl() 1043 if (strnstr(w->name, "ADC", sizeof("ADC"))) { in wcd939x_tx_swr_ctrl()
|
| H A D | tas2781-fmwlib.c | 205 if (strnstr(&config_data[config_offset], "init", 64)) { in tasdevice_add_config()
|
| H A D | wcd937x.c | 902 if (event == SND_SOC_DAPM_PRE_PMU && strnstr(w->name, "ADC", sizeof("ADC"))) in wcd937x_codec_enable_adc()
|
| H A D | lpass-rx-macro.c | 2838 if (strnstr(w->name, "IIR0", sizeof("IIR0"))) { in rx_macro_set_iir_gain()
|
| /linux/drivers/regulator/ |
| H A D | qcom-rpmh-regulator.c | 471 if (strnlen(pmic_id, PMIC_ID_LEN) > 1 && strnstr(pmic_id, "_E", PMIC_ID_LEN)) { in rpmh_regulator_init_vreg()
|
| /linux/kernel/trace/ |
| H A D | trace_events_filter.c | 1046 return strnstr(str, r->pattern, len) != NULL; in regex_match_middle()
|
| /linux/drivers/hid/ |
| H A D | hid-logitech-hidpp.c | 3638 consumer_rdesc = strnstr(rdesc, consumer_rdesc_start, *rsize); in hidpp10_consumer_keys_report_fixup()
|
| /linux/drivers/net/ethernet/ibm/ |
| H A D | ibmvnic.c | 5336 substr = strnstr(adapter->vpd->buff, "RM", adapter->vpd->len); in handle_vpd_rsp()
|
| /linux/fs/ceph/ |
| H A D | mds_client.c | 4199 if (err_str && strnstr(*p, "blacklisted", len)) in __decode_session_metadata()
|