Home
last modified time | relevance | path

Searched refs:sgt_buf (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-eth.c867 void *sgt_buf = NULL; in dpaa2_eth_sgt_get() local
875 sgt_buf = napi_alloc_frag_align(sgt_buf_size, DPAA2_ETH_TX_BUF_ALIGN); in dpaa2_eth_sgt_get()
877 sgt_buf = sgt_cache->buf[--sgt_cache->count]; in dpaa2_eth_sgt_get()
878 if (!sgt_buf) in dpaa2_eth_sgt_get()
881 memset(sgt_buf, 0, sgt_buf_size); in dpaa2_eth_sgt_get()
883 return sgt_buf; in dpaa2_eth_sgt_get()
886 void dpaa2_eth_sgt_recycle(struct dpaa2_eth_priv *priv, void *sgt_buf) in dpaa2_eth_sgt_recycle() argument
892 skb_free_frag(sgt_buf); in dpaa2_eth_sgt_recycle()
894 sgt_cache->buf[sgt_cache->count++] = sgt_buf; in dpaa2_eth_sgt_recycle()
904 void *sgt_buf = NULL; in dpaa2_eth_build_sg_fd() local
[all …]
H A Ddpaa2-eth.h859 void dpaa2_eth_sgt_recycle(struct dpaa2_eth_priv *priv, void *sgt_buf);