Lines Matching refs:sel
186 struct v4l2_subdev_selection *sel) in brx_get_selection() argument
191 if (sel->pad == brx->entity.source_pad) in brx_get_selection()
194 switch (sel->target) { in brx_get_selection()
196 sel->r.left = 0; in brx_get_selection()
197 sel->r.top = 0; in brx_get_selection()
198 sel->r.width = BRX_MAX_SIZE; in brx_get_selection()
199 sel->r.height = BRX_MAX_SIZE; in brx_get_selection()
204 sel->which); in brx_get_selection()
209 sel->r = *brx_get_compose(brx, config, sel->pad); in brx_get_selection()
220 struct v4l2_subdev_selection *sel) in brx_set_selection() argument
228 if (sel->pad == brx->entity.source_pad) in brx_set_selection()
231 if (sel->target != V4L2_SEL_TGT_COMPOSE) in brx_set_selection()
237 sel->which); in brx_set_selection()
249 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); in brx_set_selection()
250 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1); in brx_set_selection()
256 format = vsp1_entity_get_pad_format(&brx->entity, config, sel->pad); in brx_set_selection()
257 sel->r.width = format->width; in brx_set_selection()
258 sel->r.height = format->height; in brx_set_selection()
260 compose = brx_get_compose(brx, config, sel->pad); in brx_set_selection()
261 *compose = sel->r; in brx_set_selection()