Home
last modified time | relevance | path

Searched +defs:test +defs:msg (Results 1 – 25 of 39) sorted by relevance

12

/linux/drivers/gpu/drm/xe/tests/
H A Dxe_guc_relay_test.c25 static int relay_test_init(struct kunit *test) in relay_test_init()
62 const u32 *msg, u32 len, in replacement_xe_guc_ct_send_recv_always_fails()
65 struct kunit *test = kunit_get_current_test(); in replacement_xe_guc_ct_send_recv_always_fails() local
75 const u32 *msg, u32 len, in replacement_xe_guc_ct_send_recv_expects_pf2guc_relay()
78 struct kunit *test = kunit_get_current_test(); in replacement_xe_guc_ct_send_recv_expects_pf2guc_relay() local
120 static void pf_rejects_guc2pf_too_short(struct kunit *test) in pf_rejects_guc2pf_too_short()
124 const u32 *msg = test_guc2pf; in pf_rejects_guc2pf_too_short() local
129 static void pf_rejects_guc2pf_too_long(struct kunit *test) in pf_rejects_guc2pf_too_long()
133 const u32 *msg = test_guc2pf; in pf_rejects_guc2pf_too_long() local
138 static void pf_rejects_guc2pf_no_payload(struct kunit *test) in pf_rejects_guc2pf_no_payload()
[all …]
/linux/drivers/platform/chrome/
H A Dcros_ec_proto_test.c22 struct cros_ec_command *msg; member
26 static void cros_ec_proto_test_prepare_tx_legacy_normal(struct kunit *test) in cros_ec_proto_test_prepare_tx_legacy_normal()
30 struct cros_ec_command *msg = priv->msg; in cros_ec_proto_test_prepare_tx_legacy_normal() local
69 static void cros_ec_proto_test_prepare_tx_legacy_bad_msg_outsize(struct kunit *test) in cros_ec_proto_test_prepare_tx_legacy_bad_msg_outsize()
73 struct cros_ec_command *msg = priv->msg; in cros_ec_proto_test_prepare_tx_legacy_bad_msg_outsize() local
84 static void cros_ec_proto_test_prepare_tx_normal(struct kunit *test) in cros_ec_proto_test_prepare_tx_normal()
88 struct cros_ec_command *msg = priv->msg; in cros_ec_proto_test_prepare_tx_normal() local
125 static void cros_ec_proto_test_prepare_tx_bad_msg_outsize(struct kunit *test) in cros_ec_proto_test_prepare_tx_bad_msg_outsize()
129 struct cros_ec_command *msg = priv->msg; in cros_ec_proto_test_prepare_tx_bad_msg_outsize() local
138 static void cros_ec_proto_test_check_result(struct kunit *test) in cros_ec_proto_test_check_result()
[all …]
H A Dcros_ec_proto_test_util.c24 int cros_kunit_ec_xfer_mock(struct cros_ec_device *ec_dev, struct cros_ec_command *msg) in cros_kunit_ec_xfer_mock()
52 int cros_kunit_ec_cmd_xfer_mock(struct cros_ec_device *ec_dev, struct cros_ec_command *msg) in cros_kunit_ec_cmd_xfer_mock()
58 int cros_kunit_ec_pkt_xfer_mock(struct cros_ec_device *ec_dev, struct cros_ec_command *msg) in cros_kunit_ec_pkt_xfer_mock()
64 struct ec_xfer_mock *cros_kunit_ec_xfer_mock_add(struct kunit *test, size_t size) in cros_kunit_ec_xfer_mock_add()
69 struct ec_xfer_mock *cros_kunit_ec_xfer_mock_addx(struct kunit *test, in cros_kunit_ec_xfer_mock_addx()
H A Dcros_ec_proto_test_util.h13 struct kunit *test; member
26 struct cros_ec_command msg; member
/linux/drivers/spi/
H A Dspi-loopback-test.c441 struct spi_message *msg, in spi_test_dump_message()
507 struct spi_message *msg, in spi_check_rx_ranges()
572 struct spi_test *test) in spi_test_check_elapsed_time()
602 struct spi_message *msg, in spi_test_check_loopback_result()
707 struct spi_test *test) in spi_test_fill_pattern()
791 struct spi_test *test, in _spi_test_run_iter()
794 struct spi_message *msg = &test->msg; in _spi_test_run_iter() local
860 struct spi_test test; in spi_test_run_iter() local
932 int spi_test_execute_msg(struct spi_device *spi, struct spi_test *test, in spi_test_execute_msg()
935 struct spi_message *msg = &test->msg; in spi_test_execute_msg() local
[all …]
/linux/net/mctp/test/
H A Dsock-test.c16 static void __mctp_sock_test_init(struct kunit *test, in __mctp_sock_test_init()
54 static void __mctp_sock_test_fini(struct kunit *test, in __mctp_sock_test_fini()
77 struct kunit *test = kunit_get_current_test(); in mctp_test_sock_local_output() local
91 static void mctp_test_sock_sendmsg_extaddr(struct kunit *test) in mctp_test_sock_sendmsg_extaddr()
104 struct msghdr msg = { 0 }; in mctp_test_sock_sendmsg_extaddr() local
147 static void mctp_test_sock_recvmsg_extaddr(struct kunit *test) in mctp_test_sock_recvmsg_extaddr()
159 struct msghdr msg; in mctp_test_sock_recvmsg_extaddr() local
315 static void mctp_test_bind_invalid(struct kunit *test) in mctp_test_bind_invalid()
331 mctp_test_bind_conflicts_inner(struct kunit *test, in mctp_test_bind_conflicts_inner()
359 static void mctp_test_bind_conflicts(struct kunit *test) in mctp_test_bind_conflicts()
[all …]
H A Droute-test.c20 static void mctp_test_fragment(struct kunit *test) in mctp_test_fragment()
131 static void mctp_test_rx_input(struct kunit *test) in mctp_test_rx_input()
180 static void __mctp_route_test_init(struct kunit *test, in __mctp_route_test_init()
216 static void __mctp_route_test_fini(struct kunit *test, in __mctp_route_test_fini()
232 static void mctp_test_route_input_sk(struct kunit *test) in mctp_test_route_input_sk()
301 static void mctp_test_route_input_sk_reasm(struct kunit *test) in mctp_test_route_input_sk_reasm()
435 static void mctp_test_route_input_sk_keys(struct kunit *test) in mctp_test_route_input_sk_keys()
578 } msg; member
582 mctp_test_route_input_multiple_nets_bind_init(struct kunit *test, in mctp_test_route_input_multiple_nets_bind_init()
597 mctp_test_route_input_multiple_nets_bind_fini(struct kunit *test, in mctp_test_route_input_multiple_nets_bind_fini()
[all …]
/linux/tools/testing/selftests/bpf/
H A Dtest_progs.c369 static void print_test_result(const struct prog_test_def *test, const struct test_state *test_state) in print_test_result()
428 static void dump_test_log(const struct prog_test_def *test, in dump_test_log()
549 struct prog_test_def *test = env.test; in test__end_subtest() local
575 struct prog_test_def *test = env.test; in test__start_subtest_with_desc() local
695 int bpf_find_map(const char *test, struct bpf_object *obj, const char *name) in bpf_find_map()
1373 static inline const char *str_msg(const struct msg *msg, char *buf) in str_msg()
1405 static int send_message(int sock, const struct msg *msg) in send_message()
1414 static int recv_message(int sock, struct msg *msg) in recv_message()
1438 struct prog_test_def *test = &prog_test_defs[test_num]; in run_one_test() local
1483 static int read_prog_test_msg(int sock_fd, struct msg *msg, enum msg_type type) in read_prog_test_msg()
[all …]
H A Dtest_sockmap.c391 static void msg_free_iov(struct msghdr *msg) in msg_free_iov()
402 static int msg_alloc_iov(struct msghdr *msg, in msg_alloc_iov()
471 static int msg_verify_data(struct msghdr *msg, int size, int chunk_sz, in msg_verify_data()
542 struct msghdr msg = {0}, msg_peek = {0}; in msg_loop() local
943 static int run_options(struct sockmap_options *options, int cg_fd, int test) in run_options()
1247 static char *test_to_str(int test) in test_to_str()
1310 static int __test_exec(int cgrp, int test, struct sockmap_options *opt) in __test_exec()
1771 struct _test test[] = { variable
1887 int test = SELFTESTS; in main() local
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/tests/
H A Damdgpu_dm_helpers_test.c32 static void dm_test_edid_extract_panel_id_basic(struct kunit *test) in dm_test_edid_extract_panel_id_basic()
59 static void dm_test_edid_extract_panel_id_zeros(struct kunit *test) in dm_test_edid_extract_panel_id_zeros()
76 static struct edid *dm_test_edid_with_panel_id(struct kunit *test, u32 panel_id) in dm_test_edid_with_panel_id()
95 static struct dc_link *dm_test_quirk_link(struct kunit *test) in dm_test_quirk_link()
113 static void dm_test_apply_edid_quirks_dpcd_poweroff_delay(struct kunit *test) in dm_test_apply_edid_quirks_dpcd_poweroff_delay()
129 static void dm_test_apply_edid_quirks_disable_fams(struct kunit *test) in dm_test_apply_edid_quirks_disable_fams()
145 static void dm_test_apply_edid_quirks_remove_sink_ext_caps(struct kunit *test) in dm_test_apply_edid_quirks_remove_sink_ext_caps()
161 static void dm_test_apply_edid_quirks_disable_colorimetry(struct kunit *test) in dm_test_apply_edid_quirks_disable_colorimetry()
177 static void dm_test_apply_edid_quirks_skip_phy_ssc(struct kunit *test) in dm_test_apply_edid_quirks_skip_phy_ssc()
193 static void dm_test_apply_edid_quirks_unknown_noop(struct kunit *test) in dm_test_apply_edid_quirks_unknown_noop()
[all …]
/linux/tools/testing/selftests/kvm/arm64/
H A Dpage_fault_test.c252 static bool guest_prepare(struct test_desc *test) in guest_prepare()
266 static void guest_test_check(struct test_desc *test) in guest_test_check()
278 static void guest_code(struct test_desc *test) in guest_code()
309 static int uffd_generic_handler(int uffd_mode, int uffd, struct uffd_msg *msg, in uffd_generic_handler()
342 static int uffd_pt_handler(int mode, int uffd, struct uffd_msg *msg) in uffd_pt_handler()
347 static int uffd_data_handler(int mode, int uffd, struct uffd_msg *msg) in uffd_data_handler()
366 struct test_desc *test = p->test_desc; in setup_uffd() local
387 static void free_uffd(struct test_desc *test, struct uffd_desc *pt_uffd, in free_uffd()
399 static int uffd_no_handler(int mode, int uffd, struct uffd_msg *msg) in uffd_no_handler()
541 struct test_desc *test) in setup_abort_handlers()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsock_addr.c83 char msg[10]; member
163 socklen_t addrlen, const char *msg, int msglen) in send_msg_op()
202 char *msg, int msglen) in kernel_sendmsg()
208 char *msg, int msglen) in sock_sendmsg()
292 char *msg, int msglen) in user_sendmsg()
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 Dsk_lookup.c65 struct test { struct
66 const char *desc;
67 struct bpf_program *lookup_prog;
68 struct bpf_program *reuseport_prog;
69 struct bpf_map *sock_map;
70 int sotype;
71 struct inet_addr connect_to;
72 struct inet_addr listen_at;
73 enum server accept_on;
74 bool reuseport_has_conns; /* Add a connected socket to reuseport group */
[all …]
/linux/drivers/gpu/drm/tests/
H A Ddrm_plane_helper_test.c28 const char *msg; member
47 static int drm_plane_helper_init(struct kunit *test) in drm_plane_helper_init()
82 static void check_src_eq(struct kunit *test, struct drm_plane_state *plane_state, in check_src_eq()
101 static void check_crtc_eq(struct kunit *test, struct drm_plane_state *plane_state, in check_crtc_eq()
112 static void drm_test_check_plane_state(struct kunit *test) in drm_test_check_plane_state()
254 static void drm_test_check_invalid_plane_state(struct kunit *test) in drm_test_check_invalid_plane_state()
/linux/net/mptcp/
H A Dcrypto_test.c8 char *msg; member
33 static void mptcp_crypto_test_basic(struct kunit *test) in mptcp_crypto_test_basic()
38 u8 msg[8]; in mptcp_crypto_test_basic() local
/linux/drivers/char/ipmi/
H A Dssif_bmc.c139 struct ipmi_ssif_msg msg; in ssif_bmc_read() local
181 struct ipmi_ssif_msg msg; in ssif_bmc_write() local
900 static int ssif_bmc_test_init(struct kunit *test) in ssif_bmc_test_init()
922 static void ssif_bmc_test_exit(struct kunit *test) in ssif_bmc_test_exit()
943 static void ssif_bmc_test_singlepart_req(struct kunit *test) in ssif_bmc_test_singlepart_req()
970 static void ssif_bmc_test_restart_write_without_stop(struct kunit *test) in ssif_bmc_test_restart_write_without_stop()
993 static void ssif_bmc_test_restart_after_invalid_command(struct kunit *test) in ssif_bmc_test_restart_after_invalid_command()
1013 static void ssif_bmc_test_singlepart_read_response_completion(struct kunit *test) in ssif_bmc_test_singlepart_read_response_completion()
1060 static void ssif_bmc_test_stop_during_start_discards_partial_request(struct kunit *test) in ssif_bmc_test_stop_during_start_discards_partial_request()
1094 static void ssif_bmc_test_read_interrupts_partial_write(struct kunit *test) in ssif_bmc_test_read_interrupts_partial_write()
[all …]
/linux/tools/testing/selftests/net/
H A Dudpgso.c356 static bool __send_one(int fd, struct msghdr *msg, int flags) in __send_one()
379 struct msghdr msg = {0}; in send_one() local
429 static void run_one(struct testcase *test, int fdt, int fdr, in run_one()
499 struct testcase *tests, *test; in run_all() local
/linux/drivers/i2c/busses/
H A Di2c-iop3xx.c46 iic_cook_addr(struct i2c_msg *msg) in iic_cook_addr()
193 all_bits_clear(unsigned test, unsigned mask) in all_bits_clear()
199 any_bits_set(unsigned test, unsigned mask) in any_bits_set()
231 struct i2c_msg *msg) in iop3xx_i2c_send_target_addr()
/linux/tools/testing/selftests/x86/
H A Dlam.c87 const char *msg; member
288 int handle_max_bits(struct testcases *test) in handle_max_bits()
307 static int handle_malloc(struct testcases *test) in handle_malloc()
339 static int handle_mmap(struct testcases *test) in handle_mmap()
375 static int handle_syscall(struct testcases *test) in handle_syscall()
401 static int get_user_syscall(struct testcases *test) in get_user_syscall()
738 int handle_uring(struct testcases *test) in handle_uring()
756 static int fork_test(struct testcases *test) in fork_test()
776 static int handle_execve(struct testcases *test) in handle_execve()
812 static int handle_inheritance(struct testcases *test) in handle_inheritance()
[all …]
/linux/tools/testing/selftests/mm/
H A Dva_high_addr_switch.c30 const char *msg; global() member
260 run_test(struct testcase * test,int count) run_test() argument
[all...]
H A Duffd-unit-tests.c185 uffd_feature_supported(uffd_test_case_t * test) uffd_feature_supported() argument
220 struct uffd_msg msg = { 0 }; fork_event_consumer() local
248 struct pin_longterm_test test = { pin_pages() local
994 uffd_poison_handle_fault(uffd_global_test_opts_t * gopts,struct uffd_msg * msg,struct uffd_args * args) uffd_poison_handle_fault() argument
1086 uffd_move_handle_fault_common(uffd_global_test_opts_t * gopts,struct uffd_msg * msg,struct uffd_args * args,unsigned long len) uffd_move_handle_fault_common() argument
1106 uffd_move_handle_fault(uffd_global_test_opts_t * gopts,struct uffd_msg * msg,struct uffd_args * args) uffd_move_handle_fault() argument
1112 uffd_move_pmd_handle_fault(uffd_global_test_opts_t * gopts,struct uffd_msg * msg,struct uffd_args * args) uffd_move_pmd_handle_fault() argument
1123 uffd_move_test_common(uffd_global_test_opts_t * gopts,uffd_test_args_t * targs,unsigned long chunk_size,void (* handle_fault)(struct uffd_global_test_opts * gopts,struct uffd_msg * msg,struct uffd_args * args)) uffd_move_test_common() argument
1360 struct uffd_msg msg = { 0 }; uffd_consume_message() local
1710 uffd_test_case_t *test; main() local
[all...]
/linux/tools/testing/selftests/drivers/net/hw/
H A Ddevlink_port_split.py169 def test(cond, msg): argument
/linux/tools/testing/selftests/net/af_unix/
H A Dscm_pidfd.c137 static int parse_cmsg(struct msghdr *msg, struct cmsg_data *res) in parse_cmsg()
184 struct msghdr msg = { 0 }; in cmsg_check() local
239 struct msghdr msg = { 0 }; in cmsg_check_dead() local
486 TEST_F(scm_pidfd, test) in TEST_F() argument
/linux/tools/testing/selftests/nolibc/
H A Dnolibc-test.c77 struct test { global() struct
78 nametest global() argument
79 functest global() argument
167 const char *msg; result() local
705 int test; run_startup() local
1144 const char *const msg = "hello, nolibc"; test_pipe() local
1284 int test; run_syscall() local
1433 int test; run_stdlib() local
1702 int test; run_printf() local
1875 is_setting_valid(char * test) is_setting_valid() argument
1911 char *test; main() local
[all...]
/linux/tools/testing/selftests/tty/
H A Dtty_tiocsti_test.c251 struct msghdr msg = { 0 }; in send_fd_via_socket() local
275 struct msghdr msg = { 0 }; in recv_fd_via_socket() local
566 TEST_F(tiocsti, test) in TEST_F() argument

12