Lines Matching refs:sel

150 			    struct v4l2_subdev_selection *sel)  in vsp1_rwpf_get_selection()  argument
156 if (sel->pad != RWPF_PAD_SINK) in vsp1_rwpf_get_selection()
159 switch (sel->target) { in vsp1_rwpf_get_selection()
161 sel->r = *vsp1_rwpf_get_crop(rwpf, cfg, sel->which); in vsp1_rwpf_get_selection()
166 RWPF_PAD_SINK, sel->which); in vsp1_rwpf_get_selection()
167 sel->r.left = 0; in vsp1_rwpf_get_selection()
168 sel->r.top = 0; in vsp1_rwpf_get_selection()
169 sel->r.width = format->width; in vsp1_rwpf_get_selection()
170 sel->r.height = format->height; in vsp1_rwpf_get_selection()
182 struct v4l2_subdev_selection *sel) in vsp1_rwpf_set_selection() argument
189 if (sel->pad != RWPF_PAD_SINK) in vsp1_rwpf_set_selection()
192 if (sel->target != V4L2_SEL_TGT_CROP) in vsp1_rwpf_set_selection()
199 sel->which); in vsp1_rwpf_set_selection()
205 sel->r.left = ALIGN(sel->r.left, 2); in vsp1_rwpf_set_selection()
206 sel->r.top = ALIGN(sel->r.top, 2); in vsp1_rwpf_set_selection()
207 sel->r.width = round_down(sel->r.width, 2); in vsp1_rwpf_set_selection()
208 sel->r.height = round_down(sel->r.height, 2); in vsp1_rwpf_set_selection()
211 sel->r.left = min_t(unsigned int, sel->r.left, format->width - 2); in vsp1_rwpf_set_selection()
212 sel->r.top = min_t(unsigned int, sel->r.top, format->height - 2); in vsp1_rwpf_set_selection()
214 sel->r.left = min_t(unsigned int, sel->r.left, 255); in vsp1_rwpf_set_selection()
215 sel->r.top = min_t(unsigned int, sel->r.top, 255); in vsp1_rwpf_set_selection()
217 sel->r.width = min_t(unsigned int, sel->r.width, in vsp1_rwpf_set_selection()
218 format->width - sel->r.left); in vsp1_rwpf_set_selection()
219 sel->r.height = min_t(unsigned int, sel->r.height, in vsp1_rwpf_set_selection()
220 format->height - sel->r.top); in vsp1_rwpf_set_selection()
222 crop = vsp1_rwpf_get_crop(rwpf, cfg, sel->which); in vsp1_rwpf_set_selection()
223 *crop = sel->r; in vsp1_rwpf_set_selection()
227 sel->which); in vsp1_rwpf_set_selection()