Lines Matching refs:cptr
166 struct pvr2_ctrl *cptr; in pvr2_enum_input() local
171 cptr = pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_INPUT); in pvr2_enum_input()
193 pvr2_ctrl_get_valname(cptr, val, in pvr2_enum_input()
215 struct pvr2_ctrl *cptr; in pvr2_g_input() local
219 cptr = pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_INPUT); in pvr2_g_input()
221 ret = pvr2_ctrl_get_value(cptr, &val); in pvr2_g_input()
505 struct pvr2_ctrl *cptr; in pvr2_queryctrl() local
509 cptr = pvr2_hdw_get_ctrl_nextv4l( in pvr2_queryctrl()
511 if (cptr) in pvr2_queryctrl()
512 vc->id = pvr2_ctrl_get_v4lid(cptr); in pvr2_queryctrl()
514 cptr = pvr2_hdw_get_ctrl_v4l(hdw, vc->id); in pvr2_queryctrl()
516 if (!cptr) { in pvr2_queryctrl()
525 vc->id, pvr2_ctrl_get_name(cptr), in pvr2_queryctrl()
526 pvr2_ctrl_get_desc(cptr)); in pvr2_queryctrl()
527 strscpy(vc->name, pvr2_ctrl_get_desc(cptr), sizeof(vc->name)); in pvr2_queryctrl()
528 vc->flags = pvr2_ctrl_get_v4lflags(cptr); in pvr2_queryctrl()
529 pvr2_ctrl_get_def(cptr, &val); in pvr2_queryctrl()
531 switch (pvr2_ctrl_get_type(cptr)) { in pvr2_queryctrl()
535 vc->maximum = pvr2_ctrl_get_cnt(cptr) - 1; in pvr2_queryctrl()
546 vc->minimum = pvr2_ctrl_get_min(cptr); in pvr2_queryctrl()
547 vc->maximum = pvr2_ctrl_get_max(cptr); in pvr2_queryctrl()
553 vc->id, pvr2_ctrl_get_name(cptr)); in pvr2_queryctrl()
605 struct pvr2_ctrl *cptr; in pvr2_g_ext_ctrls() local
613 cptr = pvr2_hdw_get_ctrl_v4l(hdw, ctrl->id); in pvr2_g_ext_ctrls()
614 if (cptr) { in pvr2_g_ext_ctrls()
616 pvr2_ctrl_get_def(cptr, &val); in pvr2_g_ext_ctrls()
618 ret = pvr2_ctrl_get_value(cptr, &val); in pvr2_g_ext_ctrls()