Home
last modified time | relevance | path

Searched refs:KUNIT_EXPECT_EQ (Results 1 – 25 of 111) sorted by relevance

12345

/linux/drivers/gpu/drm/tests/
H A Ddrm_format_test.c16 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 0), 0); in drm_test_format_block_width_invalid()
17 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, -1), 0); in drm_test_format_block_width_invalid()
18 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 1), 0); in drm_test_format_block_width_invalid()
27 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 0), 1); in drm_test_format_block_width_one_plane()
28 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 1), 0); in drm_test_format_block_width_one_plane()
29 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, -1), 0); in drm_test_format_block_width_one_plane()
38 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 0), 1); in drm_test_format_block_width_two_plane()
39 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 1), 1); in drm_test_format_block_width_two_plane()
40 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 2), 0); in drm_test_format_block_width_two_plane()
41 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, -1), 0); in drm_test_format_block_width_two_plane()
[all …]
H A Ddrm_cmdline_parser_test.c29 KUNIT_EXPECT_EQ(test, mode.force, DRM_FORCE_ON); in drm_test_cmdline_force_e_only()
47 KUNIT_EXPECT_EQ(test, mode.force, DRM_FORCE_ON); in drm_test_cmdline_force_D_only_not_digital()
69 KUNIT_EXPECT_EQ(test, mode.force, DRM_FORCE_ON_DIGITAL); in drm_test_cmdline_force_D_only_hdmi()
91 KUNIT_EXPECT_EQ(test, mode.force, DRM_FORCE_ON_DIGITAL); in drm_test_cmdline_force_D_only_dvi()
109 KUNIT_EXPECT_EQ(test, mode.force, DRM_FORCE_OFF); in drm_test_cmdline_force_d_only()
120 KUNIT_EXPECT_EQ(test, mode.xres, 720); in drm_test_cmdline_res()
121 KUNIT_EXPECT_EQ(test, mode.yres, 480); in drm_test_cmdline_res()
131 KUNIT_EXPECT_EQ(test, mode.force, DRM_FORCE_UNSPECIFIED); in drm_test_cmdline_res()
142 KUNIT_EXPECT_EQ(test, mode.xres, 720); in drm_test_cmdline_res_vesa()
143 KUNIT_EXPECT_EQ(test, mode.yres, 480); in drm_test_cmdline_res_vesa()
[all …]
H A Ddrm_modes_test.c50 KUNIT_EXPECT_EQ(test, drm_mode_vrefresh(mode), 60); in drm_test_modes_analog_tv_ntsc_480i()
51 KUNIT_EXPECT_EQ(test, mode->hdisplay, 720); in drm_test_modes_analog_tv_ntsc_480i()
54 KUNIT_EXPECT_EQ(test, mode->hsync_start, 736); in drm_test_modes_analog_tv_ntsc_480i()
63 KUNIT_EXPECT_EQ(test, mode->htotal, 858); in drm_test_modes_analog_tv_ntsc_480i()
65 KUNIT_EXPECT_EQ(test, mode->vdisplay, 480); in drm_test_modes_analog_tv_ntsc_480i()
66 KUNIT_EXPECT_EQ(test, mode->vtotal, 525); in drm_test_modes_analog_tv_ntsc_480i()
97 KUNIT_EXPECT_EQ(test, drm_mode_vrefresh(mode), 50); in drm_test_modes_analog_tv_pal_576i()
98 KUNIT_EXPECT_EQ(test, mode->hdisplay, 720); in drm_test_modes_analog_tv_pal_576i()
101 KUNIT_EXPECT_EQ(test, mode->hsync_start, 732); in drm_test_modes_analog_tv_pal_576i()
110 KUNIT_EXPECT_EQ(test, mode->htotal, 864); in drm_test_modes_analog_tv_pal_576i()
[all …]
/linux/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api_kunit.c304 KUNIT_EXPECT_EQ(test, 0, ret); in test_vcap_xn_rule_creator()
305 KUNIT_EXPECT_EQ(test, keyset, rule->keyset); in test_vcap_xn_rule_creator()
306 KUNIT_EXPECT_EQ(test, actionset, rule->actionset); in test_vcap_xn_rule_creator()
307 KUNIT_EXPECT_EQ(test, size, ri->size); in test_vcap_xn_rule_creator()
311 KUNIT_EXPECT_EQ(test, 0, ret); in test_vcap_xn_rule_creator()
312 KUNIT_EXPECT_EQ(test, expected_addr, ri->addr); in test_vcap_xn_rule_creator()
341 KUNIT_EXPECT_EQ(test, (u32)0x0, stream[0]); in vcap_api_set_bit_1_test()
342 KUNIT_EXPECT_EQ(test, (u32)BIT(20), stream[1]); in vcap_api_set_bit_1_test()
358 KUNIT_EXPECT_EQ(test, (u32)~0, stream[0]); in vcap_api_set_bit_0_test()
359 KUNIT_EXPECT_EQ(test, (u32)~0, stream[1]); in vcap_api_set_bit_0_test()
[all …]
/linux/lib/
H A Dtest_bits.c12 KUNIT_EXPECT_EQ(test, 1ul, GENMASK(0, 0)); in genmask_test()
13 KUNIT_EXPECT_EQ(test, 3ul, GENMASK(1, 0)); in genmask_test()
14 KUNIT_EXPECT_EQ(test, 6ul, GENMASK(2, 1)); in genmask_test()
15 KUNIT_EXPECT_EQ(test, 0xFFFFFFFFul, GENMASK(31, 0)); in genmask_test()
29 KUNIT_EXPECT_EQ(test, 1ull, GENMASK_ULL(0, 0)); in genmask_ull_test()
30 KUNIT_EXPECT_EQ(test, 3ull, GENMASK_ULL(1, 0)); in genmask_ull_test()
31 KUNIT_EXPECT_EQ(test, 0x000000ffffe00000ull, GENMASK_ULL(39, 21)); in genmask_ull_test()
32 KUNIT_EXPECT_EQ(test, 0xffffffffffffffffull, GENMASK_ULL(63, 0)); in genmask_ull_test()
46 KUNIT_EXPECT_EQ(test, 0x0000000000000001ull, GENMASK_U128(0, 0)); in genmask_u128_test()
47 KUNIT_EXPECT_EQ(test, 0x0000000000000003ull, GENMASK_U128(1, 0)); in genmask_u128_test()
[all …]
H A Dfortify_kunit.c86 KUNIT_EXPECT_EQ(test, __compiletime_strlen("88888888"), 8); in fortify_test_known_sizes()
87 KUNIT_EXPECT_EQ(test, __compiletime_strlen(array_of_10), 10); in fortify_test_known_sizes()
88 KUNIT_EXPECT_EQ(test, __compiletime_strlen(ptr_of_11), 11); in fortify_test_known_sizes()
90 KUNIT_EXPECT_EQ(test, __compiletime_strlen(array_unknown), SIZE_MAX); in fortify_test_known_sizes()
92 KUNIT_EXPECT_EQ(test, __compiletime_strlen(test->name), SIZE_MAX); in fortify_test_known_sizes()
119 KUNIT_EXPECT_EQ(test, want_minus_one(pick), SIZE_MAX); in fortify_test_control_flow_split()
130 KUNIT_EXPECT_EQ(test, expected, expected)
373 KUNIT_EXPECT_EQ(test, __builtin_constant_p(len), 0); \
409 KUNIT_EXPECT_EQ(test, pad.buf[end], '\0'); in fortify_test_strlen()
410 KUNIT_EXPECT_EQ(test, pad.bytes_after, 0); in fortify_test_strlen()
[all …]
H A Dis_signed_type_kunit.c21 KUNIT_EXPECT_EQ(test, is_signed_type(bool), false); in is_signed_type_test()
22 KUNIT_EXPECT_EQ(test, is_signed_type(signed char), true); in is_signed_type_test()
23 KUNIT_EXPECT_EQ(test, is_signed_type(unsigned char), false); in is_signed_type_test()
24 KUNIT_EXPECT_EQ(test, is_signed_type(char), false); in is_signed_type_test()
25 KUNIT_EXPECT_EQ(test, is_signed_type(int), true); in is_signed_type_test()
26 KUNIT_EXPECT_EQ(test, is_signed_type(unsigned int), false); in is_signed_type_test()
27 KUNIT_EXPECT_EQ(test, is_signed_type(long), true); in is_signed_type_test()
28 KUNIT_EXPECT_EQ(test, is_signed_type(unsigned long), false); in is_signed_type_test()
29 KUNIT_EXPECT_EQ(test, is_signed_type(long long), true); in is_signed_type_test()
30 KUNIT_EXPECT_EQ(test, is_signed_type(unsigned long long), false); in is_signed_type_test()
[all …]
H A Dtest_fprobe.c48 KUNIT_EXPECT_EQ(current_test, ip, target2_ip); in fp_entry_handler()
68 KUNIT_EXPECT_EQ(current_test, ip, target2_ip); in fp_exit_handler()
69 KUNIT_EXPECT_EQ(current_test, ret, (rand1 / div_factor) + 1); in fp_exit_handler()
71 KUNIT_EXPECT_EQ(current_test, ret, (rand1 / div_factor)); in fp_exit_handler()
72 KUNIT_EXPECT_EQ(current_test, entry_val, (rand1 / div_factor)); in fp_exit_handler()
77 KUNIT_EXPECT_EQ(current_test, *(u32 *)data, entry_val); in fp_exit_handler()
95 KUNIT_EXPECT_EQ(current_test, ip, target_nest_ip); in nest_exit_handler()
109 KUNIT_EXPECT_EQ(test, 0, register_fprobe(&fp_entry, "fprobe_selftest_target*", NULL)); in test_fprobe_entry()
115 KUNIT_EXPECT_EQ(test, 0, exit_val); in test_fprobe_entry()
121 KUNIT_EXPECT_EQ(test, 0, exit_val); in test_fprobe_entry()
[all …]
/linux/drivers/firewire/
H A Duapi-test.c16 KUNIT_EXPECT_EQ(test, 20, sizeof(struct fw_cdev_event_response)); in structure_layout_event_response()
19 KUNIT_EXPECT_EQ(test, 24, sizeof(struct fw_cdev_event_response)); in structure_layout_event_response()
22 KUNIT_EXPECT_EQ(test, 0, offsetof(struct fw_cdev_event_response, closure)); in structure_layout_event_response()
23 KUNIT_EXPECT_EQ(test, 8, offsetof(struct fw_cdev_event_response, type)); in structure_layout_event_response()
24 KUNIT_EXPECT_EQ(test, 12, offsetof(struct fw_cdev_event_response, rcode)); in structure_layout_event_response()
25 KUNIT_EXPECT_EQ(test, 16, offsetof(struct fw_cdev_event_response, length)); in structure_layout_event_response()
26 KUNIT_EXPECT_EQ(test, 20, offsetof(struct fw_cdev_event_response, data)); in structure_layout_event_response()
32 KUNIT_EXPECT_EQ(test, 56, sizeof(struct fw_cdev_event_request3)); in structure_layout_event_request3()
34 KUNIT_EXPECT_EQ(test, 0, offsetof(struct fw_cdev_event_request3, closure)); in structure_layout_event_request3()
35 KUNIT_EXPECT_EQ(test, 8, offsetof(struct fw_cdev_event_request3, type)); in structure_layout_event_request3()
[all …]
H A Dself-id-sequence-helper-test.c28 KUNIT_EXPECT_EQ(test, quadlet_count, 1); in test_self_id_sequence_enumerator_valid()
29 KUNIT_EXPECT_EQ(test, enumerator.quadlet_count, 6); in test_self_id_sequence_enumerator_valid()
33 KUNIT_EXPECT_EQ(test, quadlet_count, 2); in test_self_id_sequence_enumerator_valid()
34 KUNIT_EXPECT_EQ(test, enumerator.quadlet_count, 4); in test_self_id_sequence_enumerator_valid()
38 KUNIT_EXPECT_EQ(test, quadlet_count, 3); in test_self_id_sequence_enumerator_valid()
39 KUNIT_EXPECT_EQ(test, enumerator.quadlet_count, 1); in test_self_id_sequence_enumerator_valid()
43 KUNIT_EXPECT_EQ(test, quadlet_count, 1); in test_self_id_sequence_enumerator_valid()
44 KUNIT_EXPECT_EQ(test, enumerator.quadlet_count, 0); in test_self_id_sequence_enumerator_valid()
47 KUNIT_EXPECT_EQ(test, PTR_ERR(entry), -ENODATA); in test_self_id_sequence_enumerator_valid()
63 KUNIT_EXPECT_EQ(test, PTR_ERR(entry), -EPROTO); in test_self_id_sequence_enumerator_invalid()
[all …]
H A Dpacket-serdes-test.c297 KUNIT_EXPECT_EQ(test, 0xffc0, dst_id); in test_async_header_write_quadlet_request()
298 KUNIT_EXPECT_EQ(test, 0x14, tlabel); in test_async_header_write_quadlet_request()
299 KUNIT_EXPECT_EQ(test, 0x01, retry); in test_async_header_write_quadlet_request()
300 KUNIT_EXPECT_EQ(test, TCODE_WRITE_QUADLET_REQUEST, tcode); in test_async_header_write_quadlet_request()
301 KUNIT_EXPECT_EQ(test, 0x00, priority); in test_async_header_write_quadlet_request()
302 KUNIT_EXPECT_EQ(test, 0xffc1, src_id); in test_async_header_write_quadlet_request()
303 KUNIT_EXPECT_EQ(test, 0xfffff0000234, offset); in test_async_header_write_quadlet_request()
304 KUNIT_EXPECT_EQ(test, 0x1f0000c0, quadlet_data); in test_async_header_write_quadlet_request()
337 KUNIT_EXPECT_EQ(test, 0xffc0, dst_id); in test_async_header_write_block_request()
338 KUNIT_EXPECT_EQ(test, 0x19, tlabel); in test_async_header_write_block_request()
[all …]
H A Dohci-serdes-test.c22 KUNIT_EXPECT_EQ(test, 0x3d, generation); in test_self_id_count_register_deserialization()
23 KUNIT_EXPECT_EQ(test, 0x165, size); in test_self_id_count_register_deserialization()
39 KUNIT_EXPECT_EQ(test, 0x6, generation); in test_self_id_receive_buffer_deserialization()
40 KUNIT_EXPECT_EQ(test, 0xf38b, timestamp); in test_self_id_receive_buffer_deserialization()
60 KUNIT_EXPECT_EQ(test, 0x02, speed); in test_at_data_serdes()
61 KUNIT_EXPECT_EQ(test, 0x03, tlabel); in test_at_data_serdes()
62 KUNIT_EXPECT_EQ(test, 0x02, retry); in test_at_data_serdes()
63 KUNIT_EXPECT_EQ(test, 0x08, tcode); in test_at_data_serdes()
90 KUNIT_EXPECT_EQ(test, 0x03, scode); in test_it_data_serdes()
91 KUNIT_EXPECT_EQ(test, 0x01, tag); in test_it_data_serdes()
[all …]
/linux/drivers/platform/chrome/
H A Dcros_ec_proto_test.c45 KUNIT_EXPECT_EQ(test, ret, EC_MSG_TX_PROTO_BYTES + EC_PROTO2_MAX_PARAM_SIZE); in cros_ec_proto_test_prepare_tx_legacy_normal()
46 KUNIT_EXPECT_EQ(test, ec_dev->dout[0], EC_CMD_VERSION0); in cros_ec_proto_test_prepare_tx_legacy_normal()
47 KUNIT_EXPECT_EQ(test, ec_dev->dout[1], EC_CMD_HELLO); in cros_ec_proto_test_prepare_tx_legacy_normal()
48 KUNIT_EXPECT_EQ(test, ec_dev->dout[2], EC_PROTO2_MAX_PARAM_SIZE); in cros_ec_proto_test_prepare_tx_legacy_normal()
49 KUNIT_EXPECT_EQ(test, EC_MSG_TX_HEADER_BYTES, 3); in cros_ec_proto_test_prepare_tx_legacy_normal()
50 KUNIT_EXPECT_EQ(test, ec_dev->dout[EC_MSG_TX_HEADER_BYTES + 0], 0xde); in cros_ec_proto_test_prepare_tx_legacy_normal()
51 KUNIT_EXPECT_EQ(test, ec_dev->dout[EC_MSG_TX_HEADER_BYTES + 1], 0xad); in cros_ec_proto_test_prepare_tx_legacy_normal()
52 KUNIT_EXPECT_EQ(test, ec_dev->dout[EC_MSG_TX_HEADER_BYTES + 2], 0xbe); in cros_ec_proto_test_prepare_tx_legacy_normal()
53 KUNIT_EXPECT_EQ(test, ec_dev->dout[EC_MSG_TX_HEADER_BYTES + 3], 0xef); in cros_ec_proto_test_prepare_tx_legacy_normal()
55 KUNIT_EXPECT_EQ(test, ec_dev->dout[EC_MSG_TX_HEADER_BYTES + i], 0); in cros_ec_proto_test_prepare_tx_legacy_normal()
[all …]
/linux/drivers/mmc/host/
H A Dsdhci-of-aspeed-test.c10 KUNIT_EXPECT_EQ(test, 0, in aspeed_sdhci_phase_ddr52()
12 KUNIT_EXPECT_EQ(test, 0, in aspeed_sdhci_phase_ddr52()
14 KUNIT_EXPECT_EQ(test, 1, in aspeed_sdhci_phase_ddr52()
16 KUNIT_EXPECT_EQ(test, 1, in aspeed_sdhci_phase_ddr52()
18 KUNIT_EXPECT_EQ(test, 2, in aspeed_sdhci_phase_ddr52()
20 KUNIT_EXPECT_EQ(test, 3, in aspeed_sdhci_phase_ddr52()
22 KUNIT_EXPECT_EQ(test, 14, in aspeed_sdhci_phase_ddr52()
24 KUNIT_EXPECT_EQ(test, 15, in aspeed_sdhci_phase_ddr52()
26 KUNIT_EXPECT_EQ(test, 15, in aspeed_sdhci_phase_ddr52()
29 KUNIT_EXPECT_EQ(test, ASPEED_SDHCI_TAP_PARAM_INVERT_CLK | 0, in aspeed_sdhci_phase_ddr52()
[all …]
/linux/drivers/base/test/
H A Dproperty-entry-test.c31 KUNIT_EXPECT_EQ(test, error, 1); in pe_test_uints()
34 KUNIT_EXPECT_EQ(test, error, 0); in pe_test_uints()
35 KUNIT_EXPECT_EQ(test, val_u8, 8); in pe_test_uints()
38 KUNIT_EXPECT_EQ(test, error, 0); in pe_test_uints()
39 KUNIT_EXPECT_EQ(test, array_u8[0], 8); in pe_test_uints()
51 KUNIT_EXPECT_EQ(test, error, 0); in pe_test_uints()
52 KUNIT_EXPECT_EQ(test, val_u16, 16); in pe_test_uints()
55 KUNIT_EXPECT_EQ(test, error, 1); in pe_test_uints()
58 KUNIT_EXPECT_EQ(test, error, 0); in pe_test_uints()
59 KUNIT_EXPECT_EQ(test, array_u16[0], 16); in pe_test_uints()
[all …]
/linux/drivers/gpu/drm/xe/tests/
H A Dxe_args_test.c16 KUNIT_EXPECT_EQ(test, bar, 1); in call_args_example()
17 KUNIT_EXPECT_EQ(test, buz, 4); in call_args_example()
29 KUNIT_EXPECT_EQ(test, bar, 3); in drop_first_arg_example()
42 KUNIT_EXPECT_EQ(test, bar, X); in first_arg_example()
56 KUNIT_EXPECT_EQ(test, bar, Q); in last_arg_example()
71 KUNIT_EXPECT_EQ(test, bar, Y); in pick_arg_example()
73 KUNIT_EXPECT_EQ(test, buz, Z); in pick_arg_example()
94 KUNIT_EXPECT_EQ(test, buz, 4); in sep_comma_example()
112 KUNIT_EXPECT_EQ(test, count, 0); in count_args_test()
115 KUNIT_EXPECT_EQ(test, count, 1); in count_args_test()
[all …]
H A Dxe_guc_id_mgr_test.c27 KUNIT_EXPECT_EQ(test, -EINVAL, xe_guc_id_mgr_init(idm, 0)); in bad_init()
28 KUNIT_EXPECT_EQ(test, -ERANGE, xe_guc_id_mgr_init(idm, GUC_ID_MAX + 1)); in bad_init()
36 KUNIT_EXPECT_EQ(test, -ENODATA, xe_guc_id_mgr_reserve_locked(idm, 0)); in no_init()
39 KUNIT_EXPECT_EQ(test, -ENODATA, xe_guc_id_mgr_reserve(idm, 1, 1)); in no_init()
48 KUNIT_EXPECT_EQ(test, idm->total, GUC_ID_MAX); in init_fini()
51 KUNIT_EXPECT_EQ(test, idm->total, 0); in init_fini()
65 KUNIT_EXPECT_EQ(test, idm->used, n); in check_used()
67 KUNIT_EXPECT_EQ(test, idm->used, n + 1); in check_used()
69 KUNIT_EXPECT_EQ(test, idm->used, idm->total); in check_used()
71 KUNIT_EXPECT_EQ(test, idm->used, 0); in check_used()
[all …]
/linux/drivers/iio/test/
H A Diio-test-gts.c114 KUNIT_EXPECT_EQ(test, 0, ret); in __test_init_iio_gain_scale()
159 KUNIT_EXPECT_EQ(test, -EINVAL, ret); in test_init_iio_gts_invalid()
165 KUNIT_EXPECT_EQ(test, -EINVAL, ret); in test_init_iio_gts_invalid()
171 KUNIT_EXPECT_EQ(test, -EOVERFLOW, ret); in test_init_iio_gts_invalid()
190 KUNIT_EXPECT_EQ(test, 0, ret); in test_iio_gts_find_gain_for_scale_using_time()
191 KUNIT_EXPECT_EQ(test, TEST_GSEL_4, gain_sel); in test_iio_gts_find_gain_for_scale_using_time()
200 KUNIT_EXPECT_EQ(test, 0, ret); in test_iio_gts_find_gain_for_scale_using_time()
201 KUNIT_EXPECT_EQ(test, TEST_GSEL_64, gain_sel); in test_iio_gts_find_gain_for_scale_using_time()
206 KUNIT_EXPECT_EQ(test, 0, ret); in test_iio_gts_find_gain_for_scale_using_time()
207 KUNIT_EXPECT_EQ(test, TEST_GSEL_1, gain_sel); in test_iio_gts_find_gain_for_scale_using_time()
[all …]
/linux/mm/damon/tests/
H A Dcore-kunit.h23 KUNIT_EXPECT_EQ(test, 1ul, r->ar.start); in damon_test_regions()
24 KUNIT_EXPECT_EQ(test, 2ul, r->ar.end); in damon_test_regions()
25 KUNIT_EXPECT_EQ(test, 0u, r->nr_accesses); in damon_test_regions()
28 KUNIT_EXPECT_EQ(test, 0u, damon_nr_regions(t)); in damon_test_regions()
31 KUNIT_EXPECT_EQ(test, 1u, damon_nr_regions(t)); in damon_test_regions()
34 KUNIT_EXPECT_EQ(test, 0u, damon_nr_regions(t)); in damon_test_regions()
56 KUNIT_EXPECT_EQ(test, 0u, nr_damon_targets(c)); in damon_test_target()
59 KUNIT_EXPECT_EQ(test, 1u, nr_damon_targets(c)); in damon_test_target()
62 KUNIT_EXPECT_EQ(test, 0u, nr_damon_targets(c)); in damon_test_target()
108 KUNIT_EXPECT_EQ(test, 0u, r->nr_accesses); in damon_test_aggregate()
[all …]
/linux/drivers/base/power/
H A Dqos-test.c20 KUNIT_EXPECT_EQ(test, ret, 1); in freq_qos_test_min()
22 KUNIT_EXPECT_EQ(test, ret, 1); in freq_qos_test_min()
24 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MIN), 2000); in freq_qos_test_min()
27 KUNIT_EXPECT_EQ(test, ret, 1); in freq_qos_test_min()
28 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MIN), 1000); in freq_qos_test_min()
31 KUNIT_EXPECT_EQ(test, ret, 1); in freq_qos_test_min()
32 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MIN), in freq_qos_test_min()
46 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MAX), in freq_qos_test_maxdef()
51 KUNIT_EXPECT_EQ(test, ret, 0); in freq_qos_test_maxdef()
54 KUNIT_EXPECT_EQ(test, ret, 0); in freq_qos_test_maxdef()
[all …]
/linux/drivers/scsi/
H A Dscsi_proto_test.c15 KUNIT_EXPECT_EQ(test, d.desc.io_advice_hints_mode + 0, 1); in test_scsi_proto()
16 KUNIT_EXPECT_EQ(test, d.desc.st_enble + 0, 1); in test_scsi_proto()
17 KUNIT_EXPECT_EQ(test, d.desc.cs_enble + 0, 0); in test_scsi_proto()
18 KUNIT_EXPECT_EQ(test, d.desc.ic_enable + 0, 1); in test_scsi_proto()
19 KUNIT_EXPECT_EQ(test, d.desc.acdlu + 0, 1); in test_scsi_proto()
20 KUNIT_EXPECT_EQ(test, d.desc.rlbsr + 0, 3); in test_scsi_proto()
21 KUNIT_EXPECT_EQ(test, d.desc.lbm_descriptor_type + 0, 0); in test_scsi_proto()
22 KUNIT_EXPECT_EQ(test, d.desc.params[0] + 0, 0xe4); in test_scsi_proto()
23 KUNIT_EXPECT_EQ(test, d.desc.params[1] + 0, 0xe3); in test_scsi_proto()
29 KUNIT_EXPECT_EQ(test, ss.s.perm + 0, 1); in test_scsi_proto()
[all …]
H A Dscsi_lib_test.c72 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense()
75 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense()
78 KUNIT_EXPECT_EQ(test, 0, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense()
81 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense()
84 KUNIT_EXPECT_EQ(test, 0, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense()
87 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense()
90 KUNIT_EXPECT_EQ(test, 0, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense()
95 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, in scsi_lib_test_multiple_sense()
97 KUNIT_EXPECT_EQ(test, 0, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense()
105 KUNIT_EXPECT_EQ(test, 0, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense()
[all …]
/linux/drivers/thunderbolt/
H A Dtest.c511 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_single_hop_walk()
512 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_single_hop_walk()
513 KUNIT_EXPECT_EQ(test, (enum tb_port_type)p->config.type, in tb_test_path_single_hop_walk()
518 KUNIT_EXPECT_EQ(test, i, ARRAY_SIZE(test_data)); in tb_test_path_single_hop_walk()
523 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_single_hop_walk()
524 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_single_hop_walk()
525 KUNIT_EXPECT_EQ(test, (enum tb_port_type)p->config.type, in tb_test_path_single_hop_walk()
530 KUNIT_EXPECT_EQ(test, i, -1); in tb_test_path_single_hop_walk()
570 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_daisy_chain_walk()
571 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_daisy_chain_walk()
[all …]
/linux/drivers/base/regmap/
H A Dregmap-kunit.c250 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, 0, val)); in basic_read_write()
251 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, 0, &rval)); in basic_read_write()
252 KUNIT_EXPECT_EQ(test, val, rval); in basic_read_write()
255 KUNIT_EXPECT_EQ(test, config.cache_type == REGCACHE_NONE, data->read[0]); in basic_read_write()
279 KUNIT_EXPECT_EQ(test, 0, regmap_bulk_write(map, 0, val, in bulk_write()
282 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, i, &rval[i])); in bulk_write()
288 KUNIT_EXPECT_EQ(test, config.cache_type == REGCACHE_NONE, data->read[i]); in bulk_write()
310 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, val[i])); in bulk_read()
311 KUNIT_EXPECT_EQ(test, 0, regmap_bulk_read(map, 0, rval, in bulk_read()
317 KUNIT_EXPECT_EQ(test, config.cache_type == REGCACHE_NONE, data->read[i]); in bulk_read()
[all …]
/linux/kernel/
H A Dsysctl-test.c46 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&null_data_table, in sysctl_test_api_dointvec_null_tbl_data()
49 KUNIT_EXPECT_EQ(test, 0, len); in sysctl_test_api_dointvec_null_tbl_data()
55 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&null_data_table, in sysctl_test_api_dointvec_null_tbl_data()
58 KUNIT_EXPECT_EQ(test, 0, len); in sysctl_test_api_dointvec_null_tbl_data()
92 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&data_maxlen_unset_table, in sysctl_test_api_dointvec_table_maxlen_unset()
95 KUNIT_EXPECT_EQ(test, 0, len); in sysctl_test_api_dointvec_table_maxlen_unset()
101 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&data_maxlen_unset_table, in sysctl_test_api_dointvec_table_maxlen_unset()
104 KUNIT_EXPECT_EQ(test, 0, len); in sysctl_test_api_dointvec_table_maxlen_unset()
133 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_READ, buffer, in sysctl_test_api_dointvec_table_len_is_zero()
135 KUNIT_EXPECT_EQ(test, 0, len); in sysctl_test_api_dointvec_table_len_is_zero()
[all …]

12345