/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() 39 EXPECT_EQ(-1, minimumShipLevel->compare(actual, min)); in TEST_F() 40 actual = {2, 5, 7}; in TEST_F() 41 EXPECT_EQ(-1, minimumShipLevel->compare(actual, min)); in TEST_F() 44 actual = {3, 5, 8}; in TEST_F() [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | microbit-test.c | 269 uint32_t actual, expected; in test_nrf51_gpio() local 286 actual = qtest_readl(qts, NRF51_GPIO_BASE + reset_state[i].addr); in test_nrf51_gpio() 287 g_assert_cmpuint(actual, ==, expected); in test_nrf51_gpio() 292 actual = qtest_readl(qts, NRF51_GPIO_BASE + in test_nrf51_gpio() 294 g_assert_cmpuint(actual, ==, expected); in test_nrf51_gpio() 301 actual = qtest_readl(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_DIR); in test_nrf51_gpio() 302 g_assert_cmpuint(actual, ==, expected); in test_nrf51_gpio() 303 actual = qtest_readl(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_CNF_START) in test_nrf51_gpio() 305 g_assert_cmphex(actual, ==, 0x01); in test_nrf51_gpio() 306 actual = qtest_readl(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_CNF_END) & 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); \ 230 #define ASSERT_FALSE(actual, name) ({ \ argument 232 bool ___ok = !(actual); \ 237 #define ASSERT_EQ(actual, expected, name) ({ \ argument 239 typeof(actual) ___act = (actual); \ 248 #define ASSERT_NEQ(actual, expected, name) ({ \ argument 250 typeof(actual) ___act = (actual); \ 259 #define ASSERT_LT(actual, expected, name) ({ \ argument 261 typeof(actual) ___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/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/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/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 | 163 ep->ep.name, req->req.actual, req->req.length, req->req.buf, in aspeed_udc_done() 322 if ((req->req.length - req->req.actual) > ep->ep.maxpacket) in aspeed_udc_ep0_queue() 325 tx_len = req->req.length - req->req.actual; in aspeed_udc_ep0_queue() 327 writel(req->req.dma + req->req.actual, in aspeed_udc_ep0_queue() 331 (u32)req->req.buf, req->req.dma + req->req.actual, in aspeed_udc_ep0_queue() 332 tx_len, req->req.actual, req->req.length, 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() 388 if (req->req.length == req->req.actual) { in aspeed_udc_ep0_in() 414 req->req.actual += rx_len; in aspeed_udc_ep0_out() [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 191.out | 123 "actual-size": SIZE, 131 "actual-size": SIZE, 162 "actual-size": SIZE, 192 "actual-size": SIZE, 200 "actual-size": SIZE, 231 "actual-size": SIZE, 261 "actual-size": SIZE, 269 "actual-size": SIZE, 300 "actual-size": SIZE, 329 "actual-size": SIZE, [all …]
|
/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/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/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/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/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/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/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/linux/drivers/usb/host/ |
H A D | ehci-timer.c | 97 unsigned actual, want; in ehci_poll_ASS() local 104 actual = ehci_readl(ehci, &ehci->regs->status) & STS_ASS; in ehci_poll_ASS() 106 if (want != actual) { in ehci_poll_ASS() 114 want, actual); in ehci_poll_ASS() 143 unsigned actual, want; in ehci_poll_PSS() local 150 actual = ehci_readl(ehci, &ehci->regs->status) & STS_PSS; in ehci_poll_PSS() 152 if (want != actual) { in ehci_poll_PSS() 160 want, actual); in ehci_poll_PSS()
|
/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/drivers/usb/gadget/udc/ |
H A D | renesas_usbf.c | 566 left = req->req.length - req->req.actual; in usbf_ep0_pio_in() 576 if ((req->req.actual % ep0->ep.maxpacket) == 0) { in usbf_ep0_pio_in() 592 buf += req->req.actual; in usbf_ep0_pio_in() 598 req->req.actual += (nb * sizeof(u32)); in usbf_ep0_pio_in() 607 req->req.actual += left; in usbf_ep0_pio_in() 612 req->req.actual, req->req.length); in usbf_ep0_pio_in() 632 buf += req->req.actual; in usbf_ep0_pio_out() 634 left = req->req.length - req->req.actual; in usbf_ep0_pio_out() 652 req->req.actual += (nb * sizeof(u32)); in usbf_ep0_pio_out() 658 req->req.actual += count; in usbf_ep0_pio_out() [all …]
|
/openbmc/linux/drivers/net/hamradio/ |
H A D | 6pack.c | 143 int actual, when = sp->slottime; in sp_xmit_on_air() local 152 actual = sp->tty->ops->write(sp->tty, sp->xbuff, sp->status2); in sp_xmit_on_air() 153 sp->xleft -= actual; in sp_xmit_on_air() 154 sp->xhead += actual; in sp_xmit_on_air() 168 int actual, count; in sp_encaps() local 219 actual = sp->tty->ops->write(sp->tty, sp->xbuff, count); in sp_encaps() 220 sp->xleft = count - actual; in sp_encaps() 221 sp->xhead = sp->xbuff + actual; in sp_encaps() 398 int actual; in sixpack_write_wakeup() local 413 actual = tty->ops->write(tty, sp->xhead, sp->xleft); in sixpack_write_wakeup() [all …]
|