Home
last modified time | relevance | path

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

12

/linux/lib/tests/
H A Dlist-test.c18 static void list_test_list_init(struct kunit *test) in list_test_list_init()
47 static void list_test_list_add(struct kunit *test) in list_test_list_add()
61 static void list_test_list_add_tail(struct kunit *test) in list_test_list_add_tail()
75 static void list_test_list_del(struct kunit *test) in list_test_list_del()
91 static void list_test_list_replace(struct kunit *test) in list_test_list_replace()
109 static void list_test_list_replace_init(struct kunit *test) in list_test_list_replace_init()
130 static void list_test_list_swap(struct kunit *test) in list_test_list_swap()
152 static void list_test_list_del_init(struct kunit *test) in list_test_list_del_init()
169 static void list_test_list_del_init_careful(struct kunit *test) in list_test_list_del_init_careful()
189 static void list_test_list_move(struct kunit *test) in list_test_list_move()
[all …]
/linux/init/
H A Dinitramfs_test.c37 struct initramfs_test_cpio *c = &cs[i]; in fill_cpio() local
65 static void __init initramfs_test_extract(struct kunit *test) in initramfs_test_extract()
71 struct initramfs_test_cpio c[] = { { in initramfs_test_extract() local
148 static void __init initramfs_test_fname_overrun(struct kunit *test) in initramfs_test_fname_overrun()
152 struct initramfs_test_cpio c[] = { { in initramfs_test_fname_overrun() local
194 static void __init initramfs_test_data(struct kunit *test) in initramfs_test_data()
199 struct initramfs_test_cpio c[] = { { in initramfs_test_data() local
244 static void __init initramfs_test_csum(struct kunit *test) in initramfs_test_csum()
248 struct initramfs_test_cpio c[] = { { in initramfs_test_csum() local
305 static void __init initramfs_test_hardlink(struct kunit *test) in initramfs_test_hardlink()
[all …]
/linux/mm/damon/tests/
H A Dcore-kunit.h17 static void damon_test_regions(struct kunit *test) in damon_test_regions()
56 static void damon_test_target(struct kunit *test) in damon_test_target()
58 struct damon_ctx *c = damon_new_ctx(); in damon_test_target() local
90 static void damon_test_aggregate(struct kunit *test) in damon_test_aggregate()
145 static void damon_test_split_at(struct kunit *test) in damon_test_split_at()
179 static void damon_test_merge_two(struct kunit *test) in damon_test_merge_two()
237 static void damon_test_merge_regions_of(struct kunit *test) in damon_test_merge_regions_of()
274 static void damon_test_split_regions_of(struct kunit *test) in damon_test_split_regions_of()
326 static void damon_test_ops_registration(struct kunit *test) in damon_test_ops_registration()
328 struct damon_ctx *c = damon_new_ctx(); in damon_test_ops_registration() local
[all …]
/linux/mm/kmsan/
H A Dkmsan_test.c165 static void test_uninit_kmalloc(struct kunit *test) in test_uninit_kmalloc()
179 static void test_init_kmalloc(struct kunit *test) in test_init_kmalloc()
192 static void test_init_kzalloc(struct kunit *test) in test_init_kzalloc()
204 static void test_uninit_stack_var(struct kunit *test) in test_uninit_stack_var()
215 static void test_init_stack_var(struct kunit *test) in test_init_stack_var()
246 static void test_params(struct kunit *test) in test_params()
265 static int signed_sum3(int a, int b, int c) in signed_sum3()
274 static void test_uninit_multiple_params(struct kunit *test) in test_uninit_multiple_params()
277 volatile char b = 3, c; in test_uninit_multiple_params() local
298 static void test_uninit_kmsan_check_memory(struct kunit *test) in test_uninit_kmsan_check_memory()
[all …]
/linux/security/ipe/
H A Dpolicy_tests.c233 static void pol_to_desc(const struct policy_case *c, char *desc) in pol_to_desc()
247 static void ipe_parser_unsigned_test(struct kunit *test) in ipe_parser_unsigned_test()
274 static void ipe_parser_widestring_test(struct kunit *test) in ipe_parser_widestring_test()
/linux/net/mac80211/tests/
H A Dtpe.c29 struct cfg80211_chan_def c; member
125 static void subchan_offset(struct kunit *test) in subchan_offset()
261 static void psd_reorder(struct kunit *test) in psd_reorder()
/linux/tools/perf/tests/
H A Dkmod-path.c10 static int test(const char *path, bool alloc_name, bool kmod, in test() function
44 #define T(path, an, k, c, n) \ argument
47 #define M(path, c, e) \ argument
/linux/fs/ext4/
H A Dextents-test.c143 static void extents_kunit_exit(struct kunit *test) in extents_kunit_exit()
175 struct kunit *test = kunit_get_current_test(); in ext4_ext_zeroout_stub() local
198 struct kunit *test = kunit_get_current_test(); in ext4_issue_zeroout_stub() local
214 static int extents_kunit_init(struct kunit *test) in extents_kunit_init()
316 static int check_buffer(char *buf, int c, int size) in check_buffer()
337 static void ext4_map_create_blocks_helper(struct kunit *test, in ext4_map_create_blocks_helper()
354 static void test_split_convert(struct kunit *test) in test_split_convert()
965 static void ext_get_desc(struct kunit *test, const void *p, char *desc) in ext_get_desc()
974 static int test_split_convert_param_init(struct kunit *test) in test_split_convert_param_init()
983 static int test_convert_initialized_param_init(struct kunit *test) in test_convert_initialized_param_init()
[all …]
/linux/net/mctp/test/
H A Droute-test.c20 static void mctp_test_fragment(struct kunit *test) in mctp_test_fragment() argument
130 mctp_test_rx_input(struct kunit * test) mctp_test_rx_input() argument
182 __mctp_route_test_init(struct kunit * test,struct mctp_test_dev ** devp,struct mctp_dst * dst,struct mctp_test_pktqueue * tpq,struct socket ** sockp,unsigned int netid) __mctp_route_test_init() argument
215 __mctp_route_test_fini(struct kunit * test,struct mctp_test_dev * dev,struct mctp_dst * dst,struct mctp_test_pktqueue * tpq,struct socket * sock) __mctp_route_test_fini() argument
232 mctp_test_route_input_sk(struct kunit * test) mctp_test_route_input_sk() argument
303 mctp_test_route_input_sk_reasm(struct kunit * test) mctp_test_route_input_sk_reasm() argument
312 u8 c; mctp_test_route_input_sk_reasm() local
438 mctp_test_route_input_sk_keys(struct kunit * test) mctp_test_route_input_sk_keys() argument
452 u8 c; mctp_test_route_input_sk_keys() local
587 mctp_test_route_input_multiple_nets_bind_init(struct kunit * test,struct test_net * t) mctp_test_route_input_multiple_nets_bind_init() argument
604 mctp_test_route_input_multiple_nets_bind_fini(struct kunit * test,struct test_net * t) mctp_test_route_input_multiple_nets_bind_fini() argument
613 mctp_test_route_input_multiple_nets_bind(struct kunit * test) mctp_test_route_input_multiple_nets_bind() argument
654 mctp_test_route_input_multiple_nets_key_init(struct kunit * test,struct test_net * t) mctp_test_route_input_multiple_nets_key_init() argument
684 mctp_test_route_input_multiple_nets_key_fini(struct kunit * test,struct test_net * t) mctp_test_route_input_multiple_nets_key_fini() argument
694 mctp_test_route_input_multiple_nets_key(struct kunit * test) mctp_test_route_input_multiple_nets_key() argument
738 mctp_test_route_input_sk_fail_single(struct kunit * test) mctp_test_route_input_sk_fail_single() argument
776 mctp_test_route_input_sk_fail_frag(struct kunit * test) mctp_test_route_input_sk_fail_frag() argument
823 mctp_test_route_input_cloned_frag(struct kunit * test) mctp_test_route_input_cloned_frag() argument
930 mctp_test_flow_init(struct kunit * test,struct mctp_test_dev ** devp,struct mctp_dst * dst,struct mctp_test_pktqueue * tpq,struct socket ** sock,struct sk_buff ** skbp,unsigned int len) mctp_test_flow_init() argument
965 mctp_test_flow_fini(struct kunit * test,struct mctp_test_dev * dev,struct mctp_dst * dst,struct mctp_test_pktqueue * tpq,struct socket * sock) mctp_test_flow_fini() argument
975 mctp_test_packet_flow(struct kunit * test) mctp_test_packet_flow() argument
1009 mctp_test_fragment_flow(struct kunit * test) mctp_test_fragment_flow() argument
1051 mctp_test_packet_flow(struct kunit * test) mctp_test_packet_flow() argument
1056 mctp_test_fragment_flow(struct kunit * test) mctp_test_fragment_flow() argument
1063 mctp_test_route_output_key_create(struct kunit * test) mctp_test_route_output_key_create() argument
1134 mctp_test_route_extaddr_input(struct kunit * test) mctp_test_route_extaddr_input() argument
1184 mctp_test_route_gw_lookup(struct kunit * test) mctp_test_route_gw_lookup() argument
1214 mctp_test_route_gw_loop(struct kunit * test) mctp_test_route_gw_loop() argument
1270 mctp_test_route_gw_mtu(struct kunit * test) mctp_test_route_gw_mtu() argument
1321 struct kunit *test = current->kunit_test; test_dev_header_create() local
1340 mctp_test_route_gw_output(struct kunit * test) mctp_test_route_gw_output() argument
1527 mctp_test_bind_lookup(struct kunit * test) mctp_test_bind_lookup() argument
[all...]
/linux/tools/testing/selftests/mm/
H A Dmremap_test.c44 struct test { struct
68 (struct test){ \ argument
196 static void *get_source_mapping(struct config c) in get_source_mapping()
376 char c = (char) rand(); in mremap_move_within_range() local
994 static long long remap_region(struct config c, unsigned int threshold_mb, in remap_region()
1186 struct config c = { in mremap_move_1mb_from_start() local
1224 char c = (char) rand(); in mremap_move_1mb_from_start() local
H A Duffd-unit-tests.c185 static bool uffd_feature_supported(uffd_test_case_t *test) in uffd_feature_supported()
248 struct pin_longterm_test test = { in pin_pages() local
546 char c = '\0'; in uffd_minor_test_common() local
762 char c = '\0'; in uffd_sigbus_test_common() local
822 char c = '\0'; in uffd_events_test_common() local
1022 char c; in uffd_poison_test() local
1128 char c = '\0'; in uffd_move_test_common() local
1307 char tmp[256], *p, c; in thread_state_get() local
1710 uffd_test_case_t *test; in main() local
/linux/tools/testing/selftests/powerpc/mm/
H A Dlarge_vm_fork_separation.c24 static int test(void) in test() function
26 int p2c[2], c2p[2], rc, status, c, *p; in test() local
/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()
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()
541 struct test_desc *test) in setup_abort_handlers()
621 static void setup_default_handlers(struct test_desc *test) in setup_default_handlers()
630 static void check_event_counts(struct test_desc *test) in check_event_counts()
639 struct test_desc *test = p->test_desc; in print_test_banner() local
657 struct test_desc *test) in vcpu_run_loop()
[all …]
/linux/tools/testing/selftests/bpf/
H A Dxskxceiver.c202 int option_index, c; in parse_command_line() local
267 static void run_pkt_test(struct test_spec *test) in run_pkt_test()
341 struct test_spec test; in main() local
/linux/tools/testing/selftests/x86/
H A Dlam.c288 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()
849 struct testcases *test = arg; in thread_fn_set_lam() local
[all …]
/linux/drivers/gpu/drm/tests/
H A Ddrm_hdmi_state_helper_test.c42 #define connector_to_priv(c) \ argument
63 static int set_connector_edid(struct kunit *test, struct drm_connector *connector, in set_connector_edid()
199 __connector_hdmi_init(struct kunit *test, in __connector_hdmi_init()
267 #define drm_kunit_helper_connector_hdmi_init_with_edid_funcs(test, formats, max_bpc, funcs, edid) \ argument
272 drm_kunit_helper_connector_hdmi_init(struct kunit *test, in drm_kunit_helper_connector_hdmi_init()
288 static void drm_test_check_broadcast_rgb_crtc_mode_changed(struct kunit *test) in drm_test_check_broadcast_rgb_crtc_mode_changed()
363 static void drm_test_check_broadcast_rgb_crtc_mode_not_changed(struct kunit *test) in drm_test_check_broadcast_rgb_crtc_mode_not_changed()
440 static void drm_test_check_broadcast_rgb_auto_cea_mode(struct kunit *test) in drm_test_check_broadcast_rgb_auto_cea_mode()
507 static void drm_test_check_broadcast_rgb_auto_cea_mode_vic_1(struct kunit *test) in drm_test_check_broadcast_rgb_auto_cea_mode_vic_1()
574 static void drm_test_check_broadcast_rgb_full_cea_mode(struct kunit *test) in drm_test_check_broadcast_rgb_full_cea_mode()
[all …]
/linux/tools/testing/selftests/nolibc/
H A Dnolibc-test.c78 struct test { argument
79 const char *name; /* test name */ argument
77 struct test { global() struct
705 int test; run_startup() local
831 int c; test_getpagesize() local
1284 int test; run_syscall() local
1433 int test; run_stdlib() local
1565 EXPECT_VFPRINTF(c,expected,fmt,...) global() argument
1568 expect_vfprintf(int llen,int c,const char * expected,const char * fmt,...) expect_vfprintf() argument
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/bpf/prog_tests/
H A Dselect_reuseport.c771 const struct test { in test_config() argument
770 const struct test { test_config() struct
772 nametest_config::test test_config() argument
773 no_inner_maptest_config::test test_config() argument
774 need_sotypetest_config::test test_config() argument
836 const struct config *c; test_all() local
[all...]
H A Dsockmap_listen.c278 int err, s, c; in do_destroy_orphan_child() local
310 const struct test { in test_destroy_orphan_child() struct
311 int progfd; in test_destroy_orphan_child()
312 enum bpf_attach_type atype; in test_destroy_orphan_child()
340 int err, s, c; in test_clone_after_delete() local
377 int err, s, c, p; in test_accept_after_delete() local
432 int err, s, c, p; in test_accept_before_delete() local
511 int c, p; in connect_accept_thread() local
790 int s, c, p, err, n; in redir_to_listening() local
979 int s, c, err; in test_reuseport_select_listening() local
[all …]
H A Duprobe_multi_test.c77 char c = 1; in kick_child() local
89 int err, c; in child_func() local
139 int c = 0, err; in child_thread() local
164 int c, err; in spawn_thread() local
888 test_t test, unsigned long offset) in consumer_test()
/linux/drivers/net/mctp/
H A Dmctp-serial.c72 static bool needs_escape(u8 c) in needs_escape()
115 u8 c, buf[3]; in mctp_serial_tx_work() local
298 static void mctp_serial_push_header(struct mctp_serial *dev, u8 c) in mctp_serial_push_header()
328 static void mctp_serial_push_trailer(struct mctp_serial *dev, u8 c) in mctp_serial_push_trailer()
352 static void mctp_serial_push(struct mctp_serial *dev, u8 c) in mctp_serial_push()
395 static void mctp_serial_tty_receive_buf(struct tty_struct *tty, const u8 *c, in mctp_serial_tty_receive_buf()
537 static void test_next_chunk_len(struct kunit *test) in test_next_chunk_len()
/linux/tools/testing/selftests/net/
H A Dudpgso.c429 static void run_one(struct testcase *test, int fdt, int fdr, in run_one()
499 struct testcase *tests, *test; in run_all() local
580 int c; in parse_opts() local
/linux/tools/usb/
H A Dtestusb.c128 int test; member
374 int c; in main() local
379 int test = -1 /* all */; in main() local
/linux/drivers/net/wireguard/selftest/
H A Dallowedips.c424 static __init inline struct in_addr *ip4(u8 a, u8 b, u8 c, u8 d) in ip4()
436 static __init inline struct in6_addr *ip6(u32 a, u32 b, u32 c, u32 d) in ip6()
475 #define test(version, mem, ipa, ipb, ipc, ipd) do { \ macro
496 struct wg_peer *a = init_peer(), *b = init_peer(), *c = init_peer(), in wg_allowedips_selftest() local
/linux/drivers/pcmcia/
H A Dds.c232 struct config_t *c = container_of(ref, struct config_t, ref); in pcmcia_release_function() local
543 config_t *c; in pcmcia_device_add() local
1001 #define pcmcia_device_attr(field, test, format) \ argument

12