/Zephyr-latest/drivers/spi/ |
D | spi_context.h | 274 uint8_t dfs) in spi_context_get_next_buf() argument 278 if (((*current)->len / dfs) != 0) { in spi_context_get_next_buf() 279 *buf_len = (*current)->len / dfs; in spi_context_get_next_buf() 294 uint8_t dfs) in spi_context_buffers_setup() argument 296 LOG_DBG("tx_bufs %p - rx_bufs %p - %u", tx_bufs, rx_bufs, dfs); in spi_context_buffers_setup() 302 &ctx->tx_len, dfs); in spi_context_buffers_setup() 308 &ctx->rx_len, dfs); in spi_context_buffers_setup() 329 void spi_context_update_tx(struct spi_context *ctx, uint8_t dfs, uint32_t len) in spi_context_update_tx() argument 348 &ctx->tx_len, dfs); in spi_context_update_tx() 350 ctx->tx_buf += dfs * len; in spi_context_update_tx() [all …]
|
D | spi_litex_litespi.c | 38 uint8_t dfs; /* dfs in bytes: 1,2 or 4 */ member 117 dev_data->dfs = get_dfs_value(config); in spi_config() 145 uint8_t len = data->dfs; /* SPI Xfer length*/ in spi_litex_xfer() 183 spi_context_update_tx(ctx, data->dfs, len / data->dfs); in spi_litex_xfer() 197 spi_context_update_rx(ctx, data->dfs, len / data->dfs); in spi_litex_xfer() 224 spi_context_buffers_setup(&data->ctx, tx_bufs, rx_bufs, data->dfs); in spi_litex_transceive()
|
D | spi_litex.c | 20 uint8_t dfs; /* dfs in bytes: 1,2,3 or 4 */ member 112 dev_data->dfs = get_dfs_value(config); in spi_config() 159 litex_spi_tx_put(dev_data->dfs, &txd, ctx->tx_buf); in spi_litex_xfer() 167 spi_context_update_tx(ctx, dev_data->dfs, 1); in spi_litex_xfer() 173 litex_spi_rx_put(dev_data->dfs, &rxd, ctx->rx_buf); in spi_litex_xfer() 176 spi_context_update_rx(ctx, dev_data->dfs, 1); in spi_litex_xfer() 200 spi_context_buffers_setup(&dev_data->ctx, tx_bufs, rx_bufs, dev_data->dfs); in spi_litex_transceive()
|
D | spi_esp32_spim.c | 74 size_t chunk_len_bytes = spi_context_max_continuous_chunk(&data->ctx) * data->dfs; in spi_esp32_transfer() 78 size_t transfer_len_frames = transfer_len_bytes / data->dfs; in spi_esp32_transfer() 82 uint8_t dma_len_tx = MIN(ctx->tx_len * data->dfs, SPI_DMA_MAX_BUFFER_SIZE); in spi_esp32_transfer() 83 uint8_t dma_len_rx = MIN(ctx->rx_len * data->dfs, SPI_DMA_MAX_BUFFER_SIZE); in spi_esp32_transfer() 132 spi_context_update_tx(&data->ctx, data->dfs, transfer_len_frames); in spi_esp32_transfer() 145 spi_context_update_rx(&data->ctx, data->dfs, transfer_len_frames); in spi_esp32_transfer() 410 uint8_t dfs = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_esp32_get_frame_size() local 412 dfs /= 8; in spi_esp32_get_frame_size() 413 if ((dfs == 0) || (dfs > 4)) { in spi_esp32_get_frame_size() 415 dfs = 1; in spi_esp32_get_frame_size() [all …]
|
D | spi_bitbang.c | 22 int dfs; member 53 data->dfs = ((data->bits - 1) / 8) + 1; in spi_bitbang_configure() 122 spi_context_buffers_setup(ctx, tx_bufs, rx_bufs, data->dfs); in spi_bitbang_transceive() 153 switch (data->dfs) { in spi_bitbang_transceive() 211 switch (data->dfs) { in spi_bitbang_transceive() 223 spi_context_update_tx(ctx, data->dfs, 1); in spi_bitbang_transceive() 224 spi_context_update_rx(ctx, data->dfs, 1); in spi_bitbang_transceive()
|
D | spi_smartbond.c | 72 uint8_t dfs; member 129 switch (data->dfs) { in spi_smartbond_write_word() 154 switch (data->dfs) { in spi_smartbond_read_word() 204 data->dfs = 1; in spi_smartbond_set_word_size() 209 data->dfs = 2; in spi_smartbond_set_word_size() 215 data->dfs = 4; in spi_smartbond_set_word_size() 375 || (data->dfs == 4) in spi_smartbond_set_fifo_mode() 391 if (data->dfs == 4) { in spi_smartbond_set_fifo_mode() 477 spi_context_update_tx(ctx, data->dfs, 1); in spi_smartbond_write() 485 spi_context_update_rx(ctx, data->dfs, 1); in spi_smartbond_write() [all …]
|
D | spi_mcux_ecspi.c | 35 uint16_t dfs; member 79 switch (data->dfs) { in spi_mcux_transfer_next_packet() 96 transfer.dataSize = data->dfs; in spi_mcux_transfer_next_packet() 122 switch (data->dfs) { in spi_mcux_master_transfer_callback() 135 spi_context_update_tx(&data->ctx, data->dfs, 1); in spi_mcux_master_transfer_callback() 136 spi_context_update_rx(&data->ctx, data->dfs, 1); in spi_mcux_master_transfer_callback() 215 data->dfs = bytes_per_word(word_size); in spi_mcux_configure() 239 spi_context_buffers_setup(&data->ctx, tx_bufs, rx_bufs, data->dfs); in transceive()
|
D | spi_b_renesas_ra8.c | 37 uint8_t dfs; member 178 if (data->dfs > 2) { in ra_spi_b_transceive_slave() 180 } else if (data->dfs > 1) { in ra_spi_b_transceive_slave() 193 spi_context_update_tx(&data->ctx, data->dfs, 1); in ra_spi_b_transceive_slave() 204 if (data->dfs > 2) { in ra_spi_b_transceive_slave() 206 } else if (data->dfs > 1) { in ra_spi_b_transceive_slave() 211 spi_context_update_rx(&data->ctx, data->dfs, 1); in ra_spi_b_transceive_slave() 225 if (data->dfs > 2) { in ra_spi_b_transceive_master() 227 } else if (data->dfs > 1) { in ra_spi_b_transceive_master() 243 spi_context_update_tx(&data->ctx, data->dfs, 1); in ra_spi_b_transceive_master() [all …]
|
D | spi_dw.c | 107 switch (spi->dfs) { in push_data() 137 spi_context_update_tx(&spi->ctx, spi->dfs, 1); in push_data() 158 switch (spi->dfs) { in pull_data() 171 spi_context_update_rx(&spi->ctx, spi->dfs, 1); in pull_data() 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() 294 size_t rx_count, uint8_t dfs) in spi_dw_compute_ndf() argument 307 return (len / dfs) - 1; in spi_dw_compute_ndf() 374 spi->dfs); in transceive() [all …]
|
D | spi_renesas_ra.c | 33 uint8_t dfs; member 190 if (data->dfs > 2) { in ra_spi_transceive_slave() 192 } else if (data->dfs > 1) { in ra_spi_transceive_slave() 210 spi_context_update_tx(&data->ctx, data->dfs, 1); in ra_spi_transceive_slave() 227 if (data->dfs > 2) { in ra_spi_transceive_slave() 229 } else if (data->dfs > 1) { in ra_spi_transceive_slave() 234 spi_context_update_rx(&data->ctx, data->dfs, 1); in ra_spi_transceive_slave() 250 if (data->dfs > 2) { in ra_spi_transceive_master() 252 } else if (data->dfs > 1) { in ra_spi_transceive_master() 273 spi_context_update_tx(&data->ctx, data->dfs, 1); in ra_spi_transceive_master() [all …]
|
D | spi_andes_atcspi200.c | 306 int remain_len, ret, dfs; in spi_dma_tx_load() local 334 dfs = SPI_WORD_SIZE_GET(ctx->config->operation) >> 3; in spi_dma_tx_load() 336 spi_context_update_tx(ctx, dfs, ctx->current_tx->len); in spi_dma_tx_load() 397 spi_context_update_tx(ctx, dfs, ctx->current_tx->len); in spi_dma_tx_load() 424 int remain_len, ret, dfs; in spi_dma_rx_load() local 451 dfs = SPI_WORD_SIZE_GET(ctx->config->operation) >> 3; in spi_dma_rx_load() 453 spi_context_update_rx(ctx, dfs, ctx->current_rx->len); in spi_dma_rx_load() 511 spi_context_update_rx(ctx, dfs, ctx->current_rx->len); in spi_dma_rx_load() 610 int error, dfs; in transceive() local 618 dfs = SPI_WORD_SIZE_GET(ctx->config->operation) >> 3; in transceive() [all …]
|
D | spi_pw.c | 132 uint8_t dfs = SPI_WORD_SIZE_GET(config->operation); in spi_pw_get_frame_size() local 134 dfs /= PW_SPI_WIDTH_8BITS; in spi_pw_get_frame_size() 136 if ((dfs == 0) || (dfs > PW_SPI_FRAME_SIZE_4_BYTES)) { in spi_pw_get_frame_size() 138 dfs = PW_SPI_FRAME_SIZE_1_BYTE; in spi_pw_get_frame_size() 141 return dfs; in spi_pw_get_frame_size() 427 switch (spi->dfs) { in spi_pw_tx_data() 455 spi_context_update_tx(&spi->ctx, spi->dfs, 1); in spi_pw_tx_data() 473 switch (spi->dfs) { in spi_pw_rx_data() 489 spi_context_update_rx(&spi->ctx, spi->dfs, 1); in spi_pw_rx_data() 643 spi->dfs = spi_pw_get_frame_size(config); in transceive() [all …]
|
D | spi_rpi_pico_pio.c | 53 uint32_t dfs; member 253 data->dfs = ((data->bits - 1) / 8) + 1; in spi_pico_pio_configure() 441 switch (data->dfs) { in spi_pico_pio_txrx_4_wire() 464 LOG_ERR("Support fot %d bits not enabled", (data->dfs * 8)); in spi_pico_pio_txrx_4_wire() 473 switch (data->dfs) { in spi_pico_pio_txrx_4_wire() 502 LOG_ERR("Support fot %d bits not enabled", (data->dfs * 8)); in spi_pico_pio_txrx_4_wire() 544 switch (data->dfs) { in spi_pico_pio_txrx_3_wire() 561 LOG_ERR("Support fot %d bits not enabled", (data->dfs * 8)); in spi_pico_pio_txrx_3_wire() 590 switch (data->dfs) { in spi_pico_pio_txrx_3_wire() 607 LOG_ERR("Support fot %d bits not enabled", (data->dfs * 8)); in spi_pico_pio_txrx_3_wire() [all …]
|
D | spi_esp32_spim.h | 57 uint8_t dfs; member
|
D | spi_pw.h | 216 uint8_t dfs; member
|
D | spi_dw.h | 51 uint8_t dfs; /* dfs in bytes: 1,2 or 4 */ member
|
D | spi_ambiq_spic.c | 48 typedef void (*spi_context_update_trx)(struct spi_context *ctx, uint8_t dfs, uint32_t len);
|
/Zephyr-latest/drivers/wifi/nrf_wifi/src/ |
D | fmac_main.c | 384 chan_info->dfs = !!reg_domain_chan_info->dfs; in nrf_wifi_reg_domain()
|
/Zephyr-latest/include/zephyr/net/ |
D | wifi_mgmt.h | 919 unsigned short dfs:1; member
|
/Zephyr-latest/modules/hostap/ |
D | CMakeLists.txt | 182 ${HOSTAP_SRC_BASE}/ap/dfs.c
|
/Zephyr-latest/drivers/wifi/nxp/ |
D | nxp_wifi_drv.c | 1451 reg_domain->chan_info[i].dfs = in nxp_wifi_reg_domain() 1468 reg_domain->chan_info[index + i].dfs = in nxp_wifi_reg_domain()
|
/Zephyr-latest/subsys/net/l2/wifi/ |
D | wifi_shell.c | 2223 chan_info[chan_idx].dfs ? "y" : "n"); in cmd_wifi_reg_domain()
|