Lines Matching refs:max_len
3460 artec_sane_read (SANE_Handle handle, SANE_Byte * buf, SANE_Int max_len, SANE_Int * len)
3477 DBG (7, "artec_sane_read( %p, %p, %d, %d )\n", handle, (void *) buf, max_len, *len);
3498 max_ret_rows = max_len / s->params.bytes_per_line;
3556 DBG (50, "bytes_to_read = %lu, max_len = %d, max_rows = %lu\n",
3557 (u_long) s->bytes_to_read, max_len, (u_long) max_ret_rows);
3667 sane_read (SANE_Handle handle, SANE_Byte * buf, SANE_Int max_len, SANE_Int * len)
3677 DBG (7, "sane_read( %p, %p, %d, %d )\n", handle, (void *) buf, max_len, *len);
3678 DBG (9, "sane_read: bib = %d, ml = %d\n", bytes_in_buf, max_len);
3682 bytes_to_copy = max_len < bytes_in_buf ? max_len : bytes_in_buf;
3700 bytes_to_copy = max_len < s->hw->max_read_size ?
3701 max_len : s->hw->max_read_size;