Lines Matching refs:info

16 	if (cptr->info->check_value) {
17 if (!cptr->info->check_value(cptr,val)) return -ERANGE;
18 } else if (cptr->info->type == pvr2_ctl_enum) {
20 if (val >= cptr->info->def.type_enum.count) return -ERANGE;
23 lim = cptr->info->def.type_int.min_value;
24 if (cptr->info->get_min_value) {
25 cptr->info->get_min_value(cptr,&lim);
28 lim = cptr->info->def.type_int.max_value;
29 if (cptr->info->get_max_value) {
30 cptr->info->get_max_value(cptr,&lim);
51 if (cptr->info->set_value) {
52 if (cptr->info->type == pvr2_ctl_bitmask) {
53 mask &= cptr->info->def.type_bitmask.valid_bits;
54 } else if ((cptr->info->type == pvr2_ctl_int)||
55 (cptr->info->type == pvr2_ctl_enum)) {
58 } else if (cptr->info->type != pvr2_ctl_bool) {
61 ret = cptr->info->set_value(cptr,mask,val);
76 ret = cptr->info->get_value(cptr,valptr);
86 return cptr->info->type;
96 if (cptr->info->get_max_value) {
97 cptr->info->get_max_value(cptr,&ret);
98 } else if (cptr->info->type == pvr2_ctl_int) {
99 ret = cptr->info->def.type_int.max_value;
112 if (cptr->info->get_min_value) {
113 cptr->info->get_min_value(cptr,&ret);
114 } else if (cptr->info->type == pvr2_ctl_int) {
115 ret = cptr->info->def.type_int.min_value;
128 if (cptr->info->get_def_value) {
129 ret = cptr->info->get_def_value(cptr, valptr);
131 *valptr = cptr->info->default_value;
144 if (cptr->info->type == pvr2_ctl_enum) {
145 ret = cptr->info->def.type_enum.count;
158 if (cptr->info->type == pvr2_ctl_bitmask) {
159 ret = cptr->info->def.type_bitmask.valid_bits;
170 return cptr->info->name;
178 return cptr->info->desc;
191 if (cptr->info->type == pvr2_ctl_enum) {
193 names = cptr->info->def.type_enum.value_names;
204 } else if (cptr->info->type == pvr2_ctl_bitmask) {
208 names = cptr->info->def.type_bitmask.bit_names;
209 val &= cptr->info->def.type_bitmask.valid_bits;
228 return cptr->info->v4l_id;
236 if (cptr->info->get_v4lflags) {
237 flags = cptr->info->get_v4lflags(cptr);
240 if (cptr->info->set_value) {
254 return cptr->info->set_value != NULL;
262 if (!cptr->info->val_to_sym) return 0;
263 if (!cptr->info->sym_to_val) return 0;
275 if (!cptr->info->val_to_sym) return -EINVAL;
276 return cptr->info->val_to_sym(cptr,mask,val,buf,maxlen,len);
286 if (!cptr->info->sym_to_val) return -EINVAL;
287 return cptr->info->sym_to_val(cptr,buf,len,maskptr,valptr);
497 if (cptr->info->type == pvr2_ctl_int) {
503 } else if (cptr->info->type == pvr2_ctl_bool) {
512 } else if (cptr->info->type == pvr2_ctl_enum) {
515 cptr->info->def.type_enum.value_names,
516 cptr->info->def.type_enum.count);
521 } else if (cptr->info->type == pvr2_ctl_bitmask) {
524 cptr->info->def.type_bitmask.bit_names,
525 cptr->info->def.type_bitmask.valid_bits);
541 if (cptr->info->type == pvr2_ctl_int) {
544 } else if (cptr->info->type == pvr2_ctl_bool) {
547 } else if (cptr->info->type == pvr2_ctl_enum) {
549 names = cptr->info->def.type_enum.value_names;
551 (val < cptr->info->def.type_enum.count)) {
561 } else if (cptr->info->type == pvr2_ctl_bitmask) {
563 val & mask & cptr->info->def.type_bitmask.valid_bits,
565 cptr->info->def.type_bitmask.bit_names,