Lines Matching refs:sd_fmt
120 struct v4l2_subdev_format sd_fmt; in __subdev_get_format() local
121 struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format; in __subdev_get_format()
124 sd_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE; in __subdev_get_format()
125 sd_fmt.pad = 0; in __subdev_get_format()
127 ret = v4l2_subdev_call(ctx->phy->source, pad, get_fmt, NULL, &sd_fmt); in __subdev_get_format()
142 struct v4l2_subdev_format sd_fmt; in __subdev_set_format() local
143 struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format; in __subdev_set_format()
146 sd_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE; in __subdev_set_format()
147 sd_fmt.pad = 0; in __subdev_set_format()
150 ret = v4l2_subdev_call(ctx->phy->source, pad, set_fmt, NULL, &sd_fmt); in __subdev_set_format()
254 struct v4l2_subdev_format sd_fmt = { in cal_legacy_s_fmt_vid_cap() local
272 v4l2_fill_mbus_format(&sd_fmt.format, &f->fmt.pix, fmtinfo->code); in cal_legacy_s_fmt_vid_cap()
274 ret = __subdev_set_format(ctx, &sd_fmt.format); in cal_legacy_s_fmt_vid_cap()
279 if (sd_fmt.format.code != fmtinfo->code) { in cal_legacy_s_fmt_vid_cap()
286 v4l2_fill_pix_format(&ctx->v_fmt.fmt.pix, &sd_fmt.format); in cal_legacy_s_fmt_vid_cap()
289 ctx->v_fmt.fmt.pix.field = sd_fmt.format.field; in cal_legacy_s_fmt_vid_cap()
292 v4l2_subdev_call(&ctx->phy->subdev, pad, set_fmt, NULL, &sd_fmt); in cal_legacy_s_fmt_vid_cap()