/drivers/hwmon/ |
H A D | hwmon.c | 43 struct device *hwdev; local 50 hwdev = device_create(hwmon_class, dev, MKDEV(0, 0), NULL, 53 if (IS_ERR(hwdev)) 56 return hwdev;
|
/drivers/infiniband/hw/qib/ |
H A D | qib_user_pages.c | 101 dma_addr_t qib_map_page(struct pci_dev *hwdev, struct page *page, argument 106 phys = pci_map_page(hwdev, page, offset, size, direction); 109 pci_unmap_page(hwdev, phys, size, direction); 110 phys = pci_map_page(hwdev, page, offset, size, direction);
|
/drivers/infiniband/hw/ipath/ |
H A D | ipath_user_pages.c | 106 dma_addr_t ipath_map_page(struct pci_dev *hwdev, struct page *page, argument 111 phys = pci_map_page(hwdev, page, offset, size, direction); 114 pci_unmap_page(hwdev, phys, size, direction); 115 phys = pci_map_page(hwdev, page, offset, size, direction); 130 dma_addr_t ipath_map_single(struct pci_dev *hwdev, void *ptr, size_t size, argument 135 phys = pci_map_single(hwdev, ptr, size, direction); 138 pci_unmap_single(hwdev, phys, size, direction); 139 phys = pci_map_single(hwdev, ptr, size, direction);
|
/drivers/xen/ |
H A D | swiotlb-xen.c | 206 xen_swiotlb_alloc_coherent(struct device *hwdev, size_t size, argument 225 if (dma_alloc_from_coherent(hwdev, size, dma_handle, &ret)) 234 if (hwdev && hwdev->coherent_dma_mask) 235 dma_mask = hwdev->coherent_dma_mask; 256 xen_swiotlb_free_coherent(struct device *hwdev, size_t size, void *vaddr, argument 263 if (dma_release_from_coherent(hwdev, order, vaddr)) 266 if (hwdev && hwdev->coherent_dma_mask) 267 dma_mask = hwdev 334 xen_unmap_single(struct device *hwdev, dma_addr_t dev_addr, size_t size, enum dma_data_direction dir) argument 359 xen_swiotlb_unmap_page(struct device *hwdev, dma_addr_t dev_addr, size_t size, enum dma_data_direction dir, struct dma_attrs *attrs) argument 378 xen_swiotlb_sync_single(struct device *hwdev, dma_addr_t dev_addr, size_t size, enum dma_data_direction dir, enum dma_sync_target target) argument 400 xen_swiotlb_sync_single_for_cpu(struct device *hwdev, dma_addr_t dev_addr, size_t size, enum dma_data_direction dir) argument 408 xen_swiotlb_sync_single_for_device(struct device *hwdev, dma_addr_t dev_addr, size_t size, enum dma_data_direction dir) argument 432 xen_swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl, int nelems, enum dma_data_direction dir, struct dma_attrs *attrs) argument 470 xen_swiotlb_map_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, enum dma_data_direction dir) argument 482 xen_swiotlb_unmap_sg_attrs(struct device *hwdev, struct scatterlist *sgl, int nelems, enum dma_data_direction dir, struct dma_attrs *attrs) argument 498 xen_swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, enum dma_data_direction dir) argument 513 xen_swiotlb_sync_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, enum dma_data_direction dir, enum dma_sync_target target) argument 526 xen_swiotlb_sync_sg_for_cpu(struct device *hwdev, struct scatterlist *sg, int nelems, enum dma_data_direction dir) argument 534 xen_swiotlb_sync_sg_for_device(struct device *hwdev, struct scatterlist *sg, int nelems, enum dma_data_direction dir) argument 542 xen_swiotlb_dma_mapping_error(struct device *hwdev, dma_addr_t dma_addr) argument 555 xen_swiotlb_dma_supported(struct device *hwdev, u64 mask) argument [all...] |
/drivers/isdn/hardware/eicon/ |
H A D | divasmain.c | 336 static void *diva_pci_alloc_consistent(struct pci_dev *hwdev, argument 341 void *addr = pci_alloc_consistent(hwdev, size, dma_handle);
|
/drivers/net/wireless/bcmdhd/include/ |
H A D | linuxver.h | 288 static inline void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size, argument 302 static inline void pci_free_consistent(struct pci_dev *hwdev, size_t size, argument
|
/drivers/parisc/ |
H A D | sba_iommu.c | 862 * @hwdev: instance of PCI owned by the driver that's asking. 868 static void *sba_alloc_consistent(struct device *hwdev, size_t size, argument 873 if (!hwdev) { 883 *dma_handle = sba_map_single(hwdev, ret, size, 0); 892 * @hwdev: instance of PCI owned by the driver that's asking. 900 sba_free_consistent(struct device *hwdev, size_t size, void *vaddr, argument 903 sba_unmap_single(hwdev, dma_handle, size, 0);
|
/drivers/iommu/ |
H A D | intel-iommu.c | 2756 static dma_addr_t __intel_map_single(struct device *hwdev, phys_addr_t paddr, argument 2759 struct pci_dev *pdev = to_pci_dev(hwdev); 2770 if (iommu_no_mapping(hwdev)) 2780 iova = intel_alloc_iova(hwdev, domain, dma_to_mm_pfn(size), dma_mask); 2956 static void *intel_alloc_coherent(struct device *hwdev, size_t size, argument 2966 if (!iommu_no_mapping(hwdev)) 2968 else if (hwdev->coherent_dma_mask < dma_get_required_mask(hwdev)) { 2969 if (hwdev->coherent_dma_mask < DMA_BIT_MASK(32)) 2980 *dma_handle = __intel_map_single(hwdev, virt_to_bu 2989 intel_free_coherent(struct device *hwdev, size_t size, void *vaddr, dma_addr_t dma_handle, struct dma_attrs *attrs) argument 3001 intel_unmap_sg(struct device *hwdev, struct scatterlist *sglist, int nelems, enum dma_data_direction dir, struct dma_attrs *attrs) argument 3061 intel_map_sg(struct device *hwdev, struct scatterlist *sglist, int nelems, enum dma_data_direction dir, struct dma_attrs *attrs) argument [all...] |
/drivers/net/ethernet/toshiba/ |
H A D | tc35815.c | 452 struct pci_dev *hwdev, 459 *dma_handle = pci_map_single(hwdev, skb->data, RX_BUF_SIZE, 461 if (pci_dma_mapping_error(hwdev, *dma_handle)) { 469 static void free_rxbuf_skb(struct pci_dev *hwdev, struct sk_buff *skb, dma_addr_t dma_handle) argument 471 pci_unmap_single(hwdev, dma_handle, RX_BUF_SIZE, 451 alloc_rxbuf_skb(struct net_device *dev, struct pci_dev *hwdev, dma_addr_t *dma_handle) argument
|