Lines Matching defs:valp

467 hp_option_get (HpOption this, HpData data, void * valp)
471 return sanei_hp_accessor_get(this->data_acsr, data, valp);
495 void * valp, SANE_Int * info, HpScsi scsi)
527 if (FAILED( status = sanei_constrain_value(optd, valp, info) ))
536 if (_values_are_equal(this, data, old_val, valp))
543 memcpy(old_val, valp, optd->size); /* Save requested value */
545 RETURN_IF_FAIL( sanei_hp_accessor_set(this->data_acsr, data, valp) );
552 if (!_values_are_equal(this, data, old_val, valp))
564 hp_option_set (HpOption this, HpData data, void * valp, SANE_Int * info)
579 sprintf (sval," value=%d", *(int*)valp);
583 if (FAILED( status = sanei_constrain_value(optd, valp, info) ))
592 if (_values_are_equal(this, data, old_val, valp))
599 memcpy(old_val, valp, optd->size); /* Save requested value */
601 RETURN_IF_FAIL( sanei_hp_accessor_set(this->data_acsr, data, valp) );
605 if (!_values_are_equal(this, data, old_val, valp))
627 SANE_Action action, void * valp, SANE_Int *infop,
637 return hp_option_get(this, data, valp);
639 return hp_option_imm_set(optset, this, data, valp, infop, scsi);
648 SANE_Action action, void * valp, SANE_Int *infop)
657 return hp_option_get(this, data, valp);
659 return hp_option_set(this, data, valp, infop);
3960 void * valp, SANE_Int *infop, HpScsi scsi,
3976 /* There are problems with SANE_ACTION_GET_VALUE and valp == 0. */
3977 /* Check if we really need valp. */
3978 if ((action == SANE_ACTION_GET_VALUE) && (!valp))
3984 valp = &my_val; /* Just simulate a return value locally. */
3988 DBG(1, "sanei_hp_optset_control: get value, but valp == 0\n");
3994 RETURN_IF_FAIL( hp_option_imm_control(this, opt, data, action, valp, infop,
3997 RETURN_IF_FAIL( hp_option_control(opt, data, action, valp, infop ) );