Lines Matching +full:zephyr +full:- +full:base
4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/logging/log.h>
11 #include <zephyr/device.h>
12 #include <zephyr/drivers/spi.h>
13 #include <zephyr/drivers/spi/rtio.h>
16 #include <zephyr/drivers/dma.h>
30 #define SPI_TFMAT(base) (base + REG_TFMAT) argument
31 #define SPI_TCTRL(base) (base + REG_TCTRL) argument
32 #define SPI_CMD(base) (base + REG_CMD) argument
33 #define SPI_DATA(base) (base + REG_DATA) argument
34 #define SPI_CTRL(base) (base + REG_CTRL) argument
35 #define SPI_STAT(base) (base + REG_STAT) argument
36 #define SPI_INTEN(base) (base + REG_INTEN) argument
37 #define SPI_INTST(base) (base + REG_INTST) argument
38 #define SPI_TIMIN(base) (base + REG_TIMIN) argument
39 #define SPI_CONFIG(base) (base + REG_CONFIG) argument
104 #define TX_FIFO_SIZE_SETTING(base) \ argument
105 (sys_read32(SPI_CONFIG(base)) & CFG_TX_FIFO_SIZE_MSK)
106 #define TX_FIFO_SIZE(base) \ argument
107 (2 << (TX_FIFO_SIZE_SETTING(base) >> 4))
109 #define RX_FIFO_SIZE_SETTING(base) \ argument
110 (sys_read32(SPI_CONFIG(base)) & CFG_RX_FIFO_SIZE_MSK)
111 #define RX_FIFO_SIZE(base) \ argument
112 (2 << (RX_FIFO_SIZE_SETTING(base) >> 0))
114 #define TX_NUM_STAT(base) (sys_read32(SPI_STAT(base)) & STAT_TX_NUM_MSK) argument
115 #define RX_NUM_STAT(base) (sys_read32(SPI_STAT(base)) & STAT_RX_NUM_MSK) argument
116 #define GET_TX_NUM(base) (TX_NUM_STAT(base) >> 16) argument
117 #define GET_RX_NUM(base) (RX_NUM_STAT(base) >> 8) argument