Lines Matching refs:sel
427 struct v4l2_subdev_selection *sel) in mt9m032_get_pad_selection() argument
431 if (sel->target != V4L2_SEL_TGT_CROP) in mt9m032_get_pad_selection()
435 sel->r = *__mt9m032_get_pad_crop(sensor, cfg, sel->which); in mt9m032_get_pad_selection()
443 struct v4l2_subdev_selection *sel) in mt9m032_set_pad_selection() argument
451 if (sel->target != V4L2_SEL_TGT_CROP) in mt9m032_set_pad_selection()
456 if (sensor->streaming && sel->which == V4L2_SUBDEV_FORMAT_ACTIVE) { in mt9m032_set_pad_selection()
464 rect.left = clamp(ALIGN(sel->r.left, 2), MT9M032_COLUMN_START_MIN, in mt9m032_set_pad_selection()
466 rect.top = clamp(ALIGN(sel->r.top, 2), MT9M032_ROW_START_MIN, in mt9m032_set_pad_selection()
468 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9m032_set_pad_selection()
470 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9m032_set_pad_selection()
478 __crop = __mt9m032_get_pad_crop(sensor, cfg, sel->which); in mt9m032_set_pad_selection()
484 format = __mt9m032_get_pad_format(sensor, cfg, sel->which); in mt9m032_set_pad_selection()
490 sel->r = rect; in mt9m032_set_pad_selection()
492 if (sel->which == V4L2_SUBDEV_FORMAT_ACTIVE) in mt9m032_set_pad_selection()