Lines Matching refs:desc_cb

40 	struct hnae_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use];  in fill_v2_desc_hw()  local
53 desc_cb->priv = priv; in fill_v2_desc_hw()
54 desc_cb->length = size; in fill_v2_desc_hw()
55 desc_cb->dma = dma; in fill_v2_desc_hw()
56 desc_cb->type = type; in fill_v2_desc_hw()
148 struct hnae_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use]; in fill_desc() local
155 desc_cb->priv = priv; in fill_desc()
156 desc_cb->length = size; in fill_desc()
157 desc_cb->dma = dma; in fill_desc()
158 desc_cb->type = type; in fill_desc()
380 ring->desc_cb[ring->next_to_use].dma, in hns_nic_net_xmit_hw()
381 ring->desc_cb[ring->next_to_use].length, in hns_nic_net_xmit_hw()
385 ring->desc_cb[next_to_use].dma, in hns_nic_net_xmit_hw()
386 ring->desc_cb[next_to_use].length, in hns_nic_net_xmit_hw()
409 struct hnae_desc_cb *desc_cb) in hns_nic_reuse_page() argument
430 skb_add_rx_frag(skb, i, desc_cb->priv, desc_cb->page_offset + pull_len, in hns_nic_reuse_page()
434 if (unlikely(page_to_nid(desc_cb->priv) != numa_node_id())) in hns_nic_reuse_page()
439 if (likely(page_count(desc_cb->priv) == 1)) { in hns_nic_reuse_page()
441 desc_cb->page_offset ^= truesize; in hns_nic_reuse_page()
443 desc_cb->reuse_flag = 1; in hns_nic_reuse_page()
445 get_page(desc_cb->priv); in hns_nic_reuse_page()
451 desc_cb->page_offset += truesize; in hns_nic_reuse_page()
453 if (desc_cb->page_offset <= last_offset) { in hns_nic_reuse_page()
454 desc_cb->reuse_flag = 1; in hns_nic_reuse_page()
456 get_page(desc_cb->priv); in hns_nic_reuse_page()
545 struct hnae_desc_cb *desc_cb; in hns_nic_poll_rx_skb() local
552 desc_cb = &ring->desc_cb[ring->next_to_clean]; in hns_nic_poll_rx_skb()
556 va = (unsigned char *)desc_cb->buf + desc_cb->page_offset; in hns_nic_poll_rx_skb()
578 if (likely(page_to_nid(desc_cb->priv) == numa_node_id())) in hns_nic_poll_rx_skb()
579 desc_cb->reuse_flag = 1; in hns_nic_poll_rx_skb()
581 put_page(desc_cb->priv); in hns_nic_poll_rx_skb()
596 hns_nic_reuse_page(skb, 0, ring, pull_len, desc_cb); in hns_nic_poll_rx_skb()
605 desc_cb = &ring->desc_cb[ring->next_to_clean]; in hns_nic_poll_rx_skb()
607 hns_nic_reuse_page(skb, i, ring, 0, desc_cb); in hns_nic_poll_rx_skb()
664 struct hnae_desc_cb *desc_cb; in hns_nic_alloc_rx_buffers() local
669 desc_cb = &ring->desc_cb[ring->next_to_use]; in hns_nic_alloc_rx_buffers()
670 if (desc_cb->reuse_flag) { in hns_nic_alloc_rx_buffers()
918 struct hnae_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_clean]; in hns_nic_reclaim_one_desc() local
920 (*pkts) += (desc_cb->type == DESC_TYPE_SKB); in hns_nic_reclaim_one_desc()
921 (*bytes) += desc_cb->length; in hns_nic_reclaim_one_desc()
974 prefetch(&ring->desc_cb[ring->next_to_clean]); in hns_nic_tx_poll_one()
1646 if (ring->desc_cb[head].page_offset != 0) { in hns_nic_clear_all_rx_fetch()