Lines Matching refs:valp

173     SANE_Status (*get)(HpAccessor this, HpData data, void * valp);
174 SANE_Status (*set)(HpAccessor this, HpData data, void * valp);
180 sanei_hp_accessor_get (HpAccessor this, HpData data, void * valp)
184 return (*this->type->get)(this, data, valp);
188 sanei_hp_accessor_set (HpAccessor this, HpData data, void * valp)
192 return (*this->type->set)(this, data, valp);
250 hp_accessor_int_get (HpAccessor this, HpData data, void * valp)
252 *(SANE_Int*)valp = *(int *)hp_data_data(data, this->data_offset);
257 hp_accessor_int_set (HpAccessor this, HpData data, void * valp)
259 *(int *)hp_data_data(data, this->data_offset) = *(SANE_Int*)valp;
299 hp_accessor_bool_get (HpAccessor this, HpData data, void * valp)
302 *(SANE_Bool*)valp = val ? SANE_TRUE : SANE_FALSE;
307 hp_accessor_bool_set (HpAccessor this, HpData data, void * valp)
310 *datap = *(SANE_Bool*)valp == SANE_FALSE ? 0 : 1;
338 hp_accessor_fixed_get (HpAccessor this, HpData data, void * valp)
340 *(SANE_Fixed*)valp = *(SANE_Fixed *)hp_data_data(data, this->data_offset);
345 hp_accessor_fixed_set (HpAccessor this, HpData data, void * valp)
347 *(SANE_Fixed *)hp_data_data(data, this->data_offset) = *(SANE_Fixed*)valp;
381 hp_accessor_choice_get (HpAccessor this, HpData data, void * valp)
384 strcpy(valp, choice->name);
389 hp_accessor_choice_set (HpAccessor _this, HpData data, void * valp)
402 if (strcmp((const char *)valp, choice->name) == 0)
599 hp_accessor_vector_get (HpAccessor _this, HpData d, void * valp)
602 SANE_Fixed * ptr = valp;
617 hp_accessor_vector_set (HpAccessor _this, HpData d, void * valp)
620 SANE_Fixed * ptr = valp;
835 SANE_Fixed * valp = _valp;
839 if (this->is_br ? *valp < limit : *valp > limit)
840 *valp = limit;
841 return sanei_hp_accessor_set(this->this, data, valp);