Lines Matching refs:size
1061 struct BJNP_command cmd, int size)
1081 if ((num_bytes = sendto (sockfd, &cmd, size, 0,
1083 sa_size( broadcast_addr)) ) != size)
1130 bjnp_poll_scanner (int devno, char type,char *hostname, char *user, SANE_Byte *status, int size)
1214 memcpy( status, response->status, size);
1216 PDBG (bjnp_hexdump( LOG_DEBUG2, status, size ));
1218 return size;
1392 * size: return value for data size returned by scanner
1585 (LOG_DEBUG, "bjnp_recv_data: WARNING - requested block size (%ld) exceeds maximum, setting to maximum %ld\n",
2387 * Read up to size bytes from the device to buffer. After the read, size
2392 * @param size size of the data
2403 sanei_bjnp_read_bulk (SANE_Int dn, SANE_Byte * buffer, size_t * size)
2414 (long) buffer, (unsigned long) *size, (unsigned long) *size));
2417 requested = *size;
2444 *size = recvd;
2449 *size = recvd;
2459 /* we now determine end of data by comparing the payload size to the maximum blocksize */
2486 *size = recvd;
2497 (recvd == *size)? "OK": "NOTICE",recvd, *size ) );
2498 *size = recvd;
2499 if ( *size == 0 )
2506 * Write up to size bytes from buffer to the device. After the write size
2511 * @param size size of the data
2520 sanei_bjnp_write_bulk (SANE_Int dn, const SANE_Byte * buffer, size_t * size)
2529 sent = bjnp_write (dn, buffer, *size);
2532 if (sent != (int) *size)
2536 (unsigned long) sent, (unsigned long) *size));
2563 if (recvd != *size)
2567 (unsigned long) recvd, (unsigned long) *size));
2579 * Read up to size bytes from the interrupt endpoint from the device to
2580 * buffer. After the read, size contains the number of bytes actually read.
2584 * @param size size of the data
2595 sanei_bjnp_read_int (SANE_Int dn, SANE_Byte * buffer, size_t * size)
2600 (unsigned long) *size, (unsigned long) *size));
2602 memset (buffer, 0, *size);
2614 (unsigned long) *size, (unsigned long) *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 )
2654 *size = 0;
2657 *size = (size_t) resp_len;
2670 if ( (resp_len = bjnp_poll_scanner (dn, 5, hostname, getusername (), buffer, *size ) ) < 0 )
2674 *size = 0;