Home
last modified time | relevance | path

Searched refs:pixel_format (Results 1 – 25 of 96) sorted by relevance

1234

/drivers/firmware/efi/libstub/
Dgop.c40 struct efi_pixel_bitmask pixel_info, int pixel_format) in setup_pixel_info() argument
42 if (pixel_format == PIXEL_RGB_RESERVED_8BIT_PER_COLOR) { in setup_pixel_info()
53 } else if (pixel_format == PIXEL_BGR_RESERVED_8BIT_PER_COLOR) { in setup_pixel_info()
64 } else if (pixel_format == PIXEL_BIT_MASK) { in setup_pixel_info()
99 int pixel_format; in setup_gop32() local
132 info->pixel_format != PIXEL_BLT_ONLY) { in setup_gop32()
142 pixel_format = info->pixel_format; in setup_gop32()
176 setup_pixel_info(si, pixels_per_scan_line, pixel_info, pixel_format); in setup_gop32()
196 int pixel_format; in setup_gop64() local
229 info->pixel_format != PIXEL_BLT_ONLY) { in setup_gop64()
[all …]
/drivers/gpu/drm/msm/
Dmsm_fb.c143 int ret, i, n = drm_format_num_planes(mode_cmd->pixel_format); in msm_framebuffer_create()
180 (char *)&mode_cmd->pixel_format); in msm_framebuffer_init()
182 n = drm_format_num_planes(mode_cmd->pixel_format); in msm_framebuffer_init()
183 hsub = drm_format_horz_chroma_subsampling(mode_cmd->pixel_format); in msm_framebuffer_init()
184 vsub = drm_format_vert_chroma_subsampling(mode_cmd->pixel_format); in msm_framebuffer_init()
186 format = kms->funcs->get_format(kms, mode_cmd->pixel_format); in msm_framebuffer_init()
189 (char *)&mode_cmd->pixel_format); in msm_framebuffer_init()
215 + width * drm_format_plane_cpp(mode_cmd->pixel_format, i) in msm_framebuffer_init()
248 .pixel_format = format, in msm_alloc_stolen_fb()
/drivers/gpu/drm/rockchip/
Drockchip_drm_fb.c125 hsub = drm_format_horz_chroma_subsampling(mode_cmd->pixel_format); in rockchip_user_fb_create()
126 vsub = drm_format_vert_chroma_subsampling(mode_cmd->pixel_format); in rockchip_user_fb_create()
127 num_planes = min(drm_format_num_planes(mode_cmd->pixel_format), in rockchip_user_fb_create()
144 width * drm_format_plane_cpp(mode_cmd->pixel_format, i); in rockchip_user_fb_create()
/drivers/gpu/drm/mediatek/
Dmtk_drm_fb.c78 if (drm_format_num_planes(mode->pixel_format) != 1) in mtk_drm_framebuffer_init()
138 if (drm_format_num_planes(cmd->pixel_format) != 1) in mtk_drm_mode_fb_create()
145 bpp = drm_format_plane_cpp(cmd->pixel_format, 0); in mtk_drm_mode_fb_create()
/drivers/gpu/drm/msm/mdp/
Dmdp_format.c75 .base = { .pixel_format = DRM_FORMAT_ ## name }, \
168 pixel_formats[i] = f->base.pixel_format; in mdp_get_formats()
179 if (f->base.pixel_format == format) in mdp_get_format()
/drivers/gpu/drm/armada/
Darmada_fb.c44 switch (mode->pixel_format) { in armada_framebuffer_create()
111 mode->width, mode->height, mode->pixel_format, in armada_fb_create()
116 if (drm_format_num_planes(mode->pixel_format) > 1 && in armada_fb_create()
/drivers/gpu/drm/tegra/
Dfb.c161 hsub = drm_format_horz_chroma_subsampling(cmd->pixel_format); in tegra_fb_create()
162 vsub = drm_format_vert_chroma_subsampling(cmd->pixel_format); in tegra_fb_create()
164 for (i = 0; i < drm_format_num_planes(cmd->pixel_format); i++) { in tegra_fb_create()
175 bpp = drm_format_plane_cpp(cmd->pixel_format, i); in tegra_fb_create()
233 cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in tegra_fbdev_probe()
/drivers/gpu/drm/omapdrm/
Domap_fb.c362 unsigned int num_planes = drm_format_num_planes(mode_cmd->pixel_format); in omap_framebuffer_create()
399 (char *)&mode_cmd->pixel_format); in omap_framebuffer_init()
401 format = drm_format_info(mode_cmd->pixel_format); in omap_framebuffer_init()
404 if (formats[i] == mode_cmd->pixel_format) in omap_framebuffer_init()
410 (char *)&mode_cmd->pixel_format); in omap_framebuffer_init()
/drivers/gpu/drm/
Ddrm_framebuffer.c118 r.pixel_format = drm_mode_legacy_fb_format(or->bpp, or->depth); in drm_mode_addfb()
121 if (r.pixel_format == DRM_FORMAT_XRGB2101010 && in drm_mode_addfb()
123 r.pixel_format = DRM_FORMAT_XBGR2101010; in drm_mode_addfb()
159 info = __drm_format_info(r->pixel_format & ~DRM_FORMAT_BIG_ENDIAN); in framebuffer_check()
163 drm_get_format_name(r->pixel_format, in framebuffer_check()
221 if (r->pixel_format != DRM_FORMAT_NV12 || in framebuffer_check()
/drivers/gpu/drm/bochs/
Dbochs_mm.c507 (mode_cmd->pixel_format) & 0xff, in bochs_user_framebuffer_create()
508 (mode_cmd->pixel_format >> 8) & 0xff, in bochs_user_framebuffer_create()
509 (mode_cmd->pixel_format >> 16) & 0xff, in bochs_user_framebuffer_create()
510 (mode_cmd->pixel_format >> 24) & 0xff); in bochs_user_framebuffer_create()
512 if (mode_cmd->pixel_format != DRM_FORMAT_XRGB8888) in bochs_user_framebuffer_create()
/drivers/gpu/drm/shmobile/
Dshmob_drm_kms.c111 format = shmob_drm_format_info(mode_cmd->pixel_format); in shmob_drm_fb_create()
114 mode_cmd->pixel_format); in shmob_drm_fb_create()
/drivers/gpu/drm/arm/
Dhdlcd_crtc.c85 uint32_t pixel_format; in hdlcd_set_pxl_fmt() local
89 pixel_format = fb->format->format; in hdlcd_set_pxl_fmt()
92 if (supported_formats[i].fourcc == pixel_format) in hdlcd_set_pxl_fmt()
/drivers/gpu/drm/hisilicon/hibmc/
Dhibmc_ttm.c535 (mode_cmd->pixel_format) & 0xff, in hibmc_user_framebuffer_create()
536 (mode_cmd->pixel_format >> 8) & 0xff, in hibmc_user_framebuffer_create()
537 (mode_cmd->pixel_format >> 16) & 0xff, in hibmc_user_framebuffer_create()
538 (mode_cmd->pixel_format >> 24) & 0xff); in hibmc_user_framebuffer_create()
/drivers/gpu/drm/i915/
Dintel_dsi_pll.c122 dsi_clk = dsi_clk_from_pclk(intel_dsi->pclk, intel_dsi->pixel_format, in vlv_compute_dsi_pll()
323 assert_bpp_mismatch(intel_dsi->pixel_format, pipe_bpp); in vlv_dsi_get_pclk()
352 assert_bpp_mismatch(intel_dsi->pixel_format, pipe_bpp); in bxt_dsi_get_pclk()
491 dsi_clk = dsi_clk_from_pclk(intel_dsi->pclk, intel_dsi->pixel_format, in gen9lp_compute_dsi_pll()
Dintel_dsi.h69 enum mipi_dsi_pixel_format pixel_format; member
Dintel_dsi_vbt.c526 intel_dsi->pixel_format = in intel_dsi_vbt_init()
529 bpp = mipi_dsi_pixel_format_to_bpp(intel_dsi->pixel_format); in intel_dsi_vbt_init()
770 DRM_DEBUG_KMS("Pixel Format %d\n", intel_dsi->pixel_format); in intel_dsi_vbt_init()
/drivers/gpu/drm/msm/mdp/mdp5/
Dmdp5_plane.c609 uint32_t pixel_format, uint32_t src, uint32_t dest, in calc_scalex_steps() argument
624 hsub = drm_format_horz_chroma_subsampling(pixel_format); in calc_scalex_steps()
634 uint32_t pixel_format, uint32_t src, uint32_t dest, in calc_scaley_steps() argument
649 vsub = drm_format_vert_chroma_subsampling(pixel_format); in calc_scaley_steps()
662 uint32_t sub, pix_fmt = format->base.pixel_format; in get_scale_config()
716 uint32_t pix_fmt = format->base.pixel_format; in mdp5_write_pixel_ext()
913 pix_format = format->base.pixel_format; in mdp5_plane_mode_set()
/drivers/gpu/drm/arc/
Darcpgu_crtc.c39 uint32_t pixel_format = fb->format->format; in arc_pgu_set_pxl_fmt() local
44 if (supported_formats[i].fourcc == pixel_format) in arc_pgu_set_pxl_fmt()
/drivers/gpu/drm/nouveau/
Dnouveau_display.c241 (mode_cmd->pixel_format == DRM_FORMAT_YUYV || in nouveau_framebuffer_new()
242 mode_cmd->pixel_format == DRM_FORMAT_UYVY || in nouveau_framebuffer_new()
243 mode_cmd->pixel_format == DRM_FORMAT_NV12 || in nouveau_framebuffer_new()
244 mode_cmd->pixel_format == DRM_FORMAT_NV21) && in nouveau_framebuffer_new()
251 drm_get_format_name(mode_cmd->pixel_format, in nouveau_framebuffer_new()
/drivers/gpu/drm/cirrus/
Dcirrus_fbdev.c146 bpp = drm_format_plane_cpp(mode_cmd->pixel_format, 0) * 8; in cirrusfb_create_object()
178 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in cirrusfb_create()
/drivers/gpu/drm/hisilicon/kirin/
Dkirin_drm_ade.c79 u32 pixel_format; member
121 static u32 ade_get_format(u32 pixel_format) in ade_get_format() argument
126 if (ade_formats[i].pixel_format == pixel_format) in ade_get_format()
131 pixel_format); in ade_get_format()
/drivers/input/touchscreen/
Dsur40.c888 if ((f->index != 0) || ((f->pixel_format != V4L2_TCH_FMT_TU08) in sur40_vidioc_enum_framesizes()
889 && (f->pixel_format != V4L2_PIX_FMT_GREY))) in sur40_vidioc_enum_framesizes()
903 if ((f->index > 0) || ((f->pixel_format != V4L2_TCH_FMT_TU08) in sur40_vidioc_enum_frameintervals()
904 && (f->pixel_format != V4L2_PIX_FMT_GREY)) in sur40_vidioc_enum_frameintervals()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_fb.c138 cpp = drm_format_plane_cpp(mode_cmd->pixel_format, 0); in amdgpufb_create_pinned_object()
212 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in amdgpufb_create()
/drivers/gpu/drm/radeon/
Dradeon_fb.c138 cpp = drm_format_plane_cpp(mode_cmd->pixel_format, 0); in radeonfb_create_pinned_object()
229 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in radeonfb_create()
/drivers/media/pci/cx25821/
Dcx25821-video-upstream.c602 int pixel_format) in cx25821_vidupstream_init() argument
631 out->_pixel_format = pixel_format; in cx25821_vidupstream_init()
642 out->_pixel_format = pixel_format; in cx25821_vidupstream_init()

1234