Lines Matching refs:rx_len
318 int rx_len; member
568 if ((spi->rx_len > 0) && (readl_relaxed(spi->base + STM32F4_SPI_SR) & in stm32f4_spi_read_rx()
570 u32 offs = spi->cur_xferlen - spi->rx_len; in stm32f4_spi_read_rx()
576 spi->rx_len -= sizeof(u16); in stm32f4_spi_read_rx()
581 spi->rx_len -= sizeof(u8); in stm32f4_spi_read_rx()
585 dev_dbg(spi->dev, "%s: %d bytes left\n", __func__, spi->rx_len); in stm32f4_spi_read_rx()
600 while ((spi->rx_len > 0) && in stm32h7_spi_read_rxfifo()
604 u32 offs = spi->cur_xferlen - spi->rx_len; in stm32h7_spi_read_rxfifo()
606 if ((spi->rx_len >= sizeof(u32)) || in stm32h7_spi_read_rxfifo()
611 spi->rx_len -= sizeof(u32); in stm32h7_spi_read_rxfifo()
612 } else if ((spi->rx_len >= sizeof(u16)) || in stm32h7_spi_read_rxfifo()
618 spi->rx_len -= sizeof(u16); in stm32h7_spi_read_rxfifo()
623 spi->rx_len -= sizeof(u8); in stm32h7_spi_read_rxfifo()
631 __func__, spi->rx_len, sr); in stm32h7_spi_read_rxfifo()
831 if (spi->rx_len == 0) in stm32f4_spi_irq_event()
914 if (!spi->cur_usedma && (spi->rx_buf && (spi->rx_len > 0))) in stm32h7_spi_irq_thread()
935 if (!spi->cur_usedma && (spi->rx_buf && (spi->rx_len > 0))) in stm32h7_spi_irq_thread()
947 if (!spi->cur_usedma && (spi->rx_buf && (spi->rx_len > 0))) in stm32h7_spi_irq_thread()
1641 spi->rx_len = spi->rx_buf ? transfer->len : 0; in stm32_spi_transfer_one()