Lines Matching refs:ring_header
979 dma_free_coherent(&pdev->dev, adapter->ring_header.size, in atl1c_free_ring_resources()
980 adapter->ring_header.desc, adapter->ring_header.dma); in atl1c_free_ring_resources()
981 adapter->ring_header.desc = NULL; in atl1c_free_ring_resources()
1010 struct atl1c_ring_header *ring_header = &adapter->ring_header; in atl1c_setup_ring_resources() local
1054 ring_header->size = in atl1c_setup_ring_resources()
1060 ring_header->desc = dma_alloc_coherent(&pdev->dev, ring_header->size, in atl1c_setup_ring_resources()
1061 &ring_header->dma, GFP_KERNEL); in atl1c_setup_ring_resources()
1062 if (unlikely(!ring_header->desc)) { in atl1c_setup_ring_resources()
1068 tpd_ring[0].dma = roundup(ring_header->dma, 8); in atl1c_setup_ring_resources()
1069 offset = tpd_ring[0].dma - ring_header->dma; in atl1c_setup_ring_resources()
1071 tpd_ring[i].dma = ring_header->dma + offset; in atl1c_setup_ring_resources()
1072 tpd_ring[i].desc = (u8 *)ring_header->desc + offset; in atl1c_setup_ring_resources()
1079 rfd_ring[i].dma = ring_header->dma + offset; in atl1c_setup_ring_resources()
1080 rfd_ring[i].desc = (u8 *)ring_header->desc + offset; in atl1c_setup_ring_resources()
1086 rrd_ring[i].dma = ring_header->dma + offset; in atl1c_setup_ring_resources()
1087 rrd_ring[i].desc = (u8 *)ring_header->desc + offset; in atl1c_setup_ring_resources()