Home
last modified time | relevance | path

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

/Zephyr-latest/subsys/ipc/ipc_service/lib/
Dpbuf.c124 const uint32_t blen = pb->cfg->len; in pbuf_write() local
137 uint32_t free_space = blen - idx_occupied(blen, wr_idx, rd_idx) - _PBUF_IDX_SIZE; in pbuf_write()
155 wr_idx = idx_wrap(blen, wr_idx + PBUF_PACKET_LEN_SZ); in pbuf_write()
158 uint32_t tail = MIN(len, blen - wr_idx); in pbuf_write()
169 wr_idx = idx_wrap(blen, ROUND_UP(wr_idx + len, _PBUF_IDX_SIZE)); in pbuf_write()
191 const uint32_t blen = pb->cfg->len; in pbuf_read() local
221 uint32_t occupied_space = idx_occupied(blen, wr_idx, rd_idx); in pbuf_read()
228 rd_idx = idx_wrap(blen, rd_idx + PBUF_PACKET_LEN_SZ); in pbuf_read()
236 uint32_t tail = MIN(blen - rd_idx, len); in pbuf_read()
247 rd_idx = idx_wrap(blen, ROUND_UP(rd_idx + len, _PBUF_IDX_SIZE)); in pbuf_read()
/Zephyr-latest/tests/drivers/dma/chan_blen_transfer/src/
Dtest_dma.c35 static int test_task(const struct device *dma, uint32_t chan_id, uint32_t blen) in test_task() argument
48 dma_cfg.source_burst_length = blen; in test_task()
49 dma_cfg.dest_burst_length = blen; in test_task()
60 dma->name, chan_id, blen >> 3); in test_task()
/Zephyr-latest/lib/os/
Dspsc_pbuf.c87 static uint32_t get_len(size_t blen, uint32_t flags) in get_len() argument
89 uint32_t len = blen - sizeof(struct spsc_pbuf_common); in get_len()
109 struct spsc_pbuf *spsc_pbuf_init(void *buf, size_t blen, uint32_t flags) in spsc_pbuf_init() argument
122 __ASSERT_NO_MSG(blen > (sizeof(*pb) + LEN_SZ)); in spsc_pbuf_init()
124 pb->common.len = get_len(blen, flags); in spsc_pbuf_init()
/Zephyr-latest/drivers/dma/
Ddma_sam_xdmac.h60 uint32_t blen; member
Ddma_dw_axi.c29 #define DMA_DW_AXI_GET_MSIZE(blen) ((blen == 1) ? (0U) : (find_msb_set(blen) - 2U)) argument
Ddma_sam_xdmac.c161 xdmac->XDMAC_CHID[channel].XDMAC_CBC = param->blen; in sam_xdmac_transfer_configure()
/Zephyr-latest/subsys/shell/backends/
Dshell_uart.c440 size_t blen; in async_read() local
443 blen = uart_async_rx_data_claim(async_rx, &buf, length); in async_read()
448 for (size_t i = 0; i < blen; i++) { in async_read()
454 size_t sh_cnt = blen; in async_read()
456 memcpy(data, buf, blen); in async_read()
/Zephyr-latest/include/zephyr/sys/
Dspsc_pbuf.h147 struct spsc_pbuf *spsc_pbuf_init(void *buf, size_t blen, uint32_t flags);
/Zephyr-latest/drivers/misc/coresight/
Dnrf_etr.c856 size_t blen; in etr_shell_read() local
859 blen = uart_async_rx_data_claim(&async_rx, &buf, length); in etr_shell_read()
860 memcpy(data, buf, blen); in etr_shell_read()
861 buf_available = uart_async_rx_data_consume(&async_rx, blen); in etr_shell_read()
863 *cnt = blen; in etr_shell_read()
/Zephyr-latest/subsys/fs/nvs/
Dnvs.c108 size_t blen; in nvs_flash_al_wrt() local
120 blen = len & ~(fs->flash_parameters->write_block_size - 1U); in nvs_flash_al_wrt()
121 if (blen > 0) { in nvs_flash_al_wrt()
122 rc = flash_write(fs->flash_device, offset, data8, blen); in nvs_flash_al_wrt()
127 len -= blen; in nvs_flash_al_wrt()
128 offset += blen; in nvs_flash_al_wrt()
129 data8 += blen; in nvs_flash_al_wrt()
/Zephyr-latest/subsys/net/ip/
Dutils.c99 uint8_t i, len, blen; in net_sprint_ll_addr_buf() local
121 for (i = 0U, blen = buflen; i < len && blen > 0; i++) { in net_sprint_ll_addr_buf()
124 blen -= 3U; in net_sprint_ll_addr_buf()
/Zephyr-latest/subsys/fs/zms/
Dzms.c158 size_t blen; in zms_flash_al_wrt() local
168 blen = zms_round_down_write_block_size(fs, len); in zms_flash_al_wrt()
169 if (blen > 0) { in zms_flash_al_wrt()
170 rc = flash_write(fs->flash_device, offset, data8, blen); in zms_flash_al_wrt()
175 len -= blen; in zms_flash_al_wrt()
176 offset += blen; in zms_flash_al_wrt()
177 data8 += blen; in zms_flash_al_wrt()