/openbmc/qemu/tests/tcg/i386/ |
H A D | test-i386-fbstp.c | 24 if (memcmp(out, "\0\0\0\0\0\0\0\0\0\x80", sizeof out) != 0) { in main() 31 if (memcmp(out, "\0\0\0\0\0\0\0\0\0\x80", sizeof out) != 0) { in main() 39 if (memcmp(out, "\x21\x43\x65\x87\x19\x32\x54\x76\x98\x80", in main() 47 if (memcmp(out, "\0\0\0\0\0\0\0\xc0\xff\xff", sizeof out) != 0) { in main() 54 if (memcmp(out, "\0\0\0\0\0\0\0\xc0\xff\xff", sizeof out) != 0) { in main() 60 if (memcmp(out, "\0\0\0\0\0\0\0\xc0\xff\xff", sizeof out) != 0) { in main() 67 if (memcmp(out, "\0\0\0\0\0\0\0\xc0\xff\xff", sizeof out) != 0) { in main() 74 if (memcmp(out, "\0\0\0\0\0\0\0\xc0\xff\xff", sizeof out) != 0) { in main() 80 if (memcmp(out, "\0\0\0\0\0\0\0\xc0\xff\xff", sizeof out) != 0) { in main() 86 if (memcmp(out, "\0\0\0\0\0\0\0\xc0\xff\xff", sizeof out) != 0) { in main() [all …]
|
/openbmc/u-boot/test/dm/ |
H A D | i2c.c | 53 ut_assertok(memcmp(buf, "\0\0\0\0\0", sizeof(buf))); in dm_test_i2c_read_write() 56 ut_assertok(memcmp(buf, "\0\0AB\0", sizeof(buf))); in dm_test_i2c_read_write() 125 ut_assertok(memcmp(buf, "\0\0\0\0\0", sizeof(buf))); in dm_test_i2c_bytewise() 134 ut_assertok(memcmp(buf, "\0\xff\xff\xff\xff", sizeof(buf))); in dm_test_i2c_bytewise() 139 ut_assertok(memcmp(buf, "\0\0\0\0\0", sizeof(buf))); in dm_test_i2c_bytewise() 145 ut_assertok(memcmp(buf, "\0\xff\xff\xff\xff", sizeof(buf))); in dm_test_i2c_bytewise() 150 ut_assertok(memcmp(buf, "\0\0A\0\0\0", sizeof(buf))); in dm_test_i2c_bytewise() 156 ut_assertok(memcmp(buf, "\0\xff\xff\xff\xff", sizeof(buf))); in dm_test_i2c_bytewise() 161 ut_assertok(memcmp(buf, "\0\0AB\0\0", sizeof(buf))); in dm_test_i2c_bytewise() 188 ut_assertok(memcmp(buf, "AB\0\0\0\0", sizeof(buf))); in dm_test_i2c_offset() [all …]
|
H A D | osd.c | 74 ut_assertok(memcmp(text, " " in dm_test_osd_basics() 85 ut_assertok(memcmp(colors, "kkkkkkkkkk" in dm_test_osd_basics() 103 ut_assertok(memcmp(text, " " in dm_test_osd_basics() 114 ut_assertok(memcmp(colors, "kkkkkkkkkk" in dm_test_osd_basics() 155 ut_assertok(memcmp(text, " " in dm_test_osd_extended() 161 ut_assertok(memcmp(colors, "kkkkkkkkkkkkkkkkkkkk" in dm_test_osd_extended() 195 ut_assertok(memcmp(text, "+---- OSD menu ----+" in dm_test_osd_extended() 201 ut_assertok(memcmp(colors, "gggggggggggggggggggg" in dm_test_osd_extended()
|
H A D | misc.c | 28 ut_assertok(memcmp(buf, "TESTWRITE", 9)); in dm_test_misc() 34 ut_assertok(memcmp(buf, "Zero", 4)); in dm_test_misc() 38 ut_assertok(memcmp(buf, "Two", 3)); in dm_test_misc() 41 ut_assertok(memcmp(buf, "Forty-two", 9)); in dm_test_misc() 45 ut_assertok(memcmp(buf, "Forty-one", 9)); in dm_test_misc()
|
/openbmc/linux/arch/powerpc/lib/ |
H A D | feature-fixups.c | 731 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_orig, size) == 0); in test_basic_patching() 735 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_orig, size) == 0); in test_basic_patching() 739 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_expected, size) == 0); in test_basic_patching() 743 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_orig, size) == 0); in test_basic_patching() 745 check(memcmp(ftr_fixup_test1, ftr_fixup_test1_expected, size) == 0); in test_basic_patching() 764 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_orig, size) == 0); in test_alternative_patching() 768 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_orig, size) == 0); in test_alternative_patching() 772 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_expected, size) == 0); in test_alternative_patching() 776 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_orig, size) == 0); in test_alternative_patching() 778 check(memcmp(ftr_fixup_test2, ftr_fixup_test2_expected, size) == 0); in test_alternative_patching() [all …]
|
/openbmc/linux/drivers/media/platform/chips-media/ |
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()
|
/openbmc/linux/drivers/staging/rtl8712/ |
H A D | ieee80211.c | 218 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 …]
|
/openbmc/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()
|
/openbmc/linux/drivers/staging/rtl8192u/ieee80211/ |
H A D | rtl819x_HTProc.c | 132 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 …]
|
/openbmc/linux/block/partitions/ |
H A D | atari.c | 29 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()
|
/openbmc/phosphor-mboxd/vpnor/test/ |
H A D | write_rw.cpp | 52 rc = memcmp(src, map, sizeof(src)); in main() 59 rc = memcmp(src, map, sizeof(src)); in main() 65 rc = memcmp(src, map, sizeof(src)); in main() 71 rc = memcmp(src, map, sizeof(src)); in main() 77 rc = memcmp(src, map, sizeof(src)); in main() 88 rc = memcmp(src, map, sizeof(src)); in main()
|
/openbmc/hiomapd/vpnor/test/ |
H A D | write_rw.cpp | 56 rc = memcmp(src, map, sizeof(src)); in main() 63 rc = memcmp(src, map, sizeof(src)); in main() 69 rc = memcmp(src, map, sizeof(src)); in main() 75 rc = memcmp(src, map, sizeof(src)); in main() 81 rc = memcmp(src, map, sizeof(src)); in main() 92 rc = memcmp(src, map, sizeof(src)); in main()
|
/openbmc/linux/drivers/staging/rtl8192e/ |
H A D | rtl819x_HTProc.c | 147 if ((memcmp(net->bssid, BELKINF5D8233V1_RALINK, 3) == 0) || in IsHTHalfNmodeAPs() 148 (memcmp(net->bssid, BELKINF5D82334V3_RALINK, 3) == 0) || in IsHTHalfNmodeAPs() 149 (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() 155 !memcmp(net->bssid, LINKSYSWRT330_LINKSYSWRT300_BROADCOM, 3) || in IsHTHalfNmodeAPs() 156 !memcmp(net->bssid, LINKSYSWRT350_LINKSYSWRT150_BROADCOM, 3) || in IsHTHalfNmodeAPs() 180 } else if (!memcmp(net->bssid, UNKNOWN_BORADCOM, 3) || in HTIOTPeerDetermine() 181 !memcmp(net->bssid, LINKSYSWRT330_LINKSYSWRT300_BROADCOM, 3) || in HTIOTPeerDetermine() [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-crypto-xts.c | 363 g_assert(memcmp(out, data->CTX, data->PTLEN) == 0); in test_xts() 371 g_assert(memcmp(out, data->PTX, data->PTLEN) == 0); in test_xts() 403 g_assert(memcmp(out, data->CTX, data->PTLEN) == 0); in test_xts_split() 415 g_assert(memcmp(out, data->PTX, data->PTLEN) == 0); in test_xts_split() 446 g_assert(memcmp(out, data->CTX, data->PTLEN) == 0); in test_xts_unaligned() 456 g_assert(memcmp(out, data->CTX, data->PTLEN) == 0); in test_xts_unaligned() 466 g_assert(memcmp(out + BAD_ALIGN, data->CTX, data->PTLEN) == 0); in test_xts_unaligned() 477 g_assert(memcmp(out, data->PTX, data->PTLEN) == 0); in test_xts_unaligned() 487 g_assert(memcmp(out, data->PTX, data->PTLEN) == 0); in test_xts_unaligned() 497 g_assert(memcmp(out + BAD_ALIGN, data->PTX, data->PTLEN) == 0); in test_xts_unaligned()
|
/openbmc/hiomapd/test/ |
H A D | flash_write.c | 79 rc = memcmp(src, map, sizeof(src)); in main() 85 rc = memcmp(src, map, sizeof(src)); in main() 91 rc = memcmp(src, map, sizeof(src)); in main() 97 rc = memcmp(src, map, sizeof(src)); in main() 103 rc = memcmp(src, map, sizeof(src)); in main()
|
/openbmc/phosphor-mboxd/test/ |
H A D | write_flash.c | 75 rc = memcmp(src, map, sizeof(src)); in main() 81 rc = memcmp(src, map, sizeof(src)); in main() 87 rc = memcmp(src, map, sizeof(src)); in main() 93 rc = memcmp(src, map, sizeof(src)); in main() 99 rc = memcmp(src, map, sizeof(src)); in main()
|
/openbmc/u-boot/scripts/basic/ |
H A D | fixdep.c | 171 memcmp(aux->name, name, len) == 0) in is_defined_config() 237 if (memcmp(p, "CONFIG_", 7)) in parse_config_file() 247 if (!memcmp(q - 7, "_MODULE", 7)) in parse_config_file() 259 if ((q - p == 10 && !memcmp(p, "IS_ENABLED(", 11)) || in parse_config_file() 260 (q - p == 10 && !memcmp(p, "IS_BUILTIN(", 11)) || in parse_config_file() 261 (q - p == 9 && !memcmp(p, "IS_MODULE(", 10)) || in parse_config_file() 262 (q - p == 3 && !memcmp(p, "VAL(", 4))) { in parse_config_file() 291 return memcmp(s + slen - sublen, sub, sublen); in strrcmp()
|
/openbmc/linux/tools/testing/selftests/kvm/s390x/ |
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()
|
/openbmc/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()
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | tls.c | 241 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F() 426 EXPECT_EQ(memcmp(test_str, recv_buf, to_send), 0); in TEST_F() 500 EXPECT_EQ(memcmp(buf, recv_mem, send_len), 0); in TEST_F() 512 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F() 526 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F() 547 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F() 566 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F() 594 EXPECT_EQ(memcmp(buf + SEND_LEN * i, in TEST_F() 653 EXPECT_EQ(memcmp(test_strs[i], buf + len_cmp, in TEST_F() 707 EXPECT_EQ(memcmp(mem_send, mem_recv, send_len), 0); in TEST_F() [all …]
|
/openbmc/linux/drivers/staging/rtl8723bs/core/ |
H A D | rtw_ieee80211.c | 189 && (!oui || !memcmp(&in_ie[cnt+2], oui, oui_len))) { in rtw_get_ie_ex() 368 if (memcmp((pbuf + 2), wpa_oui_type, sizeof(wpa_oui_type))) in rtw_get_wpa_ie() 409 if (!memcmp(s, WPA_CIPHER_SUITE_NONE, WPA_SELECTOR_LEN)) in rtw_get_wpa_cipher_suite() 411 if (!memcmp(s, WPA_CIPHER_SUITE_WEP40, 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() 417 if (!memcmp(s, WPA_CIPHER_SUITE_WEP104, 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() 427 if (!memcmp(s, RSN_CIPHER_SUITE_WEP40, 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() [all …]
|
/openbmc/linux/drivers/acpi/acpica/ |
H A D | tbfind.c | 67 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()
|
/openbmc/bios-bmc-smm-error-logger/test/ |
H A D | rde_dictionary_manager_test.cpp | 55 EXPECT_THAT(memcmp((*dataOrErr).data(), dummyDictionary1.data(), in TEST_F() 86 EXPECT_THAT(memcmp((*data1OrErr).data(), dummyDictionary1.data(), in TEST_F() 93 EXPECT_THAT(memcmp((*data2OrErr).data(), dummyDictionary2.data(), in TEST_F() 111 EXPECT_THAT(memcmp((*dataOrErr).data(), dummyDictionary1.data(), in TEST_F() 124 EXPECT_THAT(memcmp((*newDataOrErr).data(), dummyDictionary2.data(), in TEST_F() 150 EXPECT_THAT(memcmp((*dataOrErr).data(), dummyDictionary2.data(), in TEST_F()
|
/openbmc/libpldm/tests/oem/ibm/ |
H A D | fileio.cpp | 105 ASSERT_EQ(0, memcmp(response->payload + sizeof(response->payload[0]), in TEST() 118 ASSERT_EQ(0, memcmp(response->payload + sizeof(response->payload[0]), in TEST() 226 ASSERT_EQ(0, memcmp(request->payload, &fileHandleLe, sizeof(fileHandleLe))); in TEST() 228 ASSERT_EQ(0, memcmp(request->payload + sizeof(fileHandleLe), &offsetLe, in TEST() 231 memcmp(request->payload + sizeof(fileHandleLe) + sizeof(offsetLe), in TEST() 233 ASSERT_EQ(0, memcmp(request->payload + sizeof(fileHandleLe) + in TEST() 343 ASSERT_EQ(0, memcmp(response->payload + sizeof(response->payload[0]), in TEST() 345 ASSERT_EQ(0, memcmp(response->payload + sizeof(response->payload[0]) + in TEST() 348 ASSERT_EQ(0, memcmp(response->payload + sizeof(response->payload[0]) + in TEST() 351 ASSERT_EQ(0, memcmp(response->payload + sizeof(response->payload[0]) + in TEST() [all …]
|