Home
last modified time | relevance | path

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

12345678910>>...52

/Linux-v4.19/arch/powerpc/lib/
Dfeature-fixups.c481 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_orig, size) == 0); in test_basic_patching()
485 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_orig, size) == 0); in test_basic_patching()
489 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_expected, size) == 0); in test_basic_patching()
493 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_orig, size) == 0); in test_basic_patching()
495 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_expected, size) == 0); in test_basic_patching()
514 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_orig, size) == 0); in test_alternative_patching()
518 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_orig, size) == 0); in test_alternative_patching()
522 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_expected, size) == 0); in test_alternative_patching()
526 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_orig, size) == 0); in test_alternative_patching()
528 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_expected, size) == 0); in test_alternative_patching()
[all …]
/Linux-v4.19/drivers/acpi/
Dspcr.c36 if (memcmp(h->oem_id, "QCOM ", ACPI_OEM_ID_SIZE)) in qdf2400_erratum_44_present()
39 if (!memcmp(h->oem_table_id, "QDF2432 ", ACPI_OEM_TABLE_ID_SIZE)) in qdf2400_erratum_44_present()
42 if (!memcmp(h->oem_table_id, "QDF2400 ", ACPI_OEM_TABLE_ID_SIZE) && in qdf2400_erratum_44_present()
61 if (memcmp(tb->header.oem_id, "APMC0D", ACPI_OEM_ID_SIZE) && in xgene_8250_erratum_present()
62 memcmp(tb->header.oem_id, "HPE ", ACPI_OEM_ID_SIZE)) in xgene_8250_erratum_present()
65 if (!memcmp(tb->header.oem_table_id, "XGENESPC", in xgene_8250_erratum_present()
69 if (!memcmp(tb->header.oem_table_id, "ProLiant", in xgene_8250_erratum_present()
/Linux-v4.19/drivers/staging/rtl8712/
Dieee80211.c226 if (memcmp((pbuf + 2), wpa_oui_type, in r8712_get_wpa_ie()
256 if (!memcmp(s, (void *)WPA_CIPHER_SUITE_NONE, WPA_SELECTOR_LEN)) in r8712_get_wpa_cipher_suite()
258 if (!memcmp(s, (void *)WPA_CIPHER_SUITE_WEP40, WPA_SELECTOR_LEN)) in r8712_get_wpa_cipher_suite()
260 if (!memcmp(s, (void *)WPA_CIPHER_SUITE_TKIP, WPA_SELECTOR_LEN)) in r8712_get_wpa_cipher_suite()
262 if (!memcmp(s, (void *)WPA_CIPHER_SUITE_CCMP, WPA_SELECTOR_LEN)) in r8712_get_wpa_cipher_suite()
264 if (!memcmp(s, (void *)WPA_CIPHER_SUITE_WEP104, WPA_SELECTOR_LEN)) in r8712_get_wpa_cipher_suite()
271 if (!memcmp(s, (void *)RSN_CIPHER_SUITE_NONE, RSN_SELECTOR_LEN)) in r8712_get_wpa2_cipher_suite()
273 if (!memcmp(s, (void *)RSN_CIPHER_SUITE_WEP40, RSN_SELECTOR_LEN)) in r8712_get_wpa2_cipher_suite()
275 if (!memcmp(s, (void *)RSN_CIPHER_SUITE_TKIP, RSN_SELECTOR_LEN)) in r8712_get_wpa2_cipher_suite()
277 if (!memcmp(s, (void *)RSN_CIPHER_SUITE_CCMP, RSN_SELECTOR_LEN)) in r8712_get_wpa2_cipher_suite()
[all …]
Drtl871x_recv.c325 if (!memcmp(myhwaddr, pattrib->src, ETH_ALEN)) in sta2sta_data_frame()
327 if ((memcmp(myhwaddr, pattrib->dst, ETH_ALEN)) && (!bmcast)) in sta2sta_data_frame()
331 (memcmp(pattrib->bssid, mybssid, ETH_ALEN))) in sta2sta_data_frame()
338 if (memcmp(pattrib->bssid, pattrib->src, ETH_ALEN)) in sta2sta_data_frame()
352 if (memcmp(pattrib->bssid, pattrib->dst, ETH_ALEN)) in sta2sta_data_frame()
405 if (!memcmp(myhwaddr, pattrib->src, ETH_ALEN)) in ap2sta_data_frame()
409 if ((memcmp(myhwaddr, pattrib->dst, ETH_ALEN)) && (!bmcast)) in ap2sta_data_frame()
414 (memcmp(pattrib->bssid, mybssid, ETH_ALEN))) in ap2sta_data_frame()
453 if (memcmp(pattrib->bssid, mybssid, ETH_ALEN)) in sta2ap_data_frame()
621 if ((!memcmp(psnap, (void *)rfc1042_header, SNAP_SIZE) && in r8712_wlanhdr_to_ethhdr()
[all …]
/Linux-v4.19/block/partitions/
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-v4.19/drivers/staging/rtl8192u/ieee80211/
Drtl819x_HTProc.c136 if (!memcmp(CapIE, EWC11NHTCap, sizeof(EWC11NHTCap))) { in HTDebugHTCapability()
171 if (!memcmp(InfoIE, EWC11NHTInfo, sizeof(EWC11NHTInfo))) { in HTDebugHTInfo()
335 if ((memcmp(net->bssid, BELKINF5D8233V1_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
336 (memcmp(net->bssid, BELKINF5D82334V3_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
337 (memcmp(net->bssid, PCI_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
338 (memcmp(net->bssid, EDIMAX_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
339 (memcmp(net->bssid, AIRLINK_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
342 else if ((memcmp(net->bssid, UNKNOWN_BORADCOM, 3) == 0) || in IsHTHalfNmodeAPs()
343 (memcmp(net->bssid, LINKSYSWRT330_LINKSYSWRT300_BROADCOM, 3) == 0) || in IsHTHalfNmodeAPs()
344 (memcmp(net->bssid, LINKSYSWRT350_LINKSYSWRT150_BROADCOM, 3) == 0) || in IsHTHalfNmodeAPs()
[all …]
/Linux-v4.19/tools/testing/selftests/net/
Dtls.c125 EXPECT_EQ(memcmp(test_str, recv_buf, to_send), 0); in TEST_F()
139 EXPECT_EQ(memcmp(buf, recv_mem, send_len), 0); in TEST_F()
151 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
165 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
184 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
238 EXPECT_EQ(memcmp(test_strs[i], buf + len_cmp, in TEST_F()
292 EXPECT_EQ(memcmp(mem_send, mem_recv, send_len), 0); in TEST_F()
310 EXPECT_EQ(memcmp(mem_send, mem_recv, send_len), 0); in TEST_F()
326 EXPECT_EQ(memcmp(test_str, buf, send_len2), 0); in TEST_F()
332 EXPECT_EQ(memcmp(mem_send, mem_recv, send_len), 0); in TEST_F()
[all …]
/Linux-v4.19/arch/x86/kernel/
Djump_label.c58 if (unlikely(memcmp((void *)entry->code, default_nop, 5) in __jump_label_transform()
66 if (unlikely(memcmp((void *)entry->code, ideal_nop, 5) in __jump_label_transform()
82 if (unlikely(memcmp((void *)entry->code, default_nop, 5) != 0)) in __jump_label_transform()
88 if (unlikely(memcmp((void *)entry->code, &code, 5) != 0)) in __jump_label_transform()
137 if (memcmp(ideal_nop, default_nop, 5) != 0) in arch_jump_label_transform_static()
/Linux-v4.19/drivers/staging/rtl8192e/
Drtl819x_HTProc.c157 if ((memcmp(net->bssid, BELKINF5D8233V1_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
158 (memcmp(net->bssid, BELKINF5D82334V3_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
159 (memcmp(net->bssid, PCI_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
160 (memcmp(net->bssid, EDIMAX_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
161 (memcmp(net->bssid, AIRLINK_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
164 else if (!memcmp(net->bssid, UNKNOWN_BORADCOM, 3) || in IsHTHalfNmodeAPs()
165 !memcmp(net->bssid, LINKSYSWRT330_LINKSYSWRT300_BROADCOM, 3) || in IsHTHalfNmodeAPs()
166 !memcmp(net->bssid, LINKSYSWRT350_LINKSYSWRT150_BROADCOM, 3) || in IsHTHalfNmodeAPs()
190 else if (!memcmp(net->bssid, UNKNOWN_BORADCOM, 3) || in HTIOTPeerDetermine()
191 !memcmp(net->bssid, LINKSYSWRT330_LINKSYSWRT300_BROADCOM, 3) || in HTIOTPeerDetermine()
[all …]
/Linux-v4.19/drivers/net/wireless/broadcom/b43legacy/
Dsysfs.c59 if (count >= 4 && memcmp(buf, "true", 4) == 0) in get_boolean()
61 if (count >= 5 && memcmp(buf, "false", 5) == 0) in get_boolean()
63 if (count >= 3 && memcmp(buf, "yes", 3) == 0) in get_boolean()
65 if (count >= 2 && memcmp(buf, "no", 2) == 0) in get_boolean()
67 if (count >= 2 && memcmp(buf, "on", 2) == 0) in get_boolean()
69 if (count >= 3 && memcmp(buf, "off", 3) == 0) in get_boolean()
/Linux-v4.19/drivers/acpi/acpica/
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-v4.19/arch/sparc/lib/
Dmemcmp.S13 ENTRY(memcmp)
29 ENDPROC(memcmp)
30 EXPORT_SYMBOL(memcmp)
/Linux-v4.19/scripts/mod/
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-v4.19/arch/x86/boot/
Dstring.h8 #undef memcmp
12 int memcmp(const void *s1, const void *s2, size_t len);
20 #define memcmp __builtin_memcmp macro
Dstring.c27 #undef memcmp
29 int memcmp(const void *s1, const void *s2, size_t len) in memcmp() function
171 if (!memcmp(s1, s2, l2)) in strstr()
/Linux-v4.19/tools/testing/selftests/powerpc/stringloops/
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
15 $(OUTPUT)/memcmp_32: memcmp.c
/Linux-v4.19/drivers/staging/rtl8188eu/core/
Drtw_ieee80211.c293 if (!memcmp((pbuf + 2), wpa_oui_type, sizeof(wpa_oui_type)) == false) in rtw_get_wpa_ie()
326 if (!memcmp(s, WPA_CIPHER_SUITE_NONE, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
328 if (!memcmp(s, WPA_CIPHER_SUITE_WEP40, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
330 if (!memcmp(s, WPA_CIPHER_SUITE_TKIP, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
332 if (!memcmp(s, WPA_CIPHER_SUITE_CCMP, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
334 if (!memcmp(s, WPA_CIPHER_SUITE_WEP104, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
342 if (!memcmp(s, RSN_CIPHER_SUITE_NONE, RSN_SELECTOR_LEN)) in rtw_get_wpa2_cipher_suite()
344 if (!memcmp(s, RSN_CIPHER_SUITE_WEP40, RSN_SELECTOR_LEN)) in rtw_get_wpa2_cipher_suite()
346 if (!memcmp(s, RSN_CIPHER_SUITE_TKIP, RSN_SELECTOR_LEN)) in rtw_get_wpa2_cipher_suite()
348 if (!memcmp(s, RSN_CIPHER_SUITE_CCMP, RSN_SELECTOR_LEN)) in rtw_get_wpa2_cipher_suite()
[all …]
/Linux-v4.19/drivers/staging/rtl8723bs/core/
Drtw_ieee80211.c198 && (!oui || !memcmp(&in_ie[cnt+2], oui, oui_len))) { in rtw_get_ie_ex()
392 if (memcmp((pbuf + 2), wpa_oui_type, sizeof(wpa_oui_type))) { in rtw_get_wpa_ie()
434 if (!memcmp(s, WPA_CIPHER_SUITE_NONE, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
436 if (!memcmp(s, WPA_CIPHER_SUITE_WEP40, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
438 if (!memcmp(s, WPA_CIPHER_SUITE_TKIP, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
440 if (!memcmp(s, WPA_CIPHER_SUITE_CCMP, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
442 if (!memcmp(s, WPA_CIPHER_SUITE_WEP104, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
450 if (!memcmp(s, RSN_CIPHER_SUITE_NONE, RSN_SELECTOR_LEN)) in rtw_get_wpa2_cipher_suite()
452 if (!memcmp(s, RSN_CIPHER_SUITE_WEP40, RSN_SELECTOR_LEN)) in rtw_get_wpa2_cipher_suite()
454 if (!memcmp(s, RSN_CIPHER_SUITE_TKIP, RSN_SELECTOR_LEN)) in rtw_get_wpa2_cipher_suite()
[all …]
/Linux-v4.19/fs/btrfs/tests/
Dextent-buffer-tests.c103 if (memcmp(buf, split1, strlen(split1))) { in test_btrfs_split_item()
128 if (memcmp(buf, split2, strlen(split2))) { in test_btrfs_split_item()
160 if (memcmp(buf, split3, strlen(split3))) { in test_btrfs_split_item()
184 if (memcmp(buf, split4, strlen(split4))) { in test_btrfs_split_item()
208 if (memcmp(buf, split2, strlen(split2))) { in test_btrfs_split_item()
/Linux-v4.19/drivers/nfc/nfcmrvl/
Dfw_dnld.c146 memcmp(skb->data, nci_pattern_core_reset_ntf, in process_state_reset()
164 memcmp(skb->data, nci_pattern_core_init_rsp, in process_state_init()
194 memcmp(skb->data, nci_pattern_core_set_config_rsp, skb->len)) in process_state_set_ref_clock()
238 memcmp(skb->data, nci_pattern_core_set_config_rsp, skb->len)) in process_state_set_hi_config()
249 memcmp(skb->data, nci_pattern_core_conn_create_rsp, in process_state_open_lc()
311 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()
349 memcmp(nci_pattern_core_conn_credits_ntf, skb->data, in process_state_fw_dnld()
364 memcmp(skb->data, nci_pattern_core_conn_close_rsp, skb->len)) in process_state_close_lc()
375 memcmp(skb->data, nci_pattern_proprietary_boot_rsp, skb->len)) in process_state_boot()
/Linux-v4.19/samples/bpf/
Dbpf_load.c620 if (memcmp(shname, "kprobe/", 7) == 0 || in do_load_bpf_file()
621 memcmp(shname, "kretprobe/", 10) == 0 || in do_load_bpf_file()
622 memcmp(shname, "tracepoint/", 11) == 0 || in do_load_bpf_file()
623 memcmp(shname, "raw_tracepoint/", 15) == 0 || in do_load_bpf_file()
624 memcmp(shname, "xdp", 3) == 0 || in do_load_bpf_file()
625 memcmp(shname, "perf_event", 10) == 0 || in do_load_bpf_file()
626 memcmp(shname, "socket", 6) == 0 || in do_load_bpf_file()
627 memcmp(shname, "cgroup/", 7) == 0 || in do_load_bpf_file()
628 memcmp(shname, "sockops", 7) == 0 || in do_load_bpf_file()
629 memcmp(shname, "sk_skb", 6) == 0 || in do_load_bpf_file()
[all …]
/Linux-v4.19/arch/powerpc/oprofile/cell/
Dvma_map.c135 if (memcmp(ehdr.e_ident, expected, EI_PAD) != 0) { in create_vma_map()
204 if (memcmp(name, "_ovly_table", 12) == 0) in create_vma_map()
206 if (memcmp(name, "_ovly_buf_table", 16) == 0) in create_vma_map()
208 if (memcmp(name, "_ovly_table_end", 16) == 0) in create_vma_map()
210 if (memcmp(name, "_ovly_buf_table_end", 20) == 0) in create_vma_map()
/Linux-v4.19/include/linux/
Duuid.h46 return memcmp(u1, u2, sizeof(guid_t)) == 0; in guid_equal()
61 return memcmp(u1, u2, sizeof(uuid_t)) == 0; in uuid_equal()
93 return memcmp(&u1, &u2, sizeof(guid_t)); in uuid_le_cmp()
/Linux-v4.19/tools/testing/selftests/powerpc/copyloops/
Dvalidate.c38 if (memcmp(dstp, srcp, len)) { in do_one()
50 if (memcmp(dst, redzone, dstp - dst)) { in do_one()
56 if (memcmp(dstp+len, redzone, dst+BUFLEN-(dstp+len))) { in do_one()
/Linux-v4.19/drivers/scsi/isci/
Dprobe_roms.c67 if (memcmp(oem_sig, ISCI_OEM_SIG, ISCI_OEM_SIG_SIZE) == 0) { in isci_request_oprom()
95 if (memcmp(rom->hdr.signature, in isci_request_oprom()
205 if (memcmp(oem_hdr->sig, ISCI_OEM_SIG, ISCI_OEM_SIG_SIZE) != 0) { in isci_get_efi_var()
222 if (memcmp(rom->hdr.signature, in isci_get_efi_var()

12345678910>>...52