Lines Matching refs:fmt

10 #define pr_fmt(fmt) "%s:%d " fmt, __func__, __LINE__
65 const struct fimc_fmt *fmt, *def_fmt = NULL;
73 fmt = &fimc_isp_formats[i];
74 if (pixelformat && fmt->fourcc == *pixelformat)
75 return fmt;
76 if (mbus_code && fmt->mbus_code == *mbus_code)
77 return fmt;
79 def_fmt = fmt;
112 const struct fimc_fmt *fmt;
114 fmt = fimc_isp_find_format(NULL, NULL, code->index);
115 if (!fmt)
117 code->code = fmt->mbus_code;
123 struct v4l2_subdev_format *fmt)
126 struct v4l2_mbus_framefmt *mf = &fmt->format;
128 if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) {
129 *mf = *v4l2_subdev_state_get_format(sd_state, fmt->pad);
137 if (fmt->pad == FIMC_ISP_SD_PAD_SINK) {
144 if (fmt->pad == FIMC_ISP_SD_PAD_SRC_FIFO) {
152 isp_dbg(1, sd, "%s: pad%d: fmt: 0x%x, %dx%d\n", __func__,
153 fmt->pad, mf->code, mf->width, mf->height);
160 struct v4l2_subdev_format *fmt)
162 struct v4l2_mbus_framefmt *mf = &fmt->format;
167 if (fmt->pad == FIMC_ISP_SD_PAD_SINK) {
174 if (fmt->which == V4L2_SUBDEV_FORMAT_TRY)
184 if (fmt->pad == FIMC_ISP_SD_PAD_SRC_FIFO) {
195 struct v4l2_subdev_format *fmt)
199 struct v4l2_mbus_framefmt *mf = &fmt->format;
203 __func__, fmt->pad, mf->code, mf->width, mf->height);
206 __isp_subdev_try_format(isp, sd_state, fmt);
208 if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) {
209 mf = v4l2_subdev_state_get_format(sd_state, fmt->pad);
210 *mf = fmt->format;
213 if (fmt->pad == FIMC_ISP_SD_PAD_SINK) {
214 struct v4l2_subdev_format format = *fmt;
229 if (fmt->pad == FIMC_ISP_SD_PAD_SINK) {
230 struct v4l2_subdev_format format = *fmt;
368 struct v4l2_mbus_framefmt fmt = {
377 *format = fmt;
381 fmt.width = DEFAULT_PREVIEW_STILL_WIDTH;
382 fmt.height = DEFAULT_PREVIEW_STILL_HEIGHT;
383 *format = fmt;
387 *format = fmt;