/drivers/staging/omapdrm/ |
D | omap_fb.c | 40 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()
|
D | omap_plane.c | 55 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/ |
D | s5p_mfc_dec.c | 35 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 …]
|
D | s5p_mfc_enc.c | 34 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/ |
D | exynos_drm_plane.c | 25 static const uint32_t formats[] = { variable 127 &exynos_plane_funcs, formats, ARRAY_SIZE(formats), in exynos_plane_init()
|
/drivers/media/video/omap3isp/ |
D | ispvideo.c | 49 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 …]
|
D | ispccp2.c | 390 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()
|
D | ispccp2.h | 75 struct v4l2_mbus_framefmt formats[CCP2_PADS_NUM]; member
|
D | ispresizer.h | 105 struct v4l2_mbus_framefmt formats[RESZ_PADS_NUM]; member
|
D | ispcsi2.h | 134 struct v4l2_mbus_framefmt formats[CSI2_PADS_NUM]; member
|
D | ispccdc.h | 175 struct v4l2_mbus_framefmt formats[CCDC_PADS_NUM]; member
|
D | isppreview.h | 172 struct v4l2_mbus_framefmt formats[PREV_PADS_NUM]; member
|
/drivers/staging/line6/ |
D | podhd.c | 40 .formats = SNDRV_PCM_FMTBIT_S24_3LE, 60 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
D | toneport.c | 44 .formats = SNDRV_PCM_FMTBIT_S16_LE, 64 .formats = SNDRV_PCM_FMTBIT_S16_LE,
|
/drivers/media/video/ |
D | mem2mem_testdev.c | 83 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()
|
D | mx2_emmaprp.c | 158 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()
|
D | vivi.c | 86 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()
|
D | s2255drv.c | 411 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 …]
|
D | mx3_camera.c | 669 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()
|
D | fsl-viu.c | 102 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/ |
D | g2d.c | 34 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/ |
D | jpeg-core.c | 498 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/ |
D | cx23885-video.c | 82 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/ |
D | cx25821-video.c | 63 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/ |
D | saa7146_video.c | 19 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()
|