Lines Matching refs:sel
247 struct v4l2_subdev_selection *sel) in check_selection() argument
249 if (!sel) in check_selection()
252 return check_which(sel->which) ? : check_pad(sd, sel->pad) ? : in check_selection()
253 check_state_pads(sel->which, state); in check_selection()
258 struct v4l2_subdev_selection *sel) in call_get_selection() argument
260 return check_selection(sd, state, sel) ? : in call_get_selection()
261 sd->ops->pad->get_selection(sd, state, sel); in call_get_selection()
266 struct v4l2_subdev_selection *sel) in call_set_selection() argument
268 return check_selection(sd, state, sel) ? : in call_set_selection()
269 sd->ops->pad->set_selection(sd, state, sel); in call_set_selection()
503 struct v4l2_subdev_selection sel; in subdev_do_ioctl() local
506 memset(&sel, 0, sizeof(sel)); in subdev_do_ioctl()
507 sel.which = crop->which; in subdev_do_ioctl()
508 sel.pad = crop->pad; in subdev_do_ioctl()
509 sel.target = V4L2_SEL_TGT_CROP; in subdev_do_ioctl()
512 sd, pad, get_selection, subdev_fh->state, &sel); in subdev_do_ioctl()
514 crop->rect = sel.r; in subdev_do_ioctl()
521 struct v4l2_subdev_selection sel; in subdev_do_ioctl() local
527 memset(&sel, 0, sizeof(sel)); in subdev_do_ioctl()
528 sel.which = crop->which; in subdev_do_ioctl()
529 sel.pad = crop->pad; in subdev_do_ioctl()
530 sel.target = V4L2_SEL_TGT_CROP; in subdev_do_ioctl()
531 sel.r = crop->rect; in subdev_do_ioctl()
534 sd, pad, set_selection, subdev_fh->state, &sel); in subdev_do_ioctl()
536 crop->rect = sel.r; in subdev_do_ioctl()
583 struct v4l2_subdev_selection *sel = arg; in subdev_do_ioctl() local
585 memset(sel->reserved, 0, sizeof(sel->reserved)); in subdev_do_ioctl()
587 sd, pad, get_selection, subdev_fh->state, sel); in subdev_do_ioctl()
591 struct v4l2_subdev_selection *sel = arg; in subdev_do_ioctl() local
593 if (sel->which != V4L2_SUBDEV_FORMAT_TRY && ro_subdev) in subdev_do_ioctl()
596 memset(sel->reserved, 0, sizeof(sel->reserved)); in subdev_do_ioctl()
598 sd, pad, set_selection, subdev_fh->state, sel); in subdev_do_ioctl()