Lines Matching refs:max_len
1649 sane_read_direct (SANE_Handle handle, SANE_Byte *buf, SANE_Int max_len,
1659 nread = max_len;
1690 read_fs2710 (SANE_Handle handle, SANE_Byte *buf, SANE_Int max_len,
1705 nread = max_len;
1728 if (max_len > s->auxbuf_len)
1731 s->auxbuf_len = max_len;
1732 if ((s->auxbuf = (u_char *) malloc (2 * max_len)) == NULL)
1785 read_fb620 (SANE_Handle handle, SANE_Byte *buf, SANE_Int max_len,
1824 if (ncopy > max_len)
1825 ncopy = max_len;
1828 max_len -= ncopy;
1874 if (max_len && s->buf_pos < s->buf_used)
1877 if (ncopy > max_len)
1878 ncopy = max_len;
1892 read_fb1200 (SANE_Handle handle, SANE_Byte *buf, SANE_Int max_len,
2110 if (max_len && s->buf_pos < s->buf_used)
2113 if (ncopy > max_len)
2114 ncopy = max_len;
2126 sane_read (SANE_Handle handle, SANE_Byte *buf, SANE_Int max_len,
2132 status = read_fb620 (handle, buf, max_len, len);
2134 status = read_fs2710 (handle, buf, max_len, len);
2137 status = read_fb1200 (handle, buf, max_len, len);
2139 status = sane_read_direct (handle, buf, max_len, len);