Lines Matching refs:bitlen
218 int spi_xchg_single(struct mxc_spi_slave *mxcs, unsigned int bitlen, in spi_xchg_single() argument
221 int nbytes = DIV_ROUND_UP(bitlen, 8); in spi_xchg_single()
228 __func__, bitlen, (u32)dout, (u32)din); in spi_xchg_single()
232 MXC_CSPICTRL_BITCOUNT(bitlen - 1); in spi_xchg_single()
247 if (bitlen % 32) { in spi_xchg_single()
249 cnt = (bitlen % 32) / 8; in spi_xchg_single()
300 nbytes = DIV_ROUND_UP(bitlen, 8); in spi_xchg_single()
304 if (bitlen % 32) { in spi_xchg_single()
306 cnt = (bitlen % 32) / 8; in spi_xchg_single()
334 unsigned int bitlen, const void *dout, in mxc_spi_xfer_internal() argument
337 int n_bytes = DIV_ROUND_UP(bitlen, 8); in mxc_spi_xfer_internal()
395 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, in spi_xfer() argument
400 return mxc_spi_xfer_internal(mxcs, bitlen, dout, din, flags); in spi_xfer()
523 static int mxc_spi_xfer(struct udevice *dev, unsigned int bitlen, in mxc_spi_xfer() argument
529 return mxc_spi_xfer_internal(mxcs, bitlen, dout, din, flags); in mxc_spi_xfer()