Lines Matching refs:crop
142 static int check_crop(struct v4l2_subdev *sd, struct v4l2_subdev_crop *crop) in check_crop() argument
144 if (crop->which != V4L2_SUBDEV_FORMAT_TRY && in check_crop()
145 crop->which != V4L2_SUBDEV_FORMAT_ACTIVE) in check_crop()
148 if (crop->pad >= sd->entity.num_pads) in check_crop()
278 struct v4l2_subdev_crop *crop = arg; in subdev_do_ioctl() local
281 rval = check_crop(sd, crop); in subdev_do_ioctl()
286 sel.which = crop->which; in subdev_do_ioctl()
287 sel.pad = crop->pad; in subdev_do_ioctl()
293 crop->rect = sel.r; in subdev_do_ioctl()
299 struct v4l2_subdev_crop *crop = arg; in subdev_do_ioctl() local
302 rval = check_crop(sd, crop); in subdev_do_ioctl()
307 sel.which = crop->which; in subdev_do_ioctl()
308 sel.pad = crop->pad; in subdev_do_ioctl()
310 sel.r = crop->rect; in subdev_do_ioctl()
315 crop->rect = sel.r; in subdev_do_ioctl()