Lines Matching refs:sgt_cache
876 struct dpaa2_eth_sgt_cache *sgt_cache; in dpaa2_eth_build_sg_fd_single_buf() local
885 sgt_cache = this_cpu_ptr(priv->sgt_cache); in dpaa2_eth_build_sg_fd_single_buf()
888 if (sgt_cache->count == 0) in dpaa2_eth_build_sg_fd_single_buf()
892 sgt_buf = sgt_cache->buf[--sgt_cache->count]; in dpaa2_eth_build_sg_fd_single_buf()
935 if (sgt_cache->count >= DPAA2_ETH_SGT_CACHE_SIZE) in dpaa2_eth_build_sg_fd_single_buf()
938 sgt_cache->buf[sgt_cache->count++] = sgt_buf; in dpaa2_eth_build_sg_fd_single_buf()
1007 struct dpaa2_eth_sgt_cache *sgt_cache; in dpaa2_eth_free_tx_fd() local
1084 sgt_cache = this_cpu_ptr(priv->sgt_cache); in dpaa2_eth_free_tx_fd()
1088 if (sgt_cache->count >= DPAA2_ETH_SGT_CACHE_SIZE) in dpaa2_eth_free_tx_fd()
1091 sgt_cache->buf[sgt_cache->count++] = buffer_start; in dpaa2_eth_free_tx_fd()
1514 struct dpaa2_eth_sgt_cache *sgt_cache; in dpaa2_eth_sgt_cache_drain() local
1519 sgt_cache = per_cpu_ptr(priv->sgt_cache, k); in dpaa2_eth_sgt_cache_drain()
1520 count = sgt_cache->count; in dpaa2_eth_sgt_cache_drain()
1523 kfree(sgt_cache->buf[i]); in dpaa2_eth_sgt_cache_drain()
1524 sgt_cache->count = 0; in dpaa2_eth_sgt_cache_drain()
4384 priv->sgt_cache = alloc_percpu(*priv->sgt_cache); in dpaa2_eth_probe()
4385 if (!priv->sgt_cache) { in dpaa2_eth_probe()
4477 free_percpu(priv->sgt_cache); in dpaa2_eth_probe()
4530 free_percpu(priv->sgt_cache); in dpaa2_eth_remove()