Lines Matching defs:fmt
355 const struct ipu3_cio2_fmt *fmt;
362 fmt = cio2_find_format(NULL, &q->subdev_fmt.code);
363 if (!fmt)
368 r = cio2_csi2_calc_timing(cio2, q, &timing, fmt->bpp, lanes);
436 fmt->mipicode << CIO2_MIPIBE_LP_LUT_ENTRY_FORMAT_TYPE_SHIFT,
1078 f->fmt.pix_mp = q->format;
1085 const struct ipu3_cio2_fmt *fmt;
1086 struct v4l2_pix_format_mplane *mpix = &f->fmt.pix_mp;
1088 fmt = cio2_find_format(&mpix->pixelformat, NULL);
1089 if (!fmt)
1090 fmt = &formats[0];
1099 mpix->pixelformat = fmt->fourcc;
1119 q->format = f->fmt.pix_mp;
1222 * @fmt: pointer to v4l2 subdev format structure
1227 struct v4l2_subdev_format *fmt)
1233 if (fmt->which == V4L2_SUBDEV_FORMAT_TRY)
1234 fmt->format = *v4l2_subdev_get_try_format(sd, sd_state,
1235 fmt->pad);
1237 fmt->format = q->subdev_fmt;
1248 * @fmt: pointer to v4l2 subdev format structure
1253 struct v4l2_subdev_format *fmt)
1257 u32 mbus_code = fmt->format.code;
1264 if (fmt->pad == CIO2_PAD_SOURCE)
1265 return cio2_subdev_get_fmt(sd, sd_state, fmt);
1267 if (fmt->which == V4L2_SUBDEV_FORMAT_TRY)
1268 mbus = v4l2_subdev_get_try_format(sd, sd_state, fmt->pad);
1272 fmt->format.code = formats[0].mbus_code;
1276 fmt->format.code = mbus_code;
1281 fmt->format.width = min(fmt->format.width, CIO2_IMAGE_MAX_WIDTH);
1282 fmt->format.height = min(fmt->format.height, CIO2_IMAGE_MAX_HEIGHT);
1283 fmt->format.field = V4L2_FIELD_NONE;
1286 *mbus = fmt->format;
1304 struct v4l2_subdev_format *fmt)
1310 memset(fmt, 0, sizeof(*fmt));
1311 fmt->which = V4L2_SUBDEV_FORMAT_ACTIVE;
1312 fmt->pad = pad->index;
1313 return v4l2_subdev_call(sd, pad, get_fmt, NULL, fmt);
1534 struct v4l2_mbus_framefmt *fmt;
1542 fmt = &q->subdev_fmt;
1543 fmt->width = default_width;
1544 fmt->height = default_height;
1545 fmt->code = dflt_fmt.mbus_code;
1546 fmt->field = V4L2_FIELD_NONE;