Lines Matching refs:format
142 struct v4l2_subdev_format *format) in ipu6_isys_subdev_set_fmt() argument
153 if ((sd->entity.pads[format->pad].flags & MEDIA_PAD_FL_SOURCE) && in ipu6_isys_subdev_set_fmt()
155 return v4l2_subdev_get_fmt(sd, state, format); in ipu6_isys_subdev_set_fmt()
157 format->format.width = clamp(format->format.width, IPU6_ISYS_MIN_WIDTH, in ipu6_isys_subdev_set_fmt()
159 format->format.height = clamp(format->format.height, in ipu6_isys_subdev_set_fmt()
164 if (asd->supported_codes[i] == format->format.code) { in ipu6_isys_subdev_set_fmt()
169 format->format.code = code; in ipu6_isys_subdev_set_fmt()
170 format->format.field = V4L2_FIELD_NONE; in ipu6_isys_subdev_set_fmt()
173 fmt = v4l2_subdev_state_get_format(state, format->pad, format->stream); in ipu6_isys_subdev_set_fmt()
177 *fmt = format->format; in ipu6_isys_subdev_set_fmt()
179 if (!(sd->entity.pads[format->pad].flags & MEDIA_PAD_FL_SINK)) in ipu6_isys_subdev_set_fmt()
183 fmt = v4l2_subdev_state_get_opposite_stream_format(state, format->pad, in ipu6_isys_subdev_set_fmt()
184 format->stream); in ipu6_isys_subdev_set_fmt()
188 *fmt = format->format; in ipu6_isys_subdev_set_fmt()
191 format->pad, in ipu6_isys_subdev_set_fmt()
192 format->stream, in ipu6_isys_subdev_set_fmt()
230 static const struct v4l2_mbus_framefmt format = { in subdev_set_routing() local
243 return v4l2_subdev_set_routing_with_fmt(sd, state, routing, &format); in subdev_set_routing()
247 struct v4l2_mbus_framefmt *format) in ipu6_isys_get_stream_pad_fmt() argument
252 if (!sd || !format) in ipu6_isys_get_stream_pad_fmt()
258 *format = *fmt; in ipu6_isys_get_stream_pad_fmt()