Lines Matching defs:buf
441 hexdump (int level, const char *comment, unsigned char *buf, const int length)
458 ptr += sprintf (ptr, " %2.2x", *buf);
460 if (*buf >= 32 && *buf <= 127)
462 asc_ptr += sprintf (asc_ptr, "%c", *buf);
476 buf++;
1521 unsigned char buf[255];
1528 size = sizeof (buf);
1538 NULL, 0, buf, &size);
1540 hexdump (DBG_info2, "teco_request_sense:", buf, size);
2444 * len in input is the maximum length available in buf, and, in
2445 * output, is the length written into buf.
2448 teco_copy_raw_to_frontend (Teco_Scanner * dev, SANE_Byte * buf, size_t * len)
2469 *buf = *src ^ 0xff;
2471 buf++;
2478 memcpy (buf, dev->image + dev->image_begin, size);
3278 sane_read (SANE_Handle handle, SANE_Byte * buf, SANE_Int max_len,
3284 int buf_offset; /* offset into buf */
3332 teco_copy_raw_to_frontend (dev, buf + buf_offset, &size);