Lines Matching refs:ring_header
964 dma_free_coherent(&pdev->dev, adapter->ring_header.size, in atl1c_free_ring_resources()
965 adapter->ring_header.desc, adapter->ring_header.dma); in atl1c_free_ring_resources()
966 adapter->ring_header.desc = NULL; in atl1c_free_ring_resources()
989 struct atl1c_ring_header *ring_header = &adapter->ring_header; in atl1c_setup_ring_resources() local
1033 ring_header->size = in atl1c_setup_ring_resources()
1039 ring_header->desc = dma_alloc_coherent(&pdev->dev, ring_header->size, in atl1c_setup_ring_resources()
1040 &ring_header->dma, GFP_KERNEL); in atl1c_setup_ring_resources()
1041 if (unlikely(!ring_header->desc)) { in atl1c_setup_ring_resources()
1047 tpd_ring[0].dma = roundup(ring_header->dma, 8); in atl1c_setup_ring_resources()
1048 offset = tpd_ring[0].dma - ring_header->dma; in atl1c_setup_ring_resources()
1050 tpd_ring[i].dma = ring_header->dma + offset; in atl1c_setup_ring_resources()
1051 tpd_ring[i].desc = (u8 *)ring_header->desc + offset; in atl1c_setup_ring_resources()
1058 rfd_ring[i].dma = ring_header->dma + offset; in atl1c_setup_ring_resources()
1059 rfd_ring[i].desc = (u8 *)ring_header->desc + offset; in atl1c_setup_ring_resources()
1065 rrd_ring[i].dma = ring_header->dma + offset; in atl1c_setup_ring_resources()
1066 rrd_ring[i].desc = (u8 *)ring_header->desc + offset; in atl1c_setup_ring_resources()