/drivers/iio/test/ |
D | iio-test-rescale.c | 28 const char *expected; member 42 .expected = "5210.918114143", 50 .expected = "-5210.918114143", 59 .expected = "260.545905707", 68 .expected = "-260.545905707", 77 .expected = "0.049528301", 86 .expected = "-0.049528301", 95 .expected = "1240.710106203", 104 .expected = "-1240.710106203", 113 .expected = "1240.84789", [all …]
|
/drivers/gpu/drm/tests/ |
D | drm_format_helper_test.c | 21 const u8 expected[TEST_BUF_SIZE]; member 26 const u8 expected[TEST_BUF_SIZE]; member 31 const u16 expected[TEST_BUF_SIZE]; member 37 const u16 expected[TEST_BUF_SIZE]; member 42 const u16 expected[TEST_BUF_SIZE]; member 47 const u16 expected[TEST_BUF_SIZE]; member 52 const u8 expected[TEST_BUF_SIZE]; member 57 const u32 expected[TEST_BUF_SIZE]; member 62 const u32 expected[TEST_BUF_SIZE]; member 67 const u32 expected[TEST_BUF_SIZE]; member [all …]
|
D | drm_modes_test.c | 72 struct drm_display_mode *expected, *mode; in drm_test_modes_analog_tv_ntsc_480i_inlined() local 74 expected = drm_analog_tv_mode(priv->drm, in drm_test_modes_analog_tv_ntsc_480i_inlined() 78 KUNIT_ASSERT_NOT_NULL(test, expected); in drm_test_modes_analog_tv_ntsc_480i_inlined() 83 KUNIT_EXPECT_TRUE(test, drm_mode_equal(expected, mode)); in drm_test_modes_analog_tv_ntsc_480i_inlined() 119 struct drm_display_mode *expected, *mode; in drm_test_modes_analog_tv_pal_576i_inlined() local 121 expected = drm_analog_tv_mode(priv->drm, in drm_test_modes_analog_tv_pal_576i_inlined() 125 KUNIT_ASSERT_NOT_NULL(test, expected); in drm_test_modes_analog_tv_pal_576i_inlined() 130 KUNIT_EXPECT_TRUE(test, drm_mode_equal(expected, mode)); in drm_test_modes_analog_tv_pal_576i_inlined()
|
D | drm_rect_test.c | 17 const struct drm_rect *expected) in drm_rect_compare() argument 19 KUNIT_EXPECT_EQ(test, r->x1, expected->x1); in drm_rect_compare() 20 KUNIT_EXPECT_EQ(test, r->y1, expected->y1); in drm_rect_compare() 21 KUNIT_EXPECT_EQ(test, drm_rect_width(r), drm_rect_width(expected)); in drm_rect_compare() 22 KUNIT_EXPECT_EQ(test, drm_rect_height(r), drm_rect_height(expected)); in drm_rect_compare() 434 struct drm_rect expected; member 443 .expected = DRM_RECT_INIT(0, 0, 5, 5), 450 .expected = DRM_RECT_INIT(2, 5, 5, 5), 457 .expected = DRM_RECT_INIT(0, 2, 5, 5), 464 .expected = DRM_RECT_INIT(0, 0, 10, 5), [all …]
|
D | drm_probe_helper_test.c | 101 const struct drm_display_mode *expected; in drm_test_connector_helper_tv_get_modes_check() local 132 expected = params->expected_modes[0](priv->drm); in drm_test_connector_helper_tv_get_modes_check() 133 KUNIT_ASSERT_NOT_NULL(test, expected); in drm_test_connector_helper_tv_get_modes_check() 135 KUNIT_EXPECT_TRUE(test, drm_mode_equal(mode, expected)); in drm_test_connector_helper_tv_get_modes_check() 143 expected = params->expected_modes[1](priv->drm); in drm_test_connector_helper_tv_get_modes_check() 144 KUNIT_ASSERT_NOT_NULL(test, expected); in drm_test_connector_helper_tv_get_modes_check() 146 KUNIT_EXPECT_TRUE(test, drm_mode_equal(mode, expected)); in drm_test_connector_helper_tv_get_modes_check()
|
D | drm_dp_mst_helper_test.c | 19 const int expected; member 27 .expected = 689 33 .expected = 1047 39 .expected = 1063 45 .expected = 1191 51 .expected = 1161 60 params->expected); in drm_test_dp_mst_calc_pbn_mode()
|
D | drm_plane_helper_test.c | 86 struct drm_rect expected = DRM_RECT_INIT(src_x, src_y, src_w, src_h); in check_src_eq() local 96 KUNIT_EXPECT_TRUE_MSG(test, drm_rect_equals(&plane_state->src, &expected), in check_src_eq() 98 DRM_RECT_FP_ARG(&plane_state->src), DRM_RECT_FP_ARG(&expected)); in check_src_eq() 105 struct drm_rect expected = DRM_RECT_INIT(crtc_x, crtc_y, crtc_w, crtc_h); in check_crtc_eq() local 107 KUNIT_EXPECT_TRUE_MSG(test, drm_rect_equals(&plane_state->dst, &expected), in check_crtc_eq() 109 DRM_RECT_ARG(&plane_state->dst), DRM_RECT_ARG(&expected)); in check_crtc_eq()
|
/drivers/hid/ |
D | hid-uclogic-rdesc-test.c | 18 const __u8 *expected; member 105 .expected = template_empty, 113 .expected = template_small, 121 .expected = template_no_ph, 129 .expected = template_pen_ph_end, 137 .expected = template_btn_ph_end, 145 .expected = expected_pen_all_params, 153 .expected = expected_frame_all_params, 161 .expected = expected_pen_some_params, 169 .expected = expected_pen_some_params, [all …]
|
D | hid-uclogic-core-test.c | 17 bool expected; member 35 .expected = true, 40 .expected = true, 45 .expected = false, 50 .expected = false, 55 .expected = false, 94 KUNIT_ASSERT_EQ(test, res, test_events[n].expected); in hid_test_uclogic_exec_event_hook_test()
|
/drivers/gpu/drm/i915/ |
D | i915_cmd_parser.c | 174 u32 expected; member 235 .expected = 0, 242 .expected = 0, 265 .expected = 0, 272 .expected = 0, 278 .expected = 0, 284 .expected = 0, 292 .expected = 0, 301 .expected = 0, 307 .expected = 0, [all …]
|
/drivers/misc/lkdtm/ |
D | cfi.c | 73 void set_return_addr_unchecked(unsigned long *expected, unsigned long *addr) in set_return_addr_unchecked() argument 79 if (no_pac_addr(*ret_addr) == expected) in set_return_addr_unchecked() 88 void set_return_addr(unsigned long *expected, unsigned long *addr) in set_return_addr() argument 94 if (no_pac_addr(*ret_addr) == expected) in set_return_addr()
|
/drivers/gpu/drm/i915/selftests/ |
D | i915_perf.c | 203 u64 expected; in live_noa_delay() local 214 expected = atomic64_read(&stream->perf->noa_programming_delay); in live_noa_delay() 267 ktime_sub(t1, t0), expected); in live_noa_delay() 273 delay, expected); in live_noa_delay() 275 if (4 * delay < 3 * expected || 2 * delay > 3 * expected) { in live_noa_delay() 278 div_u64(3 * expected, 4000), in live_noa_delay() 279 div_u64(3 * expected, 2000)); in live_noa_delay()
|
/drivers/gpu/drm/i915/gt/ |
D | selftest_gt_pm.c | 99 u32 expected; in live_gt_clocks() local 109 expected = intel_gt_ns_to_clock_interval(engine->gt, dt); in live_gt_clocks() 112 engine->name, cycles, time, dt, expected, in live_gt_clocks() 122 if (9 * expected < 8 * cycles || 8 * expected > 9 * cycles) { in live_gt_clocks()
|
D | selftest_ring.c | 33 int expected) in check_ring_direction() argument 43 if (result != expected) { in check_ring_direction() 45 next, prev, result, expected); in check_ring_direction()
|
/drivers/media/pci/cx18/ |
D | cx18-av-firmware.c | 29 u32 expected, dl_control; in cx18_av_verifyfw() local 48 expected = 0x0f000000 | ((u32)data[addr] << 16) | addr; in cx18_av_verifyfw() 49 if (expected != dl_control) { in cx18_av_verifyfw() 51 FWFILE, expected, dl_control); in cx18_av_verifyfw()
|
/drivers/usb/misc/ |
D | usbtest.c | 403 u8 expected; in simple_check_buf() local 416 expected = 0; in simple_check_buf() 424 expected = (i % maxpacket) % 63; in simple_check_buf() 428 expected = !*buf; in simple_check_buf() 431 if (*buf == expected) in simple_check_buf() 433 ERROR(tdev, "buf[%d] = %d (not %d)\n", i, *buf, expected); in simple_check_buf() 459 int expected, in simple_io() argument 507 if (expected != retval) in simple_io() 510 label, iterations, retval, expected); in simple_io() 869 int expected = udev->actconfig->desc.bConfigurationValue; in ch9_postconfig() local [all …]
|
/drivers/char/tpm/st33zp24/ |
D | st33zp24.c | 385 u32 expected; in st33zp24_recv() local 401 expected = be32_to_cpu(*(__be32 *)(buf + 2)); in st33zp24_recv() 402 if (expected > count || expected < TPM_HEADER_SIZE) { in st33zp24_recv() 408 expected - TPM_HEADER_SIZE); in st33zp24_recv() 409 if (size < expected) { in st33zp24_recv()
|
/drivers/char/tpm/ |
D | tpm_i2c_infineon.c | 472 u32 expected; in tpm_tis_i2c_recv() local 486 expected = be32_to_cpu(*(__be32 *)(buf + 2)); in tpm_tis_i2c_recv() 487 if (((size_t) expected > count) || (expected < TPM_HEADER_SIZE)) { in tpm_tis_i2c_recv() 493 expected - TPM_HEADER_SIZE); in tpm_tis_i2c_recv() 494 if (size < expected) { in tpm_tis_i2c_recv()
|
D | tpm_i2c_nuvoton.c | 274 u32 expected; in i2c_nuvoton_recv() local 315 expected = be32_to_cpu(*(__be32 *) (buf + 2)); in i2c_nuvoton_recv() 316 if (expected > count || expected < size) { in i2c_nuvoton_recv() 322 expected - size); in i2c_nuvoton_recv() 324 if (rc < 0 || size < expected) { in i2c_nuvoton_recv()
|
D | tpm_tis_i2c_cr50.c | 455 size_t burstcnt, cur, len, expected; in tpm_cr50_i2c_tis_recv() local 483 expected = be32_to_cpup((__be32 *)(buf + 2)); in tpm_cr50_i2c_tis_recv() 484 if (expected > buf_len) { in tpm_cr50_i2c_tis_recv() 492 while (cur < expected) { in tpm_cr50_i2c_tis_recv() 498 len = min_t(size_t, burstcnt, expected - cur); in tpm_cr50_i2c_tis_recv()
|
D | tpm_crb.c | 323 unsigned int expected; in crb_recv() local 343 expected = be32_to_cpup((__be32 *)&buf[2]); in crb_recv() 344 if (expected > count || expected < TPM_HEADER_SIZE) in crb_recv() 347 memcpy_fromio(&buf[8], &priv->rsp[8], expected - 8); in crb_recv() 349 return expected; in crb_recv()
|
/drivers/crypto/ccp/ |
D | platform-access.c | 32 u32 tmp, expected; in wait_cmd() local 35 expected = FIELD_PREP(PSP_CMDRESP_RESP, 1); in wait_cmd() 41 return readl_poll_timeout(cmd, tmp, (tmp & expected), 0, in wait_cmd()
|
/drivers/ufs/host/ |
D | ufs-renesas.c | 49 { .mode = MODE_POLL, .reg = _reg, .u.expected = _expected, \ 137 u32 expected; member 302 (val & p->mask) == p->u.expected, in ufs_renesas_reg_control() 306 __func__, ret, val, p->mask, p->u.expected); in ufs_renesas_reg_control()
|
/drivers/acpi/acpica/ |
D | acapps.h | 65 #define ACPI_CHECK_STATUS(name, status, expected) \ argument 66 if (status != expected) \
|
/drivers/crypto/hisilicon/sec/ |
D | sec_drv.c | 626 queue->expected = 0; in sec_queue_start() 702 if (q_id == queue->expected) in sec_isr_handle() 703 while (test_bit(queue->expected, queue->unprocessed)) { in sec_isr_handle() 704 clear_bit(queue->expected, queue->unprocessed); in sec_isr_handle() 705 msg = msg_ring->vaddr + queue->expected; in sec_isr_handle() 708 queue->shadow[queue->expected]); in sec_isr_handle() 709 queue->shadow[queue->expected] = NULL; in sec_isr_handle() 710 queue->expected = (queue->expected + 1) % in sec_isr_handle()
|