Home
last modified time | relevance | path

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

1234567

/linux/drivers/gpu/drm/tests/
H A Ddrm_framebuffer_test.c36 .cmd = { .width = 600, .height = 600, .pixel_format = DRM_FORMAT_ABGR8888,
41 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888,
46 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888,
51 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888,
56 .cmd = { .width = MAX_WIDTH + 1, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888,
61 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888,
66 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = 0,
71 .cmd = { .width = 0, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888,
76 .cmd = { .width = MAX_WIDTH, .height = 0, .pixel_format = DRM_FORMAT_ABGR8888,
81 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888,
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dpp/dcn401/
H A Ddcn401_dpp.c64 uint32_t pixel_format = 0; in dpp401_dpp_setup() local
90 pixel_format = 1; in dpp401_dpp_setup()
93 pixel_format = 3; in dpp401_dpp_setup()
98 pixel_format = 8; in dpp401_dpp_setup()
102 pixel_format = 10; in dpp401_dpp_setup()
106 pixel_format = 65; in dpp401_dpp_setup()
111 pixel_format = 64; in dpp401_dpp_setup()
116 pixel_format = 67; in dpp401_dpp_setup()
121 pixel_format = 66; in dpp401_dpp_setup()
127 pixel_format = 26; /* ARGB16161616_UNORM */ in dpp401_dpp_setup()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dpp/dcn201/
H A Ddcn201_dpp.c53 uint32_t pixel_format = 0; in dpp201_cnv_setup() local
78 pixel_format = 1; in dpp201_cnv_setup()
81 pixel_format = 3; in dpp201_cnv_setup()
86 pixel_format = 8; in dpp201_cnv_setup()
90 pixel_format = 10; in dpp201_cnv_setup()
95 pixel_format = 65; in dpp201_cnv_setup()
101 pixel_format = 64; in dpp201_cnv_setup()
107 pixel_format = 67; in dpp201_cnv_setup()
113 pixel_format = 66; in dpp201_cnv_setup()
118 pixel_format = 22; in dpp201_cnv_setup()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dpp/dcn20/
H A Ddcn20_dpp.c106 uint32_t pixel_format = 0; in dpp2_cnv_setup() local
131 pixel_format = 1; in dpp2_cnv_setup()
134 pixel_format = 3; in dpp2_cnv_setup()
139 pixel_format = 8; in dpp2_cnv_setup()
143 pixel_format = 10; in dpp2_cnv_setup()
148 pixel_format = 65; in dpp2_cnv_setup()
154 pixel_format = 64; in dpp2_cnv_setup()
160 pixel_format = 67; in dpp2_cnv_setup()
166 pixel_format = 66; in dpp2_cnv_setup()
172 pixel_format = 26; /* ARGB16161616_UNORM */ in dpp2_cnv_setup()
[all …]
/linux/include/video/
H A Dpixel_format.h6 struct pixel_format { struct
70 static inline int pixel_format_cmp(const struct pixel_format *lhs, const struct pixel_format *rhs) in pixel_format_cmp()
96 static inline bool pixel_format_equal(const struct pixel_format *lhs, in pixel_format_equal()
97 const struct pixel_format *rhs) in pixel_format_equal()
/linux/drivers/gpu/drm/amd/display/dc/dpp/dcn10/
H A Ddcn10_dpp.c287 uint32_t pixel_format; in dpp1_cnv_setup() local
300 pixel_format = 0; in dpp1_cnv_setup()
330 pixel_format = 1; in dpp1_cnv_setup()
333 pixel_format = 3; in dpp1_cnv_setup()
338 pixel_format = 8; in dpp1_cnv_setup()
342 pixel_format = 10; in dpp1_cnv_setup()
346 pixel_format = 65; in dpp1_cnv_setup()
352 pixel_format = 64; in dpp1_cnv_setup()
358 pixel_format = 67; in dpp1_cnv_setup()
364 pixel_format = 66; in dpp1_cnv_setup()
[all …]
/linux/drivers/firmware/efi/libstub/
H A Dgop.c162 pf = info->pixel_format; in choose_mode_modenum()
193 static u8 pixel_bpp(int pixel_format, efi_pixel_bitmask_t pixel_info) in pixel_bpp() argument
195 if (pixel_format == PIXEL_BIT_MASK) { in pixel_bpp()
208 int pf = info->pixel_format; in match_res()
240 int pf = info->pixel_format; in match_auto()
266 int pf = info->pixel_format; in match_list()
387 if (info->pixel_format == PIXEL_BIT_MASK) { in setup_screen_info()
395 if (info->pixel_format == PIXEL_RGB_RESERVED_8BIT_PER_COLOR) { in setup_screen_info()
450 if (info->pixel_format == PIXEL_BLT_ONLY || in find_handle_with_primary_gop()
451 info->pixel_format >= PIXEL_FORMAT_MAX) in find_handle_with_primary_gop()
/linux/drivers/gpu/drm/amd/display/dc/dsc/dcn20/
H A Ddcn20_dsc.c405 …dsc_reg_vals->pixel_format = dsc_dc_pixel_encoding_to_dsc_pixel_format(dsc_cfg->pixel_encoding, ds… in dsc_prepare_config()
430 …if (dsc_reg_vals->pixel_format == DSC_PIXFMT_NATIVE_YCBCR420 || dsc_reg_vals->pixel_format == DSC_… in dsc_prepare_config()
435 dsc_reg_vals->pps.convert_rgb = dsc_reg_vals->pixel_format == DSC_PIXFMT_RGB ? 1 : 0; in dsc_prepare_config()
436 dsc_reg_vals->pps.native_422 = (dsc_reg_vals->pixel_format == DSC_PIXFMT_NATIVE_YCBCR422); in dsc_prepare_config()
437 dsc_reg_vals->pps.native_420 = (dsc_reg_vals->pixel_format == DSC_PIXFMT_NATIVE_YCBCR420); in dsc_prepare_config()
438 dsc_reg_vals->pps.simple_422 = (dsc_reg_vals->pixel_format == DSC_PIXFMT_SIMPLE_YCBCR422); in dsc_prepare_config()
454 dsc_optc_cfg->is_pixel_format_444 = dsc_reg_vals->pixel_format == DSC_PIXFMT_RGB || in dsc_prepare_config()
455 dsc_reg_vals->pixel_format == DSC_PIXFMT_YCBCR444 || in dsc_prepare_config()
456 dsc_reg_vals->pixel_format == DSC_PIXFMT_SIMPLE_YCBCR422; in dsc_prepare_config()
599 INPUT_PIXEL_FORMAT, reg_vals->pixel_format, in dsc_write_to_registers()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dpp/dcn30/
H A Ddcn30_dpp.c229 uint32_t pixel_format = 0; in dpp3_cnv_setup() local
256 pixel_format = 1; in dpp3_cnv_setup()
259 pixel_format = 3; in dpp3_cnv_setup()
264 pixel_format = 8; in dpp3_cnv_setup()
268 pixel_format = 10; in dpp3_cnv_setup()
273 pixel_format = 65; in dpp3_cnv_setup()
279 pixel_format = 64; in dpp3_cnv_setup()
285 pixel_format = 67; in dpp3_cnv_setup()
291 pixel_format = 66; in dpp3_cnv_setup()
297 pixel_format = 26; /* ARGB16161616_UNORM */ in dpp3_cnv_setup()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dsc/dcn401/
H A Ddcn401_dsc.c213 INPUT_PIXEL_FORMAT, reg_vals->pixel_format, in dsc_write_to_registers()
251 …if (reg_vals->pixel_format == DSC_PIXFMT_NATIVE_YCBCR420 || reg_vals->pixel_format == DSC_PIXFMT_N… in dsc_write_to_registers()
258 SIMPLE_422, reg_vals->pixel_format == DSC_PIXFMT_SIMPLE_YCBCR422, in dsc_write_to_registers()
259 CONVERT_RGB, reg_vals->pixel_format == DSC_PIXFMT_RGB, in dsc_write_to_registers()
261 NATIVE_422, reg_vals->pixel_format == DSC_PIXFMT_NATIVE_YCBCR422, in dsc_write_to_registers()
262 NATIVE_420, reg_vals->pixel_format == DSC_PIXFMT_NATIVE_YCBCR420, in dsc_write_to_registers()
/linux/drivers/gpu/drm/msm/
H A Dmsm_fb.c185 &mode_cmd->pixel_format); in msm_framebuffer_init()
188 format = mdp_get_format(kms, mode_cmd->pixel_format, in msm_framebuffer_init()
192 &mode_cmd->pixel_format); in msm_framebuffer_init()
253 .pixel_format = format, in msm_alloc_stolen_fb()
279 drm_get_format_info(dev, mode_cmd.pixel_format, in msm_alloc_stolen_fb()
/linux/include/linux/
H A Dscreen_info.h15 struct pixel_format;
140 int screen_info_pixel_format(const struct screen_info *si, struct pixel_format *f);
/linux/drivers/gpu/drm/bridge/
H A Dssd2825.c495 u8 pixel_format; in ssd2825_bridge_atomic_pre_enable() local
517 pixel_format = 0x00; in ssd2825_bridge_atomic_pre_enable()
520 pixel_format = 0x01; in ssd2825_bridge_atomic_pre_enable()
523 pixel_format = 0x02; in ssd2825_bridge_atomic_pre_enable()
527 pixel_format = 0x03; in ssd2825_bridge_atomic_pre_enable()
561 ssd2825_write_reg(priv, SSD2825_RGB_INTERFACE_CTRL_REG_6, flags | pixel_format); in ssd2825_bridge_atomic_pre_enable()
/linux/drivers/gpu/drm/armada/
H A Darmada_fbdev.c58 mode.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in armada_fbdev_driver_fbdev_probe()
81 drm_get_format_info(dev, mode.pixel_format, in armada_fbdev_driver_fbdev_probe()
H A Darmada_fb.c30 switch (mode->pixel_format) { in armada_framebuffer_create()
98 mode->width, mode->height, mode->pixel_format, in armada_fb_create()
/linux/drivers/gpu/drm/amd/display/dc/
H A Ddc_spl_translate.c66 …plformat_from_format(enum spl_pixel_format *spl_pixel_format, const enum pixel_format pixel_format) in populate_splformat_from_format() argument
68 if (pixel_format < PIXEL_FORMAT_INVALID) in populate_splformat_from_format()
69 *spl_pixel_format = (enum spl_pixel_format)pixel_format; in populate_splformat_from_format()
/linux/drivers/gpu/drm/imx/dc/
H A Ddc-fu.c58 u32 pixel_format; member
76 if (pixel_formats[i].pixel_format == format) { in dc_fu_get_pixel_format_bits()
89 if (pixel_formats[i].pixel_format == format) { in dc_fu_get_pixel_format_shifts()
/linux/drivers/gpu/drm/tiny/
H A Dappletbdrm.c79 __le32 pixel_format; member
260 __le32 pixel_format; in appletbdrm_get_information() local
277 pixel_format = get_unaligned(&info->pixel_format); in appletbdrm_get_information()
288 if (pixel_format != APPLETBDRM_PIXEL_FORMAT) { in appletbdrm_get_information()
289 drm_err(drm, "Encountered unknown pixel format (%p4cl)\n", &pixel_format); in appletbdrm_get_information()
/linux/drivers/gpu/drm/exynos/
H A Dexynos_drm_fbdev.c101 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in exynos_drm_fbdev_driver_fbdev_probe()
112 drm_get_format_info(dev, mode_cmd.pixel_format, in exynos_drm_fbdev_driver_fbdev_probe()
/linux/drivers/gpu/drm/tegra/
H A Dfbdev.c91 cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in tegra_fbdev_driver_fbdev_probe()
101 drm_get_format_info(drm, cmd.pixel_format, cmd.modifier[0]), in tegra_fbdev_driver_fbdev_probe()
/linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/
H A Ddml21_translation_helper.c425 plane->pixel_format = dml2_444_32; in populate_dml21_dummy_plane_cfg()
510 plane->pixel_format = dml2_420_8; in populate_dml21_plane_config_from_plane_state()
514 plane->pixel_format = dml2_420_10; in populate_dml21_plane_config_from_plane_state()
520 plane->pixel_format = dml2_444_64; in populate_dml21_plane_config_from_plane_state()
524 plane->pixel_format = dml2_444_16; in populate_dml21_plane_config_from_plane_state()
527 plane->pixel_format = dml2_444_8; in populate_dml21_plane_config_from_plane_state()
530 plane->pixel_format = dml2_rgbe_alpha; in populate_dml21_plane_config_from_plane_state()
533 plane->pixel_format = dml2_444_32; in populate_dml21_plane_config_from_plane_state()
894 dml21_is_plane1_enabled(pln_prog->plane_descriptor->pixel_format); in dml21_get_pipe_mcache_config()
/linux/drivers/gpu/drm/
H A Ddrm_framebuffer.c127 r.pixel_format = drm_driver_legacy_fb_format(dev, or->bpp, or->depth); in drm_mode_addfb()
128 if (r.pixel_format == DRM_FORMAT_INVALID) { in drm_mode_addfb()
217 if (r->pixel_format != DRM_FORMAT_NV12 || in framebuffer_check()
292 if (!__drm_format_info(r->pixel_format)) { in drm_internal_framebuffer_create()
294 &r->pixel_format); in drm_internal_framebuffer_create()
299 info = drm_get_format_info(dev, r->pixel_format, r->modifier[0]); in drm_internal_framebuffer_create()
610 r->pixel_format = fb->format->format; in drm_mode_getfb2_ioctl()
/linux/drivers/video/
H A Dscreen_info_generic.c186 static int __screen_info_lfb_pixel_format(const struct screen_info *si, struct pixel_format *f) in __screen_info_lfb_pixel_format()
223 int screen_info_pixel_format(const struct screen_info *si, struct pixel_format *f) in screen_info_pixel_format()
/linux/drivers/gpu/drm/renesas/shmobile/
H A Dshmob_drm_kms.c125 format = shmob_drm_format_info(mode_cmd->pixel_format); in shmob_drm_fb_create()
128 &mode_cmd->pixel_format); in shmob_drm_fb_create()
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_display.c273 (mode_cmd->pixel_format == DRM_FORMAT_YUYV || in nouveau_framebuffer_new()
274 mode_cmd->pixel_format == DRM_FORMAT_UYVY || in nouveau_framebuffer_new()
275 mode_cmd->pixel_format == DRM_FORMAT_NV12 || in nouveau_framebuffer_new()
276 mode_cmd->pixel_format == DRM_FORMAT_NV21) && in nouveau_framebuffer_new()
282 &mode_cmd->pixel_format, in nouveau_framebuffer_new()

1234567