Home
last modified time | relevance | path

Searched refs:chunk_len (Results 1 – 12 of 12) sorted by relevance

/Zephyr-Core-3.7.0/drivers/spi/
Dspi_nrfx_spim.c43 size_t chunk_len; member
332 size_t chunk_len = spi_context_max_continuous_chunk(ctx); in transfer_next_chunk() local
334 if (chunk_len > 0) { in transfer_next_chunk()
340 if (chunk_len > dev_config->max_chunk_len) { in transfer_next_chunk()
341 chunk_len = dev_config->max_chunk_len; in transfer_next_chunk()
348 if (chunk_len > CONFIG_SPI_NRFX_RAM_BUFFER_SIZE) { in transfer_next_chunk()
349 chunk_len = CONFIG_SPI_NRFX_RAM_BUFFER_SIZE; in transfer_next_chunk()
352 memcpy(dev_data->tx_buffer, tx_buf, chunk_len); in transfer_next_chunk()
355 sys_cache_data_flush_range(dev_data->tx_buffer, chunk_len); in transfer_next_chunk()
364 if (chunk_len > CONFIG_SPI_NRFX_RAM_BUFFER_SIZE) { in transfer_next_chunk()
[all …]
Dspi_nrfx_spi.c23 size_t chunk_len; member
177 size_t chunk_len = spi_context_max_continuous_chunk(ctx); in transfer_next_chunk() local
179 if (chunk_len > 0) { in transfer_next_chunk()
183 dev_data->chunk_len = chunk_len; in transfer_next_chunk()
186 xfer.tx_length = spi_context_tx_buf_on(ctx) ? chunk_len : 0; in transfer_next_chunk()
188 xfer.rx_length = spi_context_rx_buf_on(ctx) ? chunk_len : 0; in transfer_next_chunk()
208 if (dev_data->chunk_len == 0) { in event_handler()
213 spi_context_update_tx(&dev_data->ctx, 1, dev_data->chunk_len); in event_handler()
214 spi_context_update_rx(&dev_data->ctx, 1, dev_data->chunk_len); in event_handler()
262 dev_data->chunk_len = 0; in transceive()
Dspi_ifx_cat1.c42 size_t chunk_len; member
77 size_t chunk_len = spi_context_max_continuous_chunk(ctx); in transfer_chunk() local
79 if (chunk_len == 0) { in transfer_chunk()
83 data->chunk_len = chunk_len; in transfer_chunk()
86 &data->obj, ctx->tx_buf, spi_context_tx_buf_on(ctx) ? chunk_len : 0, ctx->rx_buf, in transfer_chunk()
87 spi_context_rx_buf_on(ctx) ? chunk_len : 0); in transfer_chunk()
114 spi_context_update_tx(ctx, data->dfs_value, data->chunk_len); in spi_interrupt_callback()
115 spi_context_update_rx(ctx, data->dfs_value, data->chunk_len); in spi_interrupt_callback()
Dspi_pl022.c543 const size_t chunk_len = spi_context_max_continuous_chunk(&data->ctx); in spi_pl022_chunk_transfer_finished() local
545 return (MIN(dma[TX].count, dma[RX].count) >= chunk_len); in spi_pl022_chunk_transfer_finished()
568 size_t chunk_len; in spi_pl022_dma_callback() local
583 chunk_len = spi_context_max_continuous_chunk(&data->ctx); in spi_pl022_dma_callback()
586 data->dma[i].count += chunk_len; in spi_pl022_dma_callback()
597 spi_context_update_tx(&data->ctx, 1, chunk_len); in spi_pl022_dma_callback()
598 spi_context_update_rx(&data->ctx, 1, chunk_len); in spi_pl022_dma_callback()
600 spi_context_update_tx(&data->ctx, 2, chunk_len); in spi_pl022_dma_callback()
601 spi_context_update_rx(&data->ctx, 2, chunk_len); in spi_pl022_dma_callback()
640 size_t chunk_len = spi_context_max_continuous_chunk(ctx); in spi_pl022_async_xfer() local
[all …]
Dspi_andes_atcspi200.c41 size_t chunk_len; member
117 if (data->chunk_len != 0) { in spi_transfer()
118 data_len = data->chunk_len - 1; in spi_transfer()
311 if (ctx->current_tx->len > data->chunk_len) { in spi_dma_tx_load()
312 data->dma_tx.dma_blk_cfg.block_size = data->chunk_len / in spi_dma_tx_load()
335 remain_len = data->chunk_len - ctx->current_tx->len; in spi_dma_tx_load()
429 if (ctx->current_rx->len > data->chunk_len) { in spi_dma_rx_load()
430 data->dma_rx.dma_blk_cfg.block_size = data->chunk_len / in spi_dma_rx_load()
452 remain_len = data->chunk_len - ctx->current_rx->len; in spi_dma_rx_load()
540 data_len = data->chunk_len - 1; in spi_transfer_dma()
[all …]
Dspi_gd32.c327 const size_t chunk_len = spi_context_max_continuous_chunk(&data->ctx); in spi_gd32_start_dma_transceive() local
333 if ((chunk_len != data->dma[i].count) && !stat.busy) { in spi_gd32_start_dma_transceive()
499 const size_t chunk_len = spi_context_max_continuous_chunk(&data->ctx); in spi_gd32_chunk_transfer_finished() local
501 return (MIN(dma[TX].count, dma[RX].count) >= chunk_len); in spi_gd32_chunk_transfer_finished()
510 const size_t chunk_len = spi_context_max_continuous_chunk(&data->ctx); in spi_gd32_dma_callback() local
523 data->dma[i].count += chunk_len; in spi_gd32_dma_callback()
534 spi_context_update_tx(&data->ctx, 1, chunk_len); in spi_gd32_dma_callback()
535 spi_context_update_rx(&data->ctx, 1, chunk_len); in spi_gd32_dma_callback()
537 spi_context_update_tx(&data->ctx, 2, chunk_len); in spi_gd32_dma_callback()
538 spi_context_update_rx(&data->ctx, 2, chunk_len); in spi_gd32_dma_callback()
Dspi_rpi_pico_pio.c498 const size_t chunk_len = spi_context_max_continuous_chunk(&data->spi_ctx); in spi_pico_pio_txrx_4_wire() local
509 while (data->rx_count < chunk_len || data->tx_count < chunk_len) { in spi_pico_pio_txrx_4_wire()
512 data->tx_count < chunk_len && fifo_cnt < PIO_FIFO_DEPTH) { in spi_pico_pio_txrx_4_wire()
549 data->rx_count < chunk_len && fifo_cnt > 0) { in spi_pico_pio_txrx_4_wire()
/Zephyr-Core-3.7.0/drivers/console/
Duart_mcumgr.c176 int chunk_len; in uart_mcumgr_isr() local
185 chunk_len = uart_mcumgr_read_chunk(buf, sizeof(buf)); in uart_mcumgr_isr()
186 if (chunk_len == 0) { in uart_mcumgr_isr()
190 for (i = 0; i < chunk_len; i++) { in uart_mcumgr_isr()
/Zephyr-Core-3.7.0/samples/drivers/espi/src/
Dmain.c538 int rc, chunk_len, n; in saf_read() local
550 chunk_len = 64; in saf_read()
552 chunk_len = n; in saf_read()
555 saf_pkt.len = chunk_len; in saf_read()
561 __func__, rc, chunk_len, spi_addr); in saf_read()
565 saf_pkt.flash_addr += chunk_len; in saf_read()
566 saf_pkt.buf += chunk_len; in saf_read()
567 n -= chunk_len; in saf_read()
616 int rc, chunk_len, n; in saf_page_prog() local
632 chunk_len = 64; in saf_page_prog()
[all …]
/Zephyr-Core-3.7.0/drivers/flash/
Dspi_flash_at45.c345 size_t chunk_len = len; in spi_flash_at45_write() local
350 if (chunk_len > (current_page_end - offset)) { in spi_flash_at45_write()
351 chunk_len = (current_page_end - offset); in spi_flash_at45_write()
354 err = perform_write(dev, offset, data, chunk_len); in spi_flash_at45_write()
359 data = (uint8_t *)data + chunk_len; in spi_flash_at45_write()
360 offset += chunk_len; in spi_flash_at45_write()
361 len -= chunk_len; in spi_flash_at45_write()
/Zephyr-Core-3.7.0/subsys/net/lib/tls_credentials/
Dtls_credentials_shell.c158 size_t chunk_len = strlen(chunk); in cred_buf_write() local
161 if ((writehead + chunk_len) >= (cred_buf + sizeof(cred_buf) - 1)) { in cred_buf_write()
168 memcpy(writehead, chunk, chunk_len); in cred_buf_write()
169 cred_written += chunk_len; in cred_buf_write()
171 return chunk_len; in cred_buf_write()
/Zephyr-Core-3.7.0/drivers/wifi/esp_at/
Desp.c1164 const char *chunk, size_t chunk_len) in esp_conn_cmd_append() argument
1168 const char *chunk_end = chunk + chunk_len; in esp_conn_cmd_append()
1188 const char *chunk, size_t chunk_len) in esp_conn_cmd_escape_and_append() argument
1192 const char *chunk_end = chunk + chunk_len; in esp_conn_cmd_escape_and_append()