Lines Matching defs:data

171 gl640WriteControl(int fd, GL640_Request req, u_char * data, unsigned int size)
182 /* dat */ data);
193 gl640ReadControl( int fd, GL640_Request req, u_char *data, unsigned int size )
204 /* dat */ data);
214 gl640WriteReq( int fd, GL640_Request req, u_char data )
216 return gl640WriteControl( fd, req, &data, 1);
221 gl640ReadReq( int fd, GL640_Request req, u_char *data )
223 return gl640ReadControl( fd, req, data, 1 );
226 /** Write USB bulk data
229 * setup[1] = 0x11 --> data to register
230 * setup[1] = 0x01 --> data to scanner memory
233 gl640WriteBulk( int fd, u_char *setup, u_char *data, size_t size )
244 status = sanei_usb_write_bulk (fd, data, &size);
251 /** Read USB bulk data
254 * setup[1] = 0x00 --> data from scanner memory
255 * setup[1] = 0x0c --> data from scanner fifo?
258 gl640ReadBulk( int fd, u_char *setup, u_char *data, size_t size, int mod )
275 len_info = data + toget;
282 status = sanei_usb_read_bulk( fd, data, &current );
287 data += current;
302 u_char data = 0xff;
304 gl640ReadReq( fd, GL640_SPP_STATUS, &data );
305 return data;
308 /** write a byte to the SPP data port */
310 outb_data( int fd, u_char data )
312 return gl640WriteReq( fd, GL640_SPP_DATA, data);
317 outb_ctrl( int fd, u_char data )
319 return gl640WriteReq( fd, GL640_SPP_CONTROL, data);
334 /* write register number to read from to SPP data-port
361 /** read data from SPP status port
365 SANE_Byte data, tmp;
373 data = inb_status( dev->fd );
374 data &= 0xf0;
377 data |= (tmp >> 4);
378 return data;
447 /** Write data to asic (SPP mode only)
456 /* output data */
459 /* notify asic there is data */
466 /** Write data to specific ASIC's register
469 SANE_Byte reg, SANE_Byte data )
477 buf[1] = data;
485 u12io_DataToScanner( dev, data );
490 /** Write data-buffer to specific ASIC's register
508 /** write data to the DAC
525 /** write data block to scanner
773 SANE_Byte data[64];
779 memcpy( data, cacheLen, 13 );
790 status = sanei_usb_read_bulk( dev->fd, data, &toget );
797 memcpy( cacheLen, data, 13 );
799 len_r = (u_long)data[5] * 256 + (u_long)data[4];
800 len_g = (u_long)data[8] * 256 + (u_long)data[7];
801 len_b = (u_long)data[11] * 256 + (u_long)data[10];