Home
last modified time | relevance | path

Searched refs:bits_per_word (Results 1 – 4 of 4) sorted by relevance

/rk3399_rockchip-uboot/drivers/spi/
H A Ddesignware_spi.c104 int bits_per_word; member
249 priv->bits_per_word = 8; in dw_spi_probe()
264 tx_left = (priv->tx_end - priv->tx) / (priv->bits_per_word >> 3); in tx_max()
276 (priv->bits_per_word >> 3); in tx_max()
284 u32 rx_left = (priv->rx_end - priv->rx) / (priv->bits_per_word >> 3); in rx_max()
297 if (priv->bits_per_word == 8) in dw_writer()
304 priv->tx += priv->bits_per_word >> 3; in dw_writer()
319 if (priv->bits_per_word == 8) in dw_reader()
324 priv->rx += priv->bits_per_word >> 3; in dw_reader()
372 cr0 = (priv->bits_per_word - 1) | (priv->type << SPI_FRF_OFFSET) | in dw_spi_xfer()
H A Dpic32_spi.c162 u32 bits_per_word; in pic32_spi_set_word_size() local
169 bits_per_word = PIC32_SPI_CTRL_BPW_8; in pic32_spi_set_word_size()
174 bits_per_word = PIC32_SPI_CTRL_BPW_16; in pic32_spi_set_word_size()
179 bits_per_word = PIC32_SPI_CTRL_BPW_32; in pic32_spi_set_word_size()
189 val |= bits_per_word << PIC32_SPI_CTRL_BPW_SHIFT; in pic32_spi_set_word_size()
H A Drk_spi.c50 u8 bits_per_word; /* max 16 bits per word */ member
303 priv->bits_per_word = 8; in rockchip_spi_probe()
322 switch (priv->bits_per_word) { in rockchip_spi_claim_bus()
335 priv->bits_per_word); in rockchip_spi_claim_bus()
/rk3399_rockchip-uboot/examples/standalone/
H A Drkspi.c18 u8 bits_per_word; /* max 16 bits per word */ member
130 priv->bits_per_word = 8; in rockchip_spi_probe()
145 switch (priv->bits_per_word) { in rockchip_spi_claim_bus()
158 priv->bits_per_word); in rockchip_spi_claim_bus()