Lines Matching defs:this

16    along with this program.  If not, see <https://www.gnu.org/licenses/>.
19 additional uses of the libraries contained in this release of SANE.
22 to produce an executable, this does not by itself cause the
33 those changes may be distributed with this exception intact.
36 whether to permit this exception to apply to your modifications.
37 If you do not wish that, delete this exception notice.
58 static int TransferControlMsg(TInstance *this,
71 err = sanei_usb_control_msg (this->hScanner,
89 static int TransferBulkRead(TInstance *this,
101 err = sanei_usb_read_bulk(this->hScanner,
117 TState RegWrite(TInstance *this, int iRegister, int cb, unsigned long ulValue)
125 return SetError(this,SANE_STATUS_INVAL,"unsupported control transfer size %d",cb);
136 return SetError(this,SANE_STATUS_IO_ERROR,
139 i=TransferControlMsg(this, /* handle */
148 return SetError(this,SANE_STATUS_IO_ERROR,"error during register write");
153 TState RegWriteArray(TInstance *this, int iRegister, int cb, unsigned char *pchBuffer)
158 i=TransferControlMsg(this, /* handle */
166 return SetError(this,SANE_STATUS_IO_ERROR,"error during register write");
177 TState MemWriteArray(TInstance *this, int iAddress,
183 i=TransferControlMsg(this,
191 return SetError(this,SANE_STATUS_IO_ERROR,"error during memory write");
204 TState MemReadArray(TInstance *this, int iAddress, int cb, unsigned char *pchBuffer)
209 i=TransferControlMsg(this,
217 return SetError(this,SANE_STATUS_IO_ERROR,"error during memory read");
228 TState RegCheck(TInstance *this, int iRegister, int cch, unsigned long ulValue)
235 return SetError(this,SANE_STATUS_INVAL,"unsupported control transfer size %d",cch);
243 rcCode=SetError(this, SANE_STATUS_NO_MEM, "no memory in RegCheck()");
254 rcCode=SetError(this,SANE_STATUS_IO_ERROR,
258 i=TransferControlMsg(this, /* handle */
266 rcCode=SetError(this,SANE_STATUS_IO_ERROR,
273 rcCode=SetError(this,SANE_STATUS_IO_ERROR,
288 int BulkRead(TInstance *this, FILE *fhOut, unsigned int cchBulk)
305 cchReal=TransferBulkRead(this,
320 rc=SetError(this,SANE_STATUS_IO_ERROR,
333 rc=SetError(this,SANE_STATUS_IO_ERROR,
350 int BulkReadBuffer(TInstance *this,
369 cchReal=TransferBulkRead(this,
383 rc=SetError(this,SANE_STATUS_IO_ERROR,
406 unsigned int RegRead(TInstance *this, int iRegister, int cch)
414 SetError(this,SANE_STATUS_INVAL,
420 i=TransferControlMsg(this, /* handle */
436 SetError(this,SANE_STATUS_IO_ERROR,"error during register read");