Lines Matching defs:max_length
1703 e2_copy_image_data(Epson_Scanner * s, SANE_Byte * data, SANE_Int max_length,
1708 max_length /= 3;
1710 if (max_length > s->end - s->ptr)
1711 max_length = s->end - s->ptr;
1713 *length = 3 * max_length;
1715 while (max_length-- != 0) {
1723 if (max_length > s->end - s->ptr)
1724 max_length = s->end - s->ptr;
1726 *length = max_length;
1729 while (max_length-- != 0)
1732 memcpy(data, s->ptr, max_length);
1733 s->ptr += max_length;