Home
last modified time | relevance | path

Searched refs:formats (Results 1 – 25 of 68) sorted by relevance

123

/drivers/staging/omapdrm/
Domap_fb.c40 static const struct format formats[] = { variable
69 for (i = 0; i < ARRAY_SIZE(formats) && nformats < max_formats; i++) in omap_framebuffer_get_formats()
70 if (formats[i].dss_format & supported_modes) in omap_framebuffer_get_formats()
71 pixel_formats[nformats++] = formats[i].pixel_format; in omap_framebuffer_get_formats()
332 for (i = 0; i < ARRAY_SIZE(formats); i++) { in omap_framebuffer_init()
333 if (formats[i].pixel_format == mode_cmd->pixel_format) { in omap_framebuffer_init()
334 format = &formats[i]; in omap_framebuffer_init()
Domap_plane.c55 uint32_t formats[32]; member
450 omap_plane->formats, ARRAY_SIZE(omap_plane->formats), in omap_plane_init()
456 omap_plane->formats, omap_plane->nformats, priv); in omap_plane_init()
/drivers/media/video/s5p-mfc/
Ds5p_mfc_dec.c35 static struct s5p_mfc_fmt formats[] = { variable
108 #define NUM_FORMATS ARRAY_SIZE(formats)
116 if (formats[i].fourcc == f->fmt.pix_mp.pixelformat && in find_format()
117 formats[i].type == t) in find_format()
118 return &formats[i]; in find_format()
234 for (i = 0; i < ARRAY_SIZE(formats); ++i) { in vidioc_enum_fmt()
235 if (mplane && formats[i].num_planes == 1) in vidioc_enum_fmt()
237 else if (!mplane && formats[i].num_planes > 1) in vidioc_enum_fmt()
239 if (out && formats[i].type != MFC_FMT_DEC) in vidioc_enum_fmt()
241 else if (!out && formats[i].type != MFC_FMT_RAW) in vidioc_enum_fmt()
[all …]
Ds5p_mfc_enc.c34 static struct s5p_mfc_fmt formats[] = { variable
72 #define NUM_FORMATS ARRAY_SIZE(formats)
78 if (formats[i].fourcc == f->fmt.pix_mp.pixelformat && in find_format()
79 formats[i].type == t) in find_format()
80 return &formats[i]; in find_format()
799 for (i = 0; i < ARRAY_SIZE(formats); ++i) { in vidioc_enum_fmt()
800 if (mplane && formats[i].num_planes == 1) in vidioc_enum_fmt()
802 else if (!mplane && formats[i].num_planes > 1) in vidioc_enum_fmt()
804 if (out && formats[i].type != MFC_FMT_RAW) in vidioc_enum_fmt()
806 else if (!out && formats[i].type != MFC_FMT_ENC) in vidioc_enum_fmt()
[all …]
/drivers/gpu/drm/exynos/
Dexynos_drm_plane.c25 static const uint32_t formats[] = { variable
127 &exynos_plane_funcs, formats, ARRAY_SIZE(formats), in exynos_plane_init()
/drivers/media/video/omap3isp/
Dispvideo.c49 static struct isp_format_info formats[] = { variable
111 for (i = 0; i < ARRAY_SIZE(formats); ++i) { in omap3isp_video_format_info()
112 if (formats[i].code == code) in omap3isp_video_format_info()
113 return &formats[i]; in omap3isp_video_format_info()
174 for (i = 0; i < ARRAY_SIZE(formats); ++i) { in isp_video_mbus_to_pix()
175 if (formats[i].code == mbus->code) in isp_video_mbus_to_pix()
179 if (WARN_ON(i == ARRAY_SIZE(formats))) in isp_video_mbus_to_pix()
182 min_bpl = pix->width * ALIGN(formats[i].bpp, 8) / 8; in isp_video_mbus_to_pix()
196 pix->pixelformat = formats[i].pixelformat; in isp_video_mbus_to_pix()
217 for (i = 0; i < ARRAY_SIZE(formats) - 1; ++i) { in isp_video_pix_to_mbus()
[all …]
Dispccp2.c390 format = &ccp2->formats[CCP2_PAD_SINK]; in ccp2_if_configure()
406 const struct v4l2_mbus_framefmt *ofmt = &ccp2->formats[CCP2_PAD_SOURCE]; in ccp2_adjust_bandwidth()
454 u32 sink_pixcode = ccp2->formats[CCP2_PAD_SINK].code; in ccp2_mem_configure()
455 u32 source_pixcode = ccp2->formats[CCP2_PAD_SOURCE].code; in ccp2_mem_configure()
653 return &ccp2->formats[pad]; in __ccp2_get_format()
884 format = &ccp2->formats[CCP2_PAD_SINK]; in ccp2_s_stream()
Dispccp2.h75 struct v4l2_mbus_framefmt formats[CCP2_PADS_NUM]; member
Dispresizer.h105 struct v4l2_mbus_framefmt formats[RESZ_PADS_NUM]; member
Dispcsi2.h134 struct v4l2_mbus_framefmt formats[CSI2_PADS_NUM]; member
Dispccdc.h175 struct v4l2_mbus_framefmt formats[CCDC_PADS_NUM]; member
Disppreview.h172 struct v4l2_mbus_framefmt formats[PREV_PADS_NUM]; member
/drivers/staging/line6/
Dpodhd.c40 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
60 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
Dtoneport.c44 .formats = SNDRV_PCM_FMTBIT_S16_LE,
64 .formats = SNDRV_PCM_FMTBIT_S16_LE,
/drivers/media/video/
Dmem2mem_testdev.c83 static struct m2mtest_fmt formats[] = { variable
154 #define NUM_FORMATS ARRAY_SIZE(formats)
162 fmt = &formats[k]; in find_format()
170 return &formats[k]; in find_format()
396 if (formats[i].types & type) { in enum_fmt()
408 fmt = &formats[i]; in enum_fmt()
985 q_data[V4L2_M2M_SRC].fmt = &formats[0]; in m2mtest_probe()
986 q_data[V4L2_M2M_DST].fmt = &formats[0]; in m2mtest_probe()
Dmx2_emmaprp.c158 static struct emmaprp_fmt formats[] = { variable
184 #define NUM_FORMATS ARRAY_SIZE(formats)
192 fmt = &formats[k]; in find_format()
200 return &formats[k]; in find_format()
413 if (formats[i].types & type) { in enum_fmt()
425 fmt = &formats[i]; in enum_fmt()
804 ctx->q_data[V4L2_M2M_SRC].fmt = &formats[1]; in emmaprp_open()
805 ctx->q_data[V4L2_M2M_DST].fmt = &formats[0]; in emmaprp_open()
Dvivi.c86 static struct vivi_fmt formats[] = { variable
124 for (k = 0; k < ARRAY_SIZE(formats); k++) { in get_format()
125 fmt = &formats[k]; in get_format()
130 if (k == ARRAY_SIZE(formats)) in get_format()
133 return &formats[k]; in get_format()
833 if (f->index >= ARRAY_SIZE(formats)) in vidioc_enum_fmt_vid_cap()
836 fmt = &formats[f->index]; in vidioc_enum_fmt_vid_cap()
1252 dev->fmt = &formats[0]; in vivi_create_instance()
Ds2255drv.c411 static const struct s2255_fmt formats[] = { variable
609 for (i = 0; i < ARRAY_SIZE(formats); i++) { in format_by_fourcc()
610 if (-1 == formats[i].fourcc) in format_by_fourcc()
612 if (!jpeg_enable && ((formats[i].fourcc == V4L2_PIX_FMT_JPEG) || in format_by_fourcc()
613 (formats[i].fourcc == V4L2_PIX_FMT_MJPEG))) in format_by_fourcc()
615 if (formats[i].fourcc == fourcc) in format_by_fourcc()
616 return formats + i; in format_by_fourcc()
857 if (index >= ARRAY_SIZE(formats)) in vidioc_enum_fmt_vid_cap()
859 if (!jpeg_enable && ((formats[index].fourcc == V4L2_PIX_FMT_JPEG) || in vidioc_enum_fmt_vid_cap()
860 (formats[index].fourcc == V4L2_PIX_FMT_MJPEG))) in vidioc_enum_fmt_vid_cap()
[all …]
Dmx3_camera.c669 int formats = 0, ret; in mx3_camera_get_formats() local
692 formats++; in mx3_camera_get_formats()
702 formats++; in mx3_camera_get_formats()
717 formats++; in mx3_camera_get_formats()
729 return formats; in mx3_camera_get_formats()
Dfsl-viu.c102 static struct viu_fmt formats[] = { variable
266 #define NUM_FORMATS ARRAY_SIZE(formats)
275 if (formats[i].pixelformat == fourcc) in format_by_fourcc()
276 return formats + i; in format_by_fourcc()
622 strlcpy(f->description, formats[index].name, sizeof(f->description)); in vidioc_enum_fmt()
623 f->pixelformat = formats[index].fourcc; in vidioc_enum_fmt()
/drivers/media/video/s5p-g2d/
Dg2d.c34 static struct g2d_fmt formats[] = { variable
66 #define NUM_FORMATS ARRAY_SIZE(formats)
75 .fmt = &formats[0],
84 if (formats[i].fourcc == f->fmt.pix.pixelformat) in find_fmt()
85 return &formats[i]; in find_fmt()
303 fmt = &formats[f->index]; in vidioc_enum_fmt()
/drivers/media/video/s5p-jpeg/
Djpeg-core.c498 static int enum_fmt(struct s5p_jpeg_fmt *formats, int n, in enum_fmt() argument
504 if (formats[i].types & type) { in enum_fmt()
518 strlcpy(f->description, formats[i].name, sizeof(f->description)); in enum_fmt()
519 f->pixelformat = formats[i].fourcc; in enum_fmt()
596 struct s5p_jpeg_fmt *formats; in s5p_jpeg_find_format() local
600 formats = formats_enc; in s5p_jpeg_find_format()
603 formats = formats_dec; in s5p_jpeg_find_format()
608 struct s5p_jpeg_fmt *fmt = &formats[k]; in s5p_jpeg_find_format()
/drivers/media/video/cx23885/
Dcx23885-video.c82 static struct cx23885_fmt formats[] = {
136 static struct cx23885_fmt formats[] = { variable
157 for (i = 0; i < ARRAY_SIZE(formats); i++) in format_by_fourcc()
158 if (formats[i].fourcc == fourcc) in format_by_fourcc()
159 return formats+i; in format_by_fourcc()
1161 if (unlikely(f->index >= ARRAY_SIZE(formats))) in vidioc_enum_fmt_vid_cap()
1164 strlcpy(f->description, formats[f->index].name, in vidioc_enum_fmt_vid_cap()
1166 f->pixelformat = formats[f->index].fourcc; in vidioc_enum_fmt_vid_cap()
/drivers/media/video/cx25821/
Dcx25821-video.c63 struct cx25821_fmt formats[] = { variable
94 return ARRAY_SIZE(formats); in cx25821_get_format_size()
102 return formats + 1; in cx25821_format_by_fourcc()
104 for (i = 0; i < ARRAY_SIZE(formats); i++) in cx25821_format_by_fourcc()
105 if (formats[i].fourcc == fourcc) in cx25821_format_by_fourcc()
106 return formats + i; in cx25821_format_by_fourcc()
1176 if (unlikely(f->index >= ARRAY_SIZE(formats))) in cx25821_vidioc_enum_fmt_vid_cap()
1179 strlcpy(f->description, formats[f->index].name, sizeof(f->description)); in cx25821_vidioc_enum_fmt_vid_cap()
1180 f->pixelformat = formats[f->index].fourcc; in cx25821_vidioc_enum_fmt_vid_cap()
/drivers/media/common/
Dsaa7146_video.c19 static struct saa7146_format formats[] = { variable
88 static int NUM_FORMATS = sizeof(formats)/sizeof(struct saa7146_format);
95 if (formats[i].pixelformat == fourcc) { in saa7146_format_by_fourcc()
96 return formats+i; in saa7146_format_by_fourcc()
576 strlcpy((char *)f->description, formats[f->index].name, in vidioc_enum_fmt_vid_cap()
578 f->pixelformat = formats[f->index].pixelformat; in vidioc_enum_fmt_vid_cap()

123