Lines Matching refs:sel
1000 struct v4l2_selection *sel) in s3c_camif_g_selection() argument
1004 if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) in s3c_camif_g_selection()
1007 switch (sel->target) { in s3c_camif_g_selection()
1010 sel->r.left = 0; in s3c_camif_g_selection()
1011 sel->r.top = 0; in s3c_camif_g_selection()
1012 sel->r.width = vp->out_frame.f_width; in s3c_camif_g_selection()
1013 sel->r.height = vp->out_frame.f_height; in s3c_camif_g_selection()
1017 sel->r = vp->out_frame.rect; in s3c_camif_g_selection()
1037 struct v4l2_selection *sel) in s3c_camif_s_selection() argument
1041 struct v4l2_rect rect = sel->r; in s3c_camif_s_selection()
1044 if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE || in s3c_camif_s_selection()
1045 sel->target != V4L2_SEL_TGT_COMPOSE) in s3c_camif_s_selection()
1050 sel->r = rect; in s3c_camif_s_selection()
1057 sel->type, sel->target, sel->flags, in s3c_camif_s_selection()
1058 sel->r.left, sel->r.top, sel->r.width, sel->r.height); in s3c_camif_s_selection()
1368 struct v4l2_subdev_selection *sel) in s3c_camif_subdev_get_selection() argument
1374 if ((sel->target != V4L2_SEL_TGT_CROP && in s3c_camif_subdev_get_selection()
1375 sel->target != V4L2_SEL_TGT_CROP_BOUNDS) || in s3c_camif_subdev_get_selection()
1376 sel->pad != CAMIF_SD_PAD_SINK) in s3c_camif_subdev_get_selection()
1379 if (sel->which == V4L2_SUBDEV_FORMAT_TRY) { in s3c_camif_subdev_get_selection()
1380 sel->r = *v4l2_subdev_get_try_crop(sd, cfg, sel->pad); in s3c_camif_subdev_get_selection()
1386 if (sel->target == V4L2_SEL_TGT_CROP) { in s3c_camif_subdev_get_selection()
1387 sel->r = *crop; in s3c_camif_subdev_get_selection()
1389 sel->r.width = mf->width; in s3c_camif_subdev_get_selection()
1390 sel->r.height = mf->height; in s3c_camif_subdev_get_selection()
1391 sel->r.left = 0; in s3c_camif_subdev_get_selection()
1392 sel->r.top = 0; in s3c_camif_subdev_get_selection()
1455 struct v4l2_subdev_selection *sel) in s3c_camif_subdev_set_selection() argument
1461 if (sel->target != V4L2_SEL_TGT_CROP || sel->pad != CAMIF_SD_PAD_SINK) in s3c_camif_subdev_set_selection()
1465 __camif_try_crop(camif, &sel->r); in s3c_camif_subdev_set_selection()
1467 if (sel->which == V4L2_SUBDEV_FORMAT_TRY) { in s3c_camif_subdev_set_selection()
1468 *v4l2_subdev_get_try_crop(sd, cfg, sel->pad) = sel->r; in s3c_camif_subdev_set_selection()
1474 *crop = sel->r; in s3c_camif_subdev_set_selection()