Lines Matching refs:ring_header

888 	pci_free_consistent(pdev, adapter->ring_header.size,  in atl1c_free_ring_resources()
889 adapter->ring_header.desc, in atl1c_free_ring_resources()
890 adapter->ring_header.dma); in atl1c_free_ring_resources()
891 adapter->ring_header.desc = NULL; in atl1c_free_ring_resources()
913 struct atl1c_ring_header *ring_header = &adapter->ring_header; in atl1c_setup_ring_resources() local
955 ring_header->size = size = in atl1c_setup_ring_resources()
962 ring_header->desc = pci_alloc_consistent(pdev, ring_header->size, in atl1c_setup_ring_resources()
963 &ring_header->dma); in atl1c_setup_ring_resources()
964 if (unlikely(!ring_header->desc)) { in atl1c_setup_ring_resources()
968 memset(ring_header->desc, 0, ring_header->size); in atl1c_setup_ring_resources()
971 tpd_ring[0].dma = roundup(ring_header->dma, 8); in atl1c_setup_ring_resources()
972 offset = tpd_ring[0].dma - ring_header->dma; in atl1c_setup_ring_resources()
974 tpd_ring[i].dma = ring_header->dma + offset; in atl1c_setup_ring_resources()
975 tpd_ring[i].desc = (u8 *) ring_header->desc + offset; in atl1c_setup_ring_resources()
982 rfd_ring[i].dma = ring_header->dma + offset; in atl1c_setup_ring_resources()
983 rfd_ring[i].desc = (u8 *) ring_header->desc + offset; in atl1c_setup_ring_resources()
991 rrd_ring[i].dma = ring_header->dma + offset; in atl1c_setup_ring_resources()
992 rrd_ring[i].desc = (u8 *) ring_header->desc + offset; in atl1c_setup_ring_resources()
998 adapter->smb.dma = ring_header->dma + offset; in atl1c_setup_ring_resources()
999 adapter->smb.smb = (u8 *)ring_header->desc + offset; in atl1c_setup_ring_resources()