Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 25 of 106) sorted by relevance

12345

/drivers/iio/test/
Diio-test-rescale.c28 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/
Ddrm_format_helper_test.c21 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 …]
Ddrm_modes_test.c72 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()
Ddrm_rect_test.c17 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 …]
Ddrm_probe_helper_test.c101 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()
Ddrm_dp_mst_helper_test.c19 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()
Ddrm_plane_helper_test.c86 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/
Dhid-uclogic-rdesc-test.c18 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 …]
Dhid-uclogic-core-test.c17 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/
Di915_cmd_parser.c174 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/
Dcfi.c73 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/
Di915_perf.c203 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/
Dselftest_gt_pm.c99 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()
Dselftest_ring.c33 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/
Dcx18-av-firmware.c29 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/
Dusbtest.c403 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/
Dst33zp24.c385 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/
Dtpm_i2c_infineon.c472 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()
Dtpm_i2c_nuvoton.c274 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()
Dtpm_tis_i2c_cr50.c455 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()
Dtpm_crb.c323 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/
Dplatform-access.c32 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/
Dufs-renesas.c49 { .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/
Dacapps.h65 #define ACPI_CHECK_STATUS(name, status, expected) \ argument
66 if (status != expected) \
/drivers/crypto/hisilicon/sec/
Dsec_drv.c626 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()

12345