Lines Matching defs:sel
1363 struct v4l2_subdev_selection *sel)
1368 rtype = s5k5baf_get_sel_rect(sel->pad, sel->target);
1374 sel->r = s5k5baf_cis_rect;
1380 if (sel->which == V4L2_SUBDEV_FORMAT_TRY) {
1382 sel->r = *v4l2_subdev_get_try_compose(sd, sd_state,
1383 sel->pad);
1385 sel->r = *v4l2_subdev_get_try_crop(sd, sd_state,
1386 sel->pad);
1393 sel->r = state->crop_sink;
1396 sel->r = state->compose;
1399 sel->r = state->crop_source;
1404 if (s5k5baf_is_bound_target(sel->target)) {
1405 sel->r.left = 0;
1406 sel->r.top = 0;
1456 struct v4l2_subdev_selection *sel)
1463 rtype = s5k5baf_get_sel_rect(sel->pad, sel->target);
1464 if (rtype == R_INVALID || s5k5baf_is_bound_target(sel->target))
1469 sel->r.left = 0;
1470 sel->r.top = 0;
1473 if (sel->which == V4L2_SUBDEV_FORMAT_TRY) {
1483 s5k5baf_set_rect_and_adjust(rects, rtype, &sel->r);
1495 /* adjust sel->r to avoid output resolution change */
1497 if (sel->r.width < state->crop_source.width)
1498 sel->r.width = state->crop_source.width;
1499 if (sel->r.height < state->crop_source.height)
1500 sel->r.height = state->crop_source.height;
1502 sel->r.width = state->crop_source.width;
1503 sel->r.height = state->crop_source.height;
1506 s5k5baf_set_rect_and_adjust(rects, rtype, &sel->r);