/linux-4.4.14/include/asm-generic/ |
D | pci-dma-compat.h | 10 pci_alloc_consistent(struct pci_dev *hwdev, size_t size, in pci_alloc_consistent() argument 13 return dma_alloc_coherent(hwdev == NULL ? NULL : &hwdev->dev, size, dma_handle, GFP_ATOMIC); in pci_alloc_consistent() 17 pci_zalloc_consistent(struct pci_dev *hwdev, size_t size, in pci_zalloc_consistent() argument 20 return dma_zalloc_coherent(hwdev == NULL ? NULL : &hwdev->dev, in pci_zalloc_consistent() 25 pci_free_consistent(struct pci_dev *hwdev, size_t size, in pci_free_consistent() argument 28 dma_free_coherent(hwdev == NULL ? NULL : &hwdev->dev, size, vaddr, dma_handle); in pci_free_consistent() 32 pci_map_single(struct pci_dev *hwdev, void *ptr, size_t size, int direction) in pci_map_single() argument 34 …return dma_map_single(hwdev == NULL ? NULL : &hwdev->dev, ptr, size, (enum dma_data_direction)dire… in pci_map_single() 38 pci_unmap_single(struct pci_dev *hwdev, dma_addr_t dma_addr, in pci_unmap_single() argument 41 …dma_unmap_single(hwdev == NULL ? NULL : &hwdev->dev, dma_addr, size, (enum dma_data_direction)dire… in pci_unmap_single() [all …]
|
/linux-4.4.14/arch/arm/include/asm/xen/ |
D | page-coherent.h | 8 void __xen_dma_map_page(struct device *hwdev, struct page *page, 11 void __xen_dma_unmap_page(struct device *hwdev, dma_addr_t handle, 14 void __xen_dma_sync_single_for_cpu(struct device *hwdev, 17 void __xen_dma_sync_single_for_device(struct device *hwdev, 20 static inline void *xen_alloc_coherent_pages(struct device *hwdev, size_t size, in xen_alloc_coherent_pages() argument 24 return __generic_dma_ops(hwdev)->alloc(hwdev, size, dma_handle, flags, attrs); in xen_alloc_coherent_pages() 27 static inline void xen_free_coherent_pages(struct device *hwdev, size_t size, in xen_free_coherent_pages() argument 31 __generic_dma_ops(hwdev)->free(hwdev, size, cpu_addr, dma_handle, attrs); in xen_free_coherent_pages() 34 static inline void xen_dma_map_page(struct device *hwdev, struct page *page, in xen_dma_map_page() argument 55 __generic_dma_ops(hwdev)->map_page(hwdev, page, offset, size, dir, attrs); in xen_dma_map_page() [all …]
|
/linux-4.4.14/drivers/hwmon/ |
D | hwmon.c | 100 struct hwmon_device *hwdev; in hwmon_device_register_with_groups() local 111 hwdev = kzalloc(sizeof(*hwdev), GFP_KERNEL); in hwmon_device_register_with_groups() 112 if (hwdev == NULL) { in hwmon_device_register_with_groups() 117 hwdev->name = name; in hwmon_device_register_with_groups() 118 hwdev->dev.class = &hwmon_class; in hwmon_device_register_with_groups() 119 hwdev->dev.parent = dev; in hwmon_device_register_with_groups() 120 hwdev->dev.groups = groups; in hwmon_device_register_with_groups() 121 hwdev->dev.of_node = dev ? dev->of_node : NULL; in hwmon_device_register_with_groups() 122 dev_set_drvdata(&hwdev->dev, drvdata); in hwmon_device_register_with_groups() 123 dev_set_name(&hwdev->dev, HWMON_ID_FORMAT, id); in hwmon_device_register_with_groups() [all …]
|
D | scpi-hwmon.c | 118 struct device *hwdev, *dev = &pdev->dev; in scpi_hwmon_probe() local 210 hwdev = devm_hwmon_device_register_with_groups(dev, in scpi_hwmon_probe() 213 if (IS_ERR(hwdev)) in scpi_hwmon_probe() 214 return PTR_ERR(hwdev); in scpi_hwmon_probe()
|
/linux-4.4.14/include/linux/ |
D | swiotlb.h | 42 extern phys_addr_t swiotlb_tbl_map_single(struct device *hwdev, 47 extern void swiotlb_tbl_unmap_single(struct device *hwdev, 51 extern void swiotlb_tbl_sync_single(struct device *hwdev, 58 *swiotlb_alloc_coherent(struct device *hwdev, size_t size, 62 swiotlb_free_coherent(struct device *hwdev, size_t size, 69 extern void swiotlb_unmap_page(struct device *hwdev, dma_addr_t dev_addr, 74 swiotlb_map_sg(struct device *hwdev, struct scatterlist *sg, int nents, 78 swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sg, int nents, 82 swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl, int nelems, 86 swiotlb_unmap_sg_attrs(struct device *hwdev, struct scatterlist *sgl, [all …]
|
D | fmc.h | 177 struct device *hwdev; /* The underlying hardware device */ member
|
/linux-4.4.14/drivers/xen/ |
D | swiotlb-xen.c | 295 xen_swiotlb_alloc_coherent(struct device *hwdev, size_t size, in xen_swiotlb_alloc_coherent() argument 318 ret = xen_alloc_coherent_pages(hwdev, size, dma_handle, flags, attrs); in xen_swiotlb_alloc_coherent() 323 if (hwdev && hwdev->coherent_dma_mask) in xen_swiotlb_alloc_coherent() 324 dma_mask = dma_alloc_coherent_mask(hwdev, flags); in xen_swiotlb_alloc_coherent() 338 xen_free_coherent_pages(hwdev, size, ret, (dma_addr_t)phys, attrs); in xen_swiotlb_alloc_coherent() 348 xen_swiotlb_free_coherent(struct device *hwdev, size_t size, void *vaddr, in xen_swiotlb_free_coherent() argument 355 if (hwdev && hwdev->coherent_dma_mask) in xen_swiotlb_free_coherent() 356 dma_mask = hwdev->coherent_dma_mask; in xen_swiotlb_free_coherent() 366 xen_free_coherent_pages(hwdev, size, vaddr, (dma_addr_t)phys, attrs); in xen_swiotlb_free_coherent() 435 static void xen_unmap_single(struct device *hwdev, dma_addr_t dev_addr, in xen_unmap_single() argument [all …]
|
/linux-4.4.14/lib/ |
D | swiotlb.c | 135 static dma_addr_t swiotlb_virt_to_bus(struct device *hwdev, in swiotlb_virt_to_bus() argument 138 return phys_to_dma(hwdev, virt_to_phys(address)); in swiotlb_virt_to_bus() 425 phys_addr_t swiotlb_tbl_map_single(struct device *hwdev, in swiotlb_tbl_map_single() argument 441 mask = dma_get_seg_boundary(hwdev); in swiotlb_tbl_map_single() 517 dev_warn(hwdev, "swiotlb buffer is full (sz: %zd bytes)\n", size); in swiotlb_tbl_map_single() 541 map_single(struct device *hwdev, phys_addr_t phys, size_t size, in map_single() argument 544 dma_addr_t start_dma_addr = phys_to_dma(hwdev, io_tlb_start); in map_single() 546 return swiotlb_tbl_map_single(hwdev, start_dma_addr, phys, size, dir); in map_single() 552 void swiotlb_tbl_unmap_single(struct device *hwdev, phys_addr_t tlb_addr, in swiotlb_tbl_unmap_single() argument 596 void swiotlb_tbl_sync_single(struct device *hwdev, phys_addr_t tlb_addr, in swiotlb_tbl_sync_single() argument [all …]
|
/linux-4.4.14/include/xen/ |
D | swiotlb-xen.h | 10 *xen_swiotlb_alloc_coherent(struct device *hwdev, size_t size, 15 xen_swiotlb_free_coherent(struct device *hwdev, size_t size, 24 extern void xen_swiotlb_unmap_page(struct device *hwdev, dma_addr_t dev_addr, 28 xen_swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl, 33 xen_swiotlb_unmap_sg_attrs(struct device *hwdev, struct scatterlist *sgl, 38 xen_swiotlb_sync_single_for_cpu(struct device *hwdev, dma_addr_t dev_addr, 42 xen_swiotlb_sync_sg_for_cpu(struct device *hwdev, struct scatterlist *sg, 46 xen_swiotlb_sync_single_for_device(struct device *hwdev, dma_addr_t dev_addr, 50 xen_swiotlb_sync_sg_for_device(struct device *hwdev, struct scatterlist *sg, 54 xen_swiotlb_dma_mapping_error(struct device *hwdev, dma_addr_t dma_addr); [all …]
|
/linux-4.4.14/arch/arm/xen/ |
D | mm.c | 87 static void __xen_dma_page_dev_to_cpu(struct device *hwdev, dma_addr_t handle, in __xen_dma_page_dev_to_cpu() argument 93 static void __xen_dma_page_cpu_to_dev(struct device *hwdev, dma_addr_t handle, in __xen_dma_page_cpu_to_dev() argument 99 void __xen_dma_map_page(struct device *hwdev, struct page *page, in __xen_dma_map_page() argument 103 if (is_device_dma_coherent(hwdev)) in __xen_dma_map_page() 108 __xen_dma_page_cpu_to_dev(hwdev, dev_addr, size, dir); in __xen_dma_map_page() 111 void __xen_dma_unmap_page(struct device *hwdev, dma_addr_t handle, in __xen_dma_unmap_page() argument 116 if (is_device_dma_coherent(hwdev)) in __xen_dma_unmap_page() 121 __xen_dma_page_dev_to_cpu(hwdev, handle, size, dir); in __xen_dma_unmap_page() 124 void __xen_dma_sync_single_for_cpu(struct device *hwdev, in __xen_dma_sync_single_for_cpu() argument 127 if (is_device_dma_coherent(hwdev)) in __xen_dma_sync_single_for_cpu() [all …]
|
/linux-4.4.14/arch/x86/kernel/ |
D | pci-nommu.c | 15 check_addr(char *name, struct device *hwdev, dma_addr_t bus, size_t size) in check_addr() argument 17 if (hwdev && !dma_capable(hwdev, bus, size)) { in check_addr() 18 if (*hwdev->dma_mask >= DMA_BIT_MASK(32)) in check_addr() 22 (long long)*hwdev->dma_mask); in check_addr() 56 static int nommu_map_sg(struct device *hwdev, struct scatterlist *sg, in nommu_map_sg() argument 68 if (!check_addr("map_sg", hwdev, s->dma_address, s->length)) in nommu_map_sg()
|
D | pci-swiotlb.c | 17 void *x86_swiotlb_alloc_coherent(struct device *hwdev, size_t size, in x86_swiotlb_alloc_coherent() argument 30 vaddr = dma_generic_alloc_coherent(hwdev, size, dma_handle, flags, in x86_swiotlb_alloc_coherent() 35 return swiotlb_alloc_coherent(hwdev, size, dma_handle, flags); in x86_swiotlb_alloc_coherent()
|
/linux-4.4.14/arch/x86/include/asm/xen/ |
D | page-coherent.h | 8 static inline void *xen_alloc_coherent_pages(struct device *hwdev, size_t size, in xen_alloc_coherent_pages() argument 17 static inline void xen_free_coherent_pages(struct device *hwdev, size_t size, in xen_free_coherent_pages() argument 24 static inline void xen_dma_map_page(struct device *hwdev, struct page *page, in xen_dma_map_page() argument 28 static inline void xen_dma_unmap_page(struct device *hwdev, dma_addr_t handle, in xen_dma_unmap_page() argument 32 static inline void xen_dma_sync_single_for_cpu(struct device *hwdev, in xen_dma_sync_single_for_cpu() argument 35 static inline void xen_dma_sync_single_for_device(struct device *hwdev, in xen_dma_sync_single_for_device() argument
|
/linux-4.4.14/drivers/staging/rdma/ipath/ |
D | ipath_user_pages.c | 105 dma_addr_t ipath_map_page(struct pci_dev *hwdev, struct page *page, in ipath_map_page() argument 110 phys = pci_map_page(hwdev, page, offset, size, direction); in ipath_map_page() 113 pci_unmap_page(hwdev, phys, size, direction); in ipath_map_page() 114 phys = pci_map_page(hwdev, page, offset, size, direction); in ipath_map_page() 129 dma_addr_t ipath_map_single(struct pci_dev *hwdev, void *ptr, size_t size, in ipath_map_single() argument 134 phys = pci_map_single(hwdev, ptr, size, direction); in ipath_map_single() 137 pci_unmap_single(hwdev, phys, size, direction); in ipath_map_single() 138 phys = pci_map_single(hwdev, ptr, size, direction); in ipath_map_single()
|
/linux-4.4.14/arch/hexagon/kernel/ |
D | dma.c | 92 static int check_addr(const char *name, struct device *hwdev, in check_addr() argument 95 if (hwdev && hwdev->dma_mask && !dma_capable(hwdev, bus, size)) { in check_addr() 96 if (*hwdev->dma_mask >= DMA_BIT_MASK(32)) in check_addr() 100 (long long)*hwdev->dma_mask); in check_addr() 106 static int hexagon_map_sg(struct device *hwdev, struct scatterlist *sg, in hexagon_map_sg() argument 117 if (!check_addr("map_sg", hwdev, s->dma_address, s->length)) in hexagon_map_sg()
|
/linux-4.4.14/arch/ia64/sn/pci/pcibr/ |
D | pcibr_dma.c | 208 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()
|
/linux-4.4.14/drivers/infiniband/hw/qib/ |
D | qib_user_pages.c | 101 dma_addr_t qib_map_page(struct pci_dev *hwdev, struct page *page, in qib_map_page() argument 106 phys = pci_map_page(hwdev, page, offset, size, direction); in qib_map_page() 109 pci_unmap_page(hwdev, phys, size, direction); in qib_map_page() 110 phys = pci_map_page(hwdev, page, offset, size, direction); in qib_map_page()
|
/linux-4.4.14/drivers/fmc/ |
D | fmc-core.c | 164 if (!fmc->hwdev) { in fmc_device_register_n() 171 dev_info(fmc->hwdev, "absent mezzanine in slot %d\n", in fmc_device_register_n() 176 dev_err(fmc->hwdev, "no eeprom provided for slot %i\n", in fmc_device_register_n() 181 dev_err(fmc->hwdev, "no eeprom_addr for slot %i\n", in fmc_device_register_n() 187 dev_err(fmc->hwdev, in fmc_device_register_n() 210 fmc->dev.parent = fmc->hwdev; in fmc_device_register_n() 226 dev_err(fmc->hwdev, "Slot %i: Failed in registering " in fmc_device_register_n()
|
D | fmc-dump.c | 52 pr_info("FMC: %s (%s), slot %i, device %s\n", dev_name(fmc->hwdev), in fmc_dump_eeprom() 90 pr_info("FMC: %s (%s), slot %i, device %s\n", dev_name(fmc->hwdev), in fmc_dump_sdb()
|
D | fmc-fakedev.c | 259 .hwdev = NULL, /* filled at creation time */ 285 fmc->hwdev = &ff->dev; in ff_dev_create()
|
D | fmc-match.c | 75 dev_info(fmc->hwdev, "mezzanine %i\n", fmc->slot_id); /* header */ in fmc_fill_id_info()
|
/linux-4.4.14/drivers/net/ethernet/via/ |
D | via-rhine.c | 678 static inline int verify_mmio(struct device *hwdev, in verify_mmio() argument 693 dev_err(hwdev, in verify_mmio() 905 static int rhine_init_one_common(struct device *hwdev, u32 quirks, in rhine_init_one_common() argument 914 rc = dma_set_mask(hwdev, DMA_BIT_MASK(32)); in rhine_init_one_common() 916 dev_err(hwdev, "32-bit DMA addresses not supported by the card!?\n"); in rhine_init_one_common() 925 SET_NETDEV_DEV(dev, hwdev); in rhine_init_one_common() 1002 dev_set_drvdata(hwdev, dev); in rhine_init_one_common() 1040 struct device *hwdev = &pdev->dev; in rhine_init_one_pci() local 1085 dev_err(hwdev, "Insufficient PCI resources, aborting\n"); in rhine_init_one_pci() 1101 dev_err(hwdev, in rhine_init_one_pci() [all …]
|
/linux-4.4.14/arch/frv/include/asm/ |
D | pci.h | 35 extern void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size, 38 extern void pci_free_consistent(struct pci_dev *hwdev, size_t size,
|
/linux-4.4.14/arch/ia64/kernel/ |
D | machvec.c | 77 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
|
/linux-4.4.14/arch/frv/mb93090-mb00/ |
D | pci-dma.c | 21 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
|
D | pci-dma-nommu.c | 37 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
|
/linux-4.4.14/drivers/staging/rdma/hfi1/ |
D | user_pages.c | 109 dma_addr_t hfi1_map_page(struct pci_dev *hwdev, struct page *page, in hfi1_map_page() argument 114 phys = pci_map_page(hwdev, page, offset, size, direction); in hfi1_map_page()
|
/linux-4.4.14/arch/x86/include/asm/ |
D | swiotlb.h | 32 extern void *x86_swiotlb_alloc_coherent(struct device *hwdev, size_t size,
|
D | dma-mapping.h | 47 extern int dma_supported(struct device *hwdev, u64 mask);
|
/linux-4.4.14/arch/mips/include/asm/mach-pmcs-msp71xx/ |
D | msp_usb.h | 51 u32 hwdev; /* 0xc: Device HW params */ member
|
/linux-4.4.14/drivers/parisc/ |
D | sba_iommu.c | 868 static void *sba_alloc_consistent(struct device *hwdev, size_t size, in sba_alloc_consistent() argument 873 if (!hwdev) { in sba_alloc_consistent() 883 *dma_handle = sba_map_single(hwdev, ret, size, 0); in sba_alloc_consistent() 900 sba_free_consistent(struct device *hwdev, size_t size, void *vaddr, in sba_free_consistent() argument 903 sba_unmap_single(hwdev, dma_handle, size, 0); in sba_free_consistent()
|
D | ccio-dma.c | 844 if(!hwdev) { in ccio_alloc_consistent()
|
/linux-4.4.14/arch/xtensa/kernel/ |
D | pci-dma.c | 173 static void xtensa_dma_free(struct device *hwdev, size_t size, void *vaddr, in xtensa_dma_free() argument
|
/linux-4.4.14/drivers/isdn/hardware/eicon/ |
D | divasmain.c | 336 static void *diva_pci_alloc_consistent(struct pci_dev *hwdev, in diva_pci_alloc_consistent() argument 341 void *addr = pci_alloc_consistent(hwdev, size, dma_handle); in diva_pci_alloc_consistent()
|
/linux-4.4.14/drivers/net/ethernet/toshiba/ |
D | tc35815.c | 451 struct pci_dev *hwdev, in alloc_rxbuf_skb() argument 458 *dma_handle = pci_map_single(hwdev, skb->data, RX_BUF_SIZE, in alloc_rxbuf_skb() 460 if (pci_dma_mapping_error(hwdev, *dma_handle)) { in alloc_rxbuf_skb() 468 static void free_rxbuf_skb(struct pci_dev *hwdev, struct sk_buff *skb, dma_addr_t dma_handle) in free_rxbuf_skb() argument 470 pci_unmap_single(hwdev, dma_handle, RX_BUF_SIZE, in free_rxbuf_skb()
|
/linux-4.4.14/arch/arm64/mm/ |
D | dma-mapping.c | 487 static int __dummy_mapping_error(struct device *hwdev, dma_addr_t dma_addr) in __dummy_mapping_error() argument 492 static int __dummy_dma_supported(struct device *hwdev, u64 mask) in __dummy_dma_supported() argument
|
/linux-4.4.14/Documentation/fmc/ |
D | carrier.txt | 49 struct device *hwdev; /* The underlying hardware device */ 86 * hwdev: to be used in some dev_err() calls.
|