| /drivers/gpu/drm/tests/ |
| D | drm_cmdline_parser_test.c | 7 #include <kunit/test.h> 15 static void drm_test_cmdline_force_e_only(struct kunit *test) in drm_test_cmdline_force_e_only() argument 20 KUNIT_ASSERT_TRUE(test, drm_mode_parse_command_line_for_connector(cmdline, in drm_test_cmdline_force_e_only() 22 KUNIT_EXPECT_FALSE(test, mode.specified); in drm_test_cmdline_force_e_only() 23 KUNIT_EXPECT_FALSE(test, mode.refresh_specified); in drm_test_cmdline_force_e_only() 24 KUNIT_EXPECT_FALSE(test, mode.bpp_specified); in drm_test_cmdline_force_e_only() 26 KUNIT_EXPECT_FALSE(test, mode.rb); in drm_test_cmdline_force_e_only() 27 KUNIT_EXPECT_FALSE(test, mode.cvt); in drm_test_cmdline_force_e_only() 28 KUNIT_EXPECT_FALSE(test, mode.interlace); in drm_test_cmdline_force_e_only() 29 KUNIT_EXPECT_FALSE(test, mode.margins); in drm_test_cmdline_force_e_only() [all …]
|
| D | drm_hdmi_state_helper_test.c | 4 * Kunit test for drm_hdmi_state_helper functions 25 #include <kunit/test.h> 58 static int light_up_connector(struct kunit *test, in light_up_connector() argument 70 state = drm_kunit_helper_atomic_state_alloc(test, drm, ctx); in light_up_connector() 71 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, state); in light_up_connector() 75 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, conn_state); in light_up_connector() 84 KUNIT_EXPECT_EQ(test, ret, 0); in light_up_connector() 87 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, crtc_state); in light_up_connector() 90 KUNIT_EXPECT_EQ(test, ret, 0); in light_up_connector() 96 KUNIT_ASSERT_EQ(test, ret, 0); in light_up_connector() [all …]
|
| D | drm_format_test.c | 3 * Test cases for the drm_format functions 8 #include <kunit/test.h> 12 static void drm_test_format_block_width_invalid(struct kunit *test) in drm_test_format_block_width_invalid() argument 16 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() 21 static void drm_test_format_block_width_one_plane(struct kunit *test) in drm_test_format_block_width_one_plane() argument 25 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_block_width_one_plane() 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() [all …]
|
| D | drm_gem_shmem_test.c | 3 * KUnit test suite for GEM objects backed by shmem buffers 14 #include <kunit/test.h> 38 * Test creating a shmem GEM object backed by shmem buffer. The test 43 static void drm_gem_shmem_test_obj_create(struct kunit *test) in drm_gem_shmem_test_obj_create() argument 45 struct drm_device *drm_dev = test->priv; in drm_gem_shmem_test_obj_create() 49 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, shmem); in drm_gem_shmem_test_obj_create() 50 KUNIT_EXPECT_EQ(test, shmem->base.size, TEST_SIZE); in drm_gem_shmem_test_obj_create() 51 KUNIT_EXPECT_NOT_NULL(test, shmem->base.filp); in drm_gem_shmem_test_obj_create() 52 KUNIT_EXPECT_NOT_NULL(test, shmem->base.funcs); in drm_gem_shmem_test_obj_create() 58 * Test creating a shmem GEM object from a scatter/gather table exported [all …]
|
| D | drm_connector_test.c | 3 * Kunit test for drm_modes functions 17 #include <kunit/test.h> 59 static int drm_test_connector_init(struct kunit *test) in drm_test_connector_init() argument 65 dev = drm_kunit_helper_alloc_device(test); in drm_test_connector_init() 66 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, dev); in drm_test_connector_init() 68 priv = drm_kunit_helper_alloc_drm_device(test, dev, in drm_test_connector_init() 71 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, priv); in drm_test_connector_init() 79 KUNIT_ASSERT_EQ(test, ret, 0); in drm_test_connector_init() 81 ret = kunit_add_action_or_reset(test, i2c_del_adapter_wrapper, &priv->ddc); in drm_test_connector_init() 82 KUNIT_ASSERT_EQ(test, ret, 0); in drm_test_connector_init() [all …]
|
| D | drm_modes_test.c | 3 * Kunit test for drm_modes functions 10 #include <kunit/test.h> 19 static int drm_test_modes_init(struct kunit *test) in drm_test_modes_init() argument 23 priv = kunit_kzalloc(test, sizeof(*priv), GFP_KERNEL); in drm_test_modes_init() 24 KUNIT_ASSERT_NOT_NULL(test, priv); in drm_test_modes_init() 26 priv->dev = drm_kunit_helper_alloc_device(test); in drm_test_modes_init() 27 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, priv->dev); in drm_test_modes_init() 29 priv->drm = __drm_kunit_helper_alloc_drm_device(test, priv->dev, in drm_test_modes_init() 32 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, priv->drm); in drm_test_modes_init() 34 test->priv = priv; in drm_test_modes_init() [all …]
|
| /drivers/platform/chrome/ |
| D | cros_ec_proto_test.c | 6 #include <kunit/test.h> 26 static void cros_ec_proto_test_prepare_tx_legacy_normal(struct kunit *test) in cros_ec_proto_test_prepare_tx_legacy_normal() argument 28 struct cros_ec_proto_test_priv *priv = test->priv; in cros_ec_proto_test_prepare_tx_legacy_normal() 45 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() [all …]
|
| /drivers/clk/ |
| D | clk_test.c | 16 #include <kunit/test.h> 176 static int clk_test_init_with_ops(struct kunit *test, const struct clk_ops *ops) in clk_test_init_with_ops() argument 182 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_test_init_with_ops() 186 test->priv = ctx; in clk_test_init_with_ops() 199 static int clk_test_init(struct kunit *test) in clk_test_init() argument 201 return clk_test_init_with_ops(test, &clk_dummy_rate_ops); in clk_test_init() 204 static int clk_maximize_test_init(struct kunit *test) in clk_maximize_test_init() argument 206 return clk_test_init_with_ops(test, &clk_dummy_maximize_rate_ops); in clk_maximize_test_init() 209 static int clk_minimize_test_init(struct kunit *test) in clk_minimize_test_init() argument 211 return clk_test_init_with_ops(test, &clk_dummy_minimize_rate_ops); in clk_minimize_test_init() [all …]
|
| D | clk-gate_test.c | 9 #include <kunit/test.h> 11 static void clk_gate_register_test_dev(struct kunit *test) in clk_gate_register_test_dev() argument 17 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, pdev); in clk_gate_register_test_dev() 21 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ret); in clk_gate_register_test_dev() 22 KUNIT_EXPECT_STREQ(test, "test_gate", clk_hw_get_name(ret)); in clk_gate_register_test_dev() 23 KUNIT_EXPECT_EQ(test, 0UL, clk_hw_get_flags(ret)); in clk_gate_register_test_dev() 29 static void clk_gate_register_test_parent_names(struct kunit *test) in clk_gate_register_test_parent_names() argument 36 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, parent); in clk_gate_register_test_parent_names() 40 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ret); in clk_gate_register_test_parent_names() 41 KUNIT_EXPECT_PTR_EQ(test, parent, clk_hw_get_parent(ret)); in clk_gate_register_test_parent_names() [all …]
|
| D | clk-fixed-rate_test.c | 3 * KUnit test for clk fixed rate basic type 15 #include <kunit/test.h> 77 * clk_hw_register_fixed_rate_kunit() - Test managed __clk_hw_register_fixed_rate() 78 * @test: The test context 84 clk_hw_register_fixed_rate_kunit(struct kunit *test, in clk_hw_register_fixed_rate_kunit() argument 89 hw = kunit_alloc_resource(test, in clk_hw_register_fixed_rate_kunit() 100 * clk_hw_unregister_fixed_rate_kunit() - Test managed clk_hw_unregister_fixed_rate() 101 * @test: The test context 102 * @hw: fixed rate clk to unregister upon test completion 104 * Automatically unregister @hw when @test is complete via [all …]
|
| /drivers/gpu/drm/ttm/tests/ |
| D | ttm_bo_validate_test.c | 28 static struct ttm_placement *ttm_placement_kunit_init(struct kunit *test, in ttm_placement_kunit_init() argument 34 placement = kunit_kzalloc(test, sizeof(*placement), GFP_KERNEL); in ttm_placement_kunit_init() 35 KUNIT_ASSERT_NOT_NULL(test, placement); in ttm_placement_kunit_init() 53 static struct dma_fence *alloc_mock_fence(struct kunit *test) in alloc_mock_fence() argument 57 fence = kunit_kzalloc(test, sizeof(*fence), GFP_KERNEL); in alloc_mock_fence() 58 KUNIT_ASSERT_NOT_NULL(test, fence); in alloc_mock_fence() 65 static void dma_resv_kunit_active_fence_init(struct kunit *test, in dma_resv_kunit_active_fence_init() argument 71 fence = alloc_mock_fence(test); in dma_resv_kunit_active_fence_init() 104 static void ttm_bo_init_reserved_sys_man(struct kunit *test) in ttm_bo_init_reserved_sys_man() argument 106 const struct ttm_bo_validate_test_case *params = test->param_value; in ttm_bo_init_reserved_sys_man() [all …]
|
| D | ttm_tt_test.c | 39 static void ttm_tt_init_basic(struct kunit *test) in ttm_tt_init_basic() argument 41 const struct ttm_tt_test_case *params = test->param_value; in ttm_tt_init_basic() 50 tt = kunit_kzalloc(test, sizeof(*tt), GFP_KERNEL); in ttm_tt_init_basic() 51 KUNIT_ASSERT_NOT_NULL(test, tt); in ttm_tt_init_basic() 53 bo = ttm_bo_kunit_init(test, test->priv, params->size, NULL); in ttm_tt_init_basic() 56 KUNIT_ASSERT_EQ(test, err, 0); in ttm_tt_init_basic() 58 KUNIT_ASSERT_EQ(test, tt->num_pages, num_pages + extra_pages); in ttm_tt_init_basic() 60 KUNIT_ASSERT_EQ(test, tt->page_flags, page_flags); in ttm_tt_init_basic() 61 KUNIT_ASSERT_EQ(test, tt->caching, caching); in ttm_tt_init_basic() 63 KUNIT_ASSERT_NULL(test, tt->dma_address); in ttm_tt_init_basic() [all …]
|
| D | ttm_pool_test.c | 30 static int ttm_pool_test_init(struct kunit *test) in ttm_pool_test_init() argument 34 priv = kunit_kzalloc(test, sizeof(*priv), GFP_KERNEL); in ttm_pool_test_init() 35 KUNIT_ASSERT_NOT_NULL(test, priv); in ttm_pool_test_init() 37 priv->devs = ttm_test_devices_basic(test); in ttm_pool_test_init() 38 test->priv = priv; in ttm_pool_test_init() 43 static void ttm_pool_test_fini(struct kunit *test) in ttm_pool_test_fini() argument 45 struct ttm_pool_test_priv *priv = test->priv; in ttm_pool_test_fini() 47 ttm_test_devices_put(test, priv->devs); in ttm_pool_test_fini() 50 static struct ttm_tt *ttm_tt_kunit_init(struct kunit *test, in ttm_tt_kunit_init() argument 55 struct ttm_pool_test_priv *priv = test->priv; in ttm_tt_kunit_init() [all …]
|
| D | ttm_resource_test.c | 26 static int ttm_resource_test_init(struct kunit *test) in ttm_resource_test_init() argument 30 priv = kunit_kzalloc(test, sizeof(*priv), GFP_KERNEL); in ttm_resource_test_init() 31 KUNIT_ASSERT_NOT_NULL(test, priv); in ttm_resource_test_init() 33 priv->devs = ttm_test_devices_all(test); in ttm_resource_test_init() 34 KUNIT_ASSERT_NOT_NULL(test, priv->devs); in ttm_resource_test_init() 36 test->priv = priv; in ttm_resource_test_init() 41 static void ttm_resource_test_fini(struct kunit *test) in ttm_resource_test_fini() argument 43 struct ttm_resource_test_priv *priv = test->priv; in ttm_resource_test_fini() 45 ttm_test_devices_put(test, priv->devs); in ttm_resource_test_fini() 48 static void ttm_init_test_mocks(struct kunit *test, in ttm_init_test_mocks() argument [all …]
|
| D | ttm_bo_test.c | 59 static void ttm_bo_reserve_optimistic_no_ticket(struct kunit *test) in ttm_bo_reserve_optimistic_no_ticket() argument 61 const struct ttm_bo_test_case *params = test->param_value; in ttm_bo_reserve_optimistic_no_ticket() 65 bo = ttm_bo_kunit_init(test, test->priv, BO_SIZE, NULL); in ttm_bo_reserve_optimistic_no_ticket() 68 KUNIT_ASSERT_EQ(test, err, 0); in ttm_bo_reserve_optimistic_no_ticket() 73 static void ttm_bo_reserve_locked_no_sleep(struct kunit *test) in ttm_bo_reserve_locked_no_sleep() argument 80 bo = ttm_bo_kunit_init(test, test->priv, BO_SIZE, NULL); in ttm_bo_reserve_locked_no_sleep() 88 KUNIT_ASSERT_EQ(test, err, -EBUSY); in ttm_bo_reserve_locked_no_sleep() 91 static void ttm_bo_reserve_no_wait_ticket(struct kunit *test) in ttm_bo_reserve_no_wait_ticket() argument 101 bo = ttm_bo_kunit_init(test, test->priv, BO_SIZE, NULL); in ttm_bo_reserve_no_wait_ticket() 104 KUNIT_ASSERT_EQ(test, err, -EBUSY); in ttm_bo_reserve_no_wait_ticket() [all …]
|
| /drivers/base/test/ |
| D | property-entry-test.c | 6 #include <kunit/test.h> 10 static void pe_test_uints(struct kunit *test) in pe_test_uints() argument 28 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in pe_test_uints() 31 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() 42 KUNIT_EXPECT_NE(test, error, 0); in pe_test_uints() 45 KUNIT_EXPECT_NE(test, error, 0); in pe_test_uints() [all …]
|
| /drivers/gpu/drm/xe/tests/ |
| D | xe_guc_relay_test.c | 7 #include <kunit/test.h> 8 #include <kunit/test-bug.h> 25 static int relay_test_init(struct kunit *test) in relay_test_init() argument 35 test->priv = &fake; in relay_test_init() 36 xe_kunit_helper_xe_device_test_init(test); in relay_test_init() 38 xe = test->priv; in relay_test_init() 39 KUNIT_ASSERT_EQ(test, xe_sriov_init(xe), 0); in relay_test_init() 42 kunit_activate_static_stub(test, relay_get_totalvfs, in relay_test_init() 45 KUNIT_ASSERT_EQ(test, xe_guc_relay_init(relay), 0); in relay_test_init() 46 KUNIT_EXPECT_TRUE(test, relay_is_ready(relay)); in relay_test_init() [all …]
|
| D | xe_guc_db_mgr_test.c | 6 #include <kunit/test.h> 11 static int guc_dbm_test_init(struct kunit *test) in guc_dbm_test_init() argument 15 xe_kunit_helper_xe_device_test_init(test); in guc_dbm_test_init() 16 dbm = &xe_device_get_gt(test->priv, 0)->uc.guc.dbm; in guc_dbm_test_init() 19 test->priv = dbm; in guc_dbm_test_init() 23 static void test_empty(struct kunit *test) in test_empty() argument 25 struct xe_guc_db_mgr *dbm = test->priv; in test_empty() 27 KUNIT_ASSERT_EQ(test, xe_guc_db_mgr_init(dbm, 0), 0); in test_empty() 28 KUNIT_ASSERT_EQ(test, dbm->count, 0); in test_empty() 31 KUNIT_EXPECT_LT(test, xe_guc_db_mgr_reserve_id_locked(dbm), 0); in test_empty() [all …]
|
| D | xe_args_test.c | 6 #include <kunit/test.h> 10 static void call_args_example(struct kunit *test) in call_args_example() argument 16 KUNIT_EXPECT_EQ(test, bar, 1); in call_args_example() 17 KUNIT_EXPECT_EQ(test, buz, 4); in call_args_example() 24 static void drop_first_arg_example(struct kunit *test) in drop_first_arg_example() argument 29 KUNIT_EXPECT_EQ(test, bar, 3); in drop_first_arg_example() 35 static void first_arg_example(struct kunit *test) in first_arg_example() argument 42 KUNIT_EXPECT_EQ(test, bar, X); in first_arg_example() 43 KUNIT_EXPECT_STREQ(test, __stringify(bar), "X"); in first_arg_example() 49 static void last_arg_example(struct kunit *test) in last_arg_example() argument [all …]
|
| D | xe_gt_sriov_pf_service_test.c | 6 #include <kunit/test.h> 12 static int pf_service_test_init(struct kunit *test) in pf_service_test_init() argument 22 test->priv = &fake; in pf_service_test_init() 23 xe_kunit_helper_xe_device_test_init(test); in pf_service_test_init() 25 xe = test->priv; in pf_service_test_init() 26 KUNIT_ASSERT_EQ(test, xe_sriov_init(xe), 0); in pf_service_test_init() 36 KUNIT_ASSERT_NE(test, 0, gt->sriov.pf.service.version.base.major); in pf_service_test_init() 37 KUNIT_ASSERT_NE(test, 0, gt->sriov.pf.service.version.latest.major); in pf_service_test_init() 38 KUNIT_ASSERT_LE(test, gt->sriov.pf.service.version.base.major, in pf_service_test_init() 41 KUNIT_ASSERT_LE(test, gt->sriov.pf.service.version.base.minor, in pf_service_test_init() [all …]
|
| /drivers/thunderbolt/ |
| D | test.c | 9 #include <kunit/test.h> 31 static void kunit_ida_init(struct kunit *test, struct ida *ida) in kunit_ida_init() argument 33 kunit_alloc_resource(test, __ida_init, __ida_destroy, GFP_KERNEL, ida); in kunit_ida_init() 36 static struct tb_switch *alloc_switch(struct kunit *test, u64 route, in alloc_switch() argument 43 sw = kunit_kzalloc(test, sizeof(*sw), GFP_KERNEL); in alloc_switch() 55 sw->ports = kunit_kzalloc(test, size, GFP_KERNEL); in alloc_switch() 64 kunit_ida_init(test, &sw->ports[i].in_hopids); in alloc_switch() 65 kunit_ida_init(test, &sw->ports[i].out_hopids); in alloc_switch() 72 static struct tb_switch *alloc_host(struct kunit *test) in alloc_host() argument 76 sw = alloc_switch(test, 0, 7, 13); in alloc_host() [all …]
|
| /drivers/net/ethernet/microchip/vcap/ |
| D | vcap_api_kunit.c | 3 * Microchip VCAP API kunit test suite 6 #include <kunit/test.h> 11 /* First we have the test infrastructure that emulates the platform 246 static void test_vcap_xn_rule_creator(struct kunit *test, int cid, in test_vcap_xn_rule_creator() argument 285 KUNIT_ASSERT_NE(test, VCAP_KFS_NO_VALUE, keyset); in test_vcap_xn_rule_creator() 290 KUNIT_EXPECT_PTR_NE(test, NULL, rule); in test_vcap_xn_rule_creator() 304 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() [all …]
|
| /drivers/firewire/ |
| D | packet-serdes-test.c | 3 // packet-serdes-test.c - An application of Kunit to check serialization/deserialization of packets 8 #include <kunit/test.h> 274 static void test_async_header_write_quadlet_request(struct kunit *test) in test_async_header_write_quadlet_request() argument 297 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() [all …]
|
| /drivers/base/regmap/ |
| D | regmap-kunit.c | 9 #include <kunit/test.h> 155 static struct regmap *gen_regmap(struct kunit *test, in gen_regmap() argument 159 const struct regmap_test_param *param = test->param_value; in gen_regmap() 160 struct regmap_test_priv *priv = test->priv; in gen_regmap() 192 defaults = kunit_kcalloc(test, in gen_regmap() 212 error = kunit_add_action_or_reset(test, regmap_exit_action, ret); in gen_regmap() 227 struct kunit *test = dev_get_drvdata(dev); in reg_5_false() local 228 const struct regmap_test_param *param = test->param_value; in reg_5_false() 233 static void basic_read_write(struct kunit *test) in basic_read_write() argument 242 map = gen_regmap(test, &config, &data); in basic_read_write() [all …]
|
| /drivers/misc/ |
| D | pci_endpoint_test.c | 3 * Host side test driver to test endpoint functionality 29 #define DRV_MODULE_NAME "pci-endpoint-test" 134 static inline u32 pci_endpoint_test_readl(struct pci_endpoint_test *test, in pci_endpoint_test_readl() argument 137 return readl(test->base + offset); in pci_endpoint_test_readl() 140 static inline void pci_endpoint_test_writel(struct pci_endpoint_test *test, in pci_endpoint_test_writel() argument 143 writel(value, test->base + offset); in pci_endpoint_test_writel() 148 struct pci_endpoint_test *test = dev_id; in pci_endpoint_test_irqhandler() local 151 reg = pci_endpoint_test_readl(test, PCI_ENDPOINT_TEST_STATUS); in pci_endpoint_test_irqhandler() 153 test->last_irq = irq; in pci_endpoint_test_irqhandler() 154 complete(&test->irq_raised); in pci_endpoint_test_irqhandler() [all …]
|