Home
last modified time | relevance | path

Searched refs:k_mem_slab (Results 1 – 25 of 56) sorted by relevance

123

/Zephyr-latest/kernel/
Dmem_slab.c30 struct k_mem_slab *slab; in k_mem_slab_stats_raw()
33 slab = CONTAINER_OF(obj_core, struct k_mem_slab, obj_core); in k_mem_slab_stats_raw()
45 struct k_mem_slab *slab; in k_mem_slab_stats_query()
49 slab = CONTAINER_OF(obj_core, struct k_mem_slab, obj_core); in k_mem_slab_stats_query()
68 struct k_mem_slab *slab; in k_mem_slab_stats_reset()
71 slab = CONTAINER_OF(obj_core, struct k_mem_slab, obj_core); in k_mem_slab_stats_reset()
104 static int create_free_list(struct k_mem_slab *slab) in create_free_list()
140 offsetof(struct k_mem_slab, obj_core)); in init_mem_slab_obj_core_list()
148 STRUCT_SECTION_FOREACH(k_mem_slab, slab) { in init_mem_slab_obj_core_list()
171 int k_mem_slab_init(struct k_mem_slab *slab, void *buffer, in k_mem_slab_init()
[all …]
/Zephyr-latest/subsys/portability/cmsis_rtos_v1/
Dcmsis_mailq.c43 (struct k_mem_slab *)(queue_def->pool), in osMailAlloc()
47 (struct k_mem_slab *)(queue_def->pool), in osMailAlloc()
51 (struct k_mem_slab *)(queue_def->pool), in osMailAlloc()
77 (struct k_mem_slab *)(queue_def->pool), in osMailCAlloc()
81 (struct k_mem_slab *)(queue_def->pool), in osMailCAlloc()
85 (struct k_mem_slab *)(queue_def->pool), in osMailCAlloc()
173 k_mem_slab_free((struct k_mem_slab *)(queue_def->pool), (void *)mail); in osMailFree()
Dcmsis_mempool.c33 if (k_mem_slab_alloc((struct k_mem_slab *)(osPool->pool), in osPoolAlloc()
49 if (k_mem_slab_alloc((struct k_mem_slab *)(osPool->pool), in osPoolCAlloc()
71 k_mem_slab_free((struct k_mem_slab *)(osPool->pool), (void *)block); in osPoolFree()
/Zephyr-latest/tests/kernel/mem_slab/mslab_api/src/
Dtest_mslab_api.c13 static struct k_mem_slab mslab;
28 struct k_mem_slab *pslab = (struct k_mem_slab *)data; in tmslab_alloc_free()
55 struct k_mem_slab *pslab = (struct k_mem_slab *)data; in tmslab_alloc_align()
74 struct k_mem_slab *pslab = (struct k_mem_slab *)data; in tmslab_alloc_timeout()
111 struct k_mem_slab *pslab = (struct k_mem_slab *)data; in tmslab_used_get()
Dtest_mslab_extern.c10 extern struct k_mem_slab kmslab;
/Zephyr-latest/subsys/tracing/
Dtracing_tracking.c16 struct k_mem_slab *_track_list_k_mem_slab;
68 void sys_track_k_mem_slab_init(struct k_mem_slab *slab) in sys_track_k_mem_slab_init()
70 SYS_PORT_TRACING_TYPE_MASK(k_mem_slab, in sys_track_k_mem_slab_init()
144 SYS_PORT_TRACING_TYPE_MASK(k_mem_slab, in sys_track_static_init()
145 SYS_TRACK_STATIC_INIT(k_mem_slab, 0)); in sys_track_static_init()
/Zephyr-latest/tests/bluetooth/audio/mocks/src/
Dmem_slab.c10 int k_mem_slab_alloc(struct k_mem_slab *slab, void **mem, k_timeout_t timeout) in k_mem_slab_alloc()
24 void k_mem_slab_free(struct k_mem_slab *slab, void *mem) in k_mem_slab_free()
/Zephyr-latest/tests/drivers/i2s/i2s_api/src/
Di2s_api_test.h14 extern struct k_mem_slab rx_mem_slab;
15 extern struct k_mem_slab tx_mem_slab;
Dcommon.c109 struct k_mem_slab *slab) in tx_block_write_slab()
131 struct k_mem_slab *slab) in rx_block_read_slab()
/Zephyr-latest/subsys/portability/cmsis_rtos_v2/
Dmempool.c111 (struct k_mem_slab *)(&mslab->z_mslab), in osMemoryPoolAlloc()
115 (struct k_mem_slab *)(&mslab->z_mslab), in osMemoryPoolAlloc()
119 (struct k_mem_slab *)(&mslab->z_mslab), in osMemoryPoolAlloc()
146 k_mem_slab_free((struct k_mem_slab *)(&mslab->z_mslab), (void *)block); in osMemoryPoolFree()
Dwrapper.h53 struct k_mem_slab z_mslab;
/Zephyr-latest/subsys/net/lib/shell/
Dmem.c16 struct k_mem_slab *tx_slabs[CONFIG_NET_MAX_CONTEXTS];
23 struct k_mem_slab *slab, in slab_pool_found_already()
50 struct k_mem_slab *slab; in context_info()
102 struct k_mem_slab *rx, *tx; in cmd_net_mem()
Dpkt.c13 static bool is_pkt_part_of_slab(const struct k_mem_slab *slab, const char *ptr) in is_pkt_part_of_slab()
46 struct k_mem_slab *slab = context->tx_slab(); in check_context_pool()
57 struct k_mem_slab *rx, *tx; in is_pkt_ptr_valid()
/Zephyr-latest/tests/kernel/mem_slab/mslab_threadsafe/src/
Dtest_mslab_threadsafe.c32 static struct k_mem_slab mslab2, *slabs[SLAB_NUM] = { &mslab1, &mslab2 };
44 struct k_mem_slab *slab = slabs[id % SLAB_NUM]; in tmslab_api()
/Zephyr-latest/samples/boards/enjoydigital/litex/i2s/src/
Dmain.c26 static struct k_mem_slab i2s_rx_mem_slab;
27 static struct k_mem_slab i2s_tx_mem_slab;
/Zephyr-latest/drivers/audio/
Dmpxxdtyy.h30 struct k_mem_slab *pcm_mem_slab;
/Zephyr-latest/modules/openthread/platform/
Dmessagepool.c26 static struct k_mem_slab message_pool;
/Zephyr-latest/include/zephyr/tracing/
Dtracking.h38 extern struct k_mem_slab *_track_list_k_mem_slab;
102 void sys_track_k_mem_slab_init(struct k_mem_slab *slab);
/Zephyr-latest/subsys/tracing/test/
Dtracing_string_format_test.c482 void sys_trace_k_mem_slab_alloc_enter(struct k_mem_slab *slab, void **mem, k_timeout_t timeout) in sys_trace_k_mem_slab_alloc_enter()
487 void sys_trace_k_mem_slab_alloc_blocking(struct k_mem_slab *slab, void **mem, k_timeout_t timeout) in sys_trace_k_mem_slab_alloc_blocking()
492 void sys_trace_k_mem_slab_alloc_exit(struct k_mem_slab *slab, void **mem, k_timeout_t timeout, in sys_trace_k_mem_slab_alloc_exit()
498 void sys_trace_k_mem_slab_free_enter(struct k_mem_slab *slab, void *mem) in sys_trace_k_mem_slab_free_enter()
503 void sys_trace_k_mem_slab_free_exit(struct k_mem_slab *slab, void *mem) in sys_trace_k_mem_slab_free_exit()
/Zephyr-latest/tests/kernel/obj_tracking/src/
Dmain.c33 struct k_mem_slab slab; in ZTEST()
63 list = SYS_PORT_TRACK_NEXT((struct k_mem_slab *)list); in ZTEST()
/Zephyr-latest/tests/benchmarks/app_kernel/src/
Dmaster.h107 extern struct k_mem_slab MAP1;
/Zephyr-latest/subsys/demand_paging/backing_store/
Dram.c56 static struct k_mem_slab backing_slabs;
/Zephyr-latest/include/zephyr/
Dkernel.h81 struct k_mem_slab;
5211 struct k_mem_slab { struct
5218 SYS_PORT_TRACING_TRACKING_FIELD(k_mem_slab) argument
5273 STRUCT_SECTION_ITERABLE(k_mem_slab, name) = \
5295 static STRUCT_SECTION_ITERABLE(k_mem_slab, name) = \
5320 int k_mem_slab_init(struct k_mem_slab *slab, void *buffer,
5345 int k_mem_slab_alloc(struct k_mem_slab *slab, void **mem,
5357 void k_mem_slab_free(struct k_mem_slab *slab, void *mem);
5369 static inline uint32_t k_mem_slab_num_used_get(struct k_mem_slab *slab) in k_mem_slab_num_used_get()
5384 static inline uint32_t k_mem_slab_max_used_get(struct k_mem_slab *slab) in k_mem_slab_max_used_get()
[all …]
/Zephyr-latest/subsys/net/ip/
Dnet_pkt.c279 const char *net_pkt_slab2str(struct k_mem_slab *slab) in net_pkt_slab2str()
365 static inline const char *slab2str(struct k_mem_slab *slab) in slab2str()
496 static inline struct k_mem_slab *get_tx_slab(struct net_context *context) in get_tx_slab()
835 void net_pkt_get_info(struct k_mem_slab **rx,
836 struct k_mem_slab **tx,
870 static struct net_pkt_alloc_stats_slab *find_alloc_stats(struct k_mem_slab *slab)
1455 static struct net_pkt *pkt_alloc(struct k_mem_slab *slab, k_timeout_t timeout,
1458 static struct net_pkt *pkt_alloc(struct k_mem_slab *slab, k_timeout_t timeout)
1541 struct net_pkt *net_pkt_alloc_from_slab_debug(struct k_mem_slab *slab,
1545 struct net_pkt *net_pkt_alloc_from_slab(struct k_mem_slab *slab,
[all …]
/Zephyr-latest/samples/drivers/i2s/output/src/
Dmain.c55 static STRUCT_SECTION_ITERABLE(k_mem_slab, tx_0_mem_slab) =

123