Lines Matching refs:buffer
201 /* if debuglevel == exact match and buffer contains more than 3 lines, print 2 lines + .... */
365 * len is length of destination buffer
588 * Set command buffer with command code, session_id and length of payload
607 * Set command buffer with command code, session_id and length of payload
1140 int buf_len; /* length of the whole command buffer */
1552 bjnp_recv_data (int devno, SANE_Byte * buffer, size_t start_pos, size_t * len)
1570 (LOG_DEBUG, "bjnp_recv_data: read response payload (0x%lx bytes max), buffer: 0x%lx, start_pos: 0x%lx\n",
1571 (long) *len, (long) buffer, (long) start_pos));
1624 if ((recv_bytes = recv (fd, buffer + start_pos, *len, 0)) < 0)
1629 (long) buffer, (long) start_pos, (long) buffer + start_pos, strerror (errno)));
1636 PDBG (bjnp_hexdump (LOG_DEBUG2, buffer, recv_bytes));
2387 * Read up to size bytes from the device to buffer. After the read, size
2391 * @param buffer buffer to store read data in
2403 sanei_bjnp_read_bulk (SANE_Int dn, SANE_Byte * buffer, size_t * size)
2414 (long) buffer, (unsigned long) *size, (unsigned long) *size));
2483 result = bjnp_recv_data (dn, buffer , recvd, &read_size);
2506 * Write up to size bytes from buffer to the device. After the write size
2510 * @param buffer buffer to write to device
2520 sanei_bjnp_write_bulk (SANE_Int dn, const SANE_Byte * buffer, size_t * size)
2529 sent = bjnp_write (dn, buffer, *size);
2580 * buffer. After the read, size contains the number of bytes actually read.
2583 * @param buffer buffer to store read data in
2595 sanei_bjnp_read_int (SANE_Int dn, SANE_Byte * buffer, size_t * size)
2602 memset (buffer, 0, *size);
2616 memset (buffer, 0, *size);
2628 if ( (bjnp_poll_scanner (dn, 0, hostname, getusername (), buffer, *size ) != 0) ||
2629 (bjnp_poll_scanner (dn, 1, hostname, getusername (), buffer, *size ) != 0) )
2650 if ( (resp_len = bjnp_poll_scanner (dn, 2, hostname, getusername (), buffer, *size ) ) < 0 )
2670 if ( (resp_len = bjnp_poll_scanner (dn, 5, hostname, getusername (), buffer, *size ) ) < 0 )