Lines Matching refs:v4l2_ctrl

1070 				u32 found_id, struct v4l2_queryctrl *v4l2_ctrl)  in uvc_query_v4l2_class()  argument
1078 memset(v4l2_ctrl, 0, sizeof(*v4l2_ctrl)); in uvc_query_v4l2_class()
1079 v4l2_ctrl->id = uvc_control_classes[idx]; in uvc_query_v4l2_class()
1080 strscpy(v4l2_ctrl->name, v4l2_ctrl_get_name(v4l2_ctrl->id), in uvc_query_v4l2_class()
1081 sizeof(v4l2_ctrl->name)); in uvc_query_v4l2_class()
1082 v4l2_ctrl->type = V4L2_CTRL_TYPE_CTRL_CLASS; in uvc_query_v4l2_class()
1083 v4l2_ctrl->flags = V4L2_CTRL_FLAG_WRITE_ONLY in uvc_query_v4l2_class()
1127 struct v4l2_queryctrl *v4l2_ctrl) in __uvc_query_v4l2_ctrl() argument
1134 memset(v4l2_ctrl, 0, sizeof(*v4l2_ctrl)); in __uvc_query_v4l2_ctrl()
1135 v4l2_ctrl->id = mapping->id; in __uvc_query_v4l2_ctrl()
1136 v4l2_ctrl->type = mapping->v4l2_type; in __uvc_query_v4l2_ctrl()
1137 strscpy(v4l2_ctrl->name, uvc_map_get_name(mapping), in __uvc_query_v4l2_ctrl()
1138 sizeof(v4l2_ctrl->name)); in __uvc_query_v4l2_ctrl()
1139 v4l2_ctrl->flags = 0; in __uvc_query_v4l2_ctrl()
1142 v4l2_ctrl->flags |= V4L2_CTRL_FLAG_WRITE_ONLY; in __uvc_query_v4l2_ctrl()
1144 v4l2_ctrl->flags |= V4L2_CTRL_FLAG_READ_ONLY; in __uvc_query_v4l2_ctrl()
1156 v4l2_ctrl->flags |= V4L2_CTRL_FLAG_INACTIVE; in __uvc_query_v4l2_ctrl()
1166 v4l2_ctrl->default_value = mapping->get(mapping, UVC_GET_DEF, in __uvc_query_v4l2_ctrl()
1172 v4l2_ctrl->minimum = 0; in __uvc_query_v4l2_ctrl()
1173 v4l2_ctrl->maximum = mapping->menu_count - 1; in __uvc_query_v4l2_ctrl()
1174 v4l2_ctrl->step = 1; in __uvc_query_v4l2_ctrl()
1178 if (menu->value == v4l2_ctrl->default_value) { in __uvc_query_v4l2_ctrl()
1179 v4l2_ctrl->default_value = i; in __uvc_query_v4l2_ctrl()
1187 v4l2_ctrl->minimum = 0; in __uvc_query_v4l2_ctrl()
1188 v4l2_ctrl->maximum = 1; in __uvc_query_v4l2_ctrl()
1189 v4l2_ctrl->step = 1; in __uvc_query_v4l2_ctrl()
1193 v4l2_ctrl->minimum = 0; in __uvc_query_v4l2_ctrl()
1194 v4l2_ctrl->maximum = 0; in __uvc_query_v4l2_ctrl()
1195 v4l2_ctrl->step = 0; in __uvc_query_v4l2_ctrl()
1203 v4l2_ctrl->minimum = mapping->get(mapping, UVC_GET_MIN, in __uvc_query_v4l2_ctrl()
1207 v4l2_ctrl->maximum = mapping->get(mapping, UVC_GET_MAX, in __uvc_query_v4l2_ctrl()
1211 v4l2_ctrl->step = mapping->get(mapping, UVC_GET_RES, in __uvc_query_v4l2_ctrl()
1218 struct v4l2_queryctrl *v4l2_ctrl) in uvc_query_v4l2_ctrl() argument
1229 if (!(v4l2_ctrl->id & V4L2_CTRL_FLAG_NEXT_CTRL)) { in uvc_query_v4l2_ctrl()
1230 ret = uvc_query_v4l2_class(chain, v4l2_ctrl->id, 0, v4l2_ctrl); in uvc_query_v4l2_ctrl()
1235 ctrl = uvc_find_control(chain, v4l2_ctrl->id, &mapping); in uvc_query_v4l2_ctrl()
1246 if (v4l2_ctrl->id & V4L2_CTRL_FLAG_NEXT_CTRL) { in uvc_query_v4l2_ctrl()
1247 ret = uvc_query_v4l2_class(chain, v4l2_ctrl->id, mapping->id, in uvc_query_v4l2_ctrl()
1248 v4l2_ctrl); in uvc_query_v4l2_ctrl()
1253 ret = __uvc_query_v4l2_ctrl(chain, ctrl, mapping, v4l2_ctrl); in uvc_query_v4l2_ctrl()
1334 struct v4l2_queryctrl v4l2_ctrl; in uvc_ctrl_fill_event() local
1336 __uvc_query_v4l2_ctrl(chain, ctrl, mapping, &v4l2_ctrl); in uvc_ctrl_fill_event()
1340 ev->id = v4l2_ctrl.id; in uvc_ctrl_fill_event()
1343 ev->u.ctrl.type = v4l2_ctrl.type; in uvc_ctrl_fill_event()
1344 ev->u.ctrl.flags = v4l2_ctrl.flags; in uvc_ctrl_fill_event()
1345 ev->u.ctrl.minimum = v4l2_ctrl.minimum; in uvc_ctrl_fill_event()
1346 ev->u.ctrl.maximum = v4l2_ctrl.maximum; in uvc_ctrl_fill_event()
1347 ev->u.ctrl.step = v4l2_ctrl.step; in uvc_ctrl_fill_event()
1348 ev->u.ctrl.default_value = v4l2_ctrl.default_value; in uvc_ctrl_fill_event()