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()
109 sel->r.left = 0; in uif_get_selection()
110 sel->r.top = 0; in uif_get_selection()
111 sel->r.width = format->width; in uif_get_selection()
112 sel->r.height = format->height; in uif_get_selection()
116 sel->r = *vsp1_entity_get_pad_selection(&uif->entity, state, in uif_get_selection()
117 sel->pad, sel->target); in uif_get_selection()
132 struct v4l2_subdev_selection *sel) in uif_set_selection() argument
140 if (sel->pad != UIF_PAD_SINK || in uif_set_selection()
141 sel->target != V4L2_SEL_TGT_CROP) in uif_set_selection()
146 state = vsp1_entity_get_state(&uif->entity, sd_state, sel->which); in uif_set_selection()
155 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); in uif_set_selection()
156 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1); in uif_set_selection()
157 sel->r.width = clamp_t(unsigned int, sel->r.width, UIF_MIN_SIZE, in uif_set_selection()
158 format->width - sel->r.left); in uif_set_selection()
159 sel->r.height = clamp_t(unsigned int, sel->r.height, UIF_MIN_SIZE, in uif_set_selection()
160 format->height - sel->r.top); in uif_set_selection()
164 sel->pad, V4L2_SEL_TGT_CROP); in uif_set_selection()
165 *selection = sel->r; in uif_set_selection()