Lines Matching refs:data
160 /* returns 0 if there is no data to copy */
194 unsigned char *pSrc = dev->data;
271 /* Read Image is raw data, don't need to read response */
303 DBG(2, "%s: illegal data header %02x\n", __func__, dev->res[0]);
364 DBG(3, "total image %d*%d size %d (win %d*%d), %d*%d %d data: %d, out %d bytes\n",
977 if (dev->data)
978 free(dev->data);
1058 void __sane_unused__ *data)
1185 /* check if image data is ready, and wait if not */
1256 *buf++ = dev->data[(dev->dataoff + j) & DATAMASK];
1264 /* return: how much data could be freed from cyclic buffer */
1284 /* while we have data && they can receive */
1293 *buf++ = dev->data[(dev->dataoff + band + x + y * linesize) & DATAMASK];
1319 /* if there is no data to read or output from buffer */
1322 /* copying uncompressed data */
1383 /* read as much data into the buffer */
1386 SANE_Byte *rbuf = dev->data + DATATAIL(dev);
1404 /* copy will do minimal of valid data */
1408 /* decompress after reading entire block data*/
1492 if (!dev->data && !(dev->data = malloc(DATASIZE)))