Home
last modified time | relevance | path

Searched refs:strnstr (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_fru_eeprom.c57 if (strnstr(atom_ctx->vbios_version, "D161", in is_fru_eeprom_supported()
59 strnstr(atom_ctx->vbios_version, "D163", in is_fru_eeprom_supported()
68 if (strnstr(atom_ctx->vbios_version, "D603", in is_fru_eeprom_supported()
70 if (strnstr(atom_ctx->vbios_version, "D603GLXE", in is_fru_eeprom_supported()
Damdgpu_ras_eeprom.c107 if (strnstr(atom_ctx->vbios_version, in __get_eeprom_i2c_addr_arct()
Damdgpu_ras.c2308 if (strnstr(ctx->vbios_version, "D16406", in amdgpu_ras_get_quirks()
2310 strnstr(ctx->vbios_version, "D36002", in amdgpu_ras_get_quirks()
/Linux-v6.1/drivers/watchdog/
Dmlx_wdt.c230 if (strnstr(data->label, "action", sizeof(data->label))) in mlxreg_wdt_config()
232 else if (strnstr(data->label, "timeout", sizeof(data->label))) in mlxreg_wdt_config()
234 else if (strnstr(data->label, "timeleft", sizeof(data->label))) in mlxreg_wdt_config()
236 else if (strnstr(data->label, "ping", sizeof(data->label))) in mlxreg_wdt_config()
238 else if (strnstr(data->label, "reset", sizeof(data->label))) in mlxreg_wdt_config()
243 if (strnstr(pdata->identity, mlxreg_wdt_main_info.identity, in mlxreg_wdt_config()
/Linux-v6.1/kernel/kcsan/
Dreport.c204 if (!strnstr(buf, "rcu_", len) && in skip_report()
205 !strnstr(buf, "_rcu", len) && in skip_report()
206 !strnstr(buf, "_srcu", len)) in skip_report()
287 if (strnstr(buf, "tsan_", len) || in get_stack_skipnr()
288 strnstr(buf, "_once_size", len)) in get_stack_skipnr()
291 cur = strnstr(buf, "kcsan_", len); in get_stack_skipnr()
Dkcsan_test.c111 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-v6.1/mm/kmsan/
Dreport.c44 if ((strnstr(buf, "__msan_", len) == buf) || in get_stack_skipnr()
45 (strnstr(buf, "kmsan_", len) == buf)) in get_stack_skipnr()
Dkmsan_test.c48 if (strnstr(buf, "BUG: KMSAN: ", len)) { in probe_console()
/Linux-v6.1/arch/loongarch/kernel/
Dimage-vars.h16 __efistub_strnstr = strnstr;
/Linux-v6.1/drivers/hwmon/
Dmlxreg-fan.c442 if (strnstr(data->label, "tacho", sizeof(data->label))) { in mlxreg_fan_config()
464 } else if (strnstr(data->label, "pwm", sizeof(data->label))) { in mlxreg_fan_config()
483 } else if (strnstr(data->label, "conf", sizeof(data->label))) { in mlxreg_fan_config()
/Linux-v6.1/security/apparmor/
Dpolicy_ns.c218 for (split = strnstr(hname, "//", n); split; in __aa_lookupn_ns()
219 split = strnstr(hname, "//", n)) { in __aa_lookupn_ns()
Dpolicy.c401 for (split = strnstr(hname, "//", n); split; in __lookupn_profile()
402 split = strnstr(hname, "//", n)) { in __lookupn_profile()
/Linux-v6.1/mm/kfence/
Dkfence_test.c58 if (strnstr(buf, "BUG: KFENCE: ", len) && strnstr(buf, "test_", len)) { in probe_console()
67 } else if (nlines == 1 && (strnstr(buf, "at 0x", len) || strnstr(buf, "of 0x", len))) { in probe_console()
/Linux-v6.1/lib/
Dstring.c859 char *strnstr(const char *s1, const char *s2, size_t len) in strnstr() function
874 EXPORT_SYMBOL(strnstr);
/Linux-v6.1/drivers/gpu/drm/arm/
Dmalidp_drv.c613 dt_is_dp500 = strnstr(dev_id->compatible, compatstr_dp500, in malidp_is_compatible_hw_id()
627 if (!strnstr(dev_id->compatible, buf, in malidp_is_compatible_hw_id()
643 if (!strnstr(dev_id->compatible, compatstr_dp500, in malidp_has_sufficient_address_space()
/Linux-v6.1/drivers/crypto/marvell/octeontx2/
Dotx2_cptpf_ucode.c134 if (!strnstr(tmp_ver_str, ver_str_prefix, OTX2_CPT_UCODE_VER_STR_SZ)) in get_ucode_type()
138 if (strnstr(tmp_ver_str, "se-", OTX2_CPT_UCODE_VER_STR_SZ) && in get_ucode_type()
142 if (strnstr(tmp_ver_str, "ie-", OTX2_CPT_UCODE_VER_STR_SZ) && in get_ucode_type()
146 if (strnstr(tmp_ver_str, "ae", OTX2_CPT_UCODE_VER_STR_SZ) && in get_ucode_type()
1655 if (strnstr(val, " ", strlen(val))) in otx2_cpt_dl_custom_egrp_create()
/Linux-v6.1/include/linux/
Dstring.h85 extern char * strnstr(const char *, const char *, size_t);
/Linux-v6.1/drivers/misc/habanalabs/common/
Dfirmware_if.c27 str = strnstr(fw_str, "fw-", VERSION_MAX_LEN); in extract_fw_ver_from_str()
36 whitespace = strnstr(str, " ", VERSION_MAX_LEN - ver_offset); in extract_fw_ver_from_str()
54 first_dot = strnstr(preboot_ver, ".", 10); in extract_fw_sub_versions()
70 second_dot = strnstr(first_dot, ".", 10); in extract_fw_sub_versions()
1475 preboot_ver = strnstr(prop->preboot_ver, "Preboot", in hl_fw_static_read_device_fw_version()
2077 preboot_ver = strnstr(prop->preboot_ver, "Preboot", in hl_fw_dynamic_read_device_fw_version()
/Linux-v6.1/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dfeature.c195 if (strnstr(caps, brcmf_fwcap_map[i].fwcap_id, sizeof(caps))) { in brcmf_feat_firmware_capabilities()
Dfirmware.c477 ccode = strnstr((char *)data, "ccode=ALL", data_len); in brcmf_fw_fix_efi_nvram_ccode()
479 ccode = strnstr((char *)data, "ccode=XV\r", data_len); in brcmf_fw_fix_efi_nvram_ccode()
/Linux-v6.1/drivers/infiniband/hw/hfi1/
Deprom.c235 p = strnstr(buffer, IMAGE_TRAIL_MAGIC, P1_SIZE); in read_partition_platform_config()
/Linux-v6.1/drivers/crypto/marvell/octeontx/
Dotx_cptpf_ucode.c146 if (strnstr(tmp_ver_str, "se-", OTX_CPT_UCODE_VER_STR_SZ) && in get_ucode_type()
150 if (strnstr(tmp_ver_str, "ae", OTX_CPT_UCODE_VER_STR_SZ) && in get_ucode_type()
1402 if (strnstr(val, " ", strlen(val))) in ucode_load_store()
/Linux-v6.1/drivers/block/rnbd/
Drnbd-srv.c599 a = strnstr(dev_search_path, "%SESSNAME%", sizeof(dev_search_path)); in rnbd_srv_get_full_path()
/Linux-v6.1/sound/soc/codecs/
Dwcd9335.c2571 if (strnstr(w->name, "MIC BIAS1", sizeof("MIC BIAS1"))) in __wcd9335_codec_enable_micbias()
2573 else if (strnstr(w->name, "MIC BIAS2", sizeof("MIC BIAS2"))) in __wcd9335_codec_enable_micbias()
2575 else if (strnstr(w->name, "MIC BIAS3", sizeof("MIC BIAS3"))) in __wcd9335_codec_enable_micbias()
2577 else if (strnstr(w->name, "MIC BIAS4", sizeof("MIC BIAS4"))) in __wcd9335_codec_enable_micbias()
/Linux-v6.1/drivers/staging/greybus/
Daudio_topology.c369 !strnstr(kcontrol->id.name, " Volume", sizeof(kcontrol->id.name))) in gbcodec_mixer_dapm_ctl_info()

12