Lines Matching refs:spi
26 SPI_T *spi; member
77 SPI_ClearRxFIFO(dev_cfg->spi); in spi_numaker_configure()
78 SPI_ClearTxFIFO(dev_cfg->spi); in spi_numaker_configure()
88 QSPI_Open((QSPI_T *)dev_cfg->spi, in spi_numaker_configure()
94 SPI_Open(dev_cfg->spi, in spi_numaker_configure()
103 SPI_SET_LSB_FIRST(dev_cfg->spi); in spi_numaker_configure()
105 SPI_SET_MSB_FIRST(dev_cfg->spi); in spi_numaker_configure()
111 SPI_ENABLE_3WIRE_MODE(dev_cfg->spi); in spi_numaker_configure()
114 SPI_DISABLE_3WIRE_MODE(dev_cfg->spi); in spi_numaker_configure()
119 SPI_SET_SS_HIGH(dev_cfg->spi); in spi_numaker_configure()
121 SPI_SET_SS_LOW(dev_cfg->spi); in spi_numaker_configure()
128 SPI_EnableAutoSS(dev_cfg->spi, SPI_SS, SPI_SS_ACTIVE_LOW); in spi_numaker_configure()
130 SPI_DisableAutoSS(dev_cfg->spi); in spi_numaker_configure()
177 SPI_WRITE_TX(dev_cfg->spi, tx_frame); in spi_numaker_txrx()
182 while (SPI_IS_BUSY(dev_cfg->spi)) { in spi_numaker_txrx()
192 SPI_WRITE_TX(dev_cfg->spi, 0x00U); in spi_numaker_txrx()
194 while (SPI_IS_BUSY(dev_cfg->spi)) { in spi_numaker_txrx()
204 if (SPI_GET_RX_FIFO_COUNT(dev_cfg->spi) > 0) { in spi_numaker_txrx()
205 rx_frame = SPI_READ_RX(dev_cfg->spi); in spi_numaker_txrx()
242 SPI_ENABLE(dev_cfg->spi); in spi_numaker_transceive()
263 SPI_DISABLE(dev_cfg->spi); in spi_numaker_transceive()
284 static DEVICE_API(spi, spi_numaker_driver_api) = {
354 .spi = (SPI_T *)DT_INST_REG_ADDR(inst), \