Lines Matching refs:peripheral_id

33 	uint8_t peripheral_id;  member
58 if (config->peripheral_id == PSPI_MODULE) { in spi_b91_hw_cs_disable()
104 if (b91_config->peripheral_id == PSPI_MODULE) { in spi_b91_config_cs()
113 if (b91_config->peripheral_id == PSPI_MODULE) { in spi_b91_config_cs()
152 static void spi_b91_tx(uint8_t peripheral_id, struct spi_context *ctx, uint8_t len) in spi_b91_tx() argument
163 while (reg_spi_fifo_state(peripheral_id) & FLD_SPI_TXF_FULL) { in spi_b91_tx()
165 reg_spi_wr_rd_data(peripheral_id, i % 4) = tx; in spi_b91_tx()
171 static void spi_b91_rx(uint8_t peripheral_id, struct spi_context *ctx, uint8_t len) in spi_b91_rx() argument
176 while (reg_spi_fifo_state(peripheral_id) & FLD_SPI_RXF_EMPTY) { in spi_b91_rx()
178 rx = reg_spi_wr_rd_data(peripheral_id, i % 4); in spi_b91_rx()
196 spi_set_transmode(cfg->peripheral_id, SPI_MODE_WRITE_AND_READ); in spi_b91_txrx()
197 spi_set_cmd(cfg->peripheral_id, 0); in spi_b91_txrx()
198 spi_tx_cnt(cfg->peripheral_id, len); in spi_b91_txrx()
199 spi_rx_cnt(cfg->peripheral_id, len); in spi_b91_txrx()
209 spi_b91_tx(cfg->peripheral_id, ctx, chunk_size); in spi_b91_txrx()
214 spi_b91_rx(cfg->peripheral_id, ctx, chunk_size); in spi_b91_txrx()
217 spi_b91_rx(cfg->peripheral_id, ctx, chunk_size - 1); in spi_b91_txrx()
220 spi_b91_rx(cfg->peripheral_id, ctx, chunk_size); in spi_b91_txrx()
223 spi_b91_rx(cfg->peripheral_id, ctx, chunk_size + 1); in spi_b91_txrx()
227 BM_SET(reg_spi_fifo_state(cfg->peripheral_id), FLD_SPI_TXF_CLR); in spi_b91_txrx()
228 BM_SET(reg_spi_fifo_state(cfg->peripheral_id), FLD_SPI_RXF_CLR); in spi_b91_txrx()
232 while (spi_is_busy(cfg->peripheral_id)) { in spi_b91_txrx()
279 (b91_config->peripheral_id == PSPI_MODULE)) { in spi_b91_is_config_supported()
302 uint8_t clk_src = b91_config->peripheral_id == PSPI_MODULE ? sys_clk.pclk : sys_clk.hclk; in spi_b91_config()
330 spi_master_init(b91_config->peripheral_id, in spi_b91_config()
332 spi_master_config(b91_config->peripheral_id, SPI_NOMAL); in spi_b91_config()
339 spi_set_io_mode(b91_config->peripheral_id, in spi_b91_config()
342 spi_set_io_mode(b91_config->peripheral_id, in spi_b91_config()
345 spi_set_io_mode(b91_config->peripheral_id, in spi_b91_config()
475 .peripheral_id = DT_INST_ENUM_IDX(inst, peripheral_id), \