/openbmc/openpower-pnor-code-mgmt/test/ |
H A D | msl_verify.cpp | 27 MinimumShipLevel::Version actual; in TEST_F() local 32 actual = {3, 5, 7}; in TEST_F() 33 EXPECT_EQ(0, minimumShipLevel->compare(actual, min)); in TEST_F() 36 actual = {3, 5, 6}; in TEST_F() 37 EXPECT_EQ(-1, minimumShipLevel->compare(actual, min)); in TEST_F() 38 actual = {3, 4, 7}; in TEST_F() 40 actual = {2, 5, 7}; in TEST_F() 44 actual = {3, 5, 8}; in TEST_F() 45 EXPECT_EQ(1, minimumShipLevel->compare(actual, min)); in TEST_F() 46 actual = {3, 6, 7}; in TEST_F() [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | microbit-test.c | 269 uint32_t actual, expected; in test_nrf51_gpio() local 305 g_assert_cmphex(actual, ==, 0x01); in test_nrf51_gpio() 307 g_assert_cmphex(actual, ==, 0x01); in test_nrf51_gpio() 315 g_assert_cmphex(actual, ==, 0x00); in test_nrf51_gpio() 317 g_assert_cmphex(actual, ==, 0x00); in test_nrf51_gpio() 326 g_assert_cmphex(actual, ==, 0x01); in test_nrf51_gpio() 328 g_assert_cmphex(actual, ==, 0x01); in test_nrf51_gpio() 337 g_assert_cmphex(actual, ==, 0x00); in test_nrf51_gpio() 340 g_assert_cmphex(actual, ==, 0x01); in test_nrf51_gpio() 343 g_assert_cmphex(actual, ==, 0x01); in test_nrf51_gpio() [all …]
|
H A D | acpi-utils.h | 29 #define ACPI_ASSERT_CMP(actual, expected) do { \ argument 31 memcpy(ACPI_ASSERT_CMP_str, &actual, 4); \ 35 #define ACPI_ASSERT_CMP64(actual, expected) do { \ argument 37 memcpy(ACPI_ASSERT_CMP_str, &actual, 8); \
|
H A D | boot-order-test.c | 31 uint64_t actual; in test_a_boot_order() local 41 actual = read_boot_order(qts); in test_a_boot_order() 42 g_assert_cmphex(actual, ==, expected_boot); in test_a_boot_order() 49 actual = read_boot_order(qts); in test_a_boot_order() 50 g_assert_cmphex(actual, ==, expected_reboot); in test_a_boot_order()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_progs.h | 223 #define ASSERT_TRUE(actual, name) ({ \ argument 225 bool ___ok = (actual); \ 232 bool ___ok = !(actual); \ 239 typeof(actual) ___act = (actual); \ 250 typeof(actual) ___act = (actual); \ 261 typeof(actual) ___act = (actual); \ 272 typeof(actual) ___act = (actual); \ 283 typeof(actual) ___act = (actual); \ 294 typeof(actual) ___act = (actual); \ 305 const char *___act = actual; \ [all …]
|
/openbmc/linux/drivers/cpufreq/ |
H A D | amd_freq_sensitivity.c | 32 u64 actual; member 45 struct msr actual, reference; in amd_powersave_bias_target() local 55 &actual.l, &actual.h); in amd_powersave_bias_target() 58 actual.h &= 0x00ffffff; in amd_powersave_bias_target() 62 if (actual.q < data->actual || reference.q < data->reference) { in amd_powersave_bias_target() 67 d_actual = actual.q - data->actual; in amd_powersave_bias_target() 104 data->actual = actual.q; in amd_powersave_bias_target()
|
/openbmc/u-boot/board/freescale/corenet_ds/ |
H A D | corenet_ds.c | 134 u32 actual[NUM_SRDS_BANKS]; in misc_init_r() local 145 actual[i] = SRDS_PLLCR0_RFCK_SEL_100; in misc_init_r() 148 actual[i] = SRDS_PLLCR0_RFCK_SEL_125; in misc_init_r() 151 actual[i] = SRDS_PLLCR0_RFCK_SEL_156_25; in misc_init_r() 165 actual[0] = (sw & 0x40) ? in misc_init_r() 167 actual[1] = (sw & 0x20) ? in misc_init_r() 169 actual[2] = (sw & 0x10) ? in misc_init_r() 175 if (expected != actual[i]) { in misc_init_r() 179 serdes_clock_to_string(actual[i])); in misc_init_r()
|
/openbmc/qemu/tests/unit/ |
H A D | test-base64.c | 35 uint8_t *actual = qbase64_decode(input, in test_base64_good() local 40 g_assert(actual != NULL); in test_base64_good() 42 g_assert_cmpstr((char *)actual, ==, expect); in test_base64_good() 43 g_free(actual); in test_base64_good() 52 uint8_t *actual = qbase64_decode(input, in test_base64_bad() local 58 g_assert(actual == NULL); in test_base64_bad()
|
H A D | test-crypto-afsplit.c | 136 gchar *expect, *actual; in test_afsplit() local 150 actual = hex_string(key, data->blocklen); in test_afsplit() 152 g_assert_cmpstr(actual, ==, expect); in test_afsplit() 154 g_free(actual); in test_afsplit() 167 actual = hex_string(key, data->blocklen); in test_afsplit() 169 g_assert_cmpstr(actual, ==, expect); in test_afsplit() 171 g_free(actual); in test_afsplit()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/cpprest/cpprest/ |
H A D | disable-float-tests.patch | 13 …void compare_double(double expected, double actual) { compare_floating(expected, actual, DBL_EPSIL… 14 …void compare_float(float expected, float actual) { compare_floating(expected, actual, FLT_EPSILON)… 21 if (expected == 0) VERIFY_ARE_EQUAL(1 / expected, 1 / actual);
|
/openbmc/linux/drivers/mtd/spi-nor/ |
H A D | sst.c | 130 size_t actual = 0; in sst_nor_write() local 159 actual++; in sst_nor_write() 163 for (; actual < len - 1; actual += 2) { in sst_nor_write() 167 ret = spi_nor_write_data(nor, to, 2, buf + actual); in sst_nor_write() 188 if (actual != len) { in sst_nor_write() 194 ret = spi_nor_write_data(nor, to, 1, buf + actual); in sst_nor_write() 202 actual += 1; in sst_nor_write() 207 *retlen += actual; in sst_nor_write()
|
/openbmc/linux/tools/power/acpi/tools/acpidump/ |
H A D | apfiles.c | 109 acpi_size actual; in ap_write_to_binary_file() local 154 actual = fwrite(table, 1, table_length, file); in ap_write_to_binary_file() 155 if (actual != table_length) { in ap_write_to_binary_file() 185 acpi_size actual; in ap_get_table_from_file() local 216 actual = fread(buffer, 1, file_size, file); in ap_get_table_from_file() 217 if (actual != file_size) { in ap_get_table_from_file()
|
/openbmc/u-boot/drivers/usb/gadget/ |
H A D | aspeed_udc.c | 327 writel(req->req.dma + req->req.actual, in aspeed_udc_ep0_queue() 337 req->req.actual += tx_len; in aspeed_udc_ep0_queue() 386 req->req.actual); in aspeed_udc_ep0_in() 414 req->req.actual += rx_len; in aspeed_udc_ep0_out() 417 req->req.actual); in aspeed_udc_ep0_out() 519 req->req.actual, in aspeed_udc_ep_dma_desc_mode() 699 req->req.actual = 0; in aspeed_udc_ep_queue() 846 req->req.actual += len; in aspeed_udc_ep_handle_desc_mode() 873 req->req.actual); in aspeed_udc_ep_handle_desc_mode() 884 req->req.actual); in aspeed_udc_ep_handle_desc_mode() [all …]
|
/openbmc/linux/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | cycles_with_mmcr2_test.c | 25 uint64_t val, expected[2], actual; in cycles_with_mmcr2() local 53 actual = 0; in cycles_with_mmcr2() 66 actual = val; in cycles_with_mmcr2() 82 printf("Bad MMCR2 value seen is 0x%lx\n", actual); in cycles_with_mmcr2()
|
/openbmc/openbmc/poky/scripts/pybootchartgui/pybootchartgui/tests/ |
H A D | process_tree_test.py | 42 for expected, actual in zip(test_data, self.flatten(process_tree)): 44 self.assertEqual(int(tokens[0]), actual.pid // 1000) 45 self.assertEqual(tokens[1], actual.cmd) 46 self.assertEqual(long(tokens[2]), 10 * actual.start_time) 47 self.assert_(long(tokens[3]) - 10 * actual.duration < 5, "duration") 48 self.assertEqual(int(tokens[4]), len(actual.child_list)) 49 self.assertEqual(int(tokens[5]), len(actual.samples))
|
/openbmc/qemu/tests/tcg/aarch64/ |
H A D | sme-fmopa-3.c | 55 float actual = result[i]; in main() local 56 if (fabsf(actual - expected[i]) > 0.001f) { in main() 58 i, expected[i], actual); in main()
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 191.out | 131 "actual-size": SIZE, 162 "actual-size": SIZE, 200 "actual-size": SIZE, 231 "actual-size": SIZE, 269 "actual-size": SIZE, 300 "actual-size": SIZE, 329 "actual-size": SIZE, 357 "actual-size": SIZE, 538 "actual-size": SIZE, 569 "actual-size": SIZE, [all …]
|
/openbmc/u-boot/board/freescale/t1040qds/ |
H A D | t1040qds.c | 205 u32 actual[NUM_SRDS_BANKS] = { 0 }; in misc_init_r() local 213 actual[i] = SRDS_PLLCR0_RFCK_SEL_100; in misc_init_r() 216 actual[i] = SRDS_PLLCR0_RFCK_SEL_125; in misc_init_r() 219 actual[i] = SRDS_PLLCR0_RFCK_SEL_156_25; in misc_init_r() 228 if (expected != actual[i]) { in misc_init_r() 231 serdes_clock_to_string(actual[i])); in misc_init_r()
|
/openbmc/linux/tools/testing/selftests/ftrace/test.d/trigger/ |
H A D | trigger-hist-expressions.tc | 23 actual=`grep -o 'x=[[:digit:]]*' $trigger | awk -F= '{ print $2 }'` 25 if [ $actual != $3 ]; then 26 … fail "Failed hist trigger expression evaluation: Expression: $2 Expected: $3, Actual: $actual"
|
/openbmc/linux/include/linux/ |
H A D | bcm963xx_nvram.h | 84 u32 expected, actual; in bcm963xx_nvram_checksum() local 101 actual = crc32_le_combine( in bcm963xx_nvram_checksum() 108 *actual_out = actual; in bcm963xx_nvram_checksum() 110 return expected == actual ? 0 : -EINVAL; in bcm963xx_nvram_checksum()
|
/openbmc/u-boot/board/freescale/p2041rdb/ |
H A D | p2041rdb.c | 165 u32 actual[NUM_SRDS_BANKS]; in misc_init_r() local 186 actual[i] = freq[i][clock]; in misc_init_r() 196 actual[i] = freq[i-1][clock]; in misc_init_r() 203 if (expected != actual[i]) { in misc_init_r() 207 serdes_clock_to_string(actual[i])); in misc_init_r()
|
/openbmc/phosphor-hwmon/msl/ |
H A D | max31785-msl | 56 local actual 60 actual=$(i2cget -f -y "$bus" 0x52 0x9b w) 62 if (( actual >= revision )); then
|
/openbmc/qemu/hw/gpio/ |
H A D | pcf8574.c | 82 uint8_t actual; in pcf8574_tx() local 87 actual = pcf8574_line_state(s); in pcf8574_tx() 89 for (diff = (actual ^ prev); diff; diff &= ~(1 << line)) { in pcf8574_tx() 92 qemu_set_irq(s->handler[line], (actual >> line) & 1); in pcf8574_tx() 97 qemu_set_irq(s->intrq, actual == s->lastrq); in pcf8574_tx()
|
/openbmc/linux/lib/ |
H A D | test_uuid.c | 46 const char *data, const char *actual) in test_uuid_failed() argument 54 if (actual && *actual) in test_uuid_failed() 58 actual); in test_uuid_failed()
|
/openbmc/linux/drivers/gpu/drm/msm/disp/mdp4/ |
H A D | mdp4_lvds_connector.c | 66 long actual, requested; in mdp4_lvds_connector_mode_valid() local 69 actual = mdp4_lcdc_round_pixclk(encoder, requested); in mdp4_lvds_connector_mode_valid() 71 DBG("requested=%ld, actual=%ld", requested, actual); in mdp4_lvds_connector_mode_valid() 73 if (actual != requested) in mdp4_lvds_connector_mode_valid()
|