/linux-6.6.21/drivers/gpu/drm/tests/ |
D | drm_cmdline_parser_test.c | 14 static void drm_test_cmdline_force_e_only(struct kunit *test) in drm_test_cmdline_force_e_only() argument 19 KUNIT_ASSERT_TRUE(test, drm_mode_parse_command_line_for_connector(cmdline, in drm_test_cmdline_force_e_only() 21 KUNIT_EXPECT_FALSE(test, mode.specified); in drm_test_cmdline_force_e_only() 22 KUNIT_EXPECT_FALSE(test, mode.refresh_specified); in drm_test_cmdline_force_e_only() 23 KUNIT_EXPECT_FALSE(test, mode.bpp_specified); in drm_test_cmdline_force_e_only() 25 KUNIT_EXPECT_FALSE(test, mode.rb); in drm_test_cmdline_force_e_only() 26 KUNIT_EXPECT_FALSE(test, mode.cvt); in drm_test_cmdline_force_e_only() 27 KUNIT_EXPECT_FALSE(test, mode.interlace); in drm_test_cmdline_force_e_only() 28 KUNIT_EXPECT_FALSE(test, mode.margins); in drm_test_cmdline_force_e_only() 29 KUNIT_EXPECT_EQ(test, mode.force, DRM_FORCE_ON); in drm_test_cmdline_force_e_only() [all …]
|
D | drm_format_test.c | 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() 29 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, -1), 0); in drm_test_format_block_width_one_plane() 32 static void drm_test_format_block_width_two_plane(struct kunit *test) in drm_test_format_block_width_two_plane() argument [all …]
|
D | drm_modes_test.c | 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() 39 static void drm_test_modes_analog_tv_ntsc_480i(struct kunit *test) in drm_test_modes_analog_tv_ntsc_480i() argument 41 struct drm_test_modes_priv *priv = test->priv; in drm_test_modes_analog_tv_ntsc_480i() [all …]
|
/linux-6.6.21/lib/kunit/ |
D | kunit-test.c | 20 struct kunit *test = data; in kunit_test_successful_try() local 21 struct kunit_try_catch_test_context *ctx = test->priv; in kunit_test_successful_try() 28 struct kunit *test = data; in kunit_test_no_catch() local 30 KUNIT_FAIL(test, "Catch should not be called\n"); in kunit_test_no_catch() 33 static void kunit_test_try_catch_successful_try_no_catch(struct kunit *test) in kunit_test_try_catch_successful_try_no_catch() argument 35 struct kunit_try_catch_test_context *ctx = test->priv; in kunit_test_try_catch_successful_try_no_catch() 39 test, in kunit_test_try_catch_successful_try_no_catch() 42 kunit_try_catch_run(try_catch, test); in kunit_test_try_catch_successful_try_no_catch() 44 KUNIT_EXPECT_TRUE(test, ctx->function_called); in kunit_test_try_catch_successful_try_no_catch() 49 struct kunit *test = data; in kunit_test_unsuccessful_try() local [all …]
|
D | kunit-example-test.c | 22 static void example_simple_test(struct kunit *test) in example_simple_test() argument 30 KUNIT_EXPECT_EQ(test, 1 + 1, 2); in example_simple_test() 37 static int example_test_init(struct kunit *test) in example_test_init() argument 39 kunit_info(test, "initializing\n"); in example_test_init() 48 static void example_test_exit(struct kunit *test) in example_test_exit() argument 50 kunit_info(test, "cleaning up\n"); in example_test_exit() 78 static void example_skip_test(struct kunit *test) in example_skip_test() argument 81 kunit_info(test, "You should not see a line below."); in example_skip_test() 84 kunit_skip(test, "this test should be skipped"); in example_skip_test() 87 KUNIT_FAIL(test, "You should not see this line."); in example_skip_test() [all …]
|
D | executor_test.c | 12 static void free_suite_set_at_end(struct kunit *test, const void *to_free); 13 static struct kunit_suite *alloc_fake_suite(struct kunit *test, 17 static void dummy_test(struct kunit *test) {} in dummy_test() argument 26 static void parse_filter_test(struct kunit *test) in parse_filter_test() argument 31 KUNIT_EXPECT_STREQ(test, filter.suite_glob, "suite"); in parse_filter_test() 32 KUNIT_EXPECT_FALSE(test, filter.test_glob); in parse_filter_test() 37 KUNIT_EXPECT_STREQ(test, filter.suite_glob, "suite"); in parse_filter_test() 38 KUNIT_EXPECT_STREQ(test, filter.test_glob, "test"); in parse_filter_test() 43 static void filter_suites_test(struct kunit *test) in filter_suites_test() argument 52 subsuite[0] = alloc_fake_suite(test, "suite1", dummy_test_cases); in filter_suites_test() [all …]
|
D | test.c | 97 static void kunit_print_test_stats(struct kunit *test, in kunit_print_test_stats() argument 103 kunit_log(KERN_INFO, test, in kunit_print_test_stats() 106 test->name, in kunit_print_test_stats() 198 static void kunit_print_ok_not_ok(struct kunit *test, in kunit_print_ok_not_ok() argument 212 WARN(!test && test_level, "suite test level can't be %u!\n", test_level); in kunit_print_ok_not_ok() 221 if (!test) in kunit_print_ok_not_ok() 227 kunit_log(KERN_INFO, test, in kunit_print_ok_not_ok() 281 static void kunit_print_string_stream(struct kunit *test, in kunit_print_string_stream() argument 292 kunit_err(test, in kunit_print_string_stream() 295 kunit_err(test, "%s", fragment->fragment); in kunit_print_string_stream() [all …]
|
/linux-6.6.21/drivers/platform/chrome/ |
D | cros_ec_proto_test.c | 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() 52 KUNIT_EXPECT_EQ(test, ec_dev->dout[EC_MSG_TX_HEADER_BYTES + 2], 0xbe); in cros_ec_proto_test_prepare_tx_legacy_normal() [all …]
|
/linux-6.6.21/mm/kasan/ |
D | kasan_test.c | 88 static void kasan_test_exit(struct kunit *test) in kasan_test_exit() argument 90 KUNIT_EXPECT_FALSE(test, READ_ONCE(test_status.report_found)); in kasan_test_exit() 114 #define KUNIT_EXPECT_KASAN_FAIL(test, expression) do { \ argument 118 KUNIT_EXPECT_FALSE(test, READ_ONCE(test_status.report_found)); \ 125 KUNIT_FAIL(test, KUNIT_SUBTEST_INDENT "KASAN failure " \ 140 #define KASAN_TEST_NEEDS_CONFIG_ON(test, config) do { \ argument 142 kunit_skip((test), "Test requires " #config "=y"); \ 145 #define KASAN_TEST_NEEDS_CONFIG_OFF(test, config) do { \ argument 147 kunit_skip((test), "Test requires " #config "=n"); \ 150 #define KASAN_TEST_NEEDS_CHECKED_MEMINTRINSICS(test) do { \ argument [all …]
|
/linux-6.6.21/drivers/base/test/ |
D | property-entry-test.c | 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() 48 KUNIT_EXPECT_NE(test, error, 0); in pe_test_uints() [all …]
|
/linux-6.6.21/include/kunit/ |
D | test.h | 128 void (*run_case)(struct kunit *test); 248 int (*init)(struct kunit *test); 249 void (*exit)(struct kunit *test); 307 static inline void kunit_set_failure(struct kunit *test) in kunit_set_failure() argument 309 WRITE_ONCE(test->status, KUNIT_FAILURE); in kunit_set_failure() 318 void kunit_init_test(struct kunit *test, const char *name, char *log); 422 void *kunit_kmalloc_array(struct kunit *test, size_t n, size_t size, gfp_t gfp); 435 static inline void *kunit_kmalloc(struct kunit *test, size_t size, gfp_t gfp) in kunit_kmalloc() argument 437 return kunit_kmalloc_array(test, 1, size, gfp); in kunit_kmalloc() 445 void kunit_kfree(struct kunit *test, const void *ptr); [all …]
|
/linux-6.6.21/tools/pci/ |
D | pcitest.c | 41 static int run_test(struct pci_test *test) in run_test() argument 47 fd = open(test->device, O_RDWR); in run_test() 53 if (test->barnum >= 0 && test->barnum <= 5) { in run_test() 54 ret = ioctl(fd, PCITEST_BAR, test->barnum); in run_test() 55 fprintf(stdout, "BAR%d:\t\t", test->barnum); in run_test() 62 if (test->set_irqtype) { in run_test() 63 ret = ioctl(fd, PCITEST_SET_IRQTYPE, test->irqtype); in run_test() 64 fprintf(stdout, "SET IRQ TYPE TO %s:\t\t", irq[test->irqtype]); in run_test() 71 if (test->get_irqtype) { in run_test() 80 if (test->clear_irq) { in run_test() [all …]
|
/linux-6.6.21/drivers/thunderbolt/ |
D | test.c | 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() 154 static struct tb_switch *alloc_host_usb4(struct kunit *test) in alloc_host_usb4() argument [all …]
|
/linux-6.6.21/drivers/clk/ |
D | clk-gate_test.c | 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() 47 static void clk_gate_register_test_parent_data(struct kunit *test) in clk_gate_register_test_parent_data() argument [all …]
|
D | clk_test.c | 167 static int clk_test_init_with_ops(struct kunit *test, const struct clk_ops *ops) in clk_test_init_with_ops() argument 173 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_test_init_with_ops() 177 test->priv = ctx; in clk_test_init_with_ops() 190 static int clk_test_init(struct kunit *test) in clk_test_init() argument 192 return clk_test_init_with_ops(test, &clk_dummy_rate_ops); in clk_test_init() 195 static int clk_maximize_test_init(struct kunit *test) in clk_maximize_test_init() argument 197 return clk_test_init_with_ops(test, &clk_dummy_maximize_rate_ops); in clk_maximize_test_init() 200 static int clk_minimize_test_init(struct kunit *test) in clk_minimize_test_init() argument 202 return clk_test_init_with_ops(test, &clk_dummy_minimize_rate_ops); in clk_minimize_test_init() 205 static void clk_test_exit(struct kunit *test) in clk_test_exit() argument [all …]
|
/linux-6.6.21/lib/ |
D | list-test.c | 18 static void list_test_list_init(struct kunit *test) in list_test_list_init() argument 37 KUNIT_EXPECT_TRUE(test, list_empty_careful(&list1)); in list_test_list_init() 38 KUNIT_EXPECT_TRUE(test, list_empty_careful(&list2)); in list_test_list_init() 39 KUNIT_EXPECT_TRUE(test, list_empty_careful(&list3)); in list_test_list_init() 40 KUNIT_EXPECT_TRUE(test, list_empty_careful(list4)); in list_test_list_init() 41 KUNIT_EXPECT_TRUE(test, list_empty_careful(list5)); in list_test_list_init() 47 static void list_test_list_add(struct kunit *test) in list_test_list_add() argument 56 KUNIT_EXPECT_PTR_EQ(test, list.next, &b); in list_test_list_add() 57 KUNIT_EXPECT_PTR_EQ(test, b.prev, &list); in list_test_list_add() 58 KUNIT_EXPECT_PTR_EQ(test, b.next, &a); in list_test_list_add() [all …]
|
D | strcat_kunit.c | 13 static void strcat_test(struct kunit *test) in strcat_test() argument 19 KUNIT_EXPECT_EQ(test, strlen(dest), 0); in strcat_test() 21 KUNIT_EXPECT_TRUE(test, strcat(dest, "") == dest); in strcat_test() 22 KUNIT_EXPECT_STREQ(test, dest, ""); in strcat_test() 24 KUNIT_EXPECT_TRUE(test, strcat(dest, "four\000123") == dest); in strcat_test() 25 KUNIT_EXPECT_STREQ(test, dest, "four"); in strcat_test() 26 KUNIT_EXPECT_EQ(test, dest[5], '\0'); in strcat_test() 28 KUNIT_EXPECT_TRUE(test, strcat(dest, "AB") == dest); in strcat_test() 29 KUNIT_EXPECT_STREQ(test, dest, "fourAB"); in strcat_test() 32 static void strncat_test(struct kunit *test) in strncat_test() argument [all …]
|
D | strscpy_kunit.c | 25 static void tc(struct kunit *test, char *src, int count, int expected, in tc() argument 36 KUNIT_ASSERT_TRUE_MSG(test, src != NULL, in tc() 44 KUNIT_ASSERT_LE_MSG(test, count, max_count, in tc() 46 KUNIT_EXPECT_LE_MSG(test, expected, max_expected, in tc() 51 KUNIT_ASSERT_EQ(test, written, expected); in tc() 54 KUNIT_ASSERT_EQ_MSG(test, 0, strncmp(buf, src, count - 1), in tc() 56 KUNIT_ASSERT_EQ_MSG(test, buf[count - 1], '\0', in tc() 61 KUNIT_ASSERT_EQ_MSG(test, buf[i], src[i], in tc() 65 KUNIT_ASSERT_EQ_MSG(test, buf[count - 1], '\0', in tc() 70 KUNIT_ASSERT_EQ_MSG(test, buf[index], '\0', in tc() [all …]
|
/linux-6.6.21/drivers/net/ethernet/microchip/vcap/ |
D | vcap_api_kunit.c | 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() 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() 328 static void vcap_api_set_bit_1_test(struct kunit *test) in vcap_api_set_bit_1_test() argument [all …]
|
/linux-6.6.21/drivers/firewire/ |
D | uapi-test.c | 12 static void structure_layout_event_response(struct kunit *test) in structure_layout_event_response() argument 16 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() 30 static void structure_layout_event_request3(struct kunit *test) in structure_layout_event_request3() argument 32 KUNIT_EXPECT_EQ(test, 56, sizeof(struct fw_cdev_event_request3)); in structure_layout_event_request3() [all …]
|
/linux-6.6.21/drivers/gpu/drm/ttm/tests/ |
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_device_test.c | 18 static void ttm_device_init_basic(struct kunit *test) in ttm_device_init_basic() argument 20 struct ttm_test_devices *priv = test->priv; in ttm_device_init_basic() 25 ttm_dev = kunit_kzalloc(test, sizeof(*ttm_dev), GFP_KERNEL); in ttm_device_init_basic() 26 KUNIT_ASSERT_NOT_NULL(test, ttm_dev); in ttm_device_init_basic() 29 KUNIT_ASSERT_EQ(test, err, 0); in ttm_device_init_basic() 31 KUNIT_EXPECT_PTR_EQ(test, ttm_dev->funcs, &ttm_dev_funcs); in ttm_device_init_basic() 32 KUNIT_ASSERT_NOT_NULL(test, ttm_dev->wq); in ttm_device_init_basic() 33 KUNIT_ASSERT_NOT_NULL(test, ttm_dev->man_drv[TTM_PL_SYSTEM]); in ttm_device_init_basic() 36 KUNIT_ASSERT_NOT_NULL(test, ttm_sys_man); in ttm_device_init_basic() 37 KUNIT_EXPECT_TRUE(test, ttm_sys_man->use_tt); in ttm_device_init_basic() [all …]
|
/linux-6.6.21/security/apparmor/ |
D | policy_unpack_test.c | 55 struct kunit *test, size_t buf_size) in build_aa_ext_struct() argument 60 buf = kunit_kzalloc(test, buf_size, GFP_USER); in build_aa_ext_struct() 61 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, buf); in build_aa_ext_struct() 63 e = kunit_kmalloc(test, sizeof(*e), GFP_USER); in build_aa_ext_struct() 64 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, e); in build_aa_ext_struct() 111 static int policy_unpack_test_init(struct kunit *test) in policy_unpack_test_init() argument 116 puf = kunit_kmalloc(test, sizeof(*puf), GFP_USER); in policy_unpack_test_init() 117 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, puf); in policy_unpack_test_init() 120 puf->e = build_aa_ext_struct(puf, test, e_size); in policy_unpack_test_init() 122 test->priv = puf; in policy_unpack_test_init() [all …]
|
/linux-6.6.21/drivers/mmc/host/ |
D | sdhci-of-aspeed-test.c | 6 static void aspeed_sdhci_phase_ddr52(struct kunit *test) in aspeed_sdhci_phase_ddr52() argument 10 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() [all …]
|
/linux-6.6.21/drivers/mmc/core/ |
D | mmc_test.c | 178 static int mmc_test_set_blksize(struct mmc_test_card *test, unsigned size) in mmc_test_set_blksize() argument 180 return mmc_set_blocklen(test->card, size); in mmc_test_set_blksize() 189 static void mmc_test_prepare_sbc(struct mmc_test_card *test, in mmc_test_prepare_sbc() argument 192 struct mmc_card *card = test->card; in mmc_test_prepare_sbc() 209 static void mmc_test_prepare_mrq(struct mmc_test_card *test, in mmc_test_prepare_mrq() argument 225 if (!mmc_card_blockaddr(test->card)) in mmc_test_prepare_mrq() 244 mmc_test_prepare_sbc(test, mrq, blocks); in mmc_test_prepare_mrq() 246 mmc_set_data_timeout(mrq->data, test->card); in mmc_test_prepare_mrq() 258 static int mmc_test_wait_busy(struct mmc_test_card *test) in mmc_test_wait_busy() argument 268 cmd.arg = test->card->rca << 16; in mmc_test_wait_busy() [all …]
|