Lines Matching refs:peripheral_id

34 	uint8_t peripheral_id;  member
59 if (config->peripheral_id == PSPI_MODULE) { in spi_b91_hw_cs_disable()
105 if (b91_config->peripheral_id == PSPI_MODULE) { in spi_b91_config_cs()
114 if (b91_config->peripheral_id == PSPI_MODULE) { in spi_b91_config_cs()
153 static void spi_b91_tx(uint8_t peripheral_id, struct spi_context *ctx, uint8_t len) in spi_b91_tx() argument
164 while (reg_spi_fifo_state(peripheral_id) & FLD_SPI_TXF_FULL) { in spi_b91_tx()
166 reg_spi_wr_rd_data(peripheral_id, i % 4) = tx; in spi_b91_tx()
172 static void spi_b91_rx(uint8_t peripheral_id, struct spi_context *ctx, uint8_t len) in spi_b91_rx() argument
177 while (reg_spi_fifo_state(peripheral_id) & FLD_SPI_RXF_EMPTY) { in spi_b91_rx()
179 rx = reg_spi_wr_rd_data(peripheral_id, i % 4); in spi_b91_rx()
197 spi_set_transmode(cfg->peripheral_id, SPI_MODE_WRITE_AND_READ); in spi_b91_txrx()
198 spi_set_cmd(cfg->peripheral_id, 0); in spi_b91_txrx()
199 spi_tx_cnt(cfg->peripheral_id, len); in spi_b91_txrx()
200 spi_rx_cnt(cfg->peripheral_id, len); in spi_b91_txrx()
210 spi_b91_tx(cfg->peripheral_id, ctx, chunk_size); in spi_b91_txrx()
215 spi_b91_rx(cfg->peripheral_id, ctx, chunk_size); in spi_b91_txrx()
218 spi_b91_rx(cfg->peripheral_id, ctx, chunk_size - 1); in spi_b91_txrx()
221 spi_b91_rx(cfg->peripheral_id, ctx, chunk_size); in spi_b91_txrx()
224 spi_b91_rx(cfg->peripheral_id, ctx, chunk_size + 1); in spi_b91_txrx()
228 BM_SET(reg_spi_fifo_state(cfg->peripheral_id), FLD_SPI_TXF_CLR); in spi_b91_txrx()
229 BM_SET(reg_spi_fifo_state(cfg->peripheral_id), FLD_SPI_RXF_CLR); in spi_b91_txrx()
233 while (spi_is_busy(cfg->peripheral_id)) { in spi_b91_txrx()
280 (b91_config->peripheral_id == PSPI_MODULE)) { in spi_b91_is_config_supported()
303 uint8_t clk_src = b91_config->peripheral_id == PSPI_MODULE ? sys_clk.pclk : sys_clk.hclk; in spi_b91_config()
331 spi_master_init(b91_config->peripheral_id, in spi_b91_config()
333 spi_master_config(b91_config->peripheral_id, SPI_NOMAL); in spi_b91_config()
340 spi_set_io_mode(b91_config->peripheral_id, in spi_b91_config()
343 spi_set_io_mode(b91_config->peripheral_id, in spi_b91_config()
346 spi_set_io_mode(b91_config->peripheral_id, in spi_b91_config()
479 .peripheral_id = DT_INST_ENUM_IDX(inst, peripheral_id), \