Lines Matching refs:desc_cb
269 struct hnae_desc_cb *desc_cb; member
610 int ret = hnae_reserve_buffer_map(ring, &ring->desc_cb[i]); in hnae_alloc_buffer_attach()
615 ring->desc[i].addr = cpu_to_le64(ring->desc_cb[i].dma); in hnae_alloc_buffer_attach()
622 ring->q->handle->bops->unmap_buffer(ring, &ring->desc_cb[i]); in hnae_buffer_detach()
629 struct hnae_desc_cb *cb = &ring->desc_cb[i]; in hnae_free_buffer_detach()
631 if (!ring->desc_cb[i].dma) in hnae_free_buffer_detach()
644 bops->unmap_buffer(ring, &ring->desc_cb[i]); in hnae_replace_buffer()
645 ring->desc_cb[i] = *res_cb; in hnae_replace_buffer()
646 ring->desc[i].addr = cpu_to_le64(ring->desc_cb[i].dma); in hnae_replace_buffer()
652 ring->desc_cb[i].reuse_flag = 0; in hnae_reuse_buffer()
653 ring->desc[i].addr = cpu_to_le64(ring->desc_cb[i].dma in hnae_reuse_buffer()
654 + ring->desc_cb[i].page_offset); in hnae_reuse_buffer()
667 ring->desc[j].addr = cpu_to_le64(ring->desc_cb[j].dma); in hnae_reinit_all_ring_desc()
682 ring->desc_cb[j].page_offset = 0; in hnae_reinit_all_ring_page_off()
684 cpu_to_le64(ring->desc_cb[j].dma)) in hnae_reinit_all_ring_page_off()
686 cpu_to_le64(ring->desc_cb[j].dma); in hnae_reinit_all_ring_page_off()