Home
last modified time | relevance | path

Searched refs:xctrl (Results 1 – 4 of 4) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/media/usb/uvc/
H A Duvc_ctrl.c1563 struct v4l2_ext_control *xctrl) in uvc_ctrl_get() argument
1568 ctrl = uvc_find_control(chain, xctrl->id, &mapping); in uvc_ctrl_get()
1572 return __uvc_ctrl_get(chain, ctrl, mapping, &xctrl->value); in uvc_ctrl_get()
1576 struct v4l2_ext_control *xctrl) in uvc_ctrl_set() argument
1587 ctrl = uvc_find_control(chain, xctrl->id, &mapping); in uvc_ctrl_set()
1611 xctrl->value = min + ((u32)(xctrl->value - min) + step / 2) in uvc_ctrl_set()
1614 xctrl->value = clamp(xctrl->value, min, max); in uvc_ctrl_set()
1616 xctrl->value = clamp_t(u32, xctrl->value, min, max); in uvc_ctrl_set()
1617 value = xctrl->value; in uvc_ctrl_set()
1621 xctrl->value = clamp(xctrl->value, 0, 1); in uvc_ctrl_set()
[all …]
H A Duvc_v4l2.c1007 struct v4l2_ext_control xctrl; in uvc_ioctl_g_ctrl() local
1010 memset(&xctrl, 0, sizeof(xctrl)); in uvc_ioctl_g_ctrl()
1011 xctrl.id = ctrl->id; in uvc_ioctl_g_ctrl()
1017 ret = uvc_ctrl_get(chain, &xctrl); in uvc_ioctl_g_ctrl()
1022 ctrl->value = xctrl.value; in uvc_ioctl_g_ctrl()
1031 struct v4l2_ext_control xctrl; in uvc_ioctl_s_ctrl() local
1034 memset(&xctrl, 0, sizeof(xctrl)); in uvc_ioctl_s_ctrl()
1035 xctrl.id = ctrl->id; in uvc_ioctl_s_ctrl()
1036 xctrl.value = ctrl->value; in uvc_ioctl_s_ctrl()
1042 ret = uvc_ctrl_set(handle, &xctrl); in uvc_ioctl_s_ctrl()
[all …]
H A Duvcvideo.h862 int uvc_ctrl_get(struct uvc_video_chain *chain, struct v4l2_ext_control *xctrl);
863 int uvc_ctrl_set(struct uvc_fh *handle, struct v4l2_ext_control *xctrl);
/OK3568_Linux_fs/kernel/drivers/tty/
H A Dsynclink_gt.c277 unsigned int xctrl; member
2834 static int get_xctrl(struct slgt_info *info, int __user *xctrl) in get_xctrl() argument
2836 DBGINFO(("%s get_xctrl=%x\n", info->device_name, info->xctrl)); in get_xctrl()
2837 if (put_user(info->xctrl, xctrl)) in get_xctrl()
2859 static int set_xctrl(struct slgt_info *info, int xctrl) in set_xctrl() argument
2863 DBGINFO(("%s set_xctrl=%x)\n", info->device_name, xctrl)); in set_xctrl()
2865 info->xctrl = xctrl; in set_xctrl()
2866 wr_reg32(info, XCR, xctrl); in set_xctrl()