Lines Matching defs:sel
86 struct v4l2_subdev_selection *sel)
93 if (sel->pad != UIF_PAD_SINK)
98 state = vsp1_entity_get_state(&uif->entity, sd_state, sel->which);
104 switch (sel->target) {
109 sel->r.left = 0;
110 sel->r.top = 0;
111 sel->r.width = format->width;
112 sel->r.height = format->height;
116 sel->r = *vsp1_entity_get_pad_selection(&uif->entity, state,
117 sel->pad, sel->target);
132 struct v4l2_subdev_selection *sel)
140 if (sel->pad != UIF_PAD_SINK ||
141 sel->target != V4L2_SEL_TGT_CROP)
146 state = vsp1_entity_get_state(&uif->entity, sd_state, sel->which);
155 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1);
156 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1);
157 sel->r.width = clamp_t(unsigned int, sel->r.width, UIF_MIN_SIZE,
158 format->width - sel->r.left);
159 sel->r.height = clamp_t(unsigned int, sel->r.height, UIF_MIN_SIZE,
160 format->height - sel->r.top);
164 sel->pad, V4L2_SEL_TGT_CROP);
165 *selection = sel->r;