Lines Matching refs:sel
18 struct v4l2_subdev_selection *sel);
165 struct v4l2_subdev_selection sel = { 0 };
168 sel.which = fmt->which;
169 sel.pad = STF_ISP_PAD_SINK;
170 sel.target = V4L2_SEL_TGT_CROP;
171 sel.r.width = fmt->format.width;
172 sel.r.height = fmt->format.height;
173 isp_set_selection(sd, state, &sel);
206 struct v4l2_subdev_selection *sel)
211 switch (sel->target) {
213 if (sel->pad == STF_ISP_PAD_SINK) {
215 sel->pad);
216 sel->r.left = 0;
217 sel->r.top = 0;
218 sel->r.width = fmt.format.width;
219 sel->r.height = fmt.format.height;
220 } else if (sel->pad == STF_ISP_PAD_SRC) {
221 rect = v4l2_subdev_state_get_crop(state, sel->pad);
222 sel->r = *rect;
227 rect = v4l2_subdev_state_get_crop(state, sel->pad);
231 sel->r = *rect;
243 struct v4l2_subdev_selection *sel)
248 if (sel->target != V4L2_SEL_TGT_CROP)
251 if (sel->target == V4L2_SEL_TGT_CROP &&
252 sel->pad == STF_ISP_PAD_SINK) {
255 rect = v4l2_subdev_state_get_crop(state, sel->pad);
259 isp_try_crop(isp_dev, state, &sel->r);
260 *rect = sel->r;
263 crop.which = sel->which;
268 } else if (sel->target == V4L2_SEL_TGT_CROP &&
269 sel->pad == STF_ISP_PAD_SRC) {
272 rect = v4l2_subdev_state_get_crop(state, sel->pad);
276 isp_try_crop(isp_dev, state, &sel->r);
277 *rect = sel->r;
280 fmt.which = sel->which;
287 dev_dbg(isp_dev->stfcamss->dev, "pad: %d sel(%d,%d)/%dx%d\n",
288 sel->pad, sel->r.left, sel->r.top, sel->r.width, sel->r.height);