Lines Matching refs:dma
53 #include <linux/dma-mapping.h>
1072 &ring_header->dma);
1082 tpd_ring->dma = ring_header->dma;
1083 offset = (tpd_ring->dma & 0x7) ? (8 - (ring_header->dma & 0x7)) : 0;
1084 tpd_ring->dma += offset;
1089 rfd_ring->dma = tpd_ring->dma + tpd_ring->size;
1090 offset = (rfd_ring->dma & 0x7) ? (8 - (rfd_ring->dma & 0x7)) : 0;
1091 rfd_ring->dma += offset;
1097 rrd_ring->dma = rfd_ring->dma + rfd_ring->size;
1098 offset = (rrd_ring->dma & 0x7) ? (8 - (rrd_ring->dma & 0x7)) : 0;
1099 rrd_ring->dma += offset;
1105 adapter->cmb.dma = rrd_ring->dma + rrd_ring->size;
1106 offset = (adapter->cmb.dma & 0x7) ? (8 - (adapter->cmb.dma & 0x7)) : 0;
1107 adapter->cmb.dma += offset;
1112 adapter->smb.dma = adapter->cmb.dma + sizeof(struct coals_msg_block);
1113 offset = (adapter->smb.dma & 0x7) ? (8 - (adapter->smb.dma & 0x7)) : 0;
1114 adapter->smb.dma += offset;
1158 if (buffer_info->dma) {
1159 pci_unmap_page(pdev, buffer_info->dma,
1161 buffer_info->dma = 0;
1197 if (buffer_info->dma) {
1198 pci_unmap_page(pdev, buffer_info->dma,
1200 buffer_info->dma = 0;
1241 ring_header->dma);
1245 tpd_ring->dma = 0;
1249 rfd_ring->dma = 0;
1252 rrd_ring->dma = 0;
1254 adapter->cmb.dma = 0;
1257 adapter->smb.dma = 0;
1492 iowrite32((u32) ((adapter->tpd_ring.dma & 0xffffffff00000000ULL) >> 32),
1495 iowrite32((u32) (adapter->rfd_ring.dma & 0x00000000ffffffffULL),
1497 iowrite32((u32) (adapter->rrd_ring.dma & 0x00000000ffffffffULL),
1499 iowrite32((u32) (adapter->tpd_ring.dma & 0x00000000ffffffffULL),
1501 iowrite32((u32) (adapter->cmb.dma & 0x00000000ffffffffULL),
1503 iowrite32((u32) (adapter->smb.dma & 0x00000000ffffffffULL),
1883 buffer_info->dma = pci_map_page(pdev, page, offset,
1886 rfd_desc->buffer_addr = cpu_to_le64(buffer_info->dma);
2009 pci_unmap_page(adapter->pdev, buffer_info->dma,
2011 buffer_info->dma = 0;
2077 if (buffer_info->dma) {
2078 pci_unmap_page(adapter->pdev, buffer_info->dma,
2080 buffer_info->dma = 0;
2223 buffer_info->dma = pci_map_page(adapter->pdev, page,
2249 buffer_info->dma = pci_map_page(adapter->pdev,
2261 buffer_info->dma = pci_map_page(adapter->pdev, page,
2284 buffer_info->dma = pci_map_page(adapter->pdev,
2313 tpd->buffer_addr = cpu_to_le64(buffer_info->dma);