Lines Matching full:sel

125 				   struct v4l2_subdev_selection *sel)  in vsp1_rwpf_get_selection()  argument
136 if (rwpf->entity.type == VSP1_ENTITY_WPF || sel->pad != RWPF_PAD_SINK) in vsp1_rwpf_get_selection()
141 state = vsp1_entity_get_state(&rwpf->entity, sd_state, sel->which); in vsp1_rwpf_get_selection()
147 switch (sel->target) { in vsp1_rwpf_get_selection()
149 sel->r = *v4l2_subdev_state_get_crop(state, RWPF_PAD_SINK); in vsp1_rwpf_get_selection()
154 sel->r.left = 0; in vsp1_rwpf_get_selection()
155 sel->r.top = 0; in vsp1_rwpf_get_selection()
156 sel->r.width = format->width; in vsp1_rwpf_get_selection()
157 sel->r.height = format->height; in vsp1_rwpf_get_selection()
172 struct v4l2_subdev_selection *sel) in vsp1_rwpf_set_selection() argument
184 if (rwpf->entity.type == VSP1_ENTITY_WPF || sel->pad != RWPF_PAD_SINK) in vsp1_rwpf_set_selection()
187 if (sel->target != V4L2_SEL_TGT_CROP) in vsp1_rwpf_set_selection()
192 state = vsp1_entity_get_state(&rwpf->entity, sd_state, sel->which); in vsp1_rwpf_set_selection()
206 sel->r.left = ALIGN(sel->r.left, 2); in vsp1_rwpf_set_selection()
207 sel->r.top = ALIGN(sel->r.top, 2); in vsp1_rwpf_set_selection()
208 sel->r.width = round_down(sel->r.width, 2); in vsp1_rwpf_set_selection()
209 sel->r.height = round_down(sel->r.height, 2); in vsp1_rwpf_set_selection()
212 sel->r.left = min_t(unsigned int, sel->r.left, format->width - 2); in vsp1_rwpf_set_selection()
213 sel->r.top = min_t(unsigned int, sel->r.top, format->height - 2); in vsp1_rwpf_set_selection()
214 sel->r.width = min_t(unsigned int, sel->r.width, in vsp1_rwpf_set_selection()
215 format->width - sel->r.left); in vsp1_rwpf_set_selection()
216 sel->r.height = min_t(unsigned int, sel->r.height, in vsp1_rwpf_set_selection()
217 format->height - sel->r.top); in vsp1_rwpf_set_selection()
220 *crop = sel->r; in vsp1_rwpf_set_selection()