Lines Matching refs:sel
560 struct v4l2_subdev_selection *sel) in mt9v032_get_selection() argument
564 if (sel->target != V4L2_SEL_TGT_CROP) in mt9v032_get_selection()
567 sel->r = *__mt9v032_get_pad_crop(mt9v032, cfg, sel->pad, sel->which); in mt9v032_get_selection()
573 struct v4l2_subdev_selection *sel) in mt9v032_set_selection() argument
580 if (sel->target != V4L2_SEL_TGT_CROP) in mt9v032_set_selection()
586 rect.left = clamp(ALIGN(sel->r.left + 1, 2) - 1, in mt9v032_set_selection()
589 rect.top = clamp(ALIGN(sel->r.top + 1, 2) - 1, in mt9v032_set_selection()
592 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9v032_set_selection()
595 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9v032_set_selection()
604 __crop = __mt9v032_get_pad_crop(mt9v032, cfg, sel->pad, sel->which); in mt9v032_set_selection()
610 __format = __mt9v032_get_pad_format(mt9v032, cfg, sel->pad, in mt9v032_set_selection()
611 sel->which); in mt9v032_set_selection()
614 if (sel->which == V4L2_SUBDEV_FORMAT_ACTIVE) { in mt9v032_set_selection()
622 sel->r = rect; in mt9v032_set_selection()