Lines Matching refs:sn_dma_map
61 struct sn_dma_maps_s *sn_dma_map = NULL; in get_free_pciio_dmamap() local
68 sn_dma_map = busnum_to_atedmamaps[i]; in get_free_pciio_dmamap()
75 for (i = 0; i < MAX_ATE_MAPS; i++, sn_dma_map++) { in get_free_pciio_dmamap()
76 if (!sn_dma_map->dma_addr) { in get_free_pciio_dmamap()
77 sn_dma_map->dma_addr = -1; in get_free_pciio_dmamap()
78 return( (pciio_dmamap_t) sn_dma_map ); in get_free_pciio_dmamap()
94 struct sn_dma_maps_s *sn_dma_map; in free_pciio_dmamap() local
96 sn_dma_map = (struct sn_dma_maps_s *) dma_map; in free_pciio_dmamap()
97 sn_dma_map->dma_addr = 0; in free_pciio_dmamap()
111 struct sn_dma_maps_s *sn_dma_map = NULL; in find_sn_dma_map() local
114 sn_dma_map = busnum_to_atedmamaps[busnum]; in find_sn_dma_map()
116 for (i = 0; i < MAX_ATE_MAPS; i++, sn_dma_map++) { in find_sn_dma_map()
117 if (sn_dma_map->dma_addr == dma_addr) { in find_sn_dma_map()
118 return sn_dma_map; in find_sn_dma_map()
152 struct sn_dma_maps_s *sn_dma_map; in sn_pci_alloc_consistent() local
211 sn_dma_map = (struct sn_dma_maps_s *)dma_map; in sn_pci_alloc_consistent()
212 sn_dma_map->dma_addr = *dma_handle; in sn_pci_alloc_consistent()
231 struct sn_dma_maps_s *sn_dma_map = NULL; in sn_pci_free_consistent() local
237 sn_dma_map = find_sn_dma_map(dma_handle, hwdev->bus->number); in sn_pci_free_consistent()
242 if (sn_dma_map) { in sn_pci_free_consistent()
243 pciio_dmamap_done((pciio_dmamap_t)sn_dma_map); in sn_pci_free_consistent()
244 pciio_dmamap_free((pciio_dmamap_t)sn_dma_map); in sn_pci_free_consistent()
245 sn_dma_map->dma_addr = (dma_addr_t)NULL; in sn_pci_free_consistent()
269 struct sn_dma_maps_s *sn_dma_map; in sn_pci_map_sg() local
336 sn_dma_map = (struct sn_dma_maps_s *)dma_map; in sn_pci_map_sg()
337 sn_dma_map->dma_addr = sg->dma_address; in sn_pci_map_sg()
359 struct sn_dma_maps_s *sn_dma_map; in sn_pci_unmap_sg() local
368 sn_dma_map = NULL; in sn_pci_unmap_sg()
369 sn_dma_map = find_sn_dma_map(sg->dma_address, hwdev->bus->number); in sn_pci_unmap_sg()
370 if (sn_dma_map) { in sn_pci_unmap_sg()
371 pciio_dmamap_done((pciio_dmamap_t)sn_dma_map); in sn_pci_unmap_sg()
372 pciio_dmamap_free((pciio_dmamap_t)sn_dma_map); in sn_pci_unmap_sg()
373 sn_dma_map->dma_addr = (dma_addr_t)NULL; in sn_pci_unmap_sg()
410 struct sn_dma_maps_s *sn_dma_map; in sn_pci_map_single() local
465 sn_dma_map = (struct sn_dma_maps_s *)dma_map; in sn_pci_map_single()
466 sn_dma_map->dma_addr = dma_addr; in sn_pci_map_single()
484 struct sn_dma_maps_s *sn_dma_map = NULL; in sn_pci_unmap_single() local
493 sn_dma_map = find_sn_dma_map(dma_addr, hwdev->bus->number); in sn_pci_unmap_single()
498 if (sn_dma_map) { in sn_pci_unmap_single()
499 pciio_dmamap_done((pciio_dmamap_t)sn_dma_map); in sn_pci_unmap_single()
500 pciio_dmamap_free((pciio_dmamap_t)sn_dma_map); in sn_pci_unmap_single()
501 sn_dma_map->dma_addr = (dma_addr_t)NULL; in sn_pci_unmap_single()