Searched refs:ring_to_dev (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.10/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 | 311 struct device *dev = ring_to_dev(ring); in hns_nic_net_xmit_hw()
|
/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_enet.c | 1089 struct device *dev = ring_to_dev(ring); in hns3_fill_desc() 1335 struct device *dev = ring_to_dev(ring); in hns3_clear_desc() 2364 cb->dma = dma_map_page(ring_to_dev(ring), cb->priv, 0, in hns3_map_buffer() 2367 if (unlikely(dma_mapping_error(ring_to_dev(ring), cb->dma))) in hns3_map_buffer() 2377 dma_unmap_single(ring_to_dev(ring), cb->dma, cb->length, in hns3_unmap_buffer() 2380 dma_unmap_page(ring_to_dev(ring), cb->dma, cb->length, in hns3_unmap_buffer() 2418 dma_free_coherent(ring_to_dev(ring), size, in hns3_free_desc() 2428 ring->desc = dma_alloc_coherent(ring_to_dev(ring), size, in hns3_alloc_desc() 2505 dma_sync_single_for_device(ring_to_dev(ring), in hns3_reuse_buffer() 2969 dma_sync_single_for_cpu(ring_to_dev(ring), in hns3_add_frag() [all …]
|
D | hns3_enet.h | 544 #define ring_to_dev(ring) ((ring)->dev) macro
|