Searched refs:desc_cb (Results 1 – 10 of 10) sorted by relevance
269 struct hnae_desc_cb *desc_cb; member616 int ret = hnae_reserve_buffer_map(ring, &ring->desc_cb[i]); in hnae_alloc_buffer_attach()621 ring->desc[i].addr = cpu_to_le64(ring->desc_cb[i].dma); in hnae_alloc_buffer_attach()628 ring->q->handle->bops->unmap_buffer(ring, &ring->desc_cb[i]); in hnae_buffer_detach()635 struct hnae_desc_cb *cb = &ring->desc_cb[i]; in hnae_free_buffer_detach()637 if (!ring->desc_cb[i].dma) in hnae_free_buffer_detach()650 bops->unmap_buffer(ring, &ring->desc_cb[i]); in hnae_replace_buffer()651 ring->desc_cb[i] = *res_cb; in hnae_replace_buffer()652 ring->desc[i].addr = cpu_to_le64(ring->desc_cb[i].dma); in hnae_replace_buffer()658 ring->desc_cb[i].reuse_flag = 0; in hnae_reuse_buffer()[all …]
42 struct hnae_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use]; in fill_v2_desc_hw() local55 desc_cb->priv = priv; in fill_v2_desc_hw()56 desc_cb->length = size; in fill_v2_desc_hw()57 desc_cb->dma = dma; in fill_v2_desc_hw()58 desc_cb->type = type; in fill_v2_desc_hw()150 struct hnae_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use]; in fill_desc() local157 desc_cb->priv = priv; in fill_desc()158 desc_cb->length = size; in fill_desc()159 desc_cb->dma = dma; in fill_desc()160 desc_cb->type = type; in fill_desc()[all …]
185 kfree(ring->desc_cb); in hnae_fini_ring()186 ring->desc_cb = NULL; in hnae_fini_ring()203 assert(!ring->desc && !ring->desc_cb && !ring->desc_dma_addr); in hnae_init_ring()209 ring->desc_cb = kcalloc(ring->desc_num, sizeof(ring->desc_cb[0]), in hnae_init_ring()211 if (!ring->desc_cb) { in hnae_init_ring()231 kfree(ring->desc_cb); in hnae_init_ring()232 ring->desc_cb = NULL; in hnae_init_ring()
469 ring->desc_cb = NULL; in hns_rcb_ring_get_cfg()
1087 struct hns3_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use]; in hns3_fill_desc() local1112 desc_cb->priv = priv; in hns3_fill_desc()1113 desc_cb->length = size; in hns3_fill_desc()1114 desc_cb->dma = dma; in hns3_fill_desc()1115 desc_cb->type = type; in hns3_fill_desc()1350 if (!ring->desc_cb[ring->next_to_use].dma) in hns3_clear_desc()1354 if (ring->desc_cb[ring->next_to_use].type == DESC_TYPE_SKB || in hns3_clear_desc()1355 ring->desc_cb[ring->next_to_use].type == in hns3_clear_desc()1358 ring->desc_cb[ring->next_to_use].dma, in hns3_clear_desc()1359 ring->desc_cb[ring->next_to_use].length, in hns3_clear_desc()[all …]
118 __entry->buf_dma = ring->desc_cb[ring->next_to_clean].dma;
380 struct hns3_desc_cb *desc_cb; member
576 struct iavf_aq_desc desc_cb; in iavf_clean_asq() local588 desc_cb = *desc; in iavf_clean_asq()589 cb_func(hw, &desc_cb); in iavf_clean_asq()
34 struct hclgevf_desc_cb *desc_cb; member
726 struct i40e_aq_desc desc_cb; in i40e_clean_asq() local738 desc_cb = *desc; in i40e_clean_asq()739 cb_func(hw, &desc_cb); in i40e_clean_asq()