Lines Matching refs:sel
406 struct v4l2_subdev_selection *sel) in mt9t001_get_selection() argument
410 if (sel->target != V4L2_SEL_TGT_CROP) in mt9t001_get_selection()
413 sel->r = *__mt9t001_get_pad_crop(mt9t001, cfg, sel->pad, sel->which); in mt9t001_get_selection()
419 struct v4l2_subdev_selection *sel) in mt9t001_set_selection() argument
426 if (sel->target != V4L2_SEL_TGT_CROP) in mt9t001_set_selection()
432 rect.left = clamp(ALIGN(sel->r.left, 2), in mt9t001_set_selection()
435 rect.top = clamp(ALIGN(sel->r.top, 2), in mt9t001_set_selection()
438 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9t001_set_selection()
441 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9t001_set_selection()
450 __crop = __mt9t001_get_pad_crop(mt9t001, cfg, sel->pad, sel->which); in mt9t001_set_selection()
456 __format = __mt9t001_get_pad_format(mt9t001, cfg, sel->pad, in mt9t001_set_selection()
457 sel->which); in mt9t001_set_selection()
463 sel->r = rect; in mt9t001_set_selection()