Lines Matching +full:spi +full:- +full:lsb +full:- +full:first
1 // SPDX-License-Identifier: GPL-2.0
13 #include <linux/spi/spidev.h>
42 status -= 2; in do_read()
44 while (status-- > 0) in do_read()
75 for (bp = buf; len; len--) in do_msg()
82 __u8 lsb, bits; in dumpstat() local
86 perror("SPI rd_mode"); in dumpstat()
89 if (ioctl(fd, SPI_IOC_RD_LSB_FIRST, &lsb) < 0) { in dumpstat()
90 perror("SPI rd_lsb_fist"); in dumpstat()
94 perror("SPI bits_per_word"); in dumpstat()
98 perror("SPI max_speed_hz"); in dumpstat()
102 printf("%s: spi mode 0x%x, %d bits %sper word, %u Hz max\n", in dumpstat()
103 name, mode, bits, lsb ? "(lsb first) " : "", speed); in dumpstat()
133 "usage: %s [-h] [-m N] [-r N] /dev/spidevB.D\n", in main()