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()
98 state = vsp1_entity_get_state(&uif->entity, sd_state, sel->which); in uif_get_selection()
104 switch (sel->target) { in uif_get_selection()
108 sel->r.left = 0; in uif_get_selection()
109 sel->r.top = 0; in uif_get_selection()
110 sel->r.width = format->width; in uif_get_selection()
111 sel->r.height = format->height; in uif_get_selection()
115 sel->r = *v4l2_subdev_state_get_crop(state, sel->pad); in uif_get_selection()
130 struct v4l2_subdev_selection *sel) in uif_set_selection() argument
138 if (sel->pad != UIF_PAD_SINK || in uif_set_selection()
139 sel->target != V4L2_SEL_TGT_CROP) in uif_set_selection()
144 state = vsp1_entity_get_state(&uif->entity, sd_state, sel->which); in uif_set_selection()
153 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); in uif_set_selection()
154 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1); in uif_set_selection()
155 sel->r.width = clamp_t(unsigned int, sel->r.width, UIF_MIN_SIZE, in uif_set_selection()
156 format->width - sel->r.left); in uif_set_selection()
157 sel->r.height = clamp_t(unsigned int, sel->r.height, UIF_MIN_SIZE, in uif_set_selection()
158 format->height - sel->r.top); in uif_set_selection()
161 selection = v4l2_subdev_state_get_crop(state, sel->pad); in uif_set_selection()
162 *selection = sel->r; in uif_set_selection()