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()
149 struct hnae_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use]; in fill_desc() local
156 desc_cb->priv = priv; in fill_desc()
157 desc_cb->length = size; in fill_desc()
158 desc_cb->dma = dma; in fill_desc()
159 desc_cb->type = type; in fill_desc()
405 ring->desc_cb[ring->next_to_use].dma, in hns_nic_net_xmit_hw()
406 ring->desc_cb[ring->next_to_use].length, in hns_nic_net_xmit_hw()
410 ring->desc_cb[next_to_use].dma, in hns_nic_net_xmit_hw()
411 ring->desc_cb[next_to_use].length, in hns_nic_net_xmit_hw()
434 struct hnae_desc_cb *desc_cb) in hns_nic_reuse_page() argument
455 skb_add_rx_frag(skb, i, desc_cb->priv, desc_cb->page_offset + pull_len, in hns_nic_reuse_page()
459 if (unlikely(page_to_nid(desc_cb->priv) != numa_node_id())) in hns_nic_reuse_page()
464 if (likely(page_count(desc_cb->priv) == 1)) { in hns_nic_reuse_page()
466 desc_cb->page_offset ^= truesize; in hns_nic_reuse_page()
468 desc_cb->reuse_flag = 1; in hns_nic_reuse_page()
470 get_page(desc_cb->priv); in hns_nic_reuse_page()
476 desc_cb->page_offset += truesize; in hns_nic_reuse_page()
478 if (desc_cb->page_offset <= last_offset) { in hns_nic_reuse_page()
479 desc_cb->reuse_flag = 1; in hns_nic_reuse_page()
481 get_page(desc_cb->priv); in hns_nic_reuse_page()
570 struct hnae_desc_cb *desc_cb; in hns_nic_poll_rx_skb() local
577 desc_cb = &ring->desc_cb[ring->next_to_clean]; in hns_nic_poll_rx_skb()
581 va = (unsigned char *)desc_cb->buf + desc_cb->page_offset; in hns_nic_poll_rx_skb()
603 if (likely(page_to_nid(desc_cb->priv) == numa_node_id())) in hns_nic_poll_rx_skb()
604 desc_cb->reuse_flag = 1; in hns_nic_poll_rx_skb()
606 put_page(desc_cb->priv); in hns_nic_poll_rx_skb()
621 hns_nic_reuse_page(skb, 0, ring, pull_len, desc_cb); in hns_nic_poll_rx_skb()
630 desc_cb = &ring->desc_cb[ring->next_to_clean]; in hns_nic_poll_rx_skb()
632 hns_nic_reuse_page(skb, i, ring, 0, desc_cb); in hns_nic_poll_rx_skb()
689 struct hnae_desc_cb *desc_cb; in hns_nic_alloc_rx_buffers() local
694 desc_cb = &ring->desc_cb[ring->next_to_use]; in hns_nic_alloc_rx_buffers()
695 if (desc_cb->reuse_flag) { in hns_nic_alloc_rx_buffers()
943 struct hnae_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_clean]; in hns_nic_reclaim_one_desc() local
945 (*pkts) += (desc_cb->type == DESC_TYPE_SKB); in hns_nic_reclaim_one_desc()
946 (*bytes) += desc_cb->length; in hns_nic_reclaim_one_desc()
999 prefetch(&ring->desc_cb[ring->next_to_clean]); in hns_nic_tx_poll_one()
1671 if (ring->desc_cb[head].page_offset != 0) { in hns_nic_clear_all_rx_fetch()