| /linux/drivers/media/platform/chips-media/coda/ |
| H A D | coda-mpeg2.c | 73 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()
|
| H A D | coda-mpeg4.c | 70 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/drivers/acpi/ |
| H A D | spcr.c | 32 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/tools/testing/selftests/vDSO/ |
| H A D | vdso_test_chacha.c | 105 if (memcmp(output1, output2, sizeof(output1))) in main() 107 if (memcmp(counter1, counter2, sizeof(counter1))) in main() 118 if (memcmp(output1, output2, sizeof(output1))) in main() 120 if (memcmp(counter1, counter2, sizeof(counter1))) in main() 125 if (memcmp(output1, output2, sizeof(output1))) in main() 127 if (memcmp(counter1, counter2, sizeof(counter1))) in main()
|
| /linux/tools/testing/selftests/kvm/s390/ |
| H A D | resets.c | 93 TEST_ASSERT(!memcmp(®s.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/drivers/net/wireless/broadcom/b43legacy/ |
| H A D | sysfs.c | 48 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/drivers/staging/rtl8723bs/core/ |
| H A D | rtw_ieee80211.c | 196 (!oui || (ie_len >= oui_len && !memcmp(&in_ie[cnt + 2], oui, oui_len)))) { in rtw_get_ie_ex() 378 if (memcmp((pbuf + 2), wpa_oui_type, sizeof(wpa_oui_type))) in rtw_get_wpa_ie() 419 if (!memcmp(s, WPA_CIPHER_SUITE_NONE, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite() 421 if (!memcmp(s, WPA_CIPHER_SUITE_WEP40, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite() 423 if (!memcmp(s, WPA_CIPHER_SUITE_TKIP, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite() 425 if (!memcmp(s, WPA_CIPHER_SUITE_CCMP, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite() 427 if (!memcmp(s, WPA_CIPHER_SUITE_WEP104, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite() 435 if (!memcmp(s, RSN_CIPHER_SUITE_NONE, RSN_SELECTOR_LEN)) in rtw_get_wpa2_cipher_suite() 437 if (!memcmp(s, RSN_CIPHER_SUITE_WEP40, RSN_SELECTOR_LEN)) in rtw_get_wpa2_cipher_suite() 439 if (!memcmp(s, RSN_CIPHER_SUITE_TKIP, RSN_SELECTOR_LEN)) in rtw_get_wpa2_cipher_suite() [all …]
|
| /linux/arch/sparc/lib/ |
| H A D | memcmp.S | 13 ENTRY(memcmp) 29 ENDPROC(memcmp) 30 EXPORT_SYMBOL(memcmp)
|
| /linux/tools/testing/selftests/net/ |
| H A D | tls.c | 256 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F() 462 EXPECT_EQ(memcmp(test_str, recv_buf, to_send), 0); in TEST_F() 539 EXPECT_EQ(memcmp(buf, recv_mem, send_len), 0); in TEST_F() 551 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F() 565 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F() 620 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F() 639 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F() 667 EXPECT_EQ(memcmp(buf + SEND_LEN * i, in TEST_F() 726 EXPECT_EQ(memcmp(test_strs[i], buf + len_cmp, in TEST_F() 780 EXPECT_EQ(memcmp(mem_send, mem_recv, send_len), 0); in TEST_F() [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | varlen.c | 46 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()
|
| H A D | kptr_xchg_inline.c | 44 if (!ASSERT_OK(memcmp(&insn[3], &exp, sizeof(exp)), "mov")) in test_kptr_xchg_inline() 48 if (!ASSERT_OK(memcmp(&insn[4], &exp, sizeof(exp)), "xchg")) in test_kptr_xchg_inline()
|
| H A D | sockmap_strp.c | 40 !ASSERT_OK(memcmp(packet, rcv, STRP_PKT_FULL_LEN), in sockmap_strp_consume_pre_data() 149 if (!ASSERT_OK(memcmp(send_dir[i].data, rcv, recvd), in test_sockmap_strp_dispatch_pkt() 214 if (!ASSERT_OK(memcmp(snd, rcv, total), "data mismatch")) in test_sockmap_strp_multiple_pkt() 336 !ASSERT_OK(memcmp(packet, rcv, pkt_size), in test_sockmap_strp_pass() 354 !ASSERT_OK(memcmp(packet, rcv, pkt_size), in test_sockmap_strp_pass() 404 !ASSERT_OK(memcmp(packet, rcv, STRP_PKT_FULL_LEN), in test_sockmap_strp_verdict() 421 !ASSERT_OK(memcmp(packet, rcv, STRP_PKT_FULL_LEN), in test_sockmap_strp_verdict()
|
| H A D | bpf_obj_id.c | 124 !ASSERT_FALSE((env.jit_enabled && !memcmp(jited_insns, zeros, sizeof(zeros))), in serial_test_bpf_obj_id() 127 !ASSERT_NEQ(memcmp(xlated_insns, zeros, sizeof(zeros)), 0, "xlated_insns") || in serial_test_bpf_obj_id() 195 cmp_res = memcmp(&prog_info, &prog_infos[i], info_len); in serial_test_bpf_obj_id() 235 cmp_res = memcmp(&map_info, &map_infos[i], info_len); in serial_test_bpf_obj_id() 272 cmp_res = memcmp(&link_info, &link_infos[i], in serial_test_bpf_obj_id()
|
| /linux/tools/testing/selftests/powerpc/stringloops/ |
| H A D | Makefile | 4 build_32bit = $(shell if ($(CC) $(CFLAGS) -m32 -o /dev/null memcmp.c >/dev/null 2>&1) then echo "1"… 8 $(OUTPUT)/memcmp_64: memcmp.c ../utils.c 12 $(OUTPUT)/memcmp_32: memcmp.c
|
| /linux/fs/btrfs/tests/ |
| H A D | extent-buffer-tests.c | 105 if (memcmp(buf, split1, strlen(split1))) { in test_btrfs_split_item() 129 if (memcmp(buf, split2, strlen(split2))) { in test_btrfs_split_item() 160 if (memcmp(buf, split3, strlen(split3))) { in test_btrfs_split_item() 183 if (memcmp(buf, split4, strlen(split4))) { in test_btrfs_split_item() 206 if (memcmp(buf, split2, strlen(split2))) { in test_btrfs_split_item()
|
| /linux/tools/testing/selftests/nci/ |
| H A D | nci_dev.c | 334 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 …]
|
| /linux/tools/testing/crypto/chacha20-s390/ |
| H A D | test-cipher.c | 285 if (memcmp(plain, revert, data_size)) { in chacha_s390_test_init() 300 if (memcmp(plain, revert, data_size)) { in chacha_s390_test_init() 308 if (memcmp(cipher_generic, cipher_s390, data_size)) { in chacha_s390_test_init() 322 if (memcmp(plain, revert, data_size)) { in chacha_s390_test_init() 330 if (memcmp(cipher_generic, cipher_s390, data_size)) { in chacha_s390_test_init()
|
| /linux/drivers/scsi/isci/ |
| H A D | probe_roms.c | 67 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()
|
| /linux/tools/testing/selftests/powerpc/copyloops/ |
| H A D | validate.c | 42 if (memcmp(dstp, srcp, len)) { in do_one() 54 if (memcmp(dst, redzone, dstp - dst)) { in do_one() 60 if (memcmp(dstp+len, redzone, dst+BUFLEN-(dstp+len))) { in do_one()
|
| /linux/arch/x86/boot/ |
| H A D | string.c | 30 #undef memcmp 32 int memcmp(const void *s1, const void *s2, size_t len) in memcmp() function 52 return memcmp(s1, s2, len); in bcmp() 180 if (!memcmp(s1, s2, l2)) in strstr()
|
| /linux/arch/x86/platform/geode/ |
| H A D | net5501.c | 65 if (memcmp(bios, "comBIOS", 7)) in net5501_present() 71 if (!memcmp(model, boards[i].sig, boards[i].len)) { in net5501_present()
|
| /linux/tools/perf/tests/ |
| H A D | sample-parsing.c | 28 if (memcmp(&s1->m, &s2->m, sizeof(s1->m))) { \ 109 if (memcmp(s1->raw_data, s2->raw_data, s1->raw_size)) { in samples_same() 137 memcmp(s1_regs->regs, s2_regs->regs, sz))) { in samples_same() 145 if (memcmp(s1->user_stack.data, s2->user_stack.data, in samples_same() 176 memcmp(s1_regs->regs, s2_regs->regs, sz))) { in samples_same() 196 if (memcmp(s1->aux_sample.data, s2->aux_sample.data, in samples_same()
|
| /linux/drivers/net/wireless/nxp/nxpwifi/ |
| H A D | sta_rx.c | 36 if (!memcmp(arp->ar_sip, arp->ar_tip, 4)) in nxpwifi_discard_gratuitous_arp() 45 if (!memcmp(&ipv6->saddr, &ipv6->daddr, in nxpwifi_discard_gratuitous_arp() 87 ((!memcmp(&rx_pkt_hdr->rfc1042_hdr, bridge_tunnel_header, in nxpwifi_process_rx_packet() 89 (!memcmp(&rx_pkt_hdr->rfc1042_hdr, rfc1042_header, in nxpwifi_process_rx_packet()
|
| /linux/security/tomoyo/ |
| H A D | group.c | 39 return !memcmp(&container_of(a, struct tomoyo_number_group, head) in tomoyo_same_number_group() 202 if (memcmp(&member->address.ip[0], address, size) > 0 || in tomoyo_address_matches_group() 203 memcmp(address, &member->address.ip[1], size) > 0) in tomoyo_address_matches_group()
|
| /linux/tools/testing/vma/tests/ |
| H A D | vma.c | 114 ASSERT_EQ(memcmp(&empty, &flags, sizeof(flags)), 0); in test_vma_flags_cleared() 145 ASSERT_EQ(memcmp(&flags, &comparison, sizeof(flags)), 0); in test_vma_flags_word() 152 ASSERT_EQ(memcmp(&flags, &comparison, sizeof(flags)), 0); in test_vma_flags_word() 160 ASSERT_EQ(memcmp(&flags, &comparison, sizeof(flags)), 0); in test_vma_flags_word() 168 ASSERT_EQ(memcmp(&flags, &comparison, sizeof(flags)), 0); in test_vma_flags_test()
|