Searched refs:ring_to_dev (Results 1 – 5 of 5) sorted by relevance
/drivers/net/ethernet/hisilicon/hns/ |
D | hnae.c | 69 cb->dma = dma_map_page(ring_to_dev(ring), cb->priv, 0, in hnae_map_buffer() 72 if (dma_mapping_error(ring_to_dev(ring), cb->dma)) in hnae_map_buffer() 81 dma_unmap_single(ring_to_dev(ring), cb->dma, cb->length, in hnae_unmap_buffer() 84 dma_unmap_page(ring_to_dev(ring), cb->dma, cb->length, in hnae_unmap_buffer() 149 dma_unmap_single(ring_to_dev(ring), ring->desc_dma_addr, in hnae_free_desc() 166 ring->desc_dma_addr = dma_map_single(ring_to_dev(ring), in hnae_alloc_desc() 168 if (dma_mapping_error(ring_to_dev(ring), ring->desc_dma_addr)) { in hnae_alloc_desc()
|
D | hnae.h | 570 #define ring_to_dev(ring) ((ring)->q->dev->dev) macro
|
D | hns_enet.c | 310 struct device *dev = ring_to_dev(ring); in hns_nic_net_xmit_hw()
|
/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_enet.c | 1112 struct device *dev = ring_to_dev(ring); in hns3_fill_desc() 1291 struct device *dev = ring_to_dev(ring); in hns3_clear_desc() 2152 cb->dma = dma_map_page(ring_to_dev(ring), cb->priv, 0, in hns3_map_buffer() 2155 if (unlikely(dma_mapping_error(ring_to_dev(ring), cb->dma))) in hns3_map_buffer() 2165 dma_unmap_single(ring_to_dev(ring), cb->dma, cb->length, in hns3_unmap_buffer() 2168 dma_unmap_page(ring_to_dev(ring), cb->dma, cb->length, in hns3_unmap_buffer() 2205 dma_free_coherent(ring_to_dev(ring), size, in hns3_free_desc() 2215 ring->desc = dma_alloc_coherent(ring_to_dev(ring), size, in hns3_alloc_desc() 3601 ring->desc_cb = devm_kcalloc(ring_to_dev(ring), ring->desc_num, in hns3_alloc_ring_memory() 3623 devm_kfree(ring_to_dev(ring), ring->desc_cb); in hns3_alloc_ring_memory() [all …]
|
D | hns3_enet.h | 614 #define ring_to_dev(ring) ((ring)->dev) macro
|