Lines Matching defs:descriptor

124     HpOptionDescriptor  descriptor;
339 new->descriptor = desc;
392 HpScl scl = this->descriptor->scl_command;
416 HpScl scl = this->descriptor->scl_command;
444 this->descriptor->name, (long)this->descriptor->enable,
445 (long)this->descriptor->program);
448 * if (this->descriptor->program_immediate)
455 if (!this->descriptor->program)
459 if (this->descriptor->enable
460 && !(*this->descriptor->enable)(this, optset, data, info))
463 return (*this->descriptor->program)(this, scsi, optset, data);
489 return ( this->descriptor->program_immediate
490 && this->descriptor->program );
501 assert (this->descriptor->program_immediate && this->descriptor->program);
506 DBG(10,"hp_option_imm_set: %s\n", this->descriptor->name);
508 if ( this->descriptor->type == SANE_TYPE_BUTTON )
510 status = (*this->descriptor->program)(this, scsi, optset, data);
513 if (this->descriptor->has_global_effect)
515 if (this->descriptor->affects_scan_params)
530 this->descriptor->name, sane_strstatus(status));
547 if ( this->descriptor->type == SANE_TYPE_STRING )
548 RETURN_IF_FAIL( (*this->descriptor->program)(this, scsi, optset, data) );
554 if (this->descriptor->has_global_effect)
556 if (this->descriptor->affects_scan_params)
578 if (this->descriptor->type == SANE_TYPE_INT)
581 DBG(10,"hp_option_set: %s%s\n", this->descriptor->name, sval);
586 this->descriptor->name, sane_strstatus(status));
594 DBG(3, "option_set: %s: value unchanged\n",this->descriptor->name);
607 if (this->descriptor->has_global_effect)
609 if (this->descriptor->affects_scan_params)
612 DBG(3, "option_set: %s: info=0x%lx\n",this->descriptor->name,
670 if (this->descriptor->may_change)
672 DBG(5, "hp_option_reprogram: %s\n", this->descriptor->name);
682 if (this->descriptor->may_change)
684 DBG(5, "hp_option_reprobe: %s\n", this->descriptor->name);
686 (*this->descriptor->probe)((_HpOption)this, scsi, optset, data);
695 = this->descriptor->enable;
707 return this->descriptor->name[0] == '_';
744 HpScl scl = this->descriptor->scl_command;
771 HpScl scl = this->descriptor->scl_command;
784 val = this->descriptor->startval;
785 minval = this->descriptor->minval;
786 maxval = this->descriptor->maxval;
872 HpScl scl = this->descriptor->scl_command;
1064 HpScl scl = this->descriptor->scl_command;
1072 this->descriptor->name, val, minval, maxval);
1119 choices = _make_choice_list(this->descriptor->choices, minval, maxval);
1130 this->descriptor->may_change);
1148 HpScl scl = this->descriptor->scl_command;
1155 this->descriptor->name, val, minval, maxval);
1157 this->descriptor->name);
1160 choices = _make_probed_choice_list(scsi, scl, this->descriptor->choices,
1164 val, this->descriptor->name);
1179 this->descriptor->may_change )))
1202 choices = _make_choice_list(this->descriptor->choices, minval, maxval);
1214 this->descriptor->may_change )))
1243 scan_types[numchoices++] = this->descriptor->choices[0];
1255 scan_types[numchoices++] = this->descriptor->choices[1];
1265 scan_types[numchoices++] = this->descriptor->choices[2];
1286 this->descriptor->may_change )))
1304 HpScl scl = this->descriptor->scl_command;
1311 this->descriptor->name, val, minval, maxval);
1319 choices = _make_choice_list(this->descriptor->choices, minval, maxval);
1331 this->descriptor->may_change )))
1363 choices = _make_choice_list(this->descriptor->choices, minval, maxval);
1375 this->descriptor->may_change )))
1417 HpScl scl = this->descriptor->scl_command;
1505 HpScl scl = this->descriptor->scl_command;
1577 HpScl scl = this->descriptor->scl_command;
1603 if (type->desc == this->descriptor)
1662 if (this->descriptor->scl_command == SCL_BW16x16DITHER)
1712 HpScl scl = this->descriptor->scl_command;
1839 HpScl scl = this->descriptor->scl_command;
1873 HpScl scl = this->descriptor->scl_command;
1894 HpScl scl = this->descriptor->scl_command;
2301 HpScl scl = this->descriptor->scl_command;
2720 HpScl scl = this->descriptor->scl_command;
3525 if ((*optp)->descriptor == optd)
3548 if (strcmp((*optp)->descriptor->name, name) == 0)
3802 if (!(optpt->descriptor->enable)) /* No enable necessary ? Enabled */
3805 return (*optpt->descriptor->enable)(optpt, this, data, info);
3831 if ( (this->options[i])->descriptor->suppress_for_scan )
3834 (this->options[i])->descriptor->name);
3844 this->options[i]->descriptor->name);
3927 assert(this->options[0]->descriptor == NUM_OPTIONS);
3966 DBG(3,"sanei_hp_optset_control: %s\n", opt ? opt->descriptor->name : "");
3981 if ( (opt->descriptor->type == SANE_TYPE_BUTTON)
3982 || (opt->descriptor->type == SANE_TYPE_GROUP))