Lines Matching refs:sel
177 struct v4l2_subdev_selection *sel) in brx_get_selection() argument
182 if (sel->pad == brx->entity.source_pad) in brx_get_selection()
185 switch (sel->target) { in brx_get_selection()
187 sel->r.left = 0; in brx_get_selection()
188 sel->r.top = 0; in brx_get_selection()
189 sel->r.width = BRX_MAX_SIZE; in brx_get_selection()
190 sel->r.height = BRX_MAX_SIZE; in brx_get_selection()
195 sel->which); in brx_get_selection()
200 sel->r = *v4l2_subdev_state_get_compose(state, sel->pad); in brx_get_selection()
211 struct v4l2_subdev_selection *sel) in brx_set_selection() argument
219 if (sel->pad == brx->entity.source_pad) in brx_set_selection()
222 if (sel->target != V4L2_SEL_TGT_COMPOSE) in brx_set_selection()
227 state = vsp1_entity_get_state(&brx->entity, sd_state, sel->which); in brx_set_selection()
238 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); in brx_set_selection()
239 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1); in brx_set_selection()
245 format = v4l2_subdev_state_get_format(state, sel->pad); in brx_set_selection()
246 sel->r.width = format->width; in brx_set_selection()
247 sel->r.height = format->height; in brx_set_selection()
249 compose = v4l2_subdev_state_get_compose(state, sel->pad); in brx_set_selection()
250 *compose = sel->r; in brx_set_selection()