Lines Matching refs:sel
999 struct v4l2_selection *sel) in s3c_camif_g_selection() argument
1003 if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) in s3c_camif_g_selection()
1006 switch (sel->target) { in s3c_camif_g_selection()
1009 sel->r.left = 0; in s3c_camif_g_selection()
1010 sel->r.top = 0; in s3c_camif_g_selection()
1011 sel->r.width = vp->out_frame.f_width; in s3c_camif_g_selection()
1012 sel->r.height = vp->out_frame.f_height; in s3c_camif_g_selection()
1016 sel->r = vp->out_frame.rect; in s3c_camif_g_selection()
1036 struct v4l2_selection *sel) in s3c_camif_s_selection() argument
1040 struct v4l2_rect rect = sel->r; in s3c_camif_s_selection()
1043 if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE || in s3c_camif_s_selection()
1044 sel->target != V4L2_SEL_TGT_COMPOSE) in s3c_camif_s_selection()
1049 sel->r = rect; in s3c_camif_s_selection()
1056 sel->type, sel->target, sel->flags, in s3c_camif_s_selection()
1057 sel->r.left, sel->r.top, sel->r.width, sel->r.height); in s3c_camif_s_selection()
1367 struct v4l2_subdev_selection *sel) in s3c_camif_subdev_get_selection() argument
1373 if ((sel->target != V4L2_SEL_TGT_CROP && in s3c_camif_subdev_get_selection()
1374 sel->target != V4L2_SEL_TGT_CROP_BOUNDS) || in s3c_camif_subdev_get_selection()
1375 sel->pad != CAMIF_SD_PAD_SINK) in s3c_camif_subdev_get_selection()
1378 if (sel->which == V4L2_SUBDEV_FORMAT_TRY) { in s3c_camif_subdev_get_selection()
1379 sel->r = *v4l2_subdev_get_try_crop(sd, cfg, sel->pad); in s3c_camif_subdev_get_selection()
1385 if (sel->target == V4L2_SEL_TGT_CROP) { in s3c_camif_subdev_get_selection()
1386 sel->r = *crop; in s3c_camif_subdev_get_selection()
1388 sel->r.width = mf->width; in s3c_camif_subdev_get_selection()
1389 sel->r.height = mf->height; in s3c_camif_subdev_get_selection()
1390 sel->r.left = 0; in s3c_camif_subdev_get_selection()
1391 sel->r.top = 0; in s3c_camif_subdev_get_selection()
1454 struct v4l2_subdev_selection *sel) in s3c_camif_subdev_set_selection() argument
1460 if (sel->target != V4L2_SEL_TGT_CROP || sel->pad != CAMIF_SD_PAD_SINK) in s3c_camif_subdev_set_selection()
1464 __camif_try_crop(camif, &sel->r); in s3c_camif_subdev_set_selection()
1466 if (sel->which == V4L2_SUBDEV_FORMAT_TRY) { in s3c_camif_subdev_set_selection()
1467 *v4l2_subdev_get_try_crop(sd, cfg, sel->pad) = sel->r; in s3c_camif_subdev_set_selection()
1473 *crop = sel->r; in s3c_camif_subdev_set_selection()