Searched refs:ring_to_dev (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.4/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()
|
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_enet.c | 1110 struct device *dev = ring_to_dev(ring); in hns3_fill_desc() 1289 struct device *dev = ring_to_dev(ring); in hns3_clear_desc() 2143 cb->dma = dma_map_page(ring_to_dev(ring), cb->priv, 0, in hns3_map_buffer() 2146 if (unlikely(dma_mapping_error(ring_to_dev(ring), cb->dma))) in hns3_map_buffer() 2156 dma_unmap_single(ring_to_dev(ring), cb->dma, cb->length, in hns3_unmap_buffer() 2159 dma_unmap_page(ring_to_dev(ring), cb->dma, cb->length, in hns3_unmap_buffer() 2196 dma_free_coherent(ring_to_dev(ring), size, in hns3_free_desc() 2206 ring->desc = dma_alloc_coherent(ring_to_dev(ring), size, in hns3_alloc_desc() 3592 ring->desc_cb = devm_kcalloc(ring_to_dev(ring), ring->desc_num, in hns3_alloc_ring_memory() 3614 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
|