Home
last modified time | relevance | path

Searched refs:data_loc (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/subsys/ipc/ipc_service/lib/
Dpbuf.c34 if (!cfg || !cfg->rd_idx_loc || !cfg->wr_idx_loc || !cfg->data_loc) { in validate_cfg()
41 !IS_PTR_ALIGNED_BYTES(cfg->data_loc, _PBUF_IDX_SIZE)) { in validate_cfg()
52 !((uint8_t *)cfg->wr_idx_loc < cfg->data_loc) || in validate_cfg()
66 native_emb_addr_remap((void **)&pb->cfg->data_loc); in pbuf_native_addr_remap()
123 uint8_t *const data_loc = pb->cfg->data_loc; in pbuf_write() local
150 *((uint32_t *)(&data_loc[wr_idx])) = 0; in pbuf_write()
151 sys_put_be16(len, &data_loc[wr_idx]); in pbuf_write()
153 sys_cache_data_flush_range(&data_loc[wr_idx], PBUF_PACKET_LEN_SZ); in pbuf_write()
160 memcpy(&data_loc[wr_idx], data, tail); in pbuf_write()
161 sys_cache_data_flush_range(&data_loc[wr_idx], tail); in pbuf_write()
[all …]
/Zephyr-latest/lib/os/
Dspsc_pbuf.c143 uint8_t *data_loc = get_data_loc(pb, flags); in spsc_pbuf_alloc() local
180 data_loc[wr_idx] = PADDING_MARK; in spsc_pbuf_alloc()
182 cache_wb(&data_loc[wr_idx], sizeof(uint8_t), flags); in spsc_pbuf_alloc()
196 *buf = &data_loc[wr_idx + LEN_SZ]; in spsc_pbuf_alloc()
211 uint8_t *data_loc = get_data_loc(pb, flags); in spsc_pbuf_commit() local
215 sys_put_be16(len, &data_loc[wr_idx]); in spsc_pbuf_commit()
217 cache_wb(&data_loc[wr_idx], len + LEN_SZ, flags); in spsc_pbuf_commit()
256 uint8_t *data_loc = get_data_loc(pb, flags); in spsc_pbuf_claim() local
284 cache_inv(&data_loc[rd_idx], LEN_SZ, flags); in spsc_pbuf_claim()
285 if (data_loc[rd_idx] == PADDING_MARK) { in spsc_pbuf_claim()
[all …]
/Zephyr-latest/include/zephyr/ipc/
Dpbuf.h63 uint8_t *data_loc; /* Location of the data[]. */ member
120 .data_loc = (uint8_t *)((uint8_t *)(mem_addr) + \
/Zephyr-latest/tests/subsys/ipc/pbuf/src/
Dmain.c25 printk("cfg->data_loc: %p\n", pb->cfg->data_loc); in print_pbuf_info()