| /Zephyr-4.3.0/soc/intel/intel_adsp/common/include/ |
| D | soc_util.h | 12 static ALWAYS_INLINE void bmemcpy(void *dest, void *src, size_t bytes) in bmemcpy() argument 17 sys_cache_data_invd_range(src, bytes); in bmemcpy() 18 for (size_t i = 0; i < (bytes >> 2); i++) { in bmemcpy() 22 sys_cache_data_flush_range(dest, bytes); in bmemcpy() 26 static ALWAYS_INLINE void bbzero(void *dest, size_t bytes) in bbzero() argument 30 for (size_t i = 0; i < (bytes >> 2); i++) { in bbzero() 34 sys_cache_data_flush_range(dest, bytes); in bbzero()
|
| /Zephyr-4.3.0/tests/unit/winstream/ |
| D | main.c | 29 uint32_t bytes = sys_winstream_read(ws, &seq, &c, 1); in ZTEST() local 31 zassert_true(bytes == 1, ""); in ZTEST() 36 bytes = sys_winstream_read(ws, &seq, &c, 1); in ZTEST() 37 zassert_true(bytes == 0, ""); in ZTEST() 52 bytes = sys_winstream_read(ws, &seq, readback, sizeof(readback)); in ZTEST() 54 zassert_true(bytes == 0, ""); in ZTEST() 59 bytes = sys_winstream_read(ws, &seq, readback, sizeof(readback)); in ZTEST() 61 zassert_true(bytes == 0, ""); in ZTEST() 68 bytes = sys_winstream_read(ws, &seq, readback, sizeof(readback)); in ZTEST() 69 zassert_true(bytes == ws->len / 2, ""); in ZTEST() [all …]
|
| /Zephyr-4.3.0/include/zephyr/sys/ |
| D | sys_heap.h | 105 void sys_heap_init(struct sys_heap *heap, void *mem, size_t bytes); 124 void *sys_heap_alloc(struct sys_heap *heap, size_t bytes); 139 void *sys_heap_aligned_alloc(struct sys_heap *heap, size_t align, size_t bytes); 151 void *sys_heap_noalign_alloc(struct sys_heap *heap, size_t align, size_t bytes); 185 void *sys_heap_realloc(struct sys_heap *heap, void *ptr, size_t bytes); 203 size_t align, size_t bytes); 273 void sys_heap_stress(void *(*alloc_fn)(void *arg, size_t bytes),
|
| D | heap_listener.h | 72 void *mem, size_t bytes); 91 void *mem, size_t bytes); 148 void heap_listener_notify_alloc(uintptr_t heap_id, void *mem, size_t bytes); 160 void heap_listener_notify_free(uintptr_t heap_id, void *mem, size_t bytes); 275 static inline void heap_listener_notify_alloc(uintptr_t heap_id, void *mem, size_t bytes) 279 ARG_UNUSED(bytes); 282 static inline void heap_listener_notify_free(uintptr_t heap_id, void *mem, size_t bytes) 286 ARG_UNUSED(bytes);
|
| D | multi_heap.h | 123 void *sys_multi_heap_alloc(struct sys_multi_heap *mheap, void *cfg, size_t bytes); 139 void *cfg, size_t align, size_t bytes); 192 void *ptr, size_t align, size_t bytes); 194 #define sys_multi_heap_realloc(mheap, cfg, ptr, bytes) \ argument 195 sys_multi_heap_aligned_realloc(mheap, cfg, ptr, 0, bytes)
|
| /Zephyr-4.3.0/tests/subsys/ipc/ipc_sessions/src/ |
| D | data_queue.c | 17 void data_queue_init(struct data_queue *q, void *mem, size_t bytes) in data_queue_init() argument 19 k_heap_init(&q->h, mem, bytes); in data_queue_init() 23 int data_queue_put(struct data_queue *q, const void *data, size_t bytes, k_timeout_t timeout) in data_queue_put() argument 28 bytes + sizeof(struct data_queue_format), in data_queue_put() 34 buffer->size = bytes; in data_queue_put() 35 memcpy(buffer->data, data, bytes); in data_queue_put()
|
| /Zephyr-4.3.0/lib/heap/ |
| D | multi_heap.c | 44 void *sys_multi_heap_alloc(struct sys_multi_heap *mheap, void *cfg, size_t bytes) in sys_multi_heap_alloc() argument 46 return mheap->choice(mheap, cfg, 0, bytes); in sys_multi_heap_alloc() 50 void *cfg, size_t align, size_t bytes) in sys_multi_heap_aligned_alloc() argument 52 return mheap->choice(mheap, cfg, align, bytes); in sys_multi_heap_aligned_alloc() 99 void *ptr, size_t align, size_t bytes) in sys_multi_heap_aligned_realloc() argument 103 return sys_multi_heap_aligned_alloc(mheap, cfg, align, bytes); in sys_multi_heap_aligned_realloc() 105 if (bytes == 0) { in sys_multi_heap_aligned_realloc() 115 void *new_ptr = sys_heap_aligned_realloc(rec->heap, ptr, align, bytes); in sys_multi_heap_aligned_realloc() 124 new_ptr = sys_multi_heap_aligned_alloc(mheap, cfg, align, bytes); in sys_multi_heap_aligned_realloc() 126 memcpy(new_ptr, ptr, min(old_size, bytes)); in sys_multi_heap_aligned_realloc()
|
| D | heap.c | 263 void *sys_heap_alloc(struct sys_heap *heap, size_t bytes) in sys_heap_alloc() argument 268 if (bytes == 0U) { in sys_heap_alloc() 272 chunksz_t chunk_sz = bytes_to_chunksz(h, bytes, 0); in sys_heap_alloc() 298 IF_ENABLED(CONFIG_MSAN, (__msan_allocated_memory(mem, bytes))); in sys_heap_alloc() 302 void *sys_heap_noalign_alloc(struct sys_heap *heap, size_t align, size_t bytes) in sys_heap_noalign_alloc() argument 306 return sys_heap_alloc(heap, bytes); in sys_heap_noalign_alloc() 309 void *sys_heap_aligned_alloc(struct sys_heap *heap, size_t align, size_t bytes) in sys_heap_aligned_alloc() argument 327 return sys_heap_alloc(heap, bytes); in sys_heap_aligned_alloc() 334 if (bytes == 0) { in sys_heap_aligned_alloc() 343 chunksz_t padded_sz = bytes_to_chunksz(h, bytes, align - gap); in sys_heap_aligned_alloc() [all …]
|
| /Zephyr-4.3.0/subsys/net/l2/ppp/ |
| D | ppp_stats.h | 17 uint32_t bytes) in ppp_stats_update_bytes_rx() argument 32 stats->bytes.received += bytes; in ppp_stats_update_bytes_rx() 36 uint32_t bytes) in ppp_stats_update_bytes_tx() argument 51 stats->bytes.sent += bytes; in ppp_stats_update_bytes_tx() 128 #define ppp_stats_update_bytes_rx(iface, bytes) argument 129 #define ppp_stats_update_bytes_tx(iface, bytes) argument
|
| /Zephyr-4.3.0/drivers/sensor/ti/ina2xx/ |
| D | ina2xx_get.c | 16 const size_t bytes = (ch->reg->size + 7) / 8; in ina2xx_get_bus_voltage() local 28 if (bytes == 2) { in ina2xx_get_bus_voltage() 31 } else if (bytes == 3) { in ina2xx_get_bus_voltage() 47 const size_t bytes = (ch->reg->size + 7) / 8; in ina2xx_get_shunt_voltage() local 59 if (bytes == 2) { in ina2xx_get_shunt_voltage() 62 } else if (bytes == 3) { in ina2xx_get_shunt_voltage() 78 const size_t bytes = (ch->reg->size + 7) / 8; in ina2xx_get_current() local 90 if (bytes == 2) { in ina2xx_get_current() 93 } else if (bytes == 3) { in ina2xx_get_current() 109 const size_t bytes = (ch->reg->size + 7) / 8; in ina2xx_get_power() local [all …]
|
| /Zephyr-4.3.0/kernel/ |
| D | kheap.c | 26 void k_heap_init(struct k_heap *heap, void *mem, size_t bytes) in k_heap_init() argument 30 sys_heap_init(&heap->heap, mem, bytes); in k_heap_init() 77 typedef void * (sys_heap_allocator_t)(struct sys_heap *heap, size_t align, size_t bytes); 79 static void *z_heap_alloc_helper(struct k_heap *heap, size_t align, size_t bytes, in z_heap_alloc_helper() argument 93 ret = sys_heap_allocator(&heap->heap, align, bytes); in z_heap_alloc_helper() 119 void *k_heap_alloc(struct k_heap *heap, size_t bytes, k_timeout_t timeout) in k_heap_alloc() argument 123 void *ret = z_heap_alloc_helper(heap, 0, bytes, timeout, in k_heap_alloc() 131 void *k_heap_aligned_alloc(struct k_heap *heap, size_t align, size_t bytes, in k_heap_aligned_alloc() argument 140 void *ret = z_heap_alloc_helper(heap, align, bytes, timeout, in k_heap_aligned_alloc() 176 void *k_heap_realloc(struct k_heap *heap, void *ptr, size_t bytes, k_timeout_t timeout) in k_heap_realloc() argument [all …]
|
| /Zephyr-4.3.0/include/zephyr/arch/xtensa/ |
| D | cache.h | 28 static ALWAYS_INLINE int arch_dcache_flush_range(void *addr, size_t bytes) in arch_dcache_flush_range() argument 33 size_t last = ROUND_UP(((long)addr) + bytes, step); in arch_dcache_flush_range() 36 for (line = first; bytes && line < last; line += step) { in arch_dcache_flush_range() 44 static ALWAYS_INLINE int arch_dcache_flush_and_invd_range(void *addr, size_t bytes) in arch_dcache_flush_and_invd_range() argument 49 size_t last = ROUND_UP(((long)addr) + bytes, step); in arch_dcache_flush_and_invd_range() 52 for (line = first; bytes && line < last; line += step) { in arch_dcache_flush_and_invd_range() 60 static ALWAYS_INLINE int arch_dcache_invd_range(void *addr, size_t bytes) in arch_dcache_invd_range() argument 65 size_t last = ROUND_UP(((long)addr) + bytes, step); in arch_dcache_invd_range() 68 for (line = first; bytes && line < last; line += step) { in arch_dcache_invd_range()
|
| /Zephyr-4.3.0/subsys/net/l2/ethernet/ |
| D | eth_stats.h | 32 static inline void eth_stats_update_bytes_rx(struct net_if *iface, uint32_t bytes) in eth_stats_update_bytes_rx() argument 37 stats->bytes.received += bytes; in eth_stats_update_bytes_rx() 41 static inline void eth_stats_update_bytes_tx(struct net_if *iface, uint32_t bytes) in eth_stats_update_bytes_tx() argument 46 stats->bytes.sent += bytes; in eth_stats_update_bytes_tx() 138 #define eth_stats_update_bytes_rx(iface, bytes) argument 139 #define eth_stats_update_bytes_tx(iface, bytes) argument
|
| /Zephyr-4.3.0/drivers/wifi/esp_hosted/ |
| D | esp_hosted_proto.pb | 157 bytes ssid = 1; 160 bytes bssid = 4; 165 bytes mac = 1; 177 bytes mac = 1; 205 bytes mac = 1; 217 bytes ssid = 1; 218 bytes bssid = 2; 228 bytes bssid = 3; 235 bytes mac = 2; 242 bytes ssid = 1; [all …]
|
| /Zephyr-4.3.0/subsys/usb/device/ |
| D | usb_transfer.c | 75 uint32_t bytes; in usb_transfer_work() local 102 ret = usb_write(ep, trans->buffer, trans->bsize, &bytes); in usb_transfer_work() 110 trans->buffer += bytes; in usb_transfer_work() 111 trans->bsize -= bytes; in usb_transfer_work() 112 trans->tsize += bytes; in usb_transfer_work() 115 &bytes); in usb_transfer_work() 123 trans->buffer += bytes; in usb_transfer_work() 124 trans->bsize -= bytes; in usb_transfer_work() 125 trans->tsize += bytes; in usb_transfer_work() 128 if (!bytes || (bytes % usb_dc_ep_mps(ep)) || !trans->bsize) { in usb_transfer_work() [all …]
|
| /Zephyr-4.3.0/subsys/llext/ |
| D | llext_priv.h | 73 static inline void *llext_alloc_data(size_t bytes) in llext_alloc_data() argument 80 return k_heap_alloc(&llext_data_heap, bytes, K_NO_WAIT); in llext_alloc_data() 83 static inline void *llext_aligned_alloc_data(size_t align, size_t bytes) in llext_aligned_alloc_data() argument 90 return k_heap_aligned_alloc(&llext_data_heap, align, bytes, K_NO_WAIT); in llext_aligned_alloc_data() 102 static inline void *llext_aligned_alloc_instr(size_t align, size_t bytes) in llext_aligned_alloc_instr() argument 108 return k_heap_aligned_alloc(&llext_instr_heap, align, bytes, K_NO_WAIT); in llext_aligned_alloc_instr()
|
| /Zephyr-4.3.0/tests/drivers/can/api/src/ |
| D | utilities.c | 47 uint8_t bytes; in ZTEST() local 50 for (bytes = 0; bytes <= 8; bytes++) { in ZTEST() 51 zassert_equal(can_bytes_to_dlc(bytes), bytes, "wrong DLC for %u byte(s)", bytes); in ZTEST()
|
| /Zephyr-4.3.0/subsys/pmci/mctp/ |
| D | mctp_memory.c | 19 static void *mctp_heap_alloc(size_t bytes) in mctp_heap_alloc() argument 23 void *ptr = sys_heap_alloc(&mctp_heap.heap, bytes); in mctp_heap_alloc() 39 static void *mctp_heap_realloc(void *ptr, size_t bytes) in mctp_heap_realloc() argument 43 void *new_ptr = sys_heap_realloc(&mctp_heap.heap, ptr, bytes); in mctp_heap_realloc()
|
| /Zephyr-4.3.0/subsys/net/lib/sockets/ |
| D | sockets_internal.h | 63 void sock_obj_core_update_send_stats(int sock, int bytes); 64 void sock_obj_core_update_recv_stats(int sock, int bytes); 95 static inline void sock_obj_core_update_send_stats(int sock, int bytes) in sock_obj_core_update_send_stats() argument 98 ARG_UNUSED(bytes); in sock_obj_core_update_send_stats() 101 static inline void sock_obj_core_update_recv_stats(int sock, int bytes) in sock_obj_core_update_recv_stats() argument 104 ARG_UNUSED(bytes); in sock_obj_core_update_recv_stats()
|
| /Zephyr-4.3.0/drivers/ipm/ |
| D | Kconfig.imx | 28 bool "4 bytes" 31 and a maximum size of 4 bytes each. 34 bool "8 bytes" 37 and a maximum size of 8 bytes each. 40 bool "16 bytes" 43 and a maximum size of 16 bytes.
|
| /Zephyr-4.3.0/drivers/entropy/ |
| D | Kconfig.smartbond | 22 Buffer length in bytes used to store entropy bytes generated by the 30 Low water-mark threshold in bytes to trigger entropy generation for 31 thread mode consumers. As soon as the number of available bytes in the 40 Buffer length in bytes used to store entropy bytes generated by the 48 Low water-mark threshold in bytes to trigger entropy generation for 49 ISR consumers. As soon as the number of available bytes in the
|
| D | entropy_smartbond.c | 210 static const uint8_t *rng_pool_put_bytes(struct rng_pool *rngp, const uint8_t *bytes, in rng_pool_put_bytes() argument 216 for (; bytes < limit; ++bytes) { in rng_pool_put_bytes() 217 if (rng_pool_put(rngp, *bytes) < 0) { in rng_pool_put_bytes() 223 return bytes; in rng_pool_put_bytes() 278 uint16_t bytes; in entropy_smartbond_get_entropy() local 281 bytes = rng_pool_get((struct rng_pool *)(entropy_smartbond_data.thr), buf, len); in entropy_smartbond_get_entropy() 284 if (bytes == 0U) { in entropy_smartbond_get_entropy() 290 len -= bytes; in entropy_smartbond_get_entropy() 291 buf += bytes; in entropy_smartbond_get_entropy() 329 uint8_t bytes[4]; in entropy_smartbond_get_entropy_isr() local [all …]
|
| D | entropy_sf32lb.c | 34 uint16_t bytes; in entropy_sf32lb_get_entropy() local 50 bytes = MIN(length, sizeof(buf)); in entropy_sf32lb_get_entropy() 52 memcpy(buffer, buf, bytes); in entropy_sf32lb_get_entropy() 54 length -= bytes; in entropy_sf32lb_get_entropy() 55 buffer += bytes; in entropy_sf32lb_get_entropy()
|
| /Zephyr-4.3.0/samples/modules/tflite-micro/tflm_ethosu/src/ |
| D | inference_process.cpp | 30 if (src.bytes > dst.size) { in copyOutput() 31 printf("Tensor size mismatch (bytes): actual=%d, expected%d.\n", src.bytes, in copyOutput() 36 copy(src.data.uint8, src.data.uint8 + src.bytes, static_cast<uint8_t *>(dst.data)); in copyOutput() 37 dst.size = src.bytes; in copyOutput() 151 if (input.size != tensor->bytes) { in runJob() 153 input.size, tensor->bytes); in runJob() 194 if (expected.size != output->bytes) { in runJob() 196 i, expected.size, output->bytes); in runJob() 200 for (unsigned int j = 0; j < output->bytes; ++j) { in runJob()
|
| /Zephyr-4.3.0/drivers/crypto/ |
| D | Kconfig.it8xxx2 | 12 It requires 256 + 256 bytes in the RAM's first 4k-bytes to calculate 23 It requires 1024 + 256 bytes in the RAM's first 4k-bytes to calculate
|