Lines Matching defs:choice

35    If you write modifications of your own for SANE, it is your choice
58 /* To be done: don't reallocate choice accessors */
228 hp_choice_isSupported (HpChoice choice, int minval, int maxval)
230 return ( choice->is_emulated
231 || ( choice->val >= minval && choice->val <= maxval ) );
236 HpChoice choice, int minval, int maxval)
242 if ( choice->is_emulated )
244 DBG(3, "probed_choice: value %d is emulated\n", choice->val);
247 if ( choice->val < minval || choice->val > maxval )
249 DBG(3, "probed_choice: value %d out of range (%d,%d)\n", choice->val,
260 status = hp_probe_parameter_support_table (compat, scl, choice->val);
277 sanei_hp_scl_set (scsi, scl, choice->val);
281 DBG(3, "probed_choice: value %d %s\n", choice->val,
1011 _make_choice_list (HpChoice choice, int minval, int maxval)
1017 if (!choice->name)
1019 else if (hp_choice_isSupported(choice, minval, maxval))
1021 _HpChoice new = sanei_hp_memdup(choice, sizeof(*new));
1024 new->next = _make_choice_list(choice + 1, minval, maxval);
1028 return _make_choice_list(choice + 1, minval, maxval);
1032 _make_probed_choice_list (HpScsi scsi, HpScl scl, HpChoice choice,
1039 if (!choice->name)
1041 else if (hp_probed_choice_isSupported(scsi, scl, choice, minval, maxval))
1043 _HpChoice new = sanei_hp_memdup(choice, sizeof(*new));
1046 new->next = _make_probed_choice_list(scsi, scl, choice + 1, minval, maxval);
1050 return _make_probed_choice_list(scsi, scl, choice + 1, minval, maxval);
1268 /* Only normal scan type available ? No need to display choice */
2985 /* FIXME: make this a choice? (BW or RGB custom) */