Home
last modified time | relevance | path

Searched refs:SPI_WORD_SIZE_GET (Results 1 – 25 of 51) sorted by relevance

123

/Zephyr-latest/drivers/spi/
Dspi_ifx_cat1.c61 switch (SPI_WORD_SIZE_GET(ctx->config->operation)) { in get_dfs_value()
142 if (SPI_WORD_SIZE_GET(spi_cfg->operation) > IFX_CAT1_SPI_MAX_DATA_WIDTH) { in spi_config()
143 LOG_ERR("Word size %d is greater than %d", SPI_WORD_SIZE_GET(spi_cfg->operation), in spi_config()
148 if (SPI_WORD_SIZE_GET(spi_cfg->operation) < IFX_CAT1_SPI_MIN_DATA_WIDTH) { in spi_config()
149 LOG_ERR("Word size %d is less than %d", SPI_WORD_SIZE_GET(spi_cfg->operation), in spi_config()
170 if (SPI_WORD_SIZE_GET(spi_cfg->operation)) { in spi_config()
171 scb_spi_config.txDataWidth = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_config()
172 scb_spi_config.rxDataWidth = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_config()
Dspi_litex_common.h18 switch (SPI_WORD_SIZE_GET(config->operation)) { in get_dfs_value()
Dspi_dw.c222 if (info->max_xfer_size < SPI_WORD_SIZE_GET(config->operation)) { in spi_dw_configure()
224 info->max_xfer_size, SPI_WORD_SIZE_GET(config->operation)); in spi_dw_configure()
230 ctrlr0 |= DW_SPI_CTRLR0_DFS_32(SPI_WORD_SIZE_GET(config->operation)); in spi_dw_configure()
232 ctrlr0 |= DW_SPI_CTRLR0_DFS_16(SPI_WORD_SIZE_GET(config->operation)); in spi_dw_configure()
236 spi->dfs = SPI_WS_TO_DFS(SPI_WORD_SIZE_GET(config->operation)); in spi_dw_configure()
267 SPI_WORD_SIZE_GET(config->operation), spi->dfs, in spi_dw_configure()
280 SPI_WORD_SIZE_GET(config->operation), spi->dfs, in spi_dw_configure()
Dspi_ll_stm32.c304 const uint8_t frame_size = SPI_WORD_SIZE_GET(data->ctx.config->operation); in spi_stm32_send_next_frame()
325 const uint8_t frame_size = SPI_WORD_SIZE_GET(data->ctx.config->operation); in spi_stm32_read_next_frame()
405 if (SPI_WORD_SIZE_GET(data->ctx.config->operation) == 8) { in spi_stm32_shift_s()
422 if (SPI_WORD_SIZE_GET(data->ctx.config->operation) == 8) { in spi_stm32_shift_s()
590 if ((SPI_WORD_SIZE_GET(config->operation) != 8) in spi_stm32_configure()
591 && (SPI_WORD_SIZE_GET(config->operation) != 16)) { in spi_stm32_configure()
687 if (SPI_WORD_SIZE_GET(config->operation) == 8) { in spi_stm32_configure()
742 uint8_t bytes_per_frame = SPI_WORD_SIZE_GET(config->operation) / 8; in spi_stm32_count_bufset_frames()
807 if (SPI_WORD_SIZE_GET(config->operation) == 8) { in transceive()
1008 if (SPI_WORD_SIZE_GET(config->operation) == 8) { in transceive_dma()
[all …]
Dspi_numaker.c92 SPI_WORD_SIZE_GET(config->operation), config->frequency); in spi_numaker_configure()
98 SPI_WORD_SIZE_GET(config->operation), config->frequency); in spi_numaker_configure()
150 word_size = SPI_WORD_SIZE_GET(ctx->config->operation); in spi_numaker_txrx()
Dspi_litex.c67 if (SPI_WORD_SIZE_GET(config->operation) > dev_config->data_width) { in spi_config()
109 *control = (uint16_t) (SPI_WORD_SIZE_GET(config->operation) in spi_config()
Dspi_litex_litespi.c75 if (SPI_WORD_SIZE_GET(config->operation) > SPI_MAX_WORD_SIZE) { in spi_config()
77 SPI_WORD_SIZE_GET(config->operation)); in spi_config()
Dspi_gd32.c143 if (SPI_WORD_SIZE_GET(config->operation) == 8) { in spi_gd32_configure()
205 if (SPI_WORD_SIZE_GET(ctx->config->operation) == 8) { in spi_gd32_frame_exchange()
226 if (SPI_WORD_SIZE_GET(data->ctx.config->operation) == 8) { in spi_gd32_frame_exchange()
274 if (SPI_WORD_SIZE_GET(data->ctx.config->operation) == 8) { in spi_gd32_dma_setup()
534 if (SPI_WORD_SIZE_GET(data->ctx.config->operation) == 8) { in spi_gd32_dma_callback()
Dspi_pw.c132 uint8_t dfs = SPI_WORD_SIZE_GET(config->operation); in spi_pw_get_frame_size()
234 if (SPI_WORD_SIZE_GET(config->operation) == 4) { in spi_pw_set_data_size()
236 } else if (SPI_WORD_SIZE_GET(config->operation) == 8) { in spi_pw_set_data_size()
238 } else if (SPI_WORD_SIZE_GET(config->operation) == 16) { in spi_pw_set_data_size()
240 } else if (SPI_WORD_SIZE_GET(config->operation) == 32) { in spi_pw_set_data_size()
Dspi_mcux_flexcomm.c190 word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_mcux_configure()
340 word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_mcux_prepare_txlastword()
368 word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_mcux_prepare_txdummy()
395 word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_mcux_dma_tx_load()
620 word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in transceive_dma()
Dspi_renesas_ra.c184 (spi_bit_width_t)(SPI_WORD_SIZE_GET(data->ctx.config->operation) - 1); in ra_spi_transceive_slave()
244 (spi_bit_width_t)(SPI_WORD_SIZE_GET(data->ctx.config->operation) - 1); in ra_spi_transceive_master()
342 data->dfs = ((SPI_WORD_SIZE_GET(config->operation) - 1) / 8) + 1; in transceive()
345 (spi_bit_width_t)(SPI_WORD_SIZE_GET(data->ctx.config->operation) - 1); in transceive()
496 (spi_bit_width_t)(SPI_WORD_SIZE_GET(data->ctx.config->operation) - 1); in ra_spi_retransmit()
Dspi_b_renesas_ra8.c303 data->dfs = ((SPI_WORD_SIZE_GET(config->operation) - 1) / 8) + 1; in transceive()
312 (spi_bit_width_t)(SPI_WORD_SIZE_GET(data->ctx.config->operation) - 1); in transceive()
353 p_spi_reg->SPCMD0 |= (uint32_t)(SPI_WORD_SIZE_GET(data->ctx.config->operation) - 1) in transceive()
454 (spi_bit_width_t)(SPI_WORD_SIZE_GET(data->ctx.config->operation) - 1); in ra_spi_retransmit()
Dspi_andes_atcspi200.c76 data_len = SPI_WORD_SIZE_GET(config->operation) - 1; in spi_config()
334 dfs = SPI_WORD_SIZE_GET(ctx->config->operation) >> 3; in spi_dma_tx_load()
451 dfs = SPI_WORD_SIZE_GET(ctx->config->operation) >> 3; in spi_dma_rx_load()
618 dfs = SPI_WORD_SIZE_GET(ctx->config->operation) >> 3; in transceive()
765 dfs = SPI_WORD_SIZE_GET(ctx->config->operation) >> 3; in spi_atcspi200_irq_handler()
Dspi_ambiq_bleif.c60 if (SPI_WORD_SIZE_GET(config->operation) != SPI_WORD_SIZE) { in spi_config()
Dspi_grlib_spimctrl.c53 if (SPI_WORD_SIZE_GET(config->operation) != 8) { in spi_config()
Dspi_pl022.c389 if (SPI_WORD_SIZE_GET(op) != 8) { in spi_pl022_configure()
401 cr0 |= (SPI_WORD_SIZE_GET(op) - 1); in spi_pl022_configure()
461 if (SPI_WORD_SIZE_GET(data->ctx.config->operation) == 8) { in spi_pl022_dma_setup()
597 if (SPI_WORD_SIZE_GET(data->ctx.config->operation) == 8) { in spi_pl022_dma_callback()
Dspi_cc13xx_cc26xx.c63 if (SPI_WORD_SIZE_GET(config->operation) != 8) { in spi_cc13xx_cc26xx_configure()
Dspi_sifive.c75 fmt_len = SPI_WORD_SIZE_GET(operation); in spi_config()
Dspi_opentitan.c94 if (SPI_WORD_SIZE_GET(operation) != 8) { in spi_config()
Dspi_bitbang.c45 const int bits = SPI_WORD_SIZE_GET(config->operation); in spi_bitbang_configure()
Dspi_gecko_eusart.c74 if (SPI_WORD_SIZE_GET(config->operation) != SPI_WORD_SIZE) { in spi_eusart_config()
Dspi_mcux_ecspi.c176 word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_mcux_configure()
Dspi_rv32m1_lpspi.c163 word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_mcux_configure()
Dspi_ambiq_spid.c111 if (SPI_WORD_SIZE_GET(config->operation) != AMBIQ_SPID_WORD_SIZE) { in spi_config()
Dspi_b91.c262 if (SPI_WORD_SIZE_GET(config->operation) != SPI_WORD_SIZE) { in spi_b91_is_config_supported()

123