Lines Matching refs:slab
279 const char *net_pkt_slab2str(struct k_mem_slab *slab) in net_pkt_slab2str() argument
281 if (slab == &rx_pkts) { in net_pkt_slab2str()
283 } else if (slab == &tx_pkts) { in net_pkt_slab2str()
365 static inline const char *slab2str(struct k_mem_slab *slab) in slab2str() argument
367 return net_pkt_slab2str(slab); in slab2str()
451 if (pkt->slab == &rx_pkts) { in net_pkt_get_frag_debug()
560 slab2str(pkt->slab), k_mem_slab_num_free_get(pkt->slab),
616 k_mem_slab_free(pkt->slab, (void *)pkt);
641 slab2str(pkt->slab), k_mem_slab_num_free_get(pkt->slab),
870 static struct net_pkt_alloc_stats_slab *find_alloc_stats(struct k_mem_slab *slab) argument
873 if (tmp->slab == slab) {
888 pkt->alloc_stats = find_alloc_stats(pkt->slab); \
904 pkt->alloc_stats = find_alloc_stats(pkt->slab); \
1303 pool = pkt->slab == &tx_pkts ? &tx_bufs : &rx_bufs;
1421 pool = pkt->slab == &tx_pkts ? &tx_bufs : &rx_bufs;
1455 static struct net_pkt *pkt_alloc(struct k_mem_slab *slab, k_timeout_t timeout, argument
1458 static struct net_pkt *pkt_alloc(struct k_mem_slab *slab, k_timeout_t timeout)
1477 ret = k_mem_slab_alloc(slab, (void **)&pkt, timeout);
1485 pkt->slab = slab;
1503 if (&tx_pkts == slab) {
1505 } else if (&rx_pkts == slab) {
1541 struct net_pkt *net_pkt_alloc_from_slab_debug(struct k_mem_slab *slab, argument
1545 struct net_pkt *net_pkt_alloc_from_slab(struct k_mem_slab *slab,
1549 if (!slab) {
1554 return pkt_alloc(slab, timeout, caller, line);
1556 return pkt_alloc(slab, timeout);
1575 static struct net_pkt *pkt_alloc_on_iface(struct k_mem_slab *slab, argument
1580 static struct net_pkt *pkt_alloc_on_iface(struct k_mem_slab *slab,
1589 pkt = pkt_alloc(slab, timeout, caller, line);
1591 pkt = pkt_alloc(slab, timeout);
1637 pkt_alloc_with_buffer(struct k_mem_slab *slab, argument
1647 pkt_alloc_with_buffer(struct k_mem_slab *slab,
1662 pkt = pkt_alloc_on_iface(slab, iface, timeout, caller, line);
1664 pkt = pkt_alloc_on_iface(slab, iface, timeout);
2120 struct k_mem_slab *slab, argument
2129 clone_pkt = pkt_alloc_with_buffer(slab, net_pkt_iface(pkt),
2134 clone_pkt = pkt_alloc_with_buffer(slab, net_pkt_iface(pkt),
2173 return net_pkt_clone_internal(pkt, pkt->slab, timeout);