Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/spi/
Dspi_nrfx_spim.c59 size_t chunk_len; member
406 size_t chunk_len = spi_context_max_continuous_chunk(ctx); in transfer_next_chunk() local
408 if (chunk_len > 0) { in transfer_next_chunk()
414 if (chunk_len > dev_config->max_chunk_len) { in transfer_next_chunk()
415 chunk_len = dev_config->max_chunk_len; in transfer_next_chunk()
422 if (chunk_len > CONFIG_SPI_NRFX_RAM_BUFFER_SIZE) { in transfer_next_chunk()
423 chunk_len = CONFIG_SPI_NRFX_RAM_BUFFER_SIZE; in transfer_next_chunk()
426 memcpy(dev_data->tx_buffer, tx_buf, chunk_len); in transfer_next_chunk()
429 sys_cache_data_flush_range(dev_data->tx_buffer, chunk_len); in transfer_next_chunk()
438 if (chunk_len > CONFIG_SPI_NRFX_RAM_BUFFER_SIZE) { in transfer_next_chunk()
[all …]
Dspi_nrfx_spi.c24 size_t chunk_len; member
178 size_t chunk_len = spi_context_max_continuous_chunk(ctx); in transfer_next_chunk() local
180 if (chunk_len > 0) { in transfer_next_chunk()
184 dev_data->chunk_len = chunk_len; in transfer_next_chunk()
187 xfer.tx_length = spi_context_tx_buf_on(ctx) ? chunk_len : 0; in transfer_next_chunk()
189 xfer.rx_length = spi_context_rx_buf_on(ctx) ? chunk_len : 0; in transfer_next_chunk()
209 if (dev_data->chunk_len == 0) { in event_handler()
214 spi_context_update_tx(&dev_data->ctx, 1, dev_data->chunk_len); in event_handler()
215 spi_context_update_rx(&dev_data->ctx, 1, dev_data->chunk_len); in event_handler()
263 dev_data->chunk_len = 0; in transceive()
Dspi_ifx_cat1.c43 size_t chunk_len; member
78 size_t chunk_len = spi_context_max_continuous_chunk(ctx); in transfer_chunk() local
80 if (chunk_len == 0) { in transfer_chunk()
84 data->chunk_len = chunk_len; in transfer_chunk()
87 &data->obj, ctx->tx_buf, spi_context_tx_buf_on(ctx) ? chunk_len : 0, ctx->rx_buf, in transfer_chunk()
88 spi_context_rx_buf_on(ctx) ? chunk_len : 0); in transfer_chunk()
115 spi_context_update_tx(ctx, data->dfs_value, data->chunk_len); in spi_interrupt_callback()
116 spi_context_update_rx(ctx, data->dfs_value, data->chunk_len); in spi_interrupt_callback()
Dspi_pl022.c544 const size_t chunk_len = spi_context_max_continuous_chunk(&data->ctx); in spi_pl022_chunk_transfer_finished() local
546 return (MIN(dma[TX].count, dma[RX].count) >= chunk_len); in spi_pl022_chunk_transfer_finished()
569 size_t chunk_len; in spi_pl022_dma_callback() local
584 chunk_len = spi_context_max_continuous_chunk(&data->ctx); in spi_pl022_dma_callback()
587 data->dma[i].count += chunk_len; in spi_pl022_dma_callback()
598 spi_context_update_tx(&data->ctx, 1, chunk_len); in spi_pl022_dma_callback()
599 spi_context_update_rx(&data->ctx, 1, chunk_len); in spi_pl022_dma_callback()
601 spi_context_update_tx(&data->ctx, 2, chunk_len); in spi_pl022_dma_callback()
602 spi_context_update_rx(&data->ctx, 2, chunk_len); in spi_pl022_dma_callback()
641 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.c328 const size_t chunk_len = spi_context_max_continuous_chunk(&data->ctx); in spi_gd32_start_dma_transceive() local
334 if ((chunk_len != data->dma[i].count) && !stat.busy) { in spi_gd32_start_dma_transceive()
500 const size_t chunk_len = spi_context_max_continuous_chunk(&data->ctx); in spi_gd32_chunk_transfer_finished() local
502 return (MIN(dma[TX].count, dma[RX].count) >= chunk_len); in spi_gd32_chunk_transfer_finished()
511 const size_t chunk_len = spi_context_max_continuous_chunk(&data->ctx); in spi_gd32_dma_callback() local
524 data->dma[i].count += chunk_len; in spi_gd32_dma_callback()
535 spi_context_update_tx(&data->ctx, 1, chunk_len); in spi_gd32_dma_callback()
536 spi_context_update_rx(&data->ctx, 1, chunk_len); in spi_gd32_dma_callback()
538 spi_context_update_tx(&data->ctx, 2, chunk_len); in spi_gd32_dma_callback()
539 spi_context_update_rx(&data->ctx, 2, chunk_len); in spi_gd32_dma_callback()
Dspi_rpi_pico_pio.c423 const size_t chunk_len = spi_context_max_continuous_chunk(&data->spi_ctx); in spi_pico_pio_txrx_4_wire() local
434 while (data->rx_count < chunk_len || data->tx_count < chunk_len) { in spi_pico_pio_txrx_4_wire()
437 data->tx_count < chunk_len && fifo_cnt < PIO_FIFO_DEPTH) { in spi_pico_pio_txrx_4_wire()
472 data->rx_count < chunk_len && fifo_cnt > 0) { in spi_pico_pio_txrx_4_wire()
/Zephyr-latest/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-latest/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-latest/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-latest/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-latest/drivers/misc/coresight/
Dnrf_etr.c833 size_t chunk_len; in etr_shell_write() local
836 chunk_len = MIN(len, sizeof(log_output_buf)); in etr_shell_write()
837 len -= log_output_func(buf, chunk_len, NULL); in etr_shell_write()
838 buf += chunk_len; in etr_shell_write()
/Zephyr-latest/drivers/wifi/esp_at/
Desp.c1172 const char *chunk, size_t chunk_len) in esp_conn_cmd_append() argument
1176 const char *chunk_end = chunk + chunk_len; in esp_conn_cmd_append()
1196 const char *chunk, size_t chunk_len) in esp_conn_cmd_escape_and_append() argument
1200 const char *chunk_end = chunk + chunk_len; in esp_conn_cmd_escape_and_append()