Lines Matching defs:buf
261 int buf;
264 buf = atoi (lp);
266 if (buf < 4096) {
268 (%d) is < 4096, ignoring!\n", buf);
272 if (buf > DEFAULT_BUFFER_SIZE) {
274 (%d) is > %d, warning!\n", buf, DEFAULT_BUFFER_SIZE);
278 buf);
279 global_buffer_size = buf;
2216 * represented by handle h. Argument buf is a pointer to a memory
2226 sane_read (SANE_Handle handle, SANE_Byte * buf, SANE_Int max_len, SANE_Int * len)
2256 ret = read_from_buffer(s,buf,max_len,len);
2269 unsigned char * buf;
2294 buf = malloc(bytes);
2295 if(!buf){
2307 buf, &inLen
2327 copy_buffer (s, buf, inLen);
2330 free(buf);
2344 copy_buffer(struct scanner *s, unsigned char * buf, int len)
2350 memcpy(s->buffer+s->bytes_rx,buf,len);
2359 read_from_buffer(struct scanner *s, SANE_Byte * buf,
2384 memcpy(buf,s->buffer+s->bytes_tx,bytes);