Lines Matching refs:xctrl

1088 	struct v4l2_ext_control *xctrl)  in uvc_ctrl_get()  argument
1096 ctrl = uvc_find_control(chain, xctrl->id, &mapping); in uvc_ctrl_get()
1111 xctrl->value = mapping->get(mapping, UVC_GET_CUR, in uvc_ctrl_get()
1117 if (menu->value == xctrl->value) { in uvc_ctrl_get()
1118 xctrl->value = i; in uvc_ctrl_get()
1128 struct v4l2_ext_control *xctrl) in uvc_ctrl_set() argument
1138 ctrl = uvc_find_control(chain, xctrl->id, &mapping); in uvc_ctrl_set()
1160 xctrl->value = min + (xctrl->value - min + step/2) / step * step; in uvc_ctrl_set()
1161 xctrl->value = clamp(xctrl->value, min, max); in uvc_ctrl_set()
1162 value = xctrl->value; in uvc_ctrl_set()
1166 xctrl->value = clamp(xctrl->value, 0, 1); in uvc_ctrl_set()
1167 value = xctrl->value; in uvc_ctrl_set()
1171 if (xctrl->value < 0 || xctrl->value >= mapping->menu_count) in uvc_ctrl_set()
1173 value = mapping->menu_info[xctrl->value].value; in uvc_ctrl_set()
1177 value = xctrl->value; in uvc_ctrl_set()
1347 struct uvc_xu_control *xctrl, int set) in uvc_xu_ctrl_query() argument
1359 entity->id == xctrl->unit) in uvc_xu_ctrl_query()
1363 if (entity->id != xctrl->unit) { in uvc_xu_ctrl_query()
1365 xctrl->unit); in uvc_xu_ctrl_query()
1372 if (ctrl->index == xctrl->selector - 1) { in uvc_xu_ctrl_query()
1380 entity->extension.guidExtensionCode, xctrl->selector); in uvc_xu_ctrl_query()
1394 if (ctrl->info.size != xctrl->size) { in uvc_xu_ctrl_query()
1411 if (set && copy_from_user(data, xctrl->data, xctrl->size)) { in uvc_xu_ctrl_query()
1417 xctrl->unit, chain->dev->intfnum, xctrl->selector, in uvc_xu_ctrl_query()
1418 data, xctrl->size); in uvc_xu_ctrl_query()
1422 if (!set && copy_to_user(xctrl->data, data, xctrl->size)) in uvc_xu_ctrl_query()
1428 xctrl->size); in uvc_xu_ctrl_query()