3#ifndef DRM_KUNIT_HELPERS_H_
4#define DRM_KUNIT_HELPERS_H_
49#define drm_kunit_helper_alloc_drm_device_with_driver(_test, _dev, _type, _member, _drv) \
50 ((_type *)__drm_kunit_helper_alloc_drm_device_with_driver(_test, _dev, \
52 offsetof(_type, _member), \
56__drm_kunit_helper_alloc_drm_device(
struct kunit *
test,
64 KUNIT_ASSERT_NOT_NULL(
test, driver);
94#define drm_kunit_helper_alloc_drm_device(_test, _dev, _type, _member, _feat) \
95 ((_type *)__drm_kunit_helper_alloc_drm_device(_test, _dev, \
97 offsetof(_type, _member), \
111 unsigned int num_formats,
unsigned int uint32_t
Definition acefiex.h:163
COMPILER_DEPENDENT_UINT64 uint64_t
Definition acefiex.h:165
size_t size
Definition drm_bridge.h:1299
size_t size_t const struct drm_bridge_funcs * funcs
Definition drm_bridge.h:1300
size_t size_t offset
Definition drm_bridge.h:1299
struct drm_crtc struct drm_plane * primary
Definition drm_crtc.h:1239
struct drm_crtc struct drm_plane struct drm_plane * cursor
Definition drm_crtc.h:1240
struct drm_crtc * crtc
Definition drm_crtc.h:1238
struct drm_atomic_commit * drm_kunit_helper_atomic_state_alloc(struct kunit *test, struct drm_device *drm, struct drm_modeset_acquire_ctx *ctx)
struct drm_display_mode * drm_kunit_display_mode_from_cea_vic(struct kunit *test, struct drm_device *dev, u8 video_code)
void drm_kunit_helper_free_device(struct kunit *test, struct device *dev)
struct device * drm_kunit_helper_alloc_device(struct kunit *test)
struct drm_device * __drm_kunit_helper_alloc_drm_device_with_driver(struct kunit *test, struct device *dev, size_t size, size_t offset, const struct drm_driver *driver)
struct drm_plane * drm_kunit_helper_create_primary_plane(struct kunit *test, struct drm_device *drm, const struct drm_plane_funcs *funcs, const struct drm_plane_helper_funcs *helper_funcs, const uint32_t *formats, unsigned int num_formats, const uint64_t *modifiers)
int drm_kunit_add_mode_destroy_action(struct kunit *test, struct drm_display_mode *mode)
int drm_kunit_helper_enable_crtc_connector(struct kunit *test, struct drm_device *drm, struct drm_crtc *crtc, struct drm_connector *connector, const struct drm_display_mode *mode, struct drm_modeset_acquire_ctx *ctx)
struct drm_crtc * drm_kunit_helper_create_crtc(struct kunit *test, struct drm_device *drm, struct drm_plane *primary, struct drm_plane *cursor, const struct drm_crtc_funcs *funcs, const struct drm_crtc_helper_funcs *helper_funcs)
struct drm_plane uint32_t const struct drm_plane_funcs const uint32_t * formats
Definition drm_plane.h:831
const struct device * dev
Definition drm_print.h:519
#define GFP_KERNEL
Definition gfp_types.h:377
uint8_t u8
Definition kernel.h:14
uint32_t u32
Definition kernel.h:16
int test
Definition p_mobj.c:45
Definition drm_atomic.h:480
Definition drm_connector.h:1998
Definition drm_crtc.h:425
Definition drm_modeset_helper_vtables.h:61
Definition drm_crtc.h:955
Definition drm_device.h:75
const struct drm_driver * driver
Definition drm_device.h:123
Definition drm_modes.h:252
u32 driver_features
Definition drm_drv.h:430
Definition drm_modeset_lock.h:46
Definition drm_plane.h:300
Definition drm_modeset_helper_vtables.h:1189
Definition drm_plane.h:641
uint64_t * modifiers
Definition drm_plane.h:687