Home
last modified time | relevance | path

Searched refs:test (Results 1 – 18 of 18) sorted by relevance

/include/kunit/
Dtest.h130 void (*run_case)(struct kunit *test);
252 int (*init)(struct kunit *test);
253 void (*exit)(struct kunit *test);
318 static inline void kunit_set_failure(struct kunit *test) in kunit_set_failure() argument
320 WRITE_ONCE(test->status, KUNIT_FAILURE); in kunit_set_failure()
329 void kunit_init_test(struct kunit *test, const char *name, struct string_stream *log);
441 void *kunit_kmalloc_array(struct kunit *test, size_t n, size_t size, gfp_t gfp);
454 static inline void *kunit_kmalloc(struct kunit *test, size_t size, gfp_t gfp) in kunit_kmalloc() argument
456 return kunit_kmalloc_array(test, 1, size, gfp); in kunit_kmalloc()
464 void kunit_kfree(struct kunit *test, const void *ptr);
[all …]
Dresource.h156 int __kunit_add_resource(struct kunit *test,
172 static inline int kunit_add_resource(struct kunit *test, in kunit_add_resource() argument
179 return __kunit_add_resource(test, init, free, res, data); in kunit_add_resource()
183 kunit_find_named_resource(struct kunit *test, const char *name);
194 static inline int kunit_add_named_resource(struct kunit *test, in kunit_add_named_resource() argument
206 existing = kunit_find_named_resource(test, name); in kunit_add_named_resource()
215 return __kunit_add_resource(test, init, free, res, data); in kunit_add_named_resource()
240 kunit_alloc_and_get_resource(struct kunit *test, in kunit_alloc_and_get_resource() argument
255 ret = __kunit_add_resource(test, init, free, res, context); in kunit_alloc_and_get_resource()
283 static inline void *kunit_alloc_resource(struct kunit *test, in kunit_alloc_resource() argument
[all …]
Dof.h11 void of_node_put_kunit(struct kunit *test, struct device_node *node);
16 void of_node_put_kunit(struct kunit *test, struct device_node *node) in of_node_put_kunit() argument
18 kunit_skip(test, "requires CONFIG_OF"); in of_node_put_kunit()
25 int of_overlay_fdt_apply_kunit(struct kunit *test, void *overlay_fdt,
30 of_overlay_fdt_apply_kunit(struct kunit *test, void *overlay_fdt, in of_overlay_fdt_apply_kunit() argument
33 …kunit_skip(test, "requires CONFIG_OF and CONFIG_OF_OVERLAY and CONFIG_OF_EARLY_FLATTREE for root n… in of_overlay_fdt_apply_kunit()
54 static inline int __of_overlay_apply_kunit(struct kunit *test, in __of_overlay_apply_kunit() argument
60 return of_overlay_fdt_apply_kunit(test, overlay_begin, in __of_overlay_apply_kunit()
105 #define of_overlay_apply_kunit(test, overlay_name) \ argument
110 __of_overlay_apply_kunit((test), \
Dclk.h12 clk_get_kunit(struct kunit *test, struct device *dev, const char *con_id);
14 of_clk_get_kunit(struct kunit *test, struct device_node *np, int index);
17 clk_hw_get_clk_kunit(struct kunit *test, struct clk_hw *hw, const char *con_id);
19 clk_hw_get_clk_prepared_enabled_kunit(struct kunit *test, struct clk_hw *hw,
22 int clk_prepare_enable_kunit(struct kunit *test, struct clk *clk);
24 int clk_hw_register_kunit(struct kunit *test, struct device *dev, struct clk_hw *hw);
25 int of_clk_hw_register_kunit(struct kunit *test, struct device_node *node,
Ddevice.h31 struct device_driver *kunit_driver_create(struct kunit *test, const char *name);
47 struct device *kunit_device_register(struct kunit *test, const char *name);
63 struct device *kunit_device_register_with_driver(struct kunit *test,
76 void kunit_device_unregister(struct kunit *test, struct device *dev);
Dplatform_device.h11 kunit_platform_device_alloc(struct kunit *test, const char *name, int id);
12 int kunit_platform_device_add(struct kunit *test, struct platform_device *pdev);
14 int kunit_platform_device_prepare_wait_for_probe(struct kunit *test,
18 int kunit_platform_driver_register(struct kunit *test,
Dskbuff.h29 static inline struct sk_buff *kunit_zalloc_skb(struct kunit *test, int len, in kunit_zalloc_skb() argument
37 if (kunit_add_action_or_reset(test, kunit_action_kfree_skb, res)) in kunit_zalloc_skb()
48 static inline void kunit_kfree_skb(struct kunit *test, struct sk_buff *skb) in kunit_kfree_skb() argument
53 kunit_release_action(test, kunit_action_kfree_skb, (void *)skb); in kunit_kfree_skb()
Dstatic_stub.h77 void __kunit_activate_static_stub(struct kunit *test,
95 #define kunit_activate_static_stub(test, real_fn_addr, replacement_addr) do { \ argument
97 __kunit_activate_static_stub(test, real_fn_addr, replacement_addr); \
110 void kunit_deactivate_static_stub(struct kunit *test, void *real_fn_addr);
Dtry-catch.h47 struct kunit *test; member
Dtest-bug.h26 void *(*get_static_stub_address)(struct kunit *test, void *real_fn_addr);
/include/crypto/internal/
Dkdf_selftest.h24 kdf_test(const struct kdf_testvec *test, const char *name, in kdf_test() argument
35 u8 *buf = kzalloc(test->expectedlen, GFP_KERNEL); in kdf_test()
48 ret = crypto_kdf_setkey(kmd, test->key, test->keylen, in kdf_test()
49 test->ikm, test->ikmlen); in kdf_test()
55 ret = crypto_kdf_generate(kmd, &test->info, 1, buf, test->expectedlen); in kdf_test()
61 ret = memcmp(test->expected, buf, test->expectedlen); in kdf_test()
/include/drm/
Ddrm_kunit_helpers.h19 struct device *drm_kunit_helper_alloc_device(struct kunit *test);
20 void drm_kunit_helper_free_device(struct kunit *test, struct device *dev);
23 __drm_kunit_helper_alloc_drm_device_with_driver(struct kunit *test,
55 __drm_kunit_helper_alloc_drm_device(struct kunit *test, in __drm_kunit_helper_alloc_drm_device() argument
63 KUNIT_ASSERT_NOT_NULL(test, driver); in __drm_kunit_helper_alloc_drm_device()
67 return __drm_kunit_helper_alloc_drm_device_with_driver(test, dev, in __drm_kunit_helper_alloc_drm_device()
99 drm_kunit_helper_acquire_ctx_alloc(struct kunit *test);
102 drm_kunit_helper_atomic_state_alloc(struct kunit *test,
107 drm_kunit_helper_create_primary_plane(struct kunit *test,
116 drm_kunit_helper_create_crtc(struct kunit *test,
[all …]
/include/linux/
Dbitops.h343 #define bit_clear_unless(ptr, clear, test) \ argument
345 const typeof(*(ptr)) clear__ = (clear), test__ = (test);\
Dfs.h2610 int (*test)(struct super_block *, struct fs_context *),
2613 int (*test)(struct super_block *,void *),
3132 unsigned long hashval, int (*test)(struct inode *, void *),
3135 int (*test)(struct inode *, void *), void *data);
3139 int (*test)(struct inode *, void *),
3143 int (*test)(struct inode *, void *),
3146 int (*test)(struct inode *, void *),
3157 extern int insert_inode_locked4(struct inode *, unsigned long, int (*test)(struct inode *, void *),…
Dmodule.h61 int (*test)(struct module *); member
/include/video/
Domapfb_dss.h698 int (*run_test)(struct omap_dss_device *display, int test);
/include/net/
Ddevlink.h744 int (*test)(struct devlink_health_reporter *reporter, member
/include/uapi/linux/
Dbpf.h1639 } test; member