Lines Matching refs:wordlen
118 unsigned int wordlen; member
148 chconf |= (priv->wordlen - 1) << 7; in omap3_spi_write()
166 if (priv->wordlen > 16) in omap3_spi_write()
168 else if (priv->wordlen > 8) in omap3_spi_write()
203 chconf |= (priv->wordlen - 1) << 7; in omap3_spi_read()
228 if (priv->wordlen > 16) in omap3_spi_read()
230 else if (priv->wordlen > 8) in omap3_spi_read()
258 chconf |= (priv->wordlen - 1) << 7; in omap3_spi_txrx()
276 if (priv->wordlen > 16) in omap3_spi_txrx()
278 else if (priv->wordlen > 8) in omap3_spi_txrx()
295 if (priv->wordlen > 16) in omap3_spi_txrx()
297 else if (priv->wordlen > 8) in omap3_spi_txrx()
320 if (priv->wordlen < 4 || priv->wordlen > 32) { in _spi_xfer()
321 printf("omap3_spi: invalid wordlen %d\n", priv->wordlen); in _spi_xfer()
325 if (bitlen % priv->wordlen) in _spi_xfer()
328 len = bitlen / priv->wordlen; in _spi_xfer()
418 confr = readl(&priv->regs->channel[priv->wordlen].chconf); in _omap3_spi_set_wordlen()
422 confr |= (priv->wordlen - 1) << 7; in _omap3_spi_set_wordlen()
565 priv->wordlen = priv->slave.wordlen; in spi_setup_slave()
608 static int omap3_spi_set_wordlen(struct udevice *dev, unsigned int wordlen) in omap3_spi_set_wordlen() argument
615 priv->wordlen = wordlen; in omap3_spi_set_wordlen()
635 priv->wordlen = SPI_DEFAULT_WORDLEN; in omap3_spi_probe()