Lines Matching refs:sgt_cache
866 struct dpaa2_eth_sgt_cache *sgt_cache; in dpaa2_eth_sgt_get() local
870 sgt_cache = this_cpu_ptr(priv->sgt_cache); in dpaa2_eth_sgt_get()
874 if (sgt_cache->count == 0) in dpaa2_eth_sgt_get()
877 sgt_buf = sgt_cache->buf[--sgt_cache->count]; in dpaa2_eth_sgt_get()
888 struct dpaa2_eth_sgt_cache *sgt_cache; in dpaa2_eth_sgt_recycle() local
890 sgt_cache = this_cpu_ptr(priv->sgt_cache); in dpaa2_eth_sgt_recycle()
891 if (sgt_cache->count >= DPAA2_ETH_SGT_CACHE_SIZE) in dpaa2_eth_sgt_recycle()
894 sgt_cache->buf[sgt_cache->count++] = sgt_buf; in dpaa2_eth_sgt_recycle()
1902 struct dpaa2_eth_sgt_cache *sgt_cache; in dpaa2_eth_sgt_cache_drain() local
1907 sgt_cache = per_cpu_ptr(priv->sgt_cache, k); in dpaa2_eth_sgt_cache_drain()
1908 count = sgt_cache->count; in dpaa2_eth_sgt_cache_drain()
1911 skb_free_frag(sgt_cache->buf[i]); in dpaa2_eth_sgt_cache_drain()
1912 sgt_cache->count = 0; in dpaa2_eth_sgt_cache_drain()
4948 priv->sgt_cache = alloc_percpu(*priv->sgt_cache); in dpaa2_eth_probe()
4949 if (!priv->sgt_cache) { in dpaa2_eth_probe()
5053 free_percpu(priv->sgt_cache); in dpaa2_eth_probe()
5108 free_percpu(priv->sgt_cache); in dpaa2_eth_remove()