Lines Matching refs:sel
586 struct v4l2_subdev_selection *sel) in mt9p031_get_selection() argument
590 if (sel->target != V4L2_SEL_TGT_CROP) in mt9p031_get_selection()
593 sel->r = *__mt9p031_get_pad_crop(mt9p031, cfg, sel->pad, sel->which); in mt9p031_get_selection()
599 struct v4l2_subdev_selection *sel) in mt9p031_set_selection() argument
606 if (sel->target != V4L2_SEL_TGT_CROP) in mt9p031_set_selection()
612 rect.left = clamp(ALIGN(sel->r.left, 2), MT9P031_COLUMN_START_MIN, in mt9p031_set_selection()
614 rect.top = clamp(ALIGN(sel->r.top, 2), MT9P031_ROW_START_MIN, in mt9p031_set_selection()
616 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9p031_set_selection()
619 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9p031_set_selection()
628 __crop = __mt9p031_get_pad_crop(mt9p031, cfg, sel->pad, sel->which); in mt9p031_set_selection()
634 __format = __mt9p031_get_pad_format(mt9p031, cfg, sel->pad, in mt9p031_set_selection()
635 sel->which); in mt9p031_set_selection()
641 sel->r = rect; in mt9p031_set_selection()