Lines Matching defs:ffmt

3725 				    struct v4l2_mbus_framefmt *ffmt,
3732 .r.width = ffmt->width,
3733 .r.height = ffmt->height,
3737 .format = *ffmt,
3779 *ffmt = format.format;
3790 struct v4l2_mbus_framefmt ffmt = { };
3814 v4l2_fill_mbus_format(&ffmt, f, fmt->mbus_code);
3815 ffmt.width += padding_w;
3816 ffmt.height += padding_h;
3818 dev_dbg(isp->dev, "try_mbus_fmt: try %ux%u\n", ffmt.width, ffmt.height);
3820 ret = atomisp_set_crop_and_fmt(isp, &ffmt, V4L2_SUBDEV_FORMAT_TRY);
3824 dev_dbg(isp->dev, "try_mbus_fmt: got %ux%u\n", ffmt.width, ffmt.height);
3826 snr_fmt = atomisp_get_format_bridge_from_mbus(ffmt.code);
3829 ffmt.code);
3833 f->width = ffmt.width - padding_w;
3834 f->height = ffmt.height - padding_h;
3990 struct v4l2_mbus_framefmt *ffmt)
3996 ffmt->width, ffmt->height);
4243 struct v4l2_mbus_framefmt req_ffmt, ffmt = { };
4245 (struct atomisp_input_stream_info *)&ffmt.reserved;
4252 v4l2_fill_mbus_format(&ffmt, f, format->mbus_code);
4253 ffmt.height += asd->sink_pad_padding_h + dvs_env_h;
4254 ffmt.width += asd->sink_pad_padding_w + dvs_env_w;
4257 ffmt.width, ffmt.height, asd->sink_pad_padding_w, asd->sink_pad_padding_h,
4262 req_ffmt = ffmt;
4266 ret = atomisp_set_crop_and_fmt(isp, &ffmt, V4L2_SUBDEV_FORMAT_TRY);
4271 ffmt.width, ffmt.height);
4273 if (ffmt.width < req_ffmt.width ||
4274 ffmt.height < req_ffmt.height) {
4277 ffmt = req_ffmt;
4284 ret = atomisp_set_crop_and_fmt(isp, &ffmt, V4L2_SUBDEV_FORMAT_ACTIVE);
4291 ffmt.width, ffmt.height);
4293 if (ffmt.width < ATOM_ISP_STEP_WIDTH ||
4294 ffmt.height < ATOM_ISP_STEP_HEIGHT)
4298 (ffmt.width < req_ffmt.width || ffmt.height < req_ffmt.height)) {
4306 ATOMISP_SUBDEV_PAD_SINK, &ffmt);
4308 return css_input_resolution_changed(asd, &ffmt);