Searched refs:hwdev (Results 1 - 25 of 26) sorted by path

12

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/include/
H A Dlinuxver.h332 static inline void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size, argument
346 static inline void pci_free_consistent(struct pci_dev *hwdev, size_t size, argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/alpha/kernel/
H A Dpci-noop.c149 pci_dma_supported(struct pci_dev *hwdev, dma_addr_t mask) argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/frv/mb93090-mb00/
H A Dpci-dma-nommu.c31 void *dma_alloc_coherent(struct device *hwdev, size_t size, dma_addr_t *dma_handle, gfp_t gfp) argument
83 void dma_free_coherent(struct device *hwdev, size_t size, void *vaddr, dma_addr_t dma_handle) argument
H A Dpci-dma.c20 void *dma_alloc_coherent(struct device *hwdev, size_t size, dma_addr_t *dma_handle, gfp_t gfp) argument
33 void dma_free_coherent(struct device *hwdev, size_t size, void *vaddr, dma_addr_t dma_handle) argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/ia64/kernel/
H A Dmachvec.c69 machvec_dma_sync_single (struct device *hwdev, dma_addr_t dma_handle, size_t size, int dir) argument
76 machvec_dma_sync_sg (struct device *hwdev, struct scatterlist *sg, int n, int dir) argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/ia64/sn/pci/pcibr/
H A Dpcibr_dma.c208 pcibr_dma_unmap(struct pci_dev *hwdev, dma_addr_t dma_handle, int direction) argument
210 struct pcidev_info *pcidev_info = SN_PCIDEV_INFO(hwdev);
359 pcibr_dma_map(struct pci_dev * hwdev, unsigned long phys_addr, size_t size, int dma_flags) argument
362 struct pcidev_info *pcidev_info = SN_PCIDEV_INFO(hwdev);
365 if (hwdev->dma_mask < 0x7fffffff) {
369 if (hwdev->dma_mask == ~0UL) {
397 pcibr_dma_map_consistent(struct pci_dev * hwdev, unsigned long phys_addr, argument
401 struct pcidev_info *pcidev_info = SN_PCIDEV_INFO(hwdev);
403 if (hwdev->dev.coherent_dma_mask == ~0UL) {
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/sh64/kernel/
H A Dpci-dma.c16 void *consistent_alloc(struct pci_dev *hwdev, size_t size, argument
23 if (hwdev == NULL || hwdev->dma_mask != 0xffffffff)
40 void consistent_free(struct pci_dev *hwdev, size_t size, argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/sparc/kernel/
H A Dioport.c511 * hwdev should be valid struct pci_dev pointer for PCI devices.
601 dma_addr_t pci_map_single(struct pci_dev *hwdev, void *ptr, size_t size, argument
616 void pci_unmap_single(struct pci_dev *hwdev, dma_addr_t ba, size_t size, argument
629 dma_addr_t pci_map_page(struct pci_dev *hwdev, struct page *page, argument
637 void pci_unmap_page(struct pci_dev *hwdev, argument
658 int pci_map_sg(struct pci_dev *hwdev, struct scatterlist *sg, int nents, argument
679 void pci_unmap_sg(struct pci_dev *hwdev, struct scatterlist *sg, int nents, argument
706 void pci_dma_sync_single_for_cpu(struct pci_dev *hwdev, dma_addr_t ba, size_t size, int direction) argument
715 void pci_dma_sync_single_for_device(struct pci_dev *hwdev, dma_addr_t ba, size_t size, int direction) argument
730 void pci_dma_sync_sg_for_cpu(struct pci_dev *hwdev, struc argument
746 pci_dma_sync_sg_for_device(struct pci_dev *hwdev, struct scatterlist *sg, int nents, int direction) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/x86_64/kernel/
H A Dpci-nommu.c14 check_addr(char *name, struct device *hwdev, dma_addr_t bus, size_t size) argument
16 if (hwdev && bus + size > *hwdev->dma_mask) {
17 if (*hwdev->dma_mask >= DMA_32BIT_MASK)
21 (long long)*hwdev->dma_mask);
28 nommu_map_single(struct device *hwdev, void *ptr, size_t size, argument
32 if (!check_addr("map_single", hwdev, bus, size))
57 int nommu_map_sg(struct device *hwdev, struct scatterlist *sg, argument
66 if (!check_addr("map_sg", hwdev, s->dma_address, s->length))
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/xtensa/kernel/
H A Dpci-dma.c65 void dma_free_coherent(struct device *hwdev, size_t size, argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/infiniband/hw/ipath/
H A Dipath_user_pages.c92 dma_addr_t ipath_map_page(struct pci_dev *hwdev, struct page *page, argument
97 phys = pci_map_page(hwdev, page, offset, size, direction);
100 pci_unmap_page(hwdev, phys, size, direction);
101 phys = pci_map_page(hwdev, page, offset, size, direction);
112 dma_addr_t ipath_map_single(struct pci_dev *hwdev, void *ptr, size_t size, argument
117 phys = pci_map_single(hwdev, ptr, size, direction);
120 pci_unmap_single(hwdev, phys, size, direction);
121 phys = pci_map_single(hwdev, ptr, size, direction);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/isdn/hardware/eicon/
H A Ddivasmain.c338 static void *diva_pci_alloc_consistent(struct pci_dev *hwdev, argument
343 void *addr = pci_alloc_consistent(hwdev, size, dma_handle);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/
H A Dtc35815.c505 static void* alloc_rxbuf_page(struct pci_dev *hwdev, dma_addr_t *dma_handle) argument
513 *dma_handle = pci_map_single(hwdev, buf, PAGE_SIZE,
521 return pci_alloc_consistent(hwdev, PAGE_SIZE, dma_handle);
525 static void free_rxbuf_page(struct pci_dev *hwdev, void *buf, dma_addr_t dma_handle) argument
528 pci_unmap_single(hwdev, dma_handle, PAGE_SIZE, PCI_DMA_FROMDEVICE);
531 pci_free_consistent(hwdev, PAGE_SIZE, buf, dma_handle);
536 struct pci_dev *hwdev,
543 *dma_handle = pci_map_single(hwdev, skb->data, RX_BUF_SIZE,
553 static void free_rxbuf_skb(struct pci_dev *hwdev, struct sk_buff *skb, dma_addr_t dma_handle) argument
555 pci_unmap_single(hwdev, dma_handl
535 alloc_rxbuf_skb(struct net_device *dev, struct pci_dev *hwdev, dma_addr_t *dma_handle) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/parisc/
H A Dsba_iommu.c796 * @hwdev: instance of PCI owned by the driver that's asking.
802 static void *sba_alloc_consistent(struct device *hwdev, size_t size, argument
807 if (!hwdev) {
817 *dma_handle = sba_map_single(hwdev, ret, size, 0);
826 * @hwdev: instance of PCI owned by the driver that's asking.
834 sba_free_consistent(struct device *hwdev, size_t size, void *vaddr, argument
837 sba_unmap_single(hwdev, dma_handle, size, 0);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-alpha/
H A Dpci.h200 extern int pci_dma_supported(struct pci_dev *hwdev, u64 mask);
204 extern int pci_dac_dma_supported(struct pci_dev *hwdev, u64 mask);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-blackfin/
H A Dpci.h51 static inline dma_addr_t pci_map_single(struct pci_dev *hwdev, void *ptr, argument
68 static inline void pci_unmap_single(struct pci_dev *hwdev, dma_addr_t dma_addr, argument
92 static inline int pci_map_sg(struct pci_dev *hwdev, struct scatterlist *sg, argument
104 static inline void pci_unmap_sg(struct pci_dev *hwdev, struct scatterlist *sg, argument
122 static inline void pci_dma_sync_single(struct pci_dev *hwdev, argument
138 static inline void pci_dma_sync_sg(struct pci_dev *hwdev, argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-frv/
H A Dpci.h41 extern void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size,
44 extern void pci_free_consistent(struct pci_dev *hwdev, size_t size,
93 static inline void pci_dma_sync_single(struct pci_dev *hwdev, argument
110 static inline void pci_dma_sync_sg(struct pci_dev *hwdev, argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-generic/
H A Dpci-dma-compat.h13 pci_dma_supported(struct pci_dev *hwdev, u64 mask) argument
15 return dma_supported(hwdev == NULL ? NULL : &hwdev->dev, mask);
19 pci_alloc_consistent(struct pci_dev *hwdev, size_t size, argument
22 return dma_alloc_coherent(hwdev == NULL ? NULL : &hwdev->dev, size, dma_handle, GFP_ATOMIC);
26 pci_free_consistent(struct pci_dev *hwdev, size_t size, argument
29 dma_free_coherent(hwdev == NULL ? NULL : &hwdev->dev, size, vaddr, dma_handle);
33 pci_map_single(struct pci_dev *hwdev, voi argument
39 pci_unmap_single(struct pci_dev *hwdev, dma_addr_t dma_addr, size_t size, int direction) argument
46 pci_map_page(struct pci_dev *hwdev, struct page *page, unsigned long offset, size_t size, int direction) argument
53 pci_unmap_page(struct pci_dev *hwdev, dma_addr_t dma_address, size_t size, int direction) argument
60 pci_map_sg(struct pci_dev *hwdev, struct scatterlist *sg, int nents, int direction) argument
67 pci_unmap_sg(struct pci_dev *hwdev, struct scatterlist *sg, int nents, int direction) argument
74 pci_dma_sync_single_for_cpu(struct pci_dev *hwdev, dma_addr_t dma_handle, size_t size, int direction) argument
81 pci_dma_sync_single_for_device(struct pci_dev *hwdev, dma_addr_t dma_handle, size_t size, int direction) argument
88 pci_dma_sync_sg_for_cpu(struct pci_dev *hwdev, struct scatterlist *sg, int nelems, int direction) argument
95 pci_dma_sync_sg_for_device(struct pci_dev *hwdev, struct scatterlist *sg, int nelems, int direction) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-m68knommu/
H A Dpci.h22 static inline int pci_dma_supported(struct pci_dev *hwdev, u64 mask) argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-powerpc/
H A Dpci.h80 static inline int pci_dac_dma_supported(struct pci_dev *hwdev,u64 mask) argument
85 return d->dac_dma_supported(&hwdev->dev, mask);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-sh64/
H A Ddma-mapping.h9 extern void *consistent_alloc(struct pci_dev *hwdev, size_t size,
11 extern void consistent_free(struct pci_dev *hwdev, size_t size,
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-sparc/
H A Dpci.h37 * hwdev should be valid struct pci_dev pointer for PCI devices.
39 extern void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size, dma_addr_t *dma_handle);
49 extern void pci_free_consistent(struct pci_dev *hwdev, size_t size, void *vaddr, dma_addr_t dma_handle);
57 extern dma_addr_t pci_map_single(struct pci_dev *hwdev, void *ptr, size_t size, int direction);
66 extern void pci_unmap_single(struct pci_dev *hwdev, dma_addr_t dma_addr, size_t size, int direction);
85 extern dma_addr_t pci_map_page(struct pci_dev *hwdev, struct page *page,
87 extern void pci_unmap_page(struct pci_dev *hwdev,
105 extern int pci_map_sg(struct pci_dev *hwdev, struct scatterlist *sg, int nents, int direction);
111 extern void pci_unmap_sg(struct pci_dev *hwdev, struct scatterlist *sg, int nhwents, int direction);
123 extern void pci_dma_sync_single_for_cpu(struct pci_dev *hwdev, dma_addr_
140 pci_dma_supported(struct pci_dev *hwdev, u64 mask) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-sparc64/
H A Dpci.h60 * hwdev should be valid struct pci_dev pointer for PCI devices.
62 static inline void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size, dma_addr_t *dma_handle) argument
64 return pci_iommu_ops->alloc_consistent(hwdev, size, dma_handle, GFP_ATOMIC);
75 static inline void pci_free_consistent(struct pci_dev *hwdev, size_t size, void *vaddr, dma_addr_t dma_handle) argument
77 return pci_iommu_ops->free_consistent(hwdev, size, vaddr, dma_handle);
86 static inline dma_addr_t pci_map_single(struct pci_dev *hwdev, void *ptr, size_t size, int direction) argument
88 return pci_iommu_ops->map_single(hwdev, ptr, size, direction);
98 static inline void pci_unmap_single(struct pci_dev *hwdev, dma_addr_t dma_addr, size_t size, int direction) argument
100 pci_iommu_ops->unmap_single(hwdev, dma_addr, size, direction);
137 static inline int pci_map_sg(struct pci_dev *hwdev, struc argument
146 pci_unmap_sg(struct pci_dev *hwdev, struct scatterlist *sg, int nhwents, int direction) argument
161 pci_dma_sync_single_for_cpu(struct pci_dev *hwdev, dma_addr_t dma_handle, size_t size, int direction) argument
167 pci_dma_sync_single_for_device(struct pci_dev *hwdev, dma_addr_t dma_handle, size_t size, int direction) argument
180 pci_dma_sync_sg_for_cpu(struct pci_dev *hwdev, struct scatterlist *sg, int nelems, int direction) argument
186 pci_dma_sync_sg_for_device(struct pci_dev *hwdev, struct scatterlist *sg, int nelems, int direction) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-x86_64/
H A Ddma-mapping.h20 dma_addr_t (*map_single)(struct device *hwdev, void *ptr,
23 dma_addr_t (*map_simple)(struct device *hwdev, char *ptr,
27 void (*sync_single_for_cpu)(struct device *hwdev,
30 void (*sync_single_for_device)(struct device *hwdev,
33 void (*sync_single_range_for_cpu)(struct device *hwdev,
36 void (*sync_single_range_for_device)(struct device *hwdev,
39 void (*sync_sg_for_cpu)(struct device *hwdev,
42 void (*sync_sg_for_device)(struct device *hwdev,
45 int (*map_sg)(struct device *hwdev, struct scatterlist *sg,
47 void (*unmap_sg)(struct device *hwdev,
78 dma_map_single(struct device *hwdev, void *ptr, size_t size, int direction) argument
99 dma_sync_single_for_cpu(struct device *hwdev, dma_addr_t dma_handle, size_t size, int direction) argument
110 dma_sync_single_for_device(struct device *hwdev, dma_addr_t dma_handle, size_t size, int direction) argument
121 dma_sync_single_range_for_cpu(struct device *hwdev, dma_addr_t dma_handle, unsigned long offset, size_t size, int direction) argument
133 dma_sync_single_range_for_device(struct device *hwdev, dma_addr_t dma_handle, unsigned long offset, size_t size, int direction) argument
145 dma_sync_sg_for_cpu(struct device *hwdev, struct scatterlist *sg, int nelems, int direction) argument
155 dma_sync_sg_for_device(struct device *hwdev, struct scatterlist *sg, int nelems, int direction) argument
167 dma_map_sg(struct device *hwdev, struct scatterlist *sg, int nents, int direction) argument
174 dma_unmap_sg(struct device *hwdev, struct scatterlist *sg, int nents, int direction) argument
[all...]
H A Dswiotlb.h8 extern dma_addr_t swiotlb_map_single(struct device *hwdev, void *ptr,
10 extern void *swiotlb_alloc_coherent(struct device *hwdev, size_t size,
12 extern void swiotlb_unmap_single(struct device *hwdev, dma_addr_t dev_addr,
14 extern void swiotlb_sync_single_for_cpu(struct device *hwdev,
17 extern void swiotlb_sync_single_for_device(struct device *hwdev,
20 extern void swiotlb_sync_single_range_for_cpu(struct device *hwdev,
24 extern void swiotlb_sync_single_range_for_device(struct device *hwdev,
28 extern void swiotlb_sync_sg_for_cpu(struct device *hwdev,
31 extern void swiotlb_sync_sg_for_device(struct device *hwdev,
34 extern int swiotlb_map_sg(struct device *hwdev, struc
[all...]

Completed in 189 milliseconds

12