Home
last modified time | relevance | path

Searched refs:memcmp (Results 1 – 25 of 1476) sorted by relevance

12345678910>>...60

/linux-6.3-rc2/arch/powerpc/lib/
A Dfeature-fixups.c708 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_orig, size) == 0); in test_basic_patching()
712 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_orig, size) == 0); in test_basic_patching()
720 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_orig, size) == 0); in test_basic_patching()
741 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_orig, size) == 0); in test_alternative_patching()
745 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_orig, size) == 0); in test_alternative_patching()
753 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_orig, size) == 0); in test_alternative_patching()
773 check(memcmp(ftr_fixup_test3, ftr_fixup_test3_orig, size) == 0); in test_alternative_case_too_big()
858 check(memcmp(ftr_fixup_test_FTR_macros, in test_cpu_macros()
871 check(memcmp(ftr_fixup_test_FW_FTR_macros, in test_fw_macros()
887 check(memcmp(lwsync_fixup_test, in test_lwsync_macros()
[all …]
/linux-6.3-rc2/drivers/media/platform/chips-media/
A Dcoda-mpeg2.c73 memcmp(buf, sequence_header_start, 4) != 0) in coda_mpeg2_parse_headers()
77 (size >= 25 && memcmp(buf + 22, u.start_code_prefix, 3) == 0)) && in coda_mpeg2_parse_headers()
78 memcmp(buf + 12, u.extension_start, 4) == 0) in coda_mpeg2_parse_headers()
82 (size > 89 && memcmp(buf + 86, u.start_code_prefix, 3) == 0)) && in coda_mpeg2_parse_headers()
83 memcmp(buf + 76, u.extension_start, 4) == 0) in coda_mpeg2_parse_headers()
A Dcoda-mpeg4.c70 memcmp(buf, vos_start, 4) != 0 || in coda_mpeg4_parse_headers()
71 memcmp(buf + 5, u.vo_start, 4) != 0) in coda_mpeg4_parse_headers()
75 (size >= 33 && memcmp(buf + 30, u.start_code_prefix, 3) == 0)) in coda_mpeg4_parse_headers()
79 (size >= 34 && memcmp(buf + 31, u.start_code_prefix, 3) == 0)) in coda_mpeg4_parse_headers()
83 (size >= 35 && memcmp(buf + 32, u.start_code_prefix, 3) == 0)) in coda_mpeg4_parse_headers()
/linux-6.3-rc2/drivers/acpi/
A Dspcr.c32 if (memcmp(h->oem_id, "QCOM ", ACPI_OEM_ID_SIZE)) in qdf2400_erratum_44_present()
35 if (!memcmp(h->oem_table_id, "QDF2432 ", ACPI_OEM_TABLE_ID_SIZE)) in qdf2400_erratum_44_present()
38 if (!memcmp(h->oem_table_id, "QDF2400 ", ACPI_OEM_TABLE_ID_SIZE) && in qdf2400_erratum_44_present()
57 if (memcmp(tb->header.oem_id, "APMC0D", ACPI_OEM_ID_SIZE) && in xgene_8250_erratum_present()
58 memcmp(tb->header.oem_id, "HPE ", ACPI_OEM_ID_SIZE)) in xgene_8250_erratum_present()
61 if (!memcmp(tb->header.oem_table_id, "XGENESPC", in xgene_8250_erratum_present()
65 if (!memcmp(tb->header.oem_table_id, "ProLiant", in xgene_8250_erratum_present()
/linux-6.3-rc2/drivers/staging/rtl8712/
A Dieee80211.c218 if (memcmp((buf + 2), wpa_oui_type, in r8712_get_wpa_ie()
249 if (!memcmp(s, (void *)WPA_CIPHER_SUITE_NONE, WPA_SELECTOR_LEN)) in r8712_get_wpa_cipher_suite()
251 if (!memcmp(s, (void *)WPA_CIPHER_SUITE_WEP40, WPA_SELECTOR_LEN)) in r8712_get_wpa_cipher_suite()
253 if (!memcmp(s, (void *)WPA_CIPHER_SUITE_TKIP, WPA_SELECTOR_LEN)) in r8712_get_wpa_cipher_suite()
255 if (!memcmp(s, (void *)WPA_CIPHER_SUITE_CCMP, WPA_SELECTOR_LEN)) in r8712_get_wpa_cipher_suite()
264 if (!memcmp(s, (void *)RSN_CIPHER_SUITE_NONE, RSN_SELECTOR_LEN)) in r8712_get_wpa2_cipher_suite()
266 if (!memcmp(s, (void *)RSN_CIPHER_SUITE_WEP40, RSN_SELECTOR_LEN)) in r8712_get_wpa2_cipher_suite()
268 if (!memcmp(s, (void *)RSN_CIPHER_SUITE_TKIP, RSN_SELECTOR_LEN)) in r8712_get_wpa2_cipher_suite()
270 if (!memcmp(s, (void *)RSN_CIPHER_SUITE_CCMP, RSN_SELECTOR_LEN)) in r8712_get_wpa2_cipher_suite()
376 (!memcmp(&in_ie[cnt + 2], &wpa_oui[0], 4))) { in r8712_get_sec_ie()
[all …]
A Drtl871x_recv.c311 if (!memcmp(myhwaddr, pattrib->src, ETH_ALEN)) in sta2sta_data_frame()
313 if ((memcmp(myhwaddr, pattrib->dst, ETH_ALEN)) && (!bmcast)) in sta2sta_data_frame()
317 (memcmp(pattrib->bssid, mybssid, ETH_ALEN))) in sta2sta_data_frame()
324 if (memcmp(pattrib->bssid, pattrib->src, ETH_ALEN)) in sta2sta_data_frame()
338 if (memcmp(pattrib->bssid, pattrib->dst, ETH_ALEN)) in sta2sta_data_frame()
391 if (!memcmp(myhwaddr, pattrib->src, ETH_ALEN)) in ap2sta_data_frame()
395 if ((memcmp(myhwaddr, pattrib->dst, ETH_ALEN)) && (!bmcast)) in ap2sta_data_frame()
400 (memcmp(pattrib->bssid, mybssid, ETH_ALEN))) in ap2sta_data_frame()
439 if (memcmp(pattrib->bssid, mybssid, ETH_ALEN)) in sta2ap_data_frame()
606 if ((!memcmp(psnap, (void *)rfc1042_header, SNAP_SIZE) && in r8712_wlanhdr_to_ethhdr()
[all …]
/linux-6.3-rc2/drivers/staging/rtl8192u/ieee80211/
A Drtl819x_HTProc.c132 if (!memcmp(CapIE, EWC11NHTCap, sizeof(EWC11NHTCap))) { in HTDebugHTCapability()
276 (memcmp(net->bssid, PCI_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
277 (memcmp(net->bssid, EDIMAX_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
278 (memcmp(net->bssid, AIRLINK_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
284 (memcmp(net->bssid, NETGEAR834Bv2_BROADCOM, 3) == 0) || in IsHTHalfNmodeAPs()
314 (memcmp(net->bssid, NETGEAR834Bv2_BROADCOM, 3) == 0)) in HTIOTPeerDetermine()
318 (memcmp(net->bssid, PCI_RALINK, 3) == 0) || in HTIOTPeerDetermine()
319 (memcmp(net->bssid, EDIMAX_RALINK, 3) == 0) || in HTIOTPeerDetermine()
320 (memcmp(net->bssid, AIRLINK_RALINK, 3) == 0) || in HTIOTPeerDetermine()
325 else if (memcmp(net->bssid, CISCO_BROADCOM, 3) == 0) in HTIOTPeerDetermine()
[all …]
/linux-6.3-rc2/block/partitions/
A Datari.c29 return memcmp (s, "GEM", 3) == 0 || memcmp (s, "BGM", 3) == 0 || in OK_id()
30 memcmp (s, "LNX", 3) == 0 || memcmp (s, "SWP", 3) == 0 || in OK_id()
31 memcmp (s, "RAW", 3) == 0 ; in OK_id()
82 if (memcmp (pi->id, "XGM", 3) != 0) { in atari_partition()
118 if (memcmp( xrs->part[1].id, "XGM", 3 ) != 0) { in atari_partition()
/linux-6.3-rc2/drivers/staging/rtl8192e/
A Drtl819x_HTProc.c149 (memcmp(net->bssid, PCI_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
150 (memcmp(net->bssid, EDIMAX_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
151 (memcmp(net->bssid, AIRLINK_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
154 else if (!memcmp(net->bssid, UNKNOWN_BORADCOM, 3) || in IsHTHalfNmodeAPs()
180 } else if (!memcmp(net->bssid, UNKNOWN_BORADCOM, 3) || in HTIOTPeerDetermine()
185 (memcmp(net->bssid, BELKINF5D82334V3_RALINK, 3) == 0) || in HTIOTPeerDetermine()
186 (memcmp(net->bssid, PCI_RALINK, 3) == 0) || in HTIOTPeerDetermine()
187 (memcmp(net->bssid, EDIMAX_RALINK, 3) == 0) || in HTIOTPeerDetermine()
188 (memcmp(net->bssid, AIRLINK_RALINK, 3) == 0) || in HTIOTPeerDetermine()
192 (memcmp(net->bssid, DLINK_ATHEROS_1, 3) == 0) || in HTIOTPeerDetermine()
[all …]
/linux-6.3-rc2/tools/testing/selftests/kvm/s390x/
A Dresets.c93 TEST_ASSERT(!memcmp(&regs.gprs, regs_null, sizeof(regs.gprs)), "grs == 0"); in assert_clear()
96 TEST_ASSERT(!memcmp(&sregs.acrs, regs_null, sizeof(sregs.acrs)), "acrs == 0"); in assert_clear()
99 TEST_ASSERT(!memcmp(&fpu.fprs, regs_null, sizeof(fpu.fprs)), "fprs == 0"); in assert_clear()
102 TEST_ASSERT(!memcmp(sync_regs->gprs, regs_null, sizeof(sync_regs->gprs)), in assert_clear()
105 TEST_ASSERT(!memcmp(sync_regs->acrs, regs_null, sizeof(sync_regs->acrs)), in assert_clear()
108 TEST_ASSERT(!memcmp(sync_regs->vrs, regs_null, sizeof(sync_regs->vrs)), in assert_clear()
140 TEST_ASSERT(!memcmp(&sregs.crs[1], regs_null, sizeof(sregs.crs[1]) * 12), in assert_initial()
148 TEST_ASSERT(!memcmp(&sync_regs->crs[1], regs_null, 8 * 12), in assert_initial()
/linux-6.3-rc2/drivers/net/wireless/broadcom/b43legacy/
A Dsysfs.c48 if (count >= 4 && memcmp(buf, "true", 4) == 0) in get_boolean()
50 if (count >= 5 && memcmp(buf, "false", 5) == 0) in get_boolean()
52 if (count >= 3 && memcmp(buf, "yes", 3) == 0) in get_boolean()
54 if (count >= 2 && memcmp(buf, "no", 2) == 0) in get_boolean()
56 if (count >= 2 && memcmp(buf, "on", 2) == 0) in get_boolean()
58 if (count >= 3 && memcmp(buf, "off", 3) == 0) in get_boolean()
/linux-6.3-rc2/arch/x86/kernel/
A Dstatic_call.c105 if (memcmp(insn, code, size) == 0) in __static_call_transform()
118 if (tramp && memcmp(insn+5, tramp_ud, 3)) { in __static_call_validate()
130 !memcmp(insn, x86_nops[5], 5) || in __static_call_validate()
131 !memcmp(insn, xor5rax, 5)) in __static_call_validate()
189 if (memcmp(tramp+5, tramp_ud, 3)) { in __static_call_fixup()
/linux-6.3-rc2/tools/testing/selftests/net/
A Dtls.c225 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
440 EXPECT_EQ(memcmp(buf, recv_mem, send_len), 0); in TEST_F()
452 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
466 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
495 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
523 EXPECT_EQ(memcmp(buf + SEND_LEN * i, in TEST_F()
1002 EXPECT_EQ(memcmp(test_str, buf, len), 0); in TEST_F()
1018 EXPECT_EQ(memcmp(test_str, buf, len), 0); in TEST_F()
1040 EXPECT_EQ(memcmp(test_str, buf, len), 0); in TEST_F()
1601 EXPECT_EQ(memcmp(buf, txt, sizeof(txt)), 0); in TEST_F()
[all …]
/linux-6.3-rc2/drivers/acpi/acpica/
A Dtbfind.c67 if (memcmp(&(acpi_gbl_root_table_list.tables[i].signature), in acpi_tb_find_table()
95 if (!memcmp in acpi_tb_find_table()
99 !memcmp in acpi_tb_find_table()
106 || !memcmp(acpi_gbl_root_table_list.tables[i].pointer-> in acpi_tb_find_table()
/linux-6.3-rc2/drivers/staging/rtl8723bs/core/
A Drtw_ieee80211.c189 && (!oui || !memcmp(&in_ie[cnt+2], oui, oui_len))) { in rtw_get_ie_ex()
409 if (!memcmp(s, WPA_CIPHER_SUITE_NONE, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
413 if (!memcmp(s, WPA_CIPHER_SUITE_TKIP, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
415 if (!memcmp(s, WPA_CIPHER_SUITE_CCMP, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
425 if (!memcmp(s, RSN_CIPHER_SUITE_NONE, RSN_SELECTOR_LEN)) in rtw_get_wpa2_cipher_suite()
429 if (!memcmp(s, RSN_CIPHER_SUITE_TKIP, RSN_SELECTOR_LEN)) in rtw_get_wpa2_cipher_suite()
431 if (!memcmp(s, RSN_CIPHER_SUITE_CCMP, RSN_SELECTOR_LEN)) in rtw_get_wpa2_cipher_suite()
494 if (!memcmp(pos, SUITE_1X, 4)) in rtw_parse_wpa_ie()
554 if (!memcmp(pos, SUITE_1X, 4)) in rtw_parse_wpa2_ie()
584 !memcmp(&in_ie[cnt+6], wapi_oui2, 4))) { in rtw_get_wapi_ie()
[all …]
/linux-6.3-rc2/arch/sparc/lib/
A Dmemcmp.S13 ENTRY(memcmp)
29 ENDPROC(memcmp)
30 EXPORT_SYMBOL(memcmp)
/linux-6.3-rc2/scripts/mod/
A Dmk_elfconfig.c17 if (memcmp(ei, ELFMAG, SELFMAG) != 0) { in main()
49 if (memcmp(endian_test.c, "\x01\x02", 2) == 0) in main()
51 else if (memcmp(endian_test.c, "\x02\x01", 2) == 0) in main()
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
A Dvarlen.c46 CHECK(memcmp(bss->payload1, exp_str, size1 + size2), "content_check", in test_varlen()
52 CHECK(memcmp(data->payload2, exp_str, size1 + size2), "content_check", in test_varlen()
58 CHECK(memcmp(data->payload3, exp_str, size1 + size2), "content_check", in test_varlen()
64 CHECK(memcmp(data->payload4, exp_str, size1 + size2), "content_check", in test_varlen()
A Dbpf_obj_id.c130 !memcmp(jited_insns, zeros, sizeof(zeros))) || in serial_test_bpf_obj_id()
132 !memcmp(xlated_insns, zeros, sizeof(zeros)) || in serial_test_bpf_obj_id()
150 !!memcmp(jited_insns, zeros, sizeof(zeros)), in serial_test_bpf_obj_id()
151 !!memcmp(xlated_insns, zeros, sizeof(zeros)), in serial_test_bpf_obj_id()
235 memcmp(&prog_info, &prog_infos[i], info_len) || in serial_test_bpf_obj_id()
240 memcmp(&prog_info, &prog_infos[i], info_len), in serial_test_bpf_obj_id()
282 memcmp(&map_info, &map_infos[i], info_len) || in serial_test_bpf_obj_id()
287 memcmp(&map_info, &map_infos[i], info_len), in serial_test_bpf_obj_id()
326 cmp_res = memcmp(&link_info, &link_infos[i], in serial_test_bpf_obj_id()
/linux-6.3-rc2/tools/testing/selftests/powerpc/stringloops/
A DMakefile7 build_32bit = $(shell if ($(CC) $(CFLAGS) -m32 -o /dev/null memcmp.c >/dev/null 2>&1) then echo "1"…
11 $(OUTPUT)/memcmp_64: memcmp.c ../utils.c
15 $(OUTPUT)/memcmp_32: memcmp.c
/linux-6.3-rc2/arch/x86/boot/
A Dstring.h8 #undef memcmp
13 int memcmp(const void *s1, const void *s2, size_t len);
19 #define memcmp __builtin_memcmp macro
/linux-6.3-rc2/lib/crypto/
A Dblake2s-selftest.c570 if (memcmp(hash, blake2s_testvecs[i], outlen)) { in blake2s_digest_test()
585 if (memcmp(hash, blake2s_testvecs[i], outlen)) { in blake2s_digest_test()
617 if (memcmp(&state1, &state2, sizeof(state1))) { in blake2s_random_test()
632 if (memcmp(&state1, &state2, sizeof(state1))) { in blake2s_random_test()
/linux-6.3-rc2/fs/btrfs/tests/
A Dextent-buffer-tests.c101 if (memcmp(buf, split1, strlen(split1))) { in test_btrfs_split_item()
125 if (memcmp(buf, split2, strlen(split2))) { in test_btrfs_split_item()
156 if (memcmp(buf, split3, strlen(split3))) { in test_btrfs_split_item()
179 if (memcmp(buf, split4, strlen(split4))) { in test_btrfs_split_item()
202 if (memcmp(buf, split2, strlen(split2))) { in test_btrfs_split_item()
/linux-6.3-rc2/drivers/nfc/nfcmrvl/
A Dfw_dnld.c133 memcmp(skb->data, nci_pattern_core_reset_ntf, in process_state_reset()
152 memcmp(skb->data, nci_pattern_core_init_rsp, in process_state_init()
182 memcmp(skb->data, nci_pattern_core_set_config_rsp, skb->len)) in process_state_set_ref_clock()
226 memcmp(skb->data, nci_pattern_core_set_config_rsp, skb->len)) in process_state_set_hi_config()
237 memcmp(skb->data, nci_pattern_core_conn_create_rsp, in process_state_open_lc()
299 memcmp(nci_pattern_core_conn_credits_ntf, skb->data, in process_state_fw_dnld()
325 memcmp(nci_pattern_core_conn_credits_ntf, skb->data, in process_state_fw_dnld()
337 memcmp(nci_pattern_core_conn_credits_ntf, skb->data, in process_state_fw_dnld()
352 memcmp(skb->data, nci_pattern_core_conn_close_rsp, skb->len)) in process_state_close_lc()
364 memcmp(skb->data, nci_pattern_proprietary_boot_rsp, skb->len)) in process_state_boot()
/linux-6.3-rc2/tools/testing/selftests/nci/
A Dnci_dev.c334 if (memcmp(nci_reset_cmd, buf, len)) in virtual_dev_open()
343 if (memcmp(nci_init_cmd, buf, len)) in virtual_dev_open()
352 if (memcmp(nci_rf_disc_map_cmd, buf, len)) in virtual_dev_open()
374 if (memcmp(nci_reset_cmd, buf, len)) in virtual_dev_open_v2()
384 if (memcmp(nci_init_cmd_v2, buf, len)) in virtual_dev_open_v2()
393 if (memcmp(nci_rf_disc_map_cmd, buf, len)) in virtual_dev_open_v2()
465 if (memcmp(nci_reset_cmd, buf, len)) in virtual_deinit()
487 if (memcmp(nci_reset_cmd, buf, len)) in virtual_deinit_v2()
550 if (memcmp(nci_rf_discovery_cmd, buf, len)) in virtual_poll_start()
572 if (memcmp(nci_rf_deact_cmd, buf, len)) in virtual_poll_stop()
[all …]

Completed in 31 milliseconds

12345678910>>...60