Lines Matching full:lsb
63 int lsb; /* non-zero for LSB order (default order is member
73 static int _read_write(int hdev, void *bufw, void *bufr, int cbrw, int lsb);
82 static void verbose_dump_buffer(void *pbuf, int icount, int lsb);
85 * LSB array - reversebits[n] is the LSB value of n as an MSB. Use this array
87 * be sent/received in an LSB order vs the default MSB
144 " -L specifies 'LSB' order on the SPI bus (default is MSB)\n" in usage()
178 opt.lsb = 0; in main()
267 opt.lsb = 1; in main()
439 if (popt->lsb) in interpret_command_bytes()
524 int ch, ch2, ch3, ncmd, lsb, err; in prep_write_buffer() local
542 lsb = popt->lsb; /* non-zero if LSB order; else MSB */ in prep_write_buffer()
603 /* for LSB, flip the bits - otherwise, just copy the value */ in prep_write_buffer()
604 if (lsb) in prep_write_buffer()
667 verbose_dump_buffer(pdata, popt->count + popt->ncmd, lsb); in prep_write_buffer()
674 _read_write(int hdev, void *bufw, void *bufr, int cbrw, int lsb) in _read_write() argument
704 if (!err && lsb) { in _read_write()
705 /* flip the bits for 'lsb' mode */ in _read_write()
784 verbose_dump_buffer(pr, icount + popt->ncmd, popt->lsb); in _do_data_output()
822 err = _read_write(hdev, pw, pr, icount, popt->lsb); in perform_read()
850 err = _read_write(hdev, pw, NULL, popt->count + popt->ncmd, popt->lsb); in perform_write()
884 err = _read_write(hdev, pw, pr, icount, popt->lsb); in perform_readwrite()
899 verbose_dump_buffer(void *pbuf, int icount, int lsb) in verbose_dump_buffer() argument
916 if (lsb) in verbose_dump_buffer()
934 if (lsb) in verbose_dump_buffer()