Home
last modified time | relevance | path

Searched refs:word_size (Results 1 – 25 of 26) sorted by relevance

12

/Zephyr-Core-3.4.0/drivers/spi/
Dspi_mcux_flexcomm.c174 uint32_t word_size; in spi_mcux_configure() local
186 word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_mcux_configure()
187 if (word_size > SPI_MAX_DATA_WIDTH) { in spi_mcux_configure()
189 word_size, SPI_MAX_DATA_WIDTH); in spi_mcux_configure()
221 master_config.dataWidth = word_size - 1; in spi_mcux_configure()
281 slave_config.dataWidth = word_size - 1; in spi_mcux_configure()
334 uint32_t word_size; in spi_mcux_prepare_txlastword() local
336 word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_mcux_prepare_txlastword()
338 if (word_size > 8) { in spi_mcux_prepare_txlastword()
351 *txLastWord |= SPI_FIFOWR_LEN(word_size - 1); in spi_mcux_prepare_txlastword()
[all …]
Dspi_rv32m1_lpspi.c139 uint32_t word_size; in spi_mcux_configure() local
160 word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_mcux_configure()
161 if (word_size > MAX_DATA_WIDTH) { in spi_mcux_configure()
163 word_size, MAX_DATA_WIDTH); in spi_mcux_configure()
167 master_config.bitsPerFrame = word_size; in spi_mcux_configure()
Dspi_psoc6.c212 uint32_t word_size; in spi_psoc6_configure() local
224 word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_psoc6_configure()
225 if (word_size > SPI_MAX_DATA_WIDTH) { in spi_psoc6_configure()
227 word_size, SPI_MAX_DATA_WIDTH); in spi_psoc6_configure()
240 data->cfg.rxDataWidth = data->cfg.txDataWidth = word_size; in spi_psoc6_configure()
Dspi_xlnx_axi_quadspi.c142 uint32_t word_size; in xlnx_quadspi_configure() local
176 word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in xlnx_quadspi_configure()
177 if (word_size != (config->num_xfer_bytes * 8)) { in xlnx_quadspi_configure()
179 word_size, config->num_xfer_bytes); in xlnx_quadspi_configure()
Dspi_mcux_lpspi.c164 uint32_t word_size; in spi_mcux_configure() local
185 word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_mcux_configure()
186 if (word_size > MAX_DATA_WIDTH) { in spi_mcux_configure()
188 word_size, MAX_DATA_WIDTH); in spi_mcux_configure()
192 master_config.bitsPerFrame = word_size; in spi_mcux_configure()
Dspi_mcux_dspi.c572 uint32_t word_size; in spi_mcux_configure() local
606 word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_mcux_configure()
607 if (word_size > FSL_FEATURE_DSPI_MAX_DATA_WIDTH) { in spi_mcux_configure()
609 word_size, FSL_FEATURE_DSPI_MAX_DATA_WIDTH); in spi_mcux_configure()
613 ctar_config->bitsPerFrame = word_size; in spi_mcux_configure()
655 data->frame_size = word_size; in spi_mcux_configure()
/Zephyr-Core-3.4.0/drivers/i2s/
Di2s_litex.c369 (cfg->fifo_depth * (i2s_cfg->word_size / 8)) / channel_div; in i2s_litex_configure()
387 if (i2s_cfg->word_size != 8U && i2s_cfg->word_size != 16U && in i2s_litex_configure()
388 i2s_cfg->word_size != 24U && i2s_cfg->word_size != 32U && in i2s_litex_configure()
389 i2s_cfg->word_size != dev_sample_width) { in i2s_litex_configure()
415 if (i2s_cfg->word_size != 16) { in i2s_litex_configure()
554 stream->cfg.word_size, stream->cfg.channels); in i2s_litex_isr_rx()
588 stream->cfg.word_size, stream->cfg.channels); in i2s_litex_isr_tx()
Di2s_ll_stm32.c176 const uint32_t channel_length = i2s_cfg->word_size > 16U ? 32U : 16U; in i2s_stm32_configure()
254 if (i2s_cfg->word_size == 16U) { in i2s_stm32_configure()
256 } else if (i2s_cfg->word_size == 24U) { in i2s_stm32_configure()
258 } else if (i2s_cfg->word_size == 32U) { in i2s_stm32_configure()
Di2s_mcux_sai.c473 uint8_t word_size_bits = i2s_cfg->word_size; in i2s_mcux_config()
683 i2s_cfg->word_size / 8; in i2s_mcux_config()
685 i2s_cfg->word_size / 8; in i2s_mcux_config()
714 i2s_cfg->word_size / 8; in i2s_mcux_config()
716 i2s_cfg->word_size / 8; in i2s_mcux_config()
Di2s_nrfx.c86 uint32_t bits_per_frame = 2 * i2s_cfg->word_size; in find_suitable_clock()
434 switch (i2s_cfg->word_size) { in i2s_nrfx_configure()
450 LOG_ERR("Unsupported word size: %u", i2s_cfg->word_size); in i2s_nrfx_configure()
Di2s_mcux_flexcomm.c71 fsl_cfg->dataLength = i2s_cfg->word_size; in i2s_mcux_flexcomm_cfg_convert()
72 fsl_cfg->frameLength = i2s_cfg->channels * i2s_cfg->word_size; in i2s_mcux_flexcomm_cfg_convert()
217 if (i2s_cfg->word_size <= 8) { in i2s_mcux_configure()
Di2s_sam_ssc.c331 uint8_t word_size_bits = i2s_cfg->word_size; in set_rx_data_format()
422 uint8_t word_size_bits = i2s_cfg->word_size; in set_tx_data_format()
556 uint8_t word_size_bits = i2s_cfg->word_size; in i2s_sam_configure()
/Zephyr-Core-3.4.0/samples/boards/litex/i2s/src/
Dmain.c46 i2s_rx_cfg.word_size = AUDIO_SAMPLE_BIT_WIDTH; in init()
71 i2s_tx_cfg.word_size = AUDIO_SAMPLE_BIT_WIDTH; in init()
/Zephyr-Core-3.4.0/drivers/audio/
Dtlv320dac310x.c234 switch (cfg->i2s.word_size) { in codec_configure_dai()
249 cfg->i2s.word_size); in codec_configure_dai()
321 bclk_div = osr * mdac / (i2s->word_size * 2U); /* stereo */ in codec_configure_clocks()
322 if ((bclk_div * i2s->word_size * 2) != (osr * mdac)) { in codec_configure_clocks()
324 i2s->frame_clk_freq * i2s->word_size * 2U, in codec_configure_clocks()
Dmpxxdtyy-i2s.c127 i2s_cfg.word_size = chan_size; in mpxxdtyy_i2s_configure()
/Zephyr-Core-3.4.0/drivers/dai/intel/hda/
Dhda.c56 params->word_size = DAI_INTEL_HDA_DEFAULT_WORD_SIZE; in dai_hda_config_get()
/Zephyr-Core-3.4.0/include/zephyr/drivers/
Di2s.h302 uint8_t word_size; member
Ddai.h212 uint8_t word_size; member
/Zephyr-Core-3.4.0/tests/drivers/i2s/i2s_api/src/
Dcommon.c161 i2s_cfg.word_size = 16U; in configure_stream()
/Zephyr-Core-3.4.0/drivers/dai/intel/alh/
Dalh.c116 params->word_size = ALH_WORD_SIZE_DEFAULT; in dai_alh_config_get()
/Zephyr-Core-3.4.0/samples/drivers/i2s/echo/src/
Dmain.c275 config.word_size = SAMPLE_BIT_WIDTH; in main()
/Zephyr-Core-3.4.0/drivers/led_strip/
Dws2812_i2s.c185 config.word_size = 16; in ws2812_i2s_init()
/Zephyr-Core-3.4.0/drivers/dai/intel/dmic/
Ddmic_nhlt.c72 dmic->dai_config_params.word_size = 16; in dai_nhlt_dmic_dai_params_get()
76 dmic->dai_config_params.word_size = 32; in dai_nhlt_dmic_dai_params_get()
/Zephyr-Core-3.4.0/tests/boards/intel_adsp/ssp/src/
Dmain.c364 config.word_size = 0; in ZTEST()
/Zephyr-Core-3.4.0/tests/drivers/i2s/i2s_speed/src/
Dtest_i2s_speed.c135 i2s_cfg.word_size = 16U; in configure_stream()

12