Lines Matching full:pool

276 const char *net_pkt_pool2str(struct net_buf_pool *pool)  in net_pkt_pool2str()  argument
278 if (pool == &rx_bufs) { in net_pkt_pool2str()
280 } else if (pool == &tx_bufs) { in net_pkt_pool2str()
290 static inline int16_t get_frees(struct net_buf_pool *pool) in get_frees() argument
293 return atomic_get(&pool->avail_count); in get_frees()
301 static inline const char *get_name(struct net_buf_pool *pool) in get_name() argument
304 return pool->name; in get_name()
310 static inline int16_t get_size(struct net_buf_pool *pool) in get_size() argument
313 return pool->pool_size; in get_size()
324 static inline const char *pool2str(struct net_buf_pool *pool) in pool2str() argument
326 return net_pkt_pool2str(pool); in pool2str()
350 NET_INFO("[%d] frag %p len %d max len %u size %d pool %p", in net_pkt_print_frags()
366 struct net_buf *net_pkt_get_reserve_data_debug(struct net_buf_pool *pool, in net_pkt_get_reserve_data_debug() argument
371 struct net_buf *net_pkt_get_reserve_data(struct net_buf_pool *pool, in net_pkt_get_reserve_data_debug()
383 frag = net_buf_alloc(pool, K_NO_WAIT); in net_pkt_get_reserve_data_debug()
385 frag = net_buf_alloc(pool, timeout); in net_pkt_get_reserve_data_debug()
400 pool2str(pool), get_name(pool), get_frees(pool), in net_pkt_get_reserve_data_debug()
407 /* Get a fragment, try to figure out the pool from where to get
856 static struct net_buf *pkt_alloc_buffer(struct net_buf_pool *pool, argument
860 static struct net_buf *pkt_alloc_buffer(struct net_buf_pool *pool,
871 new = net_buf_alloc_fixed(pool, timeout);
906 pool2str(pool), get_name(pool), get_frees(pool),
923 static struct net_buf *pkt_alloc_buffer(struct net_buf_pool *pool, argument
927 static struct net_buf *pkt_alloc_buffer(struct net_buf_pool *pool,
933 buf = net_buf_alloc_len(pool, size, timeout);
941 pool2str(pool), get_name(pool), get_frees(pool),
1141 struct net_buf_pool *pool = NULL; local
1172 pool = get_data_pool(pkt->context);
1175 if (!pool) {
1176 pool = pkt->slab == &tx_pkts ? &tx_bufs : &rx_bufs;
1191 buf = pkt_alloc_buffer(pool, alloc_len, timeout, caller, line);
1193 buf = pkt_alloc_buffer(pool, alloc_len, timeout);