Searched refs:ring_to_dev (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns/ |
D | hnae.c | 71 cb->dma = dma_map_page(ring_to_dev(ring), cb->priv, 0, in hnae_map_buffer() 74 if (dma_mapping_error(ring_to_dev(ring), cb->dma)) in hnae_map_buffer() 83 dma_unmap_single(ring_to_dev(ring), cb->dma, cb->length, in hnae_unmap_buffer() 86 dma_unmap_page(ring_to_dev(ring), cb->dma, cb->length, in hnae_unmap_buffer() 151 dma_unmap_single(ring_to_dev(ring), ring->desc_dma_addr, in hnae_free_desc() 168 ring->desc_dma_addr = dma_map_single(ring_to_dev(ring), in hnae_alloc_desc() 170 if (dma_mapping_error(ring_to_dev(ring), ring->desc_dma_addr)) { in hnae_alloc_desc()
|
D | hnae.h | 564 #define ring_to_dev(ring) ((ring)->q->dev->dev) macro
|
D | hns_enet.c | 332 struct device *dev = ring_to_dev(ring); in hns_nic_net_xmit_hw()
|
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_enet.c | 1046 dev_warn(ring_to_dev(ring), "failed to allocate tx spare buffer, exceed to max order\n"); in hns3_init_tx_spare_buffer() 1050 tx_spare = devm_kzalloc(ring_to_dev(ring), sizeof(*tx_spare), in hns3_init_tx_spare_buffer() 1054 dev_warn(ring_to_dev(ring), "failed to allocate hns3_tx_spare\n"); in hns3_init_tx_spare_buffer() 1058 page = alloc_pages_node(dev_to_node(ring_to_dev(ring)), in hns3_init_tx_spare_buffer() 1061 dev_warn(ring_to_dev(ring), "failed to allocate tx spare pages\n"); in hns3_init_tx_spare_buffer() 1065 dma = dma_map_page(ring_to_dev(ring), page, 0, in hns3_init_tx_spare_buffer() 1067 if (dma_mapping_error(ring_to_dev(ring), dma)) { in hns3_init_tx_spare_buffer() 1068 dev_warn(ring_to_dev(ring), "failed to map pages for tx spare\n"); in hns3_init_tx_spare_buffer() 1081 devm_kfree(ring_to_dev(ring), tx_spare); in hns3_init_tx_spare_buffer() 1154 dma_sync_single_for_cpu(ring_to_dev(ring), dma, len, in hns3_tx_spare_reclaim_cb() [all …]
|
D | hns3_enet.h | 666 #define ring_to_dev(ring) ((ring)->dev) macro
|