Lines Matching refs:vc

530 		struct v4l2_queryctrl *vc)  in pvr2_queryctrl()  argument
537 if (vc->id & V4L2_CTRL_FLAG_NEXT_CTRL) { in pvr2_queryctrl()
539 hdw, (vc->id & ~V4L2_CTRL_FLAG_NEXT_CTRL)); in pvr2_queryctrl()
541 vc->id = pvr2_ctrl_get_v4lid(cptr); in pvr2_queryctrl()
543 cptr = pvr2_hdw_get_ctrl_v4l(hdw, vc->id); in pvr2_queryctrl()
548 vc->id); in pvr2_queryctrl()
554 vc->id, pvr2_ctrl_get_name(cptr), in pvr2_queryctrl()
556 strlcpy(vc->name, pvr2_ctrl_get_desc(cptr), sizeof(vc->name)); in pvr2_queryctrl()
557 vc->flags = pvr2_ctrl_get_v4lflags(cptr); in pvr2_queryctrl()
559 vc->default_value = val; in pvr2_queryctrl()
562 vc->type = V4L2_CTRL_TYPE_MENU; in pvr2_queryctrl()
563 vc->minimum = 0; in pvr2_queryctrl()
564 vc->maximum = pvr2_ctrl_get_cnt(cptr) - 1; in pvr2_queryctrl()
565 vc->step = 1; in pvr2_queryctrl()
568 vc->type = V4L2_CTRL_TYPE_BOOLEAN; in pvr2_queryctrl()
569 vc->minimum = 0; in pvr2_queryctrl()
570 vc->maximum = 1; in pvr2_queryctrl()
571 vc->step = 1; in pvr2_queryctrl()
574 vc->type = V4L2_CTRL_TYPE_INTEGER; in pvr2_queryctrl()
575 vc->minimum = pvr2_ctrl_get_min(cptr); in pvr2_queryctrl()
576 vc->maximum = pvr2_ctrl_get_max(cptr); in pvr2_queryctrl()
577 vc->step = 1; in pvr2_queryctrl()
582 vc->id, pvr2_ctrl_get_name(cptr)); in pvr2_queryctrl()
603 static int pvr2_g_ctrl(struct file *file, void *priv, struct v4l2_control *vc) in pvr2_g_ctrl() argument
610 ret = pvr2_ctrl_get_value(pvr2_hdw_get_ctrl_v4l(hdw, vc->id), in pvr2_g_ctrl()
612 vc->value = val; in pvr2_g_ctrl()
616 static int pvr2_s_ctrl(struct file *file, void *priv, struct v4l2_control *vc) in pvr2_s_ctrl() argument
621 return pvr2_ctrl_set_value(pvr2_hdw_get_ctrl_v4l(hdw, vc->id), in pvr2_s_ctrl()
622 vc->value); in pvr2_s_ctrl()