Lines Matching refs:buf
19 unsigned char buf[32], *bp; in do_read() local
25 else if (len > sizeof(buf)) in do_read()
26 len = sizeof(buf); in do_read()
27 memset(buf, 0, sizeof buf); in do_read()
29 status = read(fd, buf, len); in do_read()
40 buf[0], buf[1]); in do_read()
42 bp = buf + 2; in do_read()
51 unsigned char buf[32], *bp; in do_msg() local
55 memset(buf, 0, sizeof buf); in do_msg()
57 if (len > sizeof buf) in do_msg()
58 len = sizeof buf; in do_msg()
60 buf[0] = 0xaa; in do_msg()
61 xfer[0].tx_buf = (unsigned long)buf; in do_msg()
64 xfer[1].rx_buf = (unsigned long) buf; in do_msg()
74 for (bp = buf; len; len--) in do_msg()