Home
last modified time | relevance | path

Searched refs:desc_cb (Results 1 – 6 of 6) sorted by relevance

/drivers/net/ethernet/hisilicon/hns/
Dhns_enet.c39 struct hnae_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use]; in fill_desc() local
46 desc_cb->priv = priv; in fill_desc()
47 desc_cb->length = size; in fill_desc()
48 desc_cb->dma = dma; in fill_desc()
49 desc_cb->type = type; in fill_desc()
185 dma_unmap_page(dev, ring->desc_cb[next_to_use].dma, in hns_nic_net_xmit_hw()
186 ring->desc_cb[next_to_use].length, in hns_nic_net_xmit_hw()
192 dma_unmap_single(dev, ring->desc_cb[next_to_use].dma, in hns_nic_net_xmit_hw()
193 ring->desc_cb[next_to_use].length, DMA_TO_DEVICE); in hns_nic_net_xmit_hw()
314 hns_nic_reuse_page(struct hnae_desc_cb *desc_cb, int tsize, int last_offset) in hns_nic_reuse_page() argument
[all …]
Dhnae.h224 struct hnae_desc_cb *desc_cb; member
521 int ret = hnae_reserve_buffer_map(ring, &ring->desc_cb[i]); in hnae_alloc_buffer_attach()
526 ring->desc[i].addr = (__le64)ring->desc_cb[i].dma; in hnae_alloc_buffer_attach()
533 ring->q->handle->bops->unmap_buffer(ring, &ring->desc_cb[i]); in hnae_buffer_detach()
540 struct hnae_desc_cb *cb = &ring->desc_cb[i]; in hnae_free_buffer_detach()
542 if (!ring->desc_cb[i].dma) in hnae_free_buffer_detach()
554 struct hnae_desc_cb tmp_cb = ring->desc_cb[i]; in hnae_replace_buffer()
556 bops->unmap_buffer(ring, &ring->desc_cb[i]); in hnae_replace_buffer()
557 ring->desc_cb[i] = *res_cb; in hnae_replace_buffer()
559 ring->desc[i].addr = (__le64)ring->desc_cb[i].dma; in hnae_replace_buffer()
[all …]
Dhnae.c183 kfree(ring->desc_cb); in hnae_fini_ring()
184 ring->desc_cb = NULL; in hnae_fini_ring()
200 assert(!ring->desc && !ring->desc_cb && !ring->desc_dma_addr); in hnae_init_ring()
206 ring->desc_cb = kcalloc(ring->desc_num, sizeof(ring->desc_cb[0]), in hnae_init_ring()
208 if (!ring->desc_cb) { in hnae_init_ring()
228 kfree(ring->desc_cb); in hnae_init_ring()
229 ring->desc_cb = NULL; in hnae_init_ring()
Dhns_dsaf_rcb.c410 ring->desc_cb = NULL; in hns_rcb_ring_get_cfg()
/drivers/net/ethernet/intel/i40evf/
Di40e_adminq.c612 struct i40e_aq_desc desc_cb; in i40e_clean_asq() local
624 desc_cb = *desc; in i40e_clean_asq()
625 cb_func(hw, &desc_cb); in i40e_clean_asq()
/drivers/net/ethernet/intel/i40e/
Di40e_adminq.c680 struct i40e_aq_desc desc_cb; in i40e_clean_asq() local
692 desc_cb = *desc; in i40e_clean_asq()
693 cb_func(hw, &desc_cb); in i40e_clean_asq()