Home
last modified time | relevance | path

Searched refs:mode_cmd (Results 1 - 7 of 7) sorted by relevance

/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/rockchip/
H A Drockchip_drm_fb.c59 static struct drm_framebuffer *rockchip_fb_alloc(struct drm_device *dev, const struct drm_mode_fb_cmd2 *mode_cmd, in rockchip_fb_alloc() argument
71 drm_helper_mode_fill_fb_struct(dev, fb, mode_cmd); in rockchip_fb_alloc()
87 struct drm_framebuffer *rockchip_drm_logo_fb_alloc(struct drm_device *dev, const struct drm_mode_fb_cmd2 *mode_cmd, in rockchip_drm_logo_fb_alloc() argument
100 drm_helper_mode_fill_fb_struct(dev, fb, mode_cmd); in rockchip_drm_logo_fb_alloc()
185 const struct drm_mode_fb_cmd2 *mode_cmd) in rockchip_fb_create()
191 info = drm_get_format_info(dev, mode_cmd); in rockchip_fb_create()
201 ret = drm_gem_fb_init_with_funcs(dev, &afbc_fb->base, file, mode_cmd, &rockchip_drm_fb_funcs); in rockchip_fb_create()
207 if (drm_is_afbc(mode_cmd->modifier[0])) { in rockchip_fb_create()
210 ret = drm_gem_fb_afbc_init(dev, mode_cmd, afbc_fb); in rockchip_fb_create()
243 struct drm_framebuffer *rockchip_drm_framebuffer_init(struct drm_device *dev, const struct drm_mode_fb_cmd2 *mode_cmd, in rockchip_drm_framebuffer_init() argument
184 rockchip_fb_create(struct drm_device *dev, struct drm_file *file, const struct drm_mode_fb_cmd2 *mode_cmd) rockchip_fb_create() argument
[all...]
H A Drockchip_drm_fbdev.c39 struct drm_mode_fb_cmd2 mode_cmd = {0}; in rockchip_drm_fbdev_create() local
51 mode_cmd.width = sizes->surface_width; in rockchip_drm_fbdev_create()
52 mode_cmd.height = sizes->surface_height; in rockchip_drm_fbdev_create()
53 mode_cmd.pitches[0] = sizes->surface_width * bytes_per_pixel; in rockchip_drm_fbdev_create()
54 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, sizes->surface_depth); in rockchip_drm_fbdev_create()
56 size = mode_cmd.pitches[0] * mode_cmd.height; in rockchip_drm_fbdev_create()
72 helper->fb = rockchip_drm_framebuffer_init(dev, &mode_cmd, private->fbdev_bo); in rockchip_drm_fbdev_create()
H A Drockchip_drm_fb.h15 struct drm_framebuffer *rockchip_drm_framebuffer_init(struct drm_device *dev, const struct drm_mode_fb_cmd2 *mode_cmd,
20 struct drm_framebuffer *rockchip_drm_logo_fb_alloc(struct drm_device *dev, const struct drm_mode_fb_cmd2 *mode_cmd,
H A Drockchip_drm_logo.c288 struct drm_mode_fb_cmd2 mode_cmd = {0}; in get_framebuffer_by_node() local
300 mode_cmd.offsets[0] = val; in get_framebuffer_by_node()
306 mode_cmd.width = val; in get_framebuffer_by_node()
312 mode_cmd.height = val; in get_framebuffer_by_node()
320 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * bpp, 0x20) / 0x8; in get_framebuffer_by_node()
324 mode_cmd.pixel_format = DRM_FORMAT_RGB565; in get_framebuffer_by_node()
327 mode_cmd.pixel_format = DRM_FORMAT_RGB888; in get_framebuffer_by_node()
330 mode_cmd.pixel_format = DRM_FORMAT_XRGB8888; in get_framebuffer_by_node()
337 return rockchip_drm_logo_fb_alloc(drm_dev, &mode_cmd, privat in get_framebuffer_by_node()
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/gpu/drm/rockchip/
H A Drockchip_drm_logo.c275 struct drm_mode_fb_cmd2 mode_cmd = { 0 }; in get_framebuffer_by_node() local
286 mode_cmd.offsets[0] = val; in get_framebuffer_by_node()
292 mode_cmd.width = val; in get_framebuffer_by_node()
298 mode_cmd.height = val; in get_framebuffer_by_node()
306 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * bpp, 32) / 8; in get_framebuffer_by_node()
310 mode_cmd.pixel_format = DRM_FORMAT_RGB565; in get_framebuffer_by_node()
313 mode_cmd.pixel_format = DRM_FORMAT_RGB888; in get_framebuffer_by_node()
316 mode_cmd.pixel_format = DRM_FORMAT_XRGB8888; in get_framebuffer_by_node()
323 return rockchip_drm_logo_fb_alloc(drm_dev, &mode_cmd, privat in get_framebuffer_by_node()
[all...]
/device/soc/rockchip/common/sdk_linux/include/drm/
H A Ddrm_mode_config.h59 * ie. when (@mode_cmd->flags & DRM_MODE_FB_MODIFIERS) == 0.
78 const struct drm_mode_fb_cmd2 *mode_cmd);
91 const struct drm_format_info *(*get_format_info)(const struct drm_mode_fb_cmd2 *mode_cmd);
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/
H A Ddrm_fourcc.c775 * @mode_cmd: metadata from the userspace fb creation request
781 const struct drm_format_info *drm_get_format_info(struct drm_device *dev, const struct drm_mode_fb_cmd2 *mode_cmd) in drm_get_format_info() argument
786 info = dev->mode_config.funcs->get_format_info(mode_cmd); in drm_get_format_info()
790 info = drm_format_info(mode_cmd->pixel_format); in drm_get_format_info()

Completed in 6 milliseconds