Searched refs:rx_priv (Results 1 – 2 of 2) sorted by relevance
198 struct vxge_rx_priv *rx_priv; in vxge_rx_alloc() local204 rx_priv = vxge_hw_ring_rxd_private_get(dtrh); in vxge_rx_alloc()222 rx_priv->skb = skb; in vxge_rx_alloc()223 rx_priv->skb_data = NULL; in vxge_rx_alloc()224 rx_priv->data_size = skb_size; in vxge_rx_alloc()236 struct vxge_rx_priv *rx_priv; in vxge_rx_map() local241 rx_priv = vxge_hw_ring_rxd_private_get(dtrh); in vxge_rx_map()243 rx_priv->skb_data = rx_priv->skb->data; in vxge_rx_map()244 dma_addr = dma_map_single(&ring->pdev->dev, rx_priv->skb_data, in vxge_rx_map()245 rx_priv->data_size, DMA_FROM_DEVICE); in vxge_rx_map()[all …]
1897 u32 rx_priv = 0; in hclge_get_rx_priv_buff_alloced() local1903 rx_priv += priv->buf_size; in hclge_get_rx_priv_buff_alloced()1905 return rx_priv; in hclge_get_rx_priv_buff_alloced()1925 u32 rx_priv; in hclge_is_rx_buf_ok() local1941 rx_priv = hclge_get_rx_priv_buff_alloced(buf_alloc); in hclge_is_rx_buf_ok()1942 if (rx_all < rx_priv + shared_std) in hclge_is_rx_buf_ok()1945 shared_buf = rounddown(rx_all - rx_priv, HCLGE_BUF_SIZE_UNIT); in hclge_is_rx_buf_ok()2113 u32 rx_priv = hdev->pkt_buf_size - hclge_get_tx_buff_alloced(buf_alloc); in hclge_only_alloc_priv_buff() local2120 rx_priv = rx_priv / tc_num; in hclge_only_alloc_priv_buff()2123 rx_priv = rx_priv * BUF_RESERVE_PERCENT / BUF_MAX_PERCENT; in hclge_only_alloc_priv_buff()[all …]