Lines Matching defs:buf
1074 uint8_t *buf = (uint8_t *) buf_;
1079 count = write (ss->wpipe, buf, size);
1084 buf += count;
1087 return buf - (uint8_t *) buf_;
1094 void *buf;
1101 buf = malloc (bufsize);
1102 if (!buf)
1147 while ((count = pixma_read_image (ss->s, buf, bufsize)) > 0)
1149 if (write_all (ss, buf, count) != count)
1157 free (buf);
1546 read_image (pixma_sane_t * ss, void *buf, unsigned size, int *readlen)
1585 pixma_jpeg_read(ss, buf, size, &count);
1588 count = read (ss->rpipe, buf, size);
1970 sane_read (SANE_Handle h, SANE_Byte * buf, SANE_Int maxlen, SANE_Int * len)
1982 if (!ss || !buf || !len)
1997 status = read_image (ss, buf, maxlen, &sum);
2012 status = read_image (ss, buf, n, &n);
2016 buf += n;