Lines Matching refs:sel
324 struct v4l2_subdev_selection *sel) in bru_get_selection() argument
328 if (sel->pad == BRU_PAD_SOURCE) in bru_get_selection()
331 switch (sel->target) { in bru_get_selection()
333 sel->r.left = 0; in bru_get_selection()
334 sel->r.top = 0; in bru_get_selection()
335 sel->r.width = BRU_MAX_SIZE; in bru_get_selection()
336 sel->r.height = BRU_MAX_SIZE; in bru_get_selection()
340 sel->r = *bru_get_compose(bru, cfg, sel->pad, sel->which); in bru_get_selection()
350 struct v4l2_subdev_selection *sel) in bru_set_selection() argument
356 if (sel->pad == BRU_PAD_SOURCE) in bru_set_selection()
359 if (sel->target != V4L2_SEL_TGT_COMPOSE) in bru_set_selection()
366 sel->which); in bru_set_selection()
367 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); in bru_set_selection()
368 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1); in bru_set_selection()
373 format = vsp1_entity_get_pad_format(&bru->entity, cfg, sel->pad, in bru_set_selection()
374 sel->which); in bru_set_selection()
375 sel->r.width = format->width; in bru_set_selection()
376 sel->r.height = format->height; in bru_set_selection()
378 compose = bru_get_compose(bru, cfg, sel->pad, sel->which); in bru_set_selection()
379 *compose = sel->r; in bru_set_selection()