Home
last modified time | relevance | path

Searched refs:hwdev (Results 1 – 12 of 12) sorted by relevance

/arch/x86/kernel/
Dpci-nommu.c16 check_addr(char *name, struct device *hwdev, dma_addr_t bus, size_t size) in check_addr() argument
18 if (hwdev && !dma_capable(hwdev, bus, size)) { in check_addr()
19 if (*hwdev->dma_mask >= DMA_BIT_MASK(32)) in check_addr()
23 (long long)*hwdev->dma_mask); in check_addr()
57 static int nommu_map_sg(struct device *hwdev, struct scatterlist *sg, in nommu_map_sg() argument
69 if (!check_addr("map_sg", hwdev, s->dma_address, s->length)) in nommu_map_sg()
Dpci-swiotlb.c17 void *x86_swiotlb_alloc_coherent(struct device *hwdev, size_t size, in x86_swiotlb_alloc_coherent() argument
23 vaddr = dma_generic_alloc_coherent(hwdev, size, dma_handle, flags, in x86_swiotlb_alloc_coherent()
28 return swiotlb_alloc_coherent(hwdev, size, dma_handle, flags); in x86_swiotlb_alloc_coherent()
/arch/hexagon/kernel/
Ddma.c103 static int check_addr(const char *name, struct device *hwdev, in check_addr() argument
106 if (hwdev && hwdev->dma_mask && !dma_capable(hwdev, bus, size)) { in check_addr()
107 if (*hwdev->dma_mask >= DMA_BIT_MASK(32)) in check_addr()
111 (long long)*hwdev->dma_mask); in check_addr()
117 static int hexagon_map_sg(struct device *hwdev, struct scatterlist *sg, in hexagon_map_sg() argument
128 if (!check_addr("map_sg", hwdev, s->dma_address, s->length)) in hexagon_map_sg()
/arch/ia64/sn/pci/pcibr/
Dpcibr_dma.c208 pcibr_dma_unmap(struct pci_dev *hwdev, dma_addr_t dma_handle, int direction) in pcibr_dma_unmap() argument
210 struct pcidev_info *pcidev_info = SN_PCIDEV_INFO(hwdev); in pcibr_dma_unmap()
357 pcibr_dma_map(struct pci_dev * hwdev, unsigned long phys_addr, size_t size, int dma_flags) in pcibr_dma_map() argument
360 struct pcidev_info *pcidev_info = SN_PCIDEV_INFO(hwdev); in pcibr_dma_map()
363 if (hwdev->dma_mask < 0x7fffffff) { in pcibr_dma_map()
367 if (hwdev->dma_mask == ~0UL) { in pcibr_dma_map()
395 pcibr_dma_map_consistent(struct pci_dev * hwdev, unsigned long phys_addr, in pcibr_dma_map_consistent() argument
399 struct pcidev_info *pcidev_info = SN_PCIDEV_INFO(hwdev); in pcibr_dma_map_consistent()
401 if (hwdev->dev.coherent_dma_mask == ~0UL) { in pcibr_dma_map_consistent()
/arch/frv/include/asm/
Dpci.h37 extern void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size,
40 extern void pci_free_consistent(struct pci_dev *hwdev, size_t size,
/arch/ia64/kernel/
Dmachvec.c77 machvec_dma_sync_single(struct device *hwdev, dma_addr_t dma_handle, size_t size, in machvec_dma_sync_single() argument
85 machvec_dma_sync_sg(struct device *hwdev, struct scatterlist *sg, int n, in machvec_dma_sync_sg() argument
/arch/frv/mb93090-mb00/
Dpci-dma.c21 void *dma_alloc_coherent(struct device *hwdev, size_t size, dma_addr_t *dma_handle, gfp_t gfp) in dma_alloc_coherent() argument
34 void dma_free_coherent(struct device *hwdev, size_t size, void *vaddr, dma_addr_t dma_handle) in dma_free_coherent() argument
Dpci-dma-nommu.c37 void *dma_alloc_coherent(struct device *hwdev, size_t size, dma_addr_t *dma_handle, gfp_t gfp) in dma_alloc_coherent() argument
89 void dma_free_coherent(struct device *hwdev, size_t size, void *vaddr, dma_addr_t dma_handle) in dma_free_coherent() argument
/arch/x86/include/asm/
Dswiotlb.h32 extern void *x86_swiotlb_alloc_coherent(struct device *hwdev, size_t size,
Ddma-mapping.h60 extern int dma_supported(struct device *hwdev, u64 mask);
/arch/xtensa/kernel/
Dpci-dma.c68 void dma_free_coherent(struct device *hwdev, size_t size, in dma_free_coherent() argument
/arch/mips/include/asm/mach-pmcs-msp71xx/
Dmsp_usb.h55 u32 hwdev; /* 0xc: Device HW params */ member