Lines Matching refs:sel
1166 struct v4l2_subdev_selection *sel) in s5k6aa_get_selection() argument
1171 if (sel->target != V4L2_SEL_TGT_CROP) in s5k6aa_get_selection()
1174 memset(sel->reserved, 0, sizeof(sel->reserved)); in s5k6aa_get_selection()
1177 rect = __s5k6aa_get_crop_rect(s5k6aa, cfg, sel->which); in s5k6aa_get_selection()
1178 sel->r = *rect; in s5k6aa_get_selection()
1189 struct v4l2_subdev_selection *sel) in s5k6aa_set_selection() argument
1196 if (sel->target != V4L2_SEL_TGT_CROP) in s5k6aa_set_selection()
1200 crop_r = __s5k6aa_get_crop_rect(s5k6aa, cfg, sel->which); in s5k6aa_set_selection()
1202 if (sel->which == V4L2_SUBDEV_FORMAT_ACTIVE) { in s5k6aa_set_selection()
1208 v4l_bound_align_image(&sel->r.width, mf->width, in s5k6aa_set_selection()
1210 &sel->r.height, mf->height, in s5k6aa_set_selection()
1213 max_x = (S5K6AA_WIN_WIDTH_MAX - sel->r.width) & ~1; in s5k6aa_set_selection()
1214 max_y = (S5K6AA_WIN_HEIGHT_MAX - sel->r.height) & ~1; in s5k6aa_set_selection()
1216 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, max_x); in s5k6aa_set_selection()
1217 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, max_y); in s5k6aa_set_selection()
1219 *crop_r = sel->r; in s5k6aa_set_selection()