/Zephyr-latest/subsys/ipc/ipc_service/lib/ |
D | pbuf.c | 124 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/ |
D | test_dma.c | 35 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/ |
D | spsc_pbuf.c | 87 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/ |
D | dma_sam_xdmac.h | 60 uint32_t blen; member
|
D | dma_dw_axi.c | 29 #define DMA_DW_AXI_GET_MSIZE(blen) ((blen == 1) ? (0U) : (find_msb_set(blen) - 2U)) argument
|
D | dma_sam_xdmac.c | 161 xdmac->XDMAC_CHID[channel].XDMAC_CBC = param->blen; in sam_xdmac_transfer_configure()
|
/Zephyr-latest/subsys/shell/backends/ |
D | shell_uart.c | 440 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/ |
D | spsc_pbuf.h | 147 struct spsc_pbuf *spsc_pbuf_init(void *buf, size_t blen, uint32_t flags);
|
/Zephyr-latest/drivers/misc/coresight/ |
D | nrf_etr.c | 856 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/ |
D | nvs.c | 108 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/ |
D | utils.c | 99 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/ |
D | zms.c | 158 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()
|