Lines Matching defs:buf
476 unsigned char *buf;
499 DBG( _DBG_PROC, "buf = 0x%08lx\n", (unsigned long)scanner->buf );
501 if( NULL == scanner->buf ) {
507 buf = scanner->buf;
508 status = usbDev_Prepare( scanner->hw, buf );
535 write( scanner->w_pipe, buf, scanner->params.bytes_per_line );
536 buf += scanner->params.bytes_per_line;
1086 char buf [128];
1088 snprintf (buf, sizeof(buf), "button %d", i - OPT_BUTTON_0);
1089 s->opt[i].name = strdup(buf);
1091 snprintf (buf, sizeof(buf), "Scanner button %d", i - OPT_BUTTON_0);
1092 s->opt[i].title = strdup(buf);
1749 if( NULL != s->buf )
1750 free(s->buf);
1814 rc = usbDev_Prepare( dev, s->buf );
2544 if (s->buf)
2545 free(s->buf);
2546 s->buf = NULL;
2556 s->buf = realloc( s->buf, (s->params.lines) * s->params.bytes_per_line );
2557 if( NULL == s->buf ) {
2659 unsigned char *buf;
2669 buf = (unsigned char*)&ipc;
2671 nread = read( s->r_pipe, buf, sizeof(ipc));
2681 buf += nread;