Lines Matching defs:data

59    . .   - sane_read() : read image data (from pipe)
116 typedef int (*rts8801_callback) (void *param, unsigned bytes, void *data);
742 * Called by SANE to retrieve information about the type of data
788 * Called by SANE to read data.
791 * data from a pipe and handing it back. On the other end of the pipe
792 * there's the reader process which gets data from the scanner and
796 * This function is used to read image data from the device
1289 unsigned char const *data = data_;
1292 * data bytes are 0xaa and hence require a following 0x00 byte.
1311 *buffer++ = *data;
1312 if (*data++ == 0xaa)
1335 void *data, int readbytes, void *readdata)
1337 rt_queue_command (command, reg, count, bytes, data, readbytes, readdata);
1342 rt_queue_read_register (int reg, int bytes, void *data)
1344 return rt_queue_command (RTCMD_GETREG, reg, bytes, 0, 0, bytes, data);
1348 rt_read_register_immediate (int reg, int bytes, void *data)
1350 if (rt_queue_read_register (reg, bytes, data) < 0)
1356 rt_queue_set_register (int reg, int bytes, void *data)
1358 return rt_queue_command (RTCMD_SETREG, reg, bytes, bytes, data, 0, 0);
1362 rt_set_register_immediate (int reg, int bytes, void *data)
1368 if (rt_set_register_immediate (reg, bytes_in_first_block, data) < 0 ||
1370 (char *) data + bytes_in_first_block +
1375 if (rt_queue_set_register (reg, bytes, data) < 0)
1391 unsigned char *data = (unsigned char *) data_;
1411 if (data[now++] == 0xaa)
1416 if (rt_send_command_immediate (RTCMD_WRITESRAM, 0, now, now, data, 0,
1420 data += now;
1428 unsigned char *data = (unsigned char *) data_;
1434 data) < 0)
1437 data += now;
1456 char data[0x818];
1461 for (i = 0; i < sizeof (data); ++i)
1462 data[i] = i % 0x61;
1469 rt_write_sram (0x818, data) ||
1472 if (!memcmp (testbuf, data, 0x818))
1521 unsigned char data[3];
1523 if (rt_queue_command (RTCMD_BYTESAVAIL, 0, 3, 0, 0, 3, data) < 0 ||
1526 return ((unsigned) data[0]) |
1527 ((unsigned) data[1] << 8) | ((unsigned) data[2] << 16);
1531 rt_get_data (int bytes, void *data)
1540 (RTCMD_READBYTES, 0, bytesnow, 0, 0, bytesnow, data) < 0
1544 data = (char *) data + bytesnow;
2169 rt_nvram_write (int block, int location, char const *data, int bytes)
2200 rt_nvram_set_addressing_bits (data_bits, *data++, 8, stdbits);
2240 rt_nvram_read (int block, int location, unsigned char *data, int bytes)
2294 *data++ = c;
2408 * DDOUBLE gives a crazy spike in the data
2624 DBG (5, " Scan data estimates:\n");
3227 accumfunc (struct dcalibdata *dcd, int bytes, char *data)
3229 unsigned char *c = (unsigned char *) data;
3248 calcmedian (unsigned char const *data,
3256 data += pixel;
3259 ++tallies[*data];
3260 data += pixels_per_row;
3275 storefunc (struct calibdata *cd, int bytes, char *data)
3281 memcpy (cd->buffer, data, bytes);
3760 writefunc (struct hp3500_write_info *winfo, int bytes, char *data)
3777 return write (winfo->scanner->pipe_w, data, bytes) == bytes;