Lines Matching refs:sgt_cache
878 struct dpaa2_eth_sgt_cache *sgt_cache; in dpaa2_eth_build_sg_fd_single_buf() local
887 sgt_cache = this_cpu_ptr(priv->sgt_cache); in dpaa2_eth_build_sg_fd_single_buf()
890 if (sgt_cache->count == 0) in dpaa2_eth_build_sg_fd_single_buf()
894 sgt_buf = sgt_cache->buf[--sgt_cache->count]; in dpaa2_eth_build_sg_fd_single_buf()
937 if (sgt_cache->count >= DPAA2_ETH_SGT_CACHE_SIZE) in dpaa2_eth_build_sg_fd_single_buf()
940 sgt_cache->buf[sgt_cache->count++] = sgt_buf; in dpaa2_eth_build_sg_fd_single_buf()
1009 struct dpaa2_eth_sgt_cache *sgt_cache; in dpaa2_eth_free_tx_fd() local
1086 sgt_cache = this_cpu_ptr(priv->sgt_cache); in dpaa2_eth_free_tx_fd()
1090 if (sgt_cache->count >= DPAA2_ETH_SGT_CACHE_SIZE) in dpaa2_eth_free_tx_fd()
1093 sgt_cache->buf[sgt_cache->count++] = buffer_start; in dpaa2_eth_free_tx_fd()
1517 struct dpaa2_eth_sgt_cache *sgt_cache; in dpaa2_eth_sgt_cache_drain() local
1522 sgt_cache = per_cpu_ptr(priv->sgt_cache, k); in dpaa2_eth_sgt_cache_drain()
1523 count = sgt_cache->count; in dpaa2_eth_sgt_cache_drain()
1526 kfree(sgt_cache->buf[i]); in dpaa2_eth_sgt_cache_drain()
1527 sgt_cache->count = 0; in dpaa2_eth_sgt_cache_drain()
4393 priv->sgt_cache = alloc_percpu(*priv->sgt_cache); in dpaa2_eth_probe()
4394 if (!priv->sgt_cache) { in dpaa2_eth_probe()
4487 free_percpu(priv->sgt_cache); in dpaa2_eth_probe()
4542 free_percpu(priv->sgt_cache); in dpaa2_eth_remove()