Lines Matching defs:format

319 	const struct v4l2_mbus_framefmt *format;
328 format = v4l2_subdev_get_pad_format(&sensor->subdev, state, 0);
333 vmax = format->height + sensor->vblank->cur.val;
343 imx296_write(sensor, IMX296_VMAX, format->height + ctrl->val,
509 const struct v4l2_mbus_framefmt *format;
514 format = v4l2_subdev_get_pad_format(&sensor->subdev, state, 0);
534 (crop->width != format->width ?
536 (crop->height != format->height ?
560 format->height + sensor->vblank->cur.val, &ret);
673 const struct v4l2_mbus_framefmt *format;
675 format = v4l2_subdev_get_pad_format(sd, state, fse->pad);
677 if (fse->index >= 2 || fse->code != format->code)
693 struct v4l2_mbus_framefmt *format;
697 format = v4l2_subdev_get_pad_format(sd, state, fmt->pad);
711 width = clamp_t(unsigned int, fmt->format.width,
713 height = clamp_t(unsigned int, fmt->format.height,
719 format->width = crop->width / hratio;
720 format->height = crop->height / vratio;
722 format->width = crop->width;
723 format->height = crop->height;
726 format->code = sensor->mono ? MEDIA_BUS_FMT_Y10_1X10
728 format->field = V4L2_FIELD_NONE;
729 format->colorspace = V4L2_COLORSPACE_RAW;
730 format->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
731 format->quantization = V4L2_QUANTIZATION_FULL_RANGE;
732 format->xfer_func = V4L2_XFER_FUNC_NONE;
734 fmt->format = *format;
768 struct v4l2_mbus_framefmt *format;
800 format = v4l2_subdev_get_pad_format(sd, state, sel->pad);
801 format->width = rect.width;
802 format->height = rect.height;
819 struct v4l2_subdev_format format = {
820 .format = {
827 imx296_set_format(sd, state, &format);