Lines Matching defs:sel
471 struct v4l2_subdev_selection *sel)
477 if (sel->which == V4L2_SUBDEV_FORMAT_TRY) {
486 switch (sel->target) {
488 sel->r.left = DEF_HSTRT << 1;
489 sel->r.top = DEF_VSTRT << 1;
490 sel->r.width = W_CIF;
491 sel->r.height = H_CIF;
496 sel->r = *rect;
522 struct v4l2_subdev_selection *sel)
528 if (sel->target != V4L2_SEL_TGT_CROP)
531 ov6650_bind_align_crop_rectangle(&sel->r);
533 if (sel->which == V4L2_SUBDEV_FORMAT_TRY) {
540 *crop = sel->r;
552 ret = ov6650_reg_write(client, REG_HSTRT, sel->r.left >> 1);
554 priv->rect.width += priv->rect.left - sel->r.left;
555 priv->rect.left = sel->r.left;
557 (sel->r.left + sel->r.width) >> 1);
560 priv->rect.width = sel->r.width;
561 ret = ov6650_reg_write(client, REG_VSTRT, sel->r.top >> 1);
564 priv->rect.height += priv->rect.top - sel->r.top;
565 priv->rect.top = sel->r.top;
567 (sel->r.top + sel->r.height) >> 1);
570 priv->rect.height = sel->r.height;