Home
last modified time | relevance | path

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

12345678910>>...60

/kernel/linux/linux-5.10/arch/powerpc/lib/
Dfeature-fixups.c657 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_orig, size) == 0); in test_basic_patching()
661 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_orig, size) == 0); in test_basic_patching()
665 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_expected, size) == 0); in test_basic_patching()
669 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_orig, size) == 0); in test_basic_patching()
671 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_expected, size) == 0); in test_basic_patching()
690 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_orig, size) == 0); in test_alternative_patching()
694 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_orig, size) == 0); in test_alternative_patching()
698 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_expected, size) == 0); in test_alternative_patching()
702 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_orig, size) == 0); in test_alternative_patching()
704 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_expected, size) == 0); in test_alternative_patching()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/coda/
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()
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()
/kernel/linux/linux-5.10/drivers/acpi/
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()
/kernel/linux/linux-5.10/drivers/staging/rtl8712/
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()
257 if (!memcmp(s, (void *)WPA_CIPHER_SUITE_WEP104, 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()
[all …]
/kernel/linux/linux-5.10/drivers/staging/rtl8192u/ieee80211/
Drtl819x_HTProc.c132 if (!memcmp(CapIE, EWC11NHTCap, sizeof(EWC11NHTCap))) { in HTDebugHTCapability()
167 if (!memcmp(InfoIE, EWC11NHTInfo, sizeof(EWC11NHTInfo))) { in HTDebugHTInfo()
274 if ((memcmp(net->bssid, BELKINF5D8233V1_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
275 (memcmp(net->bssid, BELKINF5D82334V3_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
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()
281 else if ((memcmp(net->bssid, UNKNOWN_BORADCOM, 3) == 0) || in IsHTHalfNmodeAPs()
282 (memcmp(net->bssid, LINKSYSWRT330_LINKSYSWRT300_BROADCOM, 3) == 0) || in IsHTHalfNmodeAPs()
283 (memcmp(net->bssid, LINKSYSWRT350_LINKSYSWRT150_BROADCOM, 3) == 0) || in IsHTHalfNmodeAPs()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/liteos_m/testsuites/unittest/posix/src/string/
Dmemory_func_test.c185 retValue = memcmp(source, dest, sizeof(source) / sizeof(source[0]));
197 ret = memcmp(orign, lt, len);
200 ret = memcmp(eq, orign, len);
203 ret = memcmp(orign, gt, len);
206 ret = memcmp(gt, orign, 0);
223 retValue = memcmp(source, dest, sizeof(dest) / sizeof(dest[0]));
226 int ret = memcmp(L"CBCDEFG", L"BBCDEFG", 7);
229 ret = memcmp(L"ABCDEFG", L"abcdefg", 2);
232 ret = memcmp(L"ABCDEFG", L"ABCDEFG", 6);
249 retValue = memcmp(source, dest, sizeof(source) / sizeof(source[0]));
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/s390x/
Dresets.c96 TEST_ASSERT(!memcmp(&regs.gprs, regs_null, sizeof(regs.gprs)), "grs == 0"); in assert_clear()
99 TEST_ASSERT(!memcmp(&sregs.acrs, regs_null, sizeof(sregs.acrs)), "acrs == 0"); in assert_clear()
102 TEST_ASSERT(!memcmp(&fpu.fprs, regs_null, sizeof(fpu.fprs)), "fprs == 0"); in assert_clear()
105 TEST_ASSERT(!memcmp(sync_regs->gprs, regs_null, sizeof(sync_regs->gprs)), in assert_clear()
108 TEST_ASSERT(!memcmp(sync_regs->acrs, regs_null, sizeof(sync_regs->acrs)), in assert_clear()
111 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()
/kernel/linux/linux-5.10/drivers/staging/rtl8192e/
Drtl819x_HTProc.c149 if ((memcmp(net->bssid, BELKINF5D8233V1_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
150 (memcmp(net->bssid, BELKINF5D82334V3_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
151 (memcmp(net->bssid, PCI_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
152 (memcmp(net->bssid, EDIMAX_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
153 (memcmp(net->bssid, AIRLINK_RALINK, 3) == 0) || in IsHTHalfNmodeAPs()
156 else if (!memcmp(net->bssid, UNKNOWN_BORADCOM, 3) || in IsHTHalfNmodeAPs()
157 !memcmp(net->bssid, LINKSYSWRT330_LINKSYSWRT300_BROADCOM, 3) || in IsHTHalfNmodeAPs()
158 !memcmp(net->bssid, LINKSYSWRT350_LINKSYSWRT150_BROADCOM, 3) || in IsHTHalfNmodeAPs()
182 else if (!memcmp(net->bssid, UNKNOWN_BORADCOM, 3) || in HTIOTPeerDetermine()
183 !memcmp(net->bssid, LINKSYSWRT330_LINKSYSWRT300_BROADCOM, 3) || in HTIOTPeerDetermine()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dtls.c95 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
210 EXPECT_EQ(memcmp(test_str, recv_buf, to_send), 0); in TEST_F()
282 EXPECT_EQ(memcmp(buf, recv_mem, send_len), 0); in TEST_F()
294 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
308 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
337 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
365 EXPECT_EQ(memcmp(buf + SEND_LEN * i, in TEST_F()
423 EXPECT_EQ(memcmp(test_strs[i], buf + len_cmp, in TEST_F()
477 EXPECT_EQ(memcmp(mem_send, mem_recv, send_len), 0); in TEST_F()
495 EXPECT_EQ(memcmp(mem_send, mem_recv, send_len), 0); in TEST_F()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43legacy/
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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/sparc/lib/
Dmemcmp.S13 ENTRY(memcmp)
29 ENDPROC(memcmp)
30 EXPORT_SYMBOL(memcmp)
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
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()
Dbpf_obj_id.c130 !memcmp(jited_insns, zeros, sizeof(zeros))) || in test_bpf_obj_id()
132 !memcmp(xlated_insns, zeros, sizeof(zeros)) || in test_bpf_obj_id()
150 !!memcmp(jited_insns, zeros, sizeof(zeros)), in test_bpf_obj_id()
151 !!memcmp(xlated_insns, zeros, sizeof(zeros)), in test_bpf_obj_id()
235 memcmp(&prog_info, &prog_infos[i], info_len) || in test_bpf_obj_id()
240 memcmp(&prog_info, &prog_infos[i], info_len), in test_bpf_obj_id()
282 memcmp(&map_info, &map_infos[i], info_len) || in test_bpf_obj_id()
287 memcmp(&map_info, &map_infos[i], info_len), in test_bpf_obj_id()
326 cmp_res = memcmp(&link_info, &link_infos[i], in test_bpf_obj_id()
/kernel/liteos_a/lib/libc/musl/src/arch/arm/
Dmemcmp.S34 .globl memcmp @ -- Begin function memcmp symbol
36 .type memcmp,%function
37 .code 32 @memcmp
38 memcmp: label
205 .size memcmp, Lfunc_end - memcmp
/kernel/linux/linux-5.10/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 ../utils.c
15 $(OUTPUT)/memcmp_32: memcmp.c
/kernel/linux/linux-5.10/arch/x86/boot/
Dstring.h8 #undef memcmp
12 int memcmp(const void *s1, const void *s2, size_t len);
17 #define memcmp __builtin_memcmp macro
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/core/
Drtw_ieee80211.c284 if (memcmp((pbuf + 2), wpa_oui_type, sizeof(wpa_oui_type))) in rtw_get_wpa_ie()
316 if (!memcmp(s, WPA_CIPHER_SUITE_NONE, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
318 if (!memcmp(s, WPA_CIPHER_SUITE_WEP40, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
320 if (!memcmp(s, WPA_CIPHER_SUITE_TKIP, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
322 if (!memcmp(s, WPA_CIPHER_SUITE_CCMP, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
324 if (!memcmp(s, WPA_CIPHER_SUITE_WEP104, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
332 if (!memcmp(s, RSN_CIPHER_SUITE_NONE, RSN_SELECTOR_LEN)) in rtw_get_wpa2_cipher_suite()
334 if (!memcmp(s, RSN_CIPHER_SUITE_WEP40, RSN_SELECTOR_LEN)) in rtw_get_wpa2_cipher_suite()
336 if (!memcmp(s, RSN_CIPHER_SUITE_TKIP, RSN_SELECTOR_LEN)) in rtw_get_wpa2_cipher_suite()
338 if (!memcmp(s, RSN_CIPHER_SUITE_CCMP, RSN_SELECTOR_LEN)) in rtw_get_wpa2_cipher_suite()
[all …]
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/core/
Drtw_ieee80211.c199 && (!oui || !memcmp(&in_ie[cnt+2], oui, oui_len))) { in rtw_get_ie_ex()
393 if (memcmp((pbuf + 2), wpa_oui_type, sizeof(wpa_oui_type))) { in rtw_get_wpa_ie()
435 if (!memcmp(s, WPA_CIPHER_SUITE_NONE, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
437 if (!memcmp(s, WPA_CIPHER_SUITE_WEP40, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
439 if (!memcmp(s, WPA_CIPHER_SUITE_TKIP, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
441 if (!memcmp(s, WPA_CIPHER_SUITE_CCMP, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
443 if (!memcmp(s, WPA_CIPHER_SUITE_WEP104, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite()
451 if (!memcmp(s, RSN_CIPHER_SUITE_NONE, RSN_SELECTOR_LEN)) in rtw_get_wpa2_cipher_suite()
453 if (!memcmp(s, RSN_CIPHER_SUITE_WEP40, RSN_SELECTOR_LEN)) in rtw_get_wpa2_cipher_suite()
455 if (!memcmp(s, RSN_CIPHER_SUITE_TKIP, RSN_SELECTOR_LEN)) in rtw_get_wpa2_cipher_suite()
[all …]
/kernel/linux/linux-5.10/fs/btrfs/tests/
Dextent-buffer-tests.c102 if (memcmp(buf, split1, strlen(split1))) { in test_btrfs_split_item()
127 if (memcmp(buf, split2, strlen(split2))) { in test_btrfs_split_item()
159 if (memcmp(buf, split3, strlen(split3))) { in test_btrfs_split_item()
183 if (memcmp(buf, split4, strlen(split4))) { in test_btrfs_split_item()
207 if (memcmp(buf, split2, strlen(split2))) { in test_btrfs_split_item()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/samples/bpf/
Dbpf_load.c636 if (memcmp(shname, "kprobe/", 7) == 0 || in do_load_bpf_file()
637 memcmp(shname, "kretprobe/", 10) == 0 || in do_load_bpf_file()
638 memcmp(shname, "tracepoint/", 11) == 0 || in do_load_bpf_file()
639 memcmp(shname, "raw_tracepoint/", 15) == 0 || in do_load_bpf_file()
640 memcmp(shname, "xdp", 3) == 0 || in do_load_bpf_file()
641 memcmp(shname, "perf_event", 10) == 0 || in do_load_bpf_file()
642 memcmp(shname, "socket", 6) == 0 || in do_load_bpf_file()
643 memcmp(shname, "cgroup/", 7) == 0 || in do_load_bpf_file()
644 memcmp(shname, "sockops", 7) == 0 || in do_load_bpf_file()
645 memcmp(shname, "sk_skb", 6) == 0 || in do_load_bpf_file()
[all …]

12345678910>>...60