Lines Matching full:sel
86 struct v4l2_subdev_selection *sel) in uif_get_selection() argument
93 if (sel->pad != UIF_PAD_SINK) in uif_get_selection()
99 sel->which); in uif_get_selection()
105 switch (sel->target) { in uif_get_selection()
110 sel->r.left = 0; in uif_get_selection()
111 sel->r.top = 0; in uif_get_selection()
112 sel->r.width = format->width; in uif_get_selection()
113 sel->r.height = format->height; in uif_get_selection()
117 sel->r = *vsp1_entity_get_pad_selection(&uif->entity, config, in uif_get_selection()
118 sel->pad, sel->target); in uif_get_selection()
133 struct v4l2_subdev_selection *sel) in uif_set_selection() argument
141 if (sel->pad != UIF_PAD_SINK || in uif_set_selection()
142 sel->target != V4L2_SEL_TGT_CROP) in uif_set_selection()
148 sel->which); in uif_set_selection()
157 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); in uif_set_selection()
158 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1); in uif_set_selection()
159 sel->r.width = clamp_t(unsigned int, sel->r.width, UIF_MIN_SIZE, in uif_set_selection()
160 format->width - sel->r.left); in uif_set_selection()
161 sel->r.height = clamp_t(unsigned int, sel->r.height, UIF_MIN_SIZE, in uif_set_selection()
162 format->height - sel->r.top); in uif_set_selection()
166 sel->pad, V4L2_SEL_TGT_CROP); in uif_set_selection()
167 *selection = sel->r; in uif_set_selection()