Lines Matching refs:status
21 int status; in do_read() local
30 status = read(fd, buf, len); in do_read()
31 if (status < 0) { in do_read()
35 if (status != len) { in do_read()
40 printf("read(%2d, %2d): %02x %02x,", len, status, in do_read()
42 status -= 2; in do_read()
44 while (status-- > 0) in do_read()
53 int status; in do_msg() local
68 status = ioctl(fd, SPI_IOC_MESSAGE(2), xfer); in do_msg()
69 if (status < 0) { in do_msg()
74 printf("response(%2d, %2d): ", len, status); in do_msg()