| /linux-6.15/drivers/gpu/drm/vc4/tests/ |
| H A D | vc4_test_pv_muxing.c | 26 static bool check_fifo_conflict(struct kunit *test, in check_fifo_conflict() 48 enum vc4_encoder_type type; member 63 enum vc4_encoder_type type, in __check_encoder_constraints() 122 get_vc4_crtc_state_for_encoder(struct kunit *test, in get_vc4_crtc_state_for_encoder() 124 enum vc4_encoder_type type) in get_vc4_crtc_state_for_encoder() 144 static bool check_channel_for_encoder(struct kunit *test, in check_channel_for_encoder() 146 enum vc4_encoder_type type, in check_channel_for_encoder() 147 bool (*check_fn)(enum vc4_encoder_type type, unsigned int channel)) in check_channel_for_encoder() 676 static void drm_vc4_test_pv_muxing(struct kunit *test) in drm_vc4_test_pv_muxing() 705 static void drm_vc4_test_pv_muxing_invalid(struct kunit *test) in drm_vc4_test_pv_muxing_invalid() [all …]
|
| H A D | vc4_mock_output.c | 23 struct vc4_dummy_output *vc4_dummy_output(struct kunit *test, in vc4_dummy_output() 64 int vc4_mock_atomic_add_output(struct kunit *test, in vc4_mock_atomic_add_output() 66 enum vc4_encoder_type type) in vc4_mock_atomic_add_output() 102 int vc4_mock_atomic_del_output(struct kunit *test, in vc4_mock_atomic_del_output() 104 enum vc4_encoder_type type) in vc4_mock_atomic_del_output()
|
| H A D | vc4_mock_plane.c | 10 struct drm_plane *vc4_dummy_plane(struct kunit *test, struct drm_device *drm, in vc4_dummy_plane() 11 enum drm_plane_type type) in vc4_dummy_plane()
|
| /linux-6.15/mm/kfence/ |
| H A D | kfence_test.c | 36 #define KFENCE_TEST_REQUIRES(test, cond) do { \ argument 84 enum kfence_error_type type; /* The type or error. */ member 217 enum kmalloc_cache_type type = kmalloc_type(GFP_KERNEL, 0); in kmalloc_cache_alignment() local 288 enum kmalloc_cache_type type = kmalloc_type(GFP_KERNEL, _RET_IP_); in test_alloc() local 403 static void test_double_free(struct kunit *test) in test_double_free() 435 static void test_corruption(struct kunit *test) in test_corruption() 549 static void test_free_bulk(struct kunit *test) in test_free_bulk() 622 static void test_gfpzero(struct kunit *test) in test_gfpzero() 709 static void test_krealloc(struct kunit *test) in test_krealloc() 820 static int test_init(struct kunit *test) in test_init() [all …]
|
| /linux-6.15/lib/ |
| H A D | test-kstrtox.c | 5 #define for_each_test(i, test) \ argument 13 #define DEFINE_TEST_FAIL(test) \ argument 16 #define DECLARE_TEST_OK(type, test_type) \ argument 23 #define DEFINE_TEST_OK(type, test) \ argument 26 #define TEST_FAIL(fn, type, fmt, test) \ argument 45 #define TEST_OK(fn, type, fmt, test) \ argument
|
| /linux-6.15/lib/kunit/ |
| H A D | test.c | 101 static void kunit_print_test_stats(struct kunit *test, in kunit_print_test_stats() 275 enum kunit_assert_type type, const struct kunit_assert *assert, in kunit_fail() 299 void __noreturn __kunit_abort(struct kunit *test) in __kunit_abort() 315 enum kunit_assert_type type, in __kunit_do_failed_assertion() 424 struct kunit *test; member 432 struct kunit *test = ctx->test; in kunit_try_run_case() local 449 struct kunit *test = ctx->test; in kunit_try_run_case_cleanup() local 460 struct kunit *test = ctx->test; in kunit_catch_run_case_cleanup() local 491 struct kunit *test = ctx->test; in kunit_catch_run_case() local 520 struct kunit *test) in kunit_run_case_catch_errors() [all …]
|
| /linux-6.15/tools/testing/selftests/bpf/prog_tests/ |
| H A D | select_reuseport.c | 455 static void test_err_skb_data(int type, sa_family_t family) in test_err_skb_data() 472 static void test_pass(int type, sa_family_t family) in test_pass() 485 static void test_syncookie(int type, sa_family_t family) in test_syncookie() 520 static void test_pass_on_err(int type, sa_family_t family) in test_pass_on_err() 531 static void test_detach_bpf(int type, sa_family_t family) in test_detach_bpf() 728 static const char *maptype_str(enum bpf_map_type type) in maptype_str() 770 const struct test { in test_config() struct 771 void (*fn)(int sotype, sa_family_t family); in test_config() 772 const char *name; in test_config() 773 bool no_inner_map; in test_config() [all …]
|
| H A D | test_tunnel.c | 229 static int set_ipip_encap(const char *ipproto, const char *type) in set_ipip_encap() 257 const char *ipproto, *type; in add_ipip_tunnel() local 395 const char *type, const char *opt) in add_ipv4_tunnel() 440 const char *type, const char *opt) in add_ipv6_tunnel() 456 const char *type, const char *opt) in add_geneve_tunnel() 472 const char *type, const char *opt) in add_ip6geneve_tunnel() 838 static void test_gre_tunnel(enum gre_test test) in test_gre_tunnel() 889 static void test_ip6gre_tunnel(enum ip6gre_test test) in test_ip6gre_tunnel() 931 static void test_erspan_tunnel(enum erspan_test test) in test_erspan_tunnel() 967 static void test_ip6erspan_tunnel(enum erspan_test test) in test_ip6erspan_tunnel() [all …]
|
| H A D | cls_redirect.c | 62 static bool set_up_conn(const struct sockaddr *addr, socklen_t len, int type, in set_up_conn() 138 enum type { enum 166 enum type type; member 173 static int test_str(void *buf, size_t len, const struct test_cfg *test, in test_str() 176 const char *family_str, *type, *conn, *hops, *result, *flags; in test_str() local 244 static size_t build_input(const struct test_cfg *test, void *const buf, in build_input() 368 struct test_cfg *test = &tests[i]; in test_cls_redirect_common() local
|
| H A D | sock_addr.c | 73 int type; member 116 static int kernel_init_sock(int af, int type, int protocol) in kernel_init_sock() 223 int kernel_connect_to_addr(int type, const struct sockaddr_storage *addr, socklen_t addrlen, in kernel_connect_to_addr() 245 int kernel_start_server(int family, int type, const char *addr_str, __u16 port, in kernel_start_server() 349 enum sock_addr_test_type type; member 2279 static int test_bind(struct sock_addr_test *test) in test_bind() 2320 static int test_connect(struct sock_addr_test *test) in test_connect() 2380 static int test_xmsg(struct sock_addr_test *test) in test_xmsg() 2485 static int test_getsockname(struct sock_addr_test *test) in test_getsockname() 2513 static int test_getpeername(struct sock_addr_test *test) in test_getpeername() [all …]
|
| H A D | flow_dissector_reattach.c | 42 static int load_prog(enum bpf_prog_type type) in load_prog() 574 struct test { in run_tests() struct 575 const char *test_name; in run_tests() 576 void (*test_func)(int netns, int prog1, int prog2); in run_tests()
|
| /linux-6.15/security/landlock/ |
| H A D | audit.c | 52 get_blocker(const enum landlock_request_type type, in get_blocker() 88 const enum landlock_request_type type, in log_blockers() 157 static void test_get_hierarchy(struct kunit *const test) in test_get_hierarchy() 219 static void test_get_denied_layer(struct kunit *const test) in test_get_denied_layer() 311 static void test_get_layer_from_deny_masks(struct kunit *const test) in test_get_layer_from_deny_masks()
|
| /linux-6.15/drivers/gpu/drm/tests/ |
| H A D | drm_connector_test.c | 60 static int drm_test_connector_init(struct kunit *test) in drm_test_connector_init() 93 static void drm_test_drmm_connector_init(struct kunit *test) in drm_test_drmm_connector_init() 109 static void drm_test_drmm_connector_init_null_ddc(struct kunit *test) in drm_test_drmm_connector_init_null_ddc() 125 static void drm_test_drmm_connector_init_type_valid(struct kunit *test) in drm_test_drmm_connector_init_type_valid() 162 static void drm_connector_init_type_desc(const unsigned int *type, char *desc) in drm_connector_init_type_desc() 196 static void drm_test_drm_connector_dynamic_init(struct kunit *test) in drm_test_drm_connector_dynamic_init() 252 static void test_connector_property(struct kunit *test, in test_connector_property() 648 static void drm_test_connector_hdmi_init_valid(struct kunit *test) in drm_test_connector_hdmi_init_valid() 940 static void drm_test_connector_hdmi_init_bpc_8(struct kunit *test) in drm_test_connector_hdmi_init_bpc_8() 981 static void drm_test_connector_hdmi_init_bpc_10(struct kunit *test) in drm_test_connector_hdmi_init_bpc_10() [all …]
|
| /linux-6.15/drivers/iio/test/ |
| H A D | iio-test-gts.c | 99 static struct device *__test_init_iio_gain_scale(struct kunit *test, in __test_init_iio_gain_scale() 121 #define test_init_iio_gain_scale(test, gts) \ argument 126 static void test_init_iio_gts_invalid(struct kunit *test) in test_init_iio_gts_invalid() 174 static void test_iio_gts_find_gain_for_scale_using_time(struct kunit *test) in test_iio_gts_find_gain_for_scale_using_time() 235 static void test_iio_gts_find_new_gain_sel_by_old_gain_time(struct kunit *test) in test_iio_gts_find_new_gain_sel_by_old_gain_time() 305 static void test_iio_find_closest_gain_low(struct kunit *test) in test_iio_find_closest_gain_low() 350 static void test_iio_gts_total_gain_to_scale(struct kunit *test) in test_iio_gts_total_gain_to_scale() 376 static void test_iio_gts_chk_times(struct kunit *test, const int *vals) in test_iio_gts_chk_times() 385 static void test_iio_gts_chk_scales_all(struct kunit *test, struct iio_gts *gts, in test_iio_gts_chk_scales_all() 448 static void test_iio_gts_avail_test(struct kunit *test) in test_iio_gts_avail_test() [all …]
|
| /linux-6.15/net/mctp/test/ |
| H A D | route-test.c | 63 static void mctp_test_route_destroy(struct kunit *test, in mctp_test_route_destroy() 141 static void mctp_test_fragment(struct kunit *test) in mctp_test_fragment() 246 static void mctp_test_rx_input(struct kunit *test) in mctp_test_rx_input() 293 static void __mctp_route_test_init(struct kunit *test, in __mctp_route_test_init() 328 static void __mctp_route_test_fini(struct kunit *test, in __mctp_route_test_fini() 340 u8 type; member 689 u8 type; member 1034 static void mctp_test_flow_init(struct kunit *test, in mctp_test_flow_init() 1072 static void mctp_test_flow_fini(struct kunit *test, in mctp_test_flow_fini() 1081 static void mctp_test_packet_flow(struct kunit *test) in mctp_test_packet_flow() [all …]
|
| /linux-6.15/net/wireless/tests/ |
| H A D | util.h | 34 struct kunit *test; member 43 #define T_WIPHY(test, ctx) ({ \ argument 57 #define t_skb_remove_member(skb, type, member) do { \ argument
|
| /linux-6.15/drivers/gpu/drm/xe/tests/ |
| H A D | xe_pci.c | 59 static void fake_read_gmdid(struct xe_device *xe, enum xe_gmdid_type type, in fake_read_gmdid() 62 struct kunit *test = kunit_get_current_test(); in fake_read_gmdid() local 76 struct kunit *test = kunit_get_current_test(); in xe_pci_fake_device_init() local
|
| /linux-6.15/drivers/misc/ |
| H A D | pci_endpoint_test.c | 141 struct pci_endpoint_test *test = dev_id; in pci_endpoint_test_irqhandler() local 162 int type) in pci_endpoint_test_alloc_irq_vectors() 278 static int pci_endpoint_test_bar(struct pci_endpoint_test *test, in pci_endpoint_test_bar() 377 static int pci_endpoint_test_bars(struct pci_endpoint_test *test) in pci_endpoint_test_bars() 404 static int pci_endpoint_test_intx_irq(struct pci_endpoint_test *test) in pci_endpoint_test_intx_irq() 421 static int pci_endpoint_test_msi_irq(struct pci_endpoint_test *test, in pci_endpoint_test_msi_irq() 466 static int pci_endpoint_test_copy(struct pci_endpoint_test *test, in pci_endpoint_test_copy() 603 static int pci_endpoint_test_write(struct pci_endpoint_test *test, in pci_endpoint_test_write() 701 static int pci_endpoint_test_read(struct pci_endpoint_test *test, in pci_endpoint_test_read() 928 struct pci_endpoint_test *test; in pci_endpoint_test_probe() local [all …]
|
| /linux-6.15/kernel/kcsan/ |
| H A D | kcsan_test.c | 35 #define KCSAN_TEST_REQUIRES(test, cond) do { \ argument 151 int type; /* Access type, see KCSAN_ACCESS definitions. */ member 713 static void test_basic(struct kunit *test) in test_basic() 773 static void test_novalue_change(struct kunit *test) in test_novalue_change() 831 static void test_unknown_origin(struct kunit *test) in test_unknown_origin() 1004 static void test_data_race(struct kunit *test) in test_data_race() 1226 static void test_atomic_builtins(struct kunit *test) in test_atomic_builtins() 1296 static void test_correct_barrier(struct kunit *test) in test_correct_barrier() 1315 static void test_missing_barrier(struct kunit *test) in test_missing_barrier() 1511 static int test_init(struct kunit *test) in test_init() [all …]
|
| /linux-6.15/tools/testing/radix-tree/ |
| H A D | maple.c | 63 struct rcu_test_struct2 *test; member 845 enum maple_type type, unsigned long *range_min, in mas_node_walk() 921 enum maple_type type; in mas_descend_walk() local 34362 unsigned int id, struct rcu_test_struct2 *test) in rcu_reader_setup() 34377 struct rcu_test_struct2 *test = reader->test; in rcu_reader_fwd() local 34487 struct rcu_test_struct2 *test = reader->test; in rcu_reader_rev() local 34749 struct rcu_test_struct2 test; in rcu_stress() local 34997 struct rcu_test_struct3 *test = ptr; in rcu_slot_store_reader() local 35020 struct rcu_test_struct3 test = {.stop = false, .mt = mt}; in run_check_rcu_slot_store() local 35902 enum maple_type type; in compare_node() local [all …]
|
| /linux-6.15/drivers/base/regmap/ |
| H A D | regmap-kunit.c | 50 static const char *regcache_type_name(enum regcache_type type) in regcache_type_name() 227 struct kunit *test = dev_get_drvdata(dev); in reg_5_false() local 258 static void bulk_write(struct kunit *test) in bulk_write() 291 static void bulk_read(struct kunit *test) in bulk_read() 320 static void multi_write(struct kunit *test) in multi_write() 359 static void multi_read(struct kunit *test) in multi_read() 693 static void stride(struct kunit *test) in stride() 1198 static void cache_drop(struct kunit *test) in cache_drop() 1785 static void raw_write(struct kunit *test) in raw_write() 1891 static void raw_sync(struct kunit *test) in raw_sync() [all …]
|
| /linux-6.15/drivers/thunderbolt/ |
| H A D | test.c | 31 static void kunit_ida_init(struct kunit *test, struct ida *ida) in kunit_ida_init() 72 static struct tb_switch *alloc_host(struct kunit *test) in alloc_host() 423 static void tb_test_path_basic(struct kunit *test) in tb_test_path_basic() 476 enum tb_port_type type; member 1334 static void tb_test_tunnel_pcie(struct kunit *test) in tb_test_tunnel_pcie() 1389 static void tb_test_tunnel_dp(struct kunit *test) in tb_test_tunnel_dp() 1603 static void tb_test_tunnel_3dp(struct kunit *test) in tb_test_tunnel_3dp() 1668 static void tb_test_tunnel_usb3(struct kunit *test) in tb_test_tunnel_usb3() 1789 static void tb_test_tunnel_dma(struct kunit *test) in tb_test_tunnel_dma() 1832 static void tb_test_tunnel_dma_rx(struct kunit *test) in tb_test_tunnel_dma_rx() [all …]
|
| /linux-6.15/tools/testing/selftests/mqueue/ |
| H A D | mq_perf_tests.c | 270 static inline void getr(int type, struct rlimit *rlim) in getr() 276 static inline void setr(int type, struct rlimit *rlim) in setr() 375 struct test { struct 376 char *desc; 377 void (*func)(int *);
|
| /linux-6.15/sound/soc/ |
| H A D | soc-ops-test.c | 68 struct kunit *test; member 307 static const char *control_type_str(const snd_ctl_elem_type_t type) in control_type_str() 382 static int soc_ops_test_init(struct kunit *test) in soc_ops_test_init() 414 static void soc_ops_test_exit(struct kunit *test) in soc_ops_test_exit() 432 static void soc_ops_test_info(struct kunit *test) in soc_ops_test_info() 476 static void soc_ops_test_access(struct kunit *test) in soc_ops_test_access()
|
| /linux-6.15/tools/testing/selftests/powerpc/mm/ |
| H A D | stack_expansion_ldst.c | 42 … consume_stack(unsigned long target_sp, unsigned long stack_high, int delta, enum access_type type) in consume_stack() 114 int child(unsigned int stack_used, int delta, enum access_type type) in child() 129 static int test_one(unsigned int stack_used, int delta, enum access_type type) in test_one() 157 static void test_one_type(enum access_type type, unsigned long page_size, unsigned long rlim_cur) in test_one_type() 171 static int test(void) in test() function
|