/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/hwmon/ |
H A D | hwmon.c | 100 struct hwmon_device *hwdev; local 111 hwdev = kzalloc(sizeof(*hwdev), GFP_KERNEL); 112 if (hwdev == NULL) { 117 hwdev->name = name; 118 hwdev->dev.class = &hwmon_class; 119 hwdev->dev.parent = dev; 120 hwdev->dev.groups = groups; 121 hwdev->dev.of_node = dev ? dev->of_node : NULL; 122 dev_set_drvdata(&hwdev 173 struct device *hwdev = *(struct device **)res; local 193 struct device **ptr, *hwdev; local 218 struct device **hwdev = res; local [all...] |
/drivers/xen/ |
H A D | swiotlb-xen.c | 298 xen_swiotlb_alloc_coherent(struct device *hwdev, size_t size, argument 316 if (dma_alloc_from_coherent(hwdev, size, dma_handle, &ret)) 324 ret = xen_alloc_coherent_pages(hwdev, size, dma_handle, flags, attrs); 329 if (hwdev && hwdev->coherent_dma_mask) 330 dma_mask = dma_alloc_coherent_mask(hwdev, flags); 344 xen_free_coherent_pages(hwdev, size, ret, (dma_addr_t)phys, attrs); 354 xen_swiotlb_free_coherent(struct device *hwdev, size_t size, void *vaddr, argument 361 if (dma_release_from_coherent(hwdev, order, vaddr)) 364 if (hwdev 442 xen_unmap_single(struct device *hwdev, dma_addr_t dev_addr, size_t size, enum dma_data_direction dir, struct dma_attrs *attrs) argument 470 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 489 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 514 xen_swiotlb_sync_single_for_cpu(struct device *hwdev, dma_addr_t dev_addr, size_t size, enum dma_data_direction dir) argument 522 xen_swiotlb_sync_single_for_device(struct device *hwdev, dma_addr_t dev_addr, size_t size, enum dma_data_direction dir) argument 546 xen_swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl, int nelems, enum dma_data_direction dir, struct dma_attrs *attrs) argument 604 xen_swiotlb_unmap_sg_attrs(struct device *hwdev, struct scatterlist *sgl, int nelems, enum dma_data_direction dir, struct dma_attrs *attrs) argument 627 xen_swiotlb_sync_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, enum dma_data_direction dir, enum dma_sync_target target) argument 640 xen_swiotlb_sync_sg_for_cpu(struct device *hwdev, struct scatterlist *sg, int nelems, enum dma_data_direction dir) argument 648 xen_swiotlb_sync_sg_for_device(struct device *hwdev, struct scatterlist *sg, int nelems, enum dma_data_direction dir) argument 656 xen_swiotlb_dma_mapping_error(struct device *hwdev, dma_addr_t dma_addr) argument 669 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/gpu/drm/i915/ |
H A D | i915_gem_gtt.c | 360 struct pci_dev *hwdev = ppgtt->base.dev->pdev; local 369 pci_unmap_page(hwdev, ppgtt->pd_dma_addr[i], PAGE_SIZE, 375 pci_unmap_page(hwdev, addr, PAGE_SIZE,
|
/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/net/ethernet/toshiba/ |
H A D | tc35815.c | 451 struct pci_dev *hwdev, 458 *dma_handle = pci_map_single(hwdev, skb->data, RX_BUF_SIZE, 460 if (pci_dma_mapping_error(hwdev, *dma_handle)) { 468 static void free_rxbuf_skb(struct pci_dev *hwdev, struct sk_buff *skb, dma_addr_t dma_handle) argument 470 pci_unmap_single(hwdev, dma_handle, RX_BUF_SIZE, 450 alloc_rxbuf_skb(struct net_device *dev, struct pci_dev *hwdev, dma_addr_t *dma_handle) argument
|
/drivers/net/ethernet/via/ |
H A D | via-rhine.c | 678 static inline int verify_mmio(struct device *hwdev, argument 693 dev_err(hwdev, 905 static int rhine_init_one_common(struct device *hwdev, u32 quirks, argument 914 rc = dma_set_mask(hwdev, DMA_BIT_MASK(32)); 916 dev_err(hwdev, "32-bit DMA addresses not supported by the card!?\n"); 925 SET_NETDEV_DEV(dev, hwdev); 1002 dev_set_drvdata(hwdev, dev); 1040 struct device *hwdev = &pdev->dev; local 1085 dev_err(hwdev, "Insufficient PCI resources, aborting\n"); 1101 dev_err(hwdev, 1160 struct device *hwdev = dev->dev.parent; local 1198 struct device *hwdev = dev->dev.parent; local 1217 struct device *hwdev = dev->dev.parent; local 1262 struct device *hwdev = dev->dev.parent; local 1303 struct device *hwdev = dev->dev.parent; local 1733 struct device *hwdev = dev->dev.parent; local 1863 struct device *hwdev = dev->dev.parent; local 1939 struct device *hwdev = dev->dev.parent; local 2214 struct device *hwdev = dev->dev.parent; local [all...] |