Home
last modified time | relevance | path

Searched refs:pix_fmt (Results 1 – 19 of 19) sorted by relevance

/drivers/video/fbdev/
Dpxa168fb.c97 static void set_pix_fmt(struct fb_var_screeninfo *var, int pix_fmt) in set_pix_fmt() argument
99 switch (pix_fmt) { in set_pix_fmt()
167 struct fb_videomode *mode, int pix_fmt, int ystretch) in set_mode() argument
171 set_pix_fmt(var, pix_fmt); in set_mode()
199 int pix_fmt; in pxa168fb_check_var() local
204 pix_fmt = determine_best_pix_fmt(var); in pxa168fb_check_var()
205 if (pix_fmt < 0) in pxa168fb_check_var()
206 return pix_fmt; in pxa168fb_check_var()
207 set_pix_fmt(var, pix_fmt); in pxa168fb_check_var()
208 fbi->pix_fmt = pix_fmt; in pxa168fb_check_var()
[all …]
Dfsl-diu-fb.c1162 ad->pix_fmt = diu_ops.get_pixel_format(data->monitor_port, in fsl_diu_set_par()
1165 ad->pix_fmt = fsl_diu_get_pixel_format(var->bits_per_pixel); in fsl_diu_set_par()
1283 __u32 pix_fmt; in fsl_diu_ioctl() local
1300 if (copy_from_user(&pix_fmt, buf, sizeof(pix_fmt))) in fsl_diu_ioctl()
1302 ad->pix_fmt = pix_fmt; in fsl_diu_ioctl()
1309 pix_fmt = ad->pix_fmt; in fsl_diu_ioctl()
1310 if (copy_to_user(buf, &pix_fmt, sizeof(pix_fmt))) in fsl_diu_ioctl()
1771 data->dummy_ad.pix_fmt = 0x88882317; in fsl_diu_probe()
/drivers/input/touchscreen/
Dsur40.c173 struct v4l2_pix_format pix_fmt; member
444 if (le32_to_cpu(img->size) != sur40->pix_fmt.sizeimage) { in sur40_process_video()
455 sgt->sgl, sgt->nents, sur40->pix_fmt.sizeimage, 0); in sur40_process_video()
613 sur40->pix_fmt = sur40_pix_format[0]; in sur40_probe()
681 return sizes[0] < sur40->pix_fmt.sizeimage ? -EINVAL : 0; in sur40_queue_setup()
684 sizes[0] = sur40->pix_fmt.sizeimage; in sur40_queue_setup()
696 unsigned long size = sur40->pix_fmt.sizeimage; in sur40_buffer_prepare()
824 sur40->pix_fmt = sur40_pix_format[1]; in sur40_vidioc_s_fmt()
828 sur40->pix_fmt = sur40_pix_format[0]; in sur40_vidioc_s_fmt()
832 f->fmt.pix = sur40->pix_fmt; in sur40_vidioc_s_fmt()
[all …]
/drivers/video/fbdev/mmp/fb/
Dmmpfb.c113 static void pixfmt_to_var(struct fb_var_screeninfo *var, int pix_fmt) in pixfmt_to_var() argument
115 switch (pix_fmt) { in pixfmt_to_var()
367 int pix_fmt; in var_update() local
370 pix_fmt = var_to_pixfmt(var); in var_update()
371 if (pix_fmt < 0) in var_update()
373 pixfmt_to_var(var, pix_fmt); in var_update()
374 fbi->pix_fmt = pix_fmt; in var_update()
388 info->fix.visual = (pix_fmt == PIXFMT_PSEUDOCOLOR) ? in var_update()
405 win.pix_fmt = fbi->pix_fmt; in mmpfb_set_win()
406 stride = pixfmt_to_stride(win.pix_fmt); in mmpfb_set_win()
[all …]
Dmmpfb.h38 int pix_fmt; member
/drivers/media/platform/davinci/
Disif.c98 .pix_fmt = CCDC_PIXFMT_YCBCR_8BIT,
108 .pix_fmt = CCDC_PIXFMT_RAW,
588 (params->pix_fmt << ISIF_INPUT_SHIFT) | in isif_config_raw()
762 isif_cfg.bayer.pix_fmt = CCDC_PIXFMT_RAW; in isif_set_pixel_format()
870 isif_cfg.ycbcr.pix_fmt = CCDC_PIXFMT_YCBCR_8BIT; in isif_set_hw_if_params()
875 isif_cfg.ycbcr.pix_fmt = CCDC_PIXFMT_YCBCR_16BIT; in isif_set_hw_if_params()
879 isif_cfg.bayer.pix_fmt = CCDC_PIXFMT_RAW; in isif_set_hw_if_params()
900 modeset = modeset | (params->pix_fmt << ISIF_INPUT_SHIFT) | in isif_config_ycbcr()
909 if (params->pix_fmt != CCDC_PIXFMT_YCBCR_8BIT) { in isif_config_ycbcr()
918 if (params->pix_fmt != CCDC_PIXFMT_YCBCR_8BIT) { in isif_config_ycbcr()
[all …]
Ddm355_ccdc.c66 .pix_fmt = CCDC_PIXFMT_RAW,
106 .pix_fmt = CCDC_PIXFMT_YCBCR_8BIT,
362 temp = (((params->pix_fmt & CCDC_INPUT_MODE_MASK) << in ccdc_config_ycbcr()
650 ((params->pix_fmt & CCDC_PIX_FMT_MASK) << CCDC_PIX_FMT_SHIFT)); in ccdc_config_raw()
823 ccdc_cfg.bayer.pix_fmt = CCDC_PIXFMT_RAW; in ccdc_set_pixel_format()
Ddm644x_ccdc.c67 .pix_fmt = CCDC_PIXFMT_RAW,
78 .pix_fmt = CCDC_PIXFMT_YCBCR_8BIT,
391 syn_mode = (((params->pix_fmt & CCDC_SYN_MODE_INPMOD_MASK) << in ccdc_config_ycbcr()
556 ((params->pix_fmt & CCDC_PIX_FMT_MASK) << CCDC_PIX_FMT_SHIFT) | in ccdc_config_raw()
730 ccdc_cfg.bayer.pix_fmt = CCDC_PIXFMT_RAW; in ccdc_set_pixel_format()
Dvpbe_display.c159 if ((V4L2_FIELD_NONE == layer->pix_fmt.field) && in venc_isr()
213 vb2_set_plane_payload(vb, 0, layer->pix_fmt.sizeimage); in vpbe_buffer_prepare()
247 return sizes[0] < layer->pix_fmt.sizeimage ? -EINVAL : 0; in vpbe_buffer_queue_setup()
250 sizes[0] = layer->pix_fmt.sizeimage; in vpbe_buffer_queue_setup()
429 struct v4l2_pix_format *pixfmt = &layer->pix_fmt; in vpbe_disp_calculate_scale_factor()
790 fmt->fmt.pix = layer->pix_fmt; in vpbe_display_g_fmt()
856 layer->pix_fmt = *pixfmt; in vpbe_display_s_fmt()
Dvpfe_capture.c959 const struct vpfe_pixel_format *pix_fmt; in vpfe_enum_fmt_vid_cap() local
969 pix_fmt = vpfe_lookup_pix_format(pix); in vpfe_enum_fmt_vid_cap()
970 if (NULL != pix_fmt) { in vpfe_enum_fmt_vid_cap()
972 *fmt = pix_fmt->fmtdesc; in vpfe_enum_fmt_vid_cap()
/drivers/staging/media/davinci_vpfe/
Ddm365_isif.h71 enum isif_pixfmt pix_fmt; member
118 enum isif_pixfmt pix_fmt; member
Ddm365_isif.c165 isif->isif_cfg.bayer.pix_fmt = ISIF_PIXFMT_RAW; in isif_set_pixel_format()
1071 int pix_fmt; in isif_config_raw() local
1094 pix_fmt = isif_get_pix_fmt(format->code); in isif_config_raw()
1095 if (pix_fmt < 0) { in isif_config_raw()
1115 ISIF_FRM_FMT_MASK) << ISIF_FRM_FMT_SHIFT) | ((pix_fmt & in isif_config_raw()
1224 int pix_fmt; in isif_config_ycbcr() local
1238 pix_fmt = isif_get_pix_fmt(format->code); in isif_config_ycbcr()
1239 if (pix_fmt < 0) { in isif_config_ycbcr()
1244 modeset = modeset | ((pix_fmt & ISIF_INPUT_MASK) << in isif_config_ycbcr()
1254 if (pix_fmt != ISIF_PIXFMT_YCBCR_8BIT) { in isif_config_ycbcr()
[all …]
/drivers/media/platform/am437x/
Dam437x-vpfe.h151 enum ccdc_pixfmt pix_fmt; member
180 enum ccdc_pixfmt pix_fmt; member
Dam437x-vpfe.c250 struct v4l2_pix_format *pix_fmt, in pix_to_mbus() argument
255 fmt = find_format_by_pix(pix_fmt->pixelformat); in pix_to_mbus()
259 pix_fmt->pixelformat); in pix_to_mbus()
264 v4l2_fill_mbus_format(mbus_fmt, pix_fmt, fmt->code); in pix_to_mbus()
544 syn_mode = (((params->pix_fmt & VPFE_SYN_MODE_INPMOD_MASK) << in vpfe_ccdc_config_ycbcr()
684 VPFE_DATA_SZ_SHIFT) | ((params->pix_fmt & in vpfe_ccdc_config_raw()
769 ccdc->ccdc_cfg.bayer.pix_fmt = CCDC_PIXFMT_RAW; in vpfe_ccdc_set_pixel_format()
978 ccdc->ccdc_cfg.ycbcr.pix_fmt = CCDC_PIXFMT_YCBCR_8BIT; in vpfe_ccdc_config_defaults()
992 ccdc->ccdc_cfg.bayer.pix_fmt = CCDC_PIXFMT_RAW; in vpfe_ccdc_config_defaults()
/drivers/gpu/drm/msm/mdp/mdp5/
Dmdp5_plane.c553 uint32_t sub, pix_fmt = format->base.pixel_format; in get_scale_config() local
561 sub = horz ? drm_format_horz_chroma_subsampling(pix_fmt) : in get_scale_config()
562 drm_format_vert_chroma_subsampling(pix_fmt); in get_scale_config()
607 uint32_t pix_fmt = format->base.pixel_format; in mdp5_write_pixel_ext() local
616 roi_w /= drm_format_horz_chroma_subsampling(pix_fmt); in mdp5_write_pixel_ext()
617 roi_h /= drm_format_vert_chroma_subsampling(pix_fmt); in mdp5_write_pixel_ext()
/drivers/video/fbdev/mmp/hw/
Dmmp_ctrl.c61 static u32 fmt_to_reg(struct mmp_overlay *overlay, int pix_fmt) in fmt_to_reg() argument
67 switch (pix_fmt) { in fmt_to_reg()
87 switch (pix_fmt) { in fmt_to_reg()
138 tmp |= fmt_to_reg(overlay, overlay->win.pix_fmt); in dmafetch_set_fmt()
/drivers/media/platform/s5p-jpeg/
Djpeg-core.c1555 u32 pix_fmt = f->fmt.pix.pixelformat; in exynos4_jpeg_get_output_buffer_size() local
1559 if (pix_fmt == V4L2_PIX_FMT_RGB32 || in exynos4_jpeg_get_output_buffer_size()
1560 pix_fmt == V4L2_PIX_FMT_RGB565 || in exynos4_jpeg_get_output_buffer_size()
1561 pix_fmt == V4L2_PIX_FMT_NV24 || in exynos4_jpeg_get_output_buffer_size()
1562 pix_fmt == V4L2_PIX_FMT_NV42 || in exynos4_jpeg_get_output_buffer_size()
1563 pix_fmt == V4L2_PIX_FMT_NV12 || in exynos4_jpeg_get_output_buffer_size()
1564 pix_fmt == V4L2_PIX_FMT_NV21 || in exynos4_jpeg_get_output_buffer_size()
1565 pix_fmt == V4L2_PIX_FMT_YUV420) in exynos4_jpeg_get_output_buffer_size()
/drivers/gpu/drm/omapdrm/dss/
Ddsi.c387 enum omap_dss_dsi_pixel_format pix_fmt; member
3323 int bpp = dsi_get_pixel_size(dsi->pix_fmt); in dsi_config_vp_num_line_buffers()
3457 int bpp = dsi_get_pixel_size(dsi->pix_fmt); in dsi_config_cmd_mode_interleaving()
3586 switch (dsi_get_pixel_size(dsi->pix_fmt)) { in dsi_proto_config()
3709 int bpp = dsi_get_pixel_size(dsi->pix_fmt); in dsi_proto_timings()
3819 int bpp = dsi_get_pixel_size(dsi->pix_fmt); in dsi_enable_video_output()
3835 switch (dsi->pix_fmt) { in dsi_enable_video_output()
3928 bytespp = dsi_get_pixel_size(dsi->pix_fmt) / 8; in dsi_update_screen_dispc()
4064 dsi_get_pixel_size(dsi->pix_fmt) / 8; in dsi_update()
4140 dsi_get_pixel_size(dsi->pix_fmt); in dsi_display_init_dispc()
[all …]
/drivers/video/fbdev/omap2/omapfb/dss/
Ddsi.c387 enum omap_dss_dsi_pixel_format pix_fmt; member
3324 int bpp = dsi_get_pixel_size(dsi->pix_fmt); in dsi_config_vp_num_line_buffers()
3458 int bpp = dsi_get_pixel_size(dsi->pix_fmt); in dsi_config_cmd_mode_interleaving()
3587 switch (dsi_get_pixel_size(dsi->pix_fmt)) { in dsi_proto_config()
3710 int bpp = dsi_get_pixel_size(dsi->pix_fmt); in dsi_proto_timings()
3820 int bpp = dsi_get_pixel_size(dsi->pix_fmt); in dsi_enable_video_output()
3836 switch (dsi->pix_fmt) { in dsi_enable_video_output()
3929 bytespp = dsi_get_pixel_size(dsi->pix_fmt) / 8; in dsi_update_screen_dispc()
4065 dsi_get_pixel_size(dsi->pix_fmt) / 8; in dsi_update()
4141 dsi_get_pixel_size(dsi->pix_fmt); in dsi_display_init_dispc()
[all …]