Lines Matching refs:cptr
59 struct pvr2_ctrl *cptr; member
76 name = pvr2_ctrl_get_desc(cip->cptr); in show_name()
91 tp = pvr2_ctrl_get_type(cip->cptr); in show_type()
111 val = pvr2_ctrl_get_min(cip->cptr); in show_min()
124 val = pvr2_ctrl_get_max(cip->cptr); in show_max()
139 ret = pvr2_ctrl_get_def(cip->cptr, &val); in show_def()
141 ret = pvr2_ctrl_value_to_sym(cip->cptr, ~0, val, in show_def()
158 ret = pvr2_ctrl_get_value(cip->cptr, &val); in show_val_norm()
160 ret = pvr2_ctrl_value_to_sym(cip->cptr, ~0, val, in show_val_norm()
177 ret = pvr2_ctrl_get_value(cip->cptr, &val); in show_val_custom()
179 ret = pvr2_ctrl_custom_value_to_sym(cip->cptr, ~0, val, in show_val_custom()
195 ecnt = pvr2_ctrl_get_cnt(cip->cptr); in show_enum()
198 pvr2_ctrl_get_valname(cip->cptr, val, buf + bcnt, in show_enum()
219 valid_bits = pvr2_ctrl_get_mask(cip->cptr); in show_bits()
224 pvr2_ctrl_get_valname(cip->cptr, msk, buf + bcnt, in show_bits()
242 ret = pvr2_ctrl_custom_sym_to_value(cip->cptr, buf, count, in store_val_any()
245 ret = pvr2_ctrl_sym_to_value(cip->cptr, buf, count, in store_val_any()
249 ret = pvr2_ctrl_set_mask_value(cip->cptr, mask, val); in store_val_any()
285 struct pvr2_ctrl *cptr; in pvr2_sysfs_add_control() local
289 cptr = pvr2_hdw_get_ctrl_by_index(sfp->channel.hdw,ctl_id); in pvr2_sysfs_add_control()
290 if (!cptr) return; in pvr2_sysfs_add_control()
296 cip->cptr = cptr; in pvr2_sysfs_add_control()
351 if (pvr2_ctrl_is_writable(cptr)) { in pvr2_sysfs_add_control()
363 if (pvr2_ctrl_has_custom_symbols(cptr)) { in pvr2_sysfs_add_control()
368 switch (pvr2_ctrl_get_type(cptr)) { in pvr2_sysfs_add_control()
386 pvr2_ctrl_get_name(cptr)); in pvr2_sysfs_add_control()