Lines Matching refs:format

89 /* To set the format on the CSI2 requires a mapping function that takes
94 * - 2 isp revisions (certain format must be handled differently on OMAP3630)
95 * Output should be CSI2 frame format code
96 * Array indices as follows: [format][dest][decompr][is_3630]
160 * csi2_ctx_map_format - Map CSI2 sink media bus format to CSI2 format ID
163 * Returns CSI2 physical format id
187 WARN(1, KERN_ERR "CSI2: pixel format %08x unsupported!\n",
233 * @format_id: mapped format id
587 * The CSI2 receiver can't do any format conversion except DPCM
618 /* Set configuration (timings, format and links) */
845 struct v4l2_mbus_framefmt *format;
866 /* Source format same as sink format, except for DPCM
870 format = __csi2_get_format(csi2, cfg, CSI2_PAD_SINK, which);
871 memcpy(fmt, format, sizeof(*fmt));
889 * csi2_enum_mbus_code - Handle pixel format enumeration
900 struct v4l2_mbus_framefmt *format;
909 format = __csi2_get_format(csi2, cfg, CSI2_PAD_SINK,
914 code->code = format->code;
918 info = omap3isp_video_format_info(format->code);
919 if (info->uncompressed == format->code)
937 struct v4l2_mbus_framefmt format;
942 format.code = fse->code;
943 format.width = 1;
944 format.height = 1;
945 csi2_try_format(csi2, cfg, fse->pad, &format, fse->which);
946 fse->min_width = format.width;
947 fse->min_height = format.height;
949 if (format.code != fse->code)
952 format.code = fse->code;
953 format.width = -1;
954 format.height = -1;
955 csi2_try_format(csi2, cfg, fse->pad, &format, fse->which);
956 fse->max_width = format.width;
957 fse->max_height = format.height;
963 * csi2_get_format - Handle get format by pads subdev method
966 * @fmt: pointer to v4l2 subdev format structure
973 struct v4l2_mbus_framefmt *format;
975 format = __csi2_get_format(csi2, cfg, fmt->pad, fmt->which);
976 if (format == NULL)
979 fmt->format = *format;
984 * csi2_set_format - Handle set format by pads subdev method
987 * @fmt: pointer to v4l2 subdev format structure
994 struct v4l2_mbus_framefmt *format;
996 format = __csi2_get_format(csi2, cfg, fmt->pad, fmt->which);
997 if (format == NULL)
1000 csi2_try_format(csi2, cfg, fmt->pad, &fmt->format, fmt->which);
1001 *format = fmt->format;
1003 /* Propagate the format from sink to source */
1005 format = __csi2_get_format(csi2, cfg, CSI2_PAD_SOURCE,
1007 *format = fmt->format;
1008 csi2_try_format(csi2, cfg, CSI2_PAD_SOURCE, format, fmt->which);
1025 struct v4l2_subdev_format format;
1027 memset(&format, 0, sizeof(format));
1028 format.pad = CSI2_PAD_SINK;
1029 format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE;
1030 format.format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
1031 format.format.width = 4096;
1032 format.format.height = 4096;
1033 csi2_set_format(sd, fh ? fh->pad : NULL, &format);