Lines Matching defs:sel
1127 struct v4l2_subdev_selection *sel)
1134 if (sel->pad != 0)
1137 if (sel->target == V4L2_SEL_TGT_CROP_BOUNDS) {
1138 sel->r.left = 0;
1139 sel->r.top = 0;
1140 sel->r.width = IMX274_MAX_WIDTH;
1141 sel->r.height = IMX274_MAX_HEIGHT;
1145 if (sel->which == V4L2_SUBDEV_FORMAT_TRY) {
1155 switch (sel->target) {
1157 sel->r = *src_crop;
1160 sel->r.top = 0;
1161 sel->r.left = 0;
1162 sel->r.width = src_crop->width;
1163 sel->r.height = src_crop->height;
1166 sel->r.top = 0;
1167 sel->r.left = 0;
1168 sel->r.width = src_fmt->width;
1169 sel->r.height = src_fmt->height;
1182 struct v4l2_subdev_selection *sel)
1197 IMX274_ROUND(sel->r.width, h_step, sel->flags),
1205 IMX274_ROUND(sel->r.left, h_step, 0),
1209 IMX274_ROUND(sel->r.height, 2, sel->flags),
1212 new_crop.top = min_t(u32, IMX274_ROUND(sel->r.top, 2, 0),
1215 sel->r = new_crop;
1217 if (sel->which == V4L2_SUBDEV_FORMAT_TRY)
1232 __imx274_change_compose(imx274, sd_state, sel->which,
1234 sel->flags);
1243 struct v4l2_subdev_selection *sel)
1247 if (sel->pad != 0)
1250 if (sel->target == V4L2_SEL_TGT_CROP)
1251 return imx274_set_selection_crop(imx274, sd_state, sel);
1253 if (sel->target == V4L2_SEL_TGT_COMPOSE) {
1257 err = __imx274_change_compose(imx274, sd_state, sel->which,
1258 &sel->r.width, &sel->r.height,
1259 sel->flags);
1267 sel->r.top = 0;
1268 sel->r.left = 0;