Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/media/usb/uvc/
Duvc_ctrl.c1868 struct v4l2_ext_control *xctrl) in uvc_ctrl_get() argument
1873 if (__uvc_query_v4l2_class(chain, xctrl->id, 0) >= 0) in uvc_ctrl_get()
1876 ctrl = uvc_find_control(chain, xctrl->id, &mapping); in uvc_ctrl_get()
1880 return __uvc_ctrl_get(chain, ctrl, mapping, &xctrl->value); in uvc_ctrl_get()
1884 struct v4l2_ext_control *xctrl) in uvc_ctrl_set() argument
1895 if (__uvc_query_v4l2_class(chain, xctrl->id, 0) >= 0) in uvc_ctrl_set()
1898 ctrl = uvc_find_control(chain, xctrl->id, &mapping); in uvc_ctrl_set()
1922 xctrl->value = min + DIV_ROUND_CLOSEST((u32)(xctrl->value - min), in uvc_ctrl_set()
1925 xctrl->value = clamp(xctrl->value, min, max); in uvc_ctrl_set()
1927 xctrl->value = clamp_t(u32, xctrl->value, min, max); in uvc_ctrl_set()
[all …]
Duvcvideo.h783 int uvc_ctrl_get(struct uvc_video_chain *chain, struct v4l2_ext_control *xctrl);
784 int uvc_ctrl_set(struct uvc_fh *handle, struct v4l2_ext_control *xctrl);
/Linux-v6.6/drivers/tty/
Dsynclink_gt.c273 unsigned int xctrl; member
2817 static int get_xctrl(struct slgt_info *info, int __user *xctrl) in get_xctrl() argument
2819 DBGINFO(("%s get_xctrl=%x\n", info->device_name, info->xctrl)); in get_xctrl()
2820 if (put_user(info->xctrl, xctrl)) in get_xctrl()
2842 static int set_xctrl(struct slgt_info *info, int xctrl) in set_xctrl() argument
2846 DBGINFO(("%s set_xctrl=%x)\n", info->device_name, xctrl)); in set_xctrl()
2848 info->xctrl = xctrl; in set_xctrl()
2849 wr_reg32(info, XCR, xctrl); in set_xctrl()