Lines Matching refs:sgt_cache
832 struct dpaa2_eth_sgt_cache *sgt_cache; in dpaa2_eth_sgt_get() local
836 sgt_cache = this_cpu_ptr(priv->sgt_cache); in dpaa2_eth_sgt_get()
840 if (sgt_cache->count == 0) in dpaa2_eth_sgt_get()
843 sgt_buf = sgt_cache->buf[--sgt_cache->count]; in dpaa2_eth_sgt_get()
854 struct dpaa2_eth_sgt_cache *sgt_cache; in dpaa2_eth_sgt_recycle() local
856 sgt_cache = this_cpu_ptr(priv->sgt_cache); in dpaa2_eth_sgt_recycle()
857 if (sgt_cache->count >= DPAA2_ETH_SGT_CACHE_SIZE) in dpaa2_eth_sgt_recycle()
860 sgt_cache->buf[sgt_cache->count++] = sgt_buf; in dpaa2_eth_sgt_recycle()
1785 struct dpaa2_eth_sgt_cache *sgt_cache; in dpaa2_eth_sgt_cache_drain() local
1790 sgt_cache = per_cpu_ptr(priv->sgt_cache, k); in dpaa2_eth_sgt_cache_drain()
1791 count = sgt_cache->count; in dpaa2_eth_sgt_cache_drain()
1794 skb_free_frag(sgt_cache->buf[i]); in dpaa2_eth_sgt_cache_drain()
1795 sgt_cache->count = 0; in dpaa2_eth_sgt_cache_drain()
4669 priv->sgt_cache = alloc_percpu(*priv->sgt_cache); in dpaa2_eth_probe()
4670 if (!priv->sgt_cache) { in dpaa2_eth_probe()
4772 free_percpu(priv->sgt_cache); in dpaa2_eth_probe()
4828 free_percpu(priv->sgt_cache); in dpaa2_eth_remove()