Home
last modified time | relevance | path

Searched refs:dma_addr (Results 1 – 25 of 56) sorted by relevance

123

/linux-4.19.296/drivers/misc/mic/host/
Dmic_smpt.c87 (smpt_info->entry[i].dma_addr != addr)) { in mic_add_smpt_entry()
89 smpt_info->entry[i].dma_addr = addr; in mic_add_smpt_entry()
99 static dma_addr_t mic_smpt_op(struct mic_device *mdev, u64 dma_addr, in mic_smpt_op() argument
107 dma_addr_t addr = dma_addr; in mic_smpt_op()
114 if (smpt_info->entry[i].dma_addr == addr) { in mic_smpt_op()
138 mic_add_smpt_entry(spt, ref, dma_addr, entries, mdev); in mic_smpt_op()
150 static int mic_get_smpt_ref_count(struct mic_device *mdev, dma_addr_t dma_addr, in mic_get_smpt_ref_count() argument
153 u64 start = dma_addr; in mic_get_smpt_ref_count()
154 u64 end = dma_addr + size; in mic_get_smpt_ref_count()
164 *smpt_start = mic_smpt_align_low(mdev, dma_addr); in mic_get_smpt_ref_count()
[all …]
Dmic_smpt.h30 void (*set)(struct mic_device *mdev, dma_addr_t dma_addr, u8 index);
39 dma_addr_t dma_addr; member
79 dma_addr_t dma_addr, size_t size);
Dmic_boot.c49 static void _mic_dma_unmap_page(struct device *dev, dma_addr_t dma_addr, in _mic_dma_unmap_page() argument
55 mic_unmap_single(mdev, dma_addr, size); in _mic_dma_unmap_page()
189 __mic_dma_unmap_page(struct device *dev, dma_addr_t dma_addr, in __mic_dma_unmap_page() argument
196 mic_unmap_single(mdev, dma_addr, size); in __mic_dma_unmap_page()
339 mic_dma_unmap_page(struct device *dev, dma_addr_t dma_addr, in mic_dma_unmap_page() argument
344 mic_unmap_single(mdev, dma_addr, size); in mic_dma_unmap_page()
/linux-4.19.296/include/linux/
Ddma-debug.h37 int direction, dma_addr_t dma_addr,
40 extern void debug_dma_mapping_error(struct device *dev, dma_addr_t dma_addr);
52 dma_addr_t dma_addr, void *virt);
59 dma_addr_t dma_addr);
61 extern void debug_dma_unmap_resource(struct device *dev, dma_addr_t dma_addr,
108 int direction, dma_addr_t dma_addr, in debug_dma_map_page() argument
114 dma_addr_t dma_addr) in debug_dma_mapping_error() argument
136 dma_addr_t dma_addr, void *virt) in debug_dma_alloc_coherent() argument
147 dma_addr_t dma_addr) in debug_dma_map_resource() argument
152 dma_addr_t dma_addr, size_t size, in debug_dma_unmap_resource() argument
Ddma-mapping.h131 int (*mapping_error)(struct device *dev, dma_addr_t dma_addr);
448 void *cpu_addr, dma_addr_t dma_addr, size_t size);
474 dma_addr_t dma_addr, size_t size, unsigned long attrs) in dma_mmap_attrs() argument
479 return ops->mmap(dev, vma, cpu_addr, dma_addr, size, attrs); in dma_mmap_attrs()
480 return dma_common_mmap(dev, vma, cpu_addr, dma_addr, size); in dma_mmap_attrs()
487 void *cpu_addr, dma_addr_t dma_addr, size_t size);
491 dma_addr_t dma_addr, size_t size, in dma_get_sgtable_attrs() argument
497 return ops->get_sgtable(dev, sgt, cpu_addr, dma_addr, size, in dma_get_sgtable_attrs()
499 return dma_common_get_sgtable(dev, sgt, cpu_addr, dma_addr, size); in dma_get_sgtable_attrs()
572 static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in dma_mapping_error() argument
[all …]
Dpci-dma-compat.h44 pci_unmap_single(struct pci_dev *hwdev, dma_addr_t dma_addr, in pci_unmap_single() argument
47 dma_unmap_single(&hwdev->dev, dma_addr, size, (enum dma_data_direction)direction); in pci_unmap_single()
107 pci_dma_mapping_error(struct pci_dev *pdev, dma_addr_t dma_addr) in pci_dma_mapping_error() argument
109 return dma_mapping_error(&pdev->dev, dma_addr); in pci_dma_mapping_error()
Dacpi_iort.h40 void iort_dma_setup(struct device *dev, u64 *dma_addr, u64 *size);
52 static inline void iort_dma_setup(struct device *dev, u64 *dma_addr, in iort_dma_setup() argument
Ddma-noncoherent.h10 dma_addr_t dma_addr, unsigned long attrs);
14 void *cpu_addr, dma_addr_t dma_addr, size_t size,
Ddma-direct.h61 dma_addr_t dma_addr, unsigned long attrs);
68 int dma_direct_mapping_error(struct device *dev, dma_addr_t dma_addr);
Dswiotlb.h73 dma_addr_t dma_addr, unsigned long attrs);
110 swiotlb_dma_mapping_error(struct device *hwdev, dma_addr_t dma_addr);
Dof_address.h58 extern int of_dma_get_range(struct device_node *np, u64 *dma_addr,
107 static inline int of_dma_get_range(struct device_node *np, u64 *dma_addr, in of_dma_get_range() argument
/linux-4.19.296/drivers/misc/mic/scif/
Dscif_rma.c158 window->dma_addr = scif_zalloc(nr_pages * sizeof(*window->dma_addr)); in scif_create_window()
159 if (!window->dma_addr) in scif_create_window()
179 scif_free(window->dma_addr, in scif_create_window()
180 nr_pages * sizeof(*window->dma_addr)); in scif_create_window()
222 scif_free(window->dma_addr, nr_pages * sizeof(*window->dma_addr)); in scif_destroy_incomplete_window()
249 if (window->dma_addr[j]) { in scif_unmap_window()
250 scif_unmap_single(window->dma_addr[j], in scif_unmap_window()
254 window->dma_addr[j] = 0x0; in scif_unmap_window()
352 scif_free(window->dma_addr, nr_pages * sizeof(*window->dma_addr)); in scif_destroy_window()
406 vmalloc_dma_phys = is_vmalloc_addr(&window->dma_addr[0]); in scif_create_remote_lookup()
[all …]
/linux-4.19.296/drivers/misc/genwqe/
Dcard_dev.c160 dma_addr_t *dma_addr, in __genwqe_search_mapping() argument
175 if (dma_addr) in __genwqe_search_mapping()
176 *dma_addr = m->dma_addr + in __genwqe_search_mapping()
220 (unsigned long)dma_map->dma_addr); in genwqe_remove_mappings()
226 dma_map->dma_addr); in genwqe_remove_mappings()
416 dma_map->dma_addr); in genwqe_vma_close()
460 &dma_map->dma_addr); in genwqe_mmap()
467 *(dma_addr_t *)dma_map->k_vaddr = dma_map->dma_addr; in genwqe_mmap()
489 dma_map->dma_addr); in genwqe_mmap()
510 dma_addr_t dma_addr; in do_flash_update() local
[all …]
/linux-4.19.296/drivers/media/common/videobuf2/
Dvideobuf2-dma-contig.c30 dma_addr_t dma_addr; member
73 return &buf->dma_addr; in vb2_dc_cookie()
133 dma_free_attrs(buf->dev, buf->size, buf->cookie, buf->dma_addr, in vb2_dc_put()
154 buf->cookie = dma_alloc_attrs(dev, size, &buf->dma_addr, in vb2_dc_alloc()
196 buf->dma_addr, buf->size, buf->attrs); in vb2_dc_mmap()
210 __func__, (unsigned long)buf->dma_addr, vma->vm_start, in vb2_dc_mmap()
377 ret = dma_get_sgtable_attrs(buf->dev, sgt, buf->cookie, buf->dma_addr, in vb2_dc_get_base_sgt()
531 buf->dma_addr = vb2_dc_pfn_to_dma(buf->dev, nums[0]); in vb2_dc_get_userptr()
569 buf->dma_addr = sg_dma_address(sgt->sgl); in vb2_dc_get_userptr()
631 buf->dma_addr = sg_dma_address(sgt->sgl); in vb2_dc_map_dmabuf()
[all …]
/linux-4.19.296/drivers/of/
Ddevice.c91 u64 dma_addr, paddr, size = 0; in of_dma_configure() local
98 ret = of_dma_get_range(np, &dma_addr, &paddr, &size); in of_dma_configure()
108 dma_addr = offset = 0; in of_dma_configure()
110 offset = PFN_DOWN(paddr - dma_addr); in of_dma_configure()
151 mask = DMA_BIT_MASK(ilog2(dma_addr + size - 1) + 1); in of_dma_configure()
169 arch_setup_dma_ops(dev, dma_addr, size, iommu, coherent); in of_dma_configure()
/linux-4.19.296/drivers/media/v4l2-core/
Dvideobuf-dma-sg.c226 dma->dma_addr = kcalloc(nr_pages, sizeof(*dma->dma_addr), GFP_KERNEL); in videobuf_dma_init_kernel()
227 if (!dma->dma_addr) { in videobuf_dma_init_kernel()
235 &(dma->dma_addr[i]), GFP_KERNEL); in videobuf_dma_init_kernel()
261 dma_free_coherent(dma->dev, PAGE_SIZE, addr, dma->dma_addr[i]); in videobuf_dma_init_kernel()
263 kfree(dma->dma_addr); in videobuf_dma_init_kernel()
264 dma->dma_addr = NULL; in videobuf_dma_init_kernel()
364 if (dma->dma_addr) { in videobuf_dma_free()
370 dma->dma_addr[i]); in videobuf_dma_free()
372 kfree(dma->dma_addr); in videobuf_dma_free()
373 dma->dma_addr = NULL; in videobuf_dma_free()
/linux-4.19.296/drivers/media/common/saa7146/
Dsaa7146_vbi.c11 dma_addr_t dma_addr; in vbi_workaround() local
25 cpu = pci_alloc_consistent(dev->pci, 4096, &dma_addr); in vbi_workaround()
30 saa7146_write(dev, BASE_EVEN3, dma_addr); in vbi_workaround()
31 saa7146_write(dev, BASE_ODD3, dma_addr+vbi_pixel_to_capture); in vbi_workaround()
32 saa7146_write(dev, PROT_ADDR3, dma_addr+4096); in vbi_workaround()
126 pci_free_consistent(dev->pci, 4096, cpu, dma_addr); in vbi_workaround()
131 pci_free_consistent(dev->pci, 4096, cpu, dma_addr); in vbi_workaround()
/linux-4.19.296/drivers/xen/
Dswiotlb-xen.c127 static int is_xen_swiotlb_buffer(dma_addr_t dma_addr) in is_xen_swiotlb_buffer() argument
129 unsigned long bfn = XEN_PFN_DOWN(dma_addr); in is_xen_swiotlb_buffer()
663 void *cpu_addr, dma_addr_t dma_addr, size_t size, in xen_swiotlb_dma_mmap() argument
669 dma_addr, size, attrs); in xen_swiotlb_dma_mmap()
671 return dma_common_mmap(dev, vma, cpu_addr, dma_addr, size); in xen_swiotlb_dma_mmap()
701 static int xen_swiotlb_mapping_error(struct device *dev, dma_addr_t dma_addr) in xen_swiotlb_mapping_error() argument
703 return dma_addr == XEN_SWIOTLB_ERROR_CODE; in xen_swiotlb_mapping_error()
/linux-4.19.296/drivers/char/xillybus/
Dxillybus.h30 dma_addr_t dma_addr; member
144 dma_addr_t dma_addr; member
Dxillybus_of.c65 dma_unmap_single(data->device, data->dma_addr, in xilly_of_unmap()
93 this->dma_addr = addr; in xilly_map_single_of()
Dxillybus_core.c327 dma_addr_t dma_addr; in xilly_get_dma_buffers() local
374 &dma_addr); in xilly_get_dma_buffers()
378 iowrite32((u32) (dma_addr & 0xffffffff), in xilly_get_dma_buffers()
380 iowrite32(((u32) ((((u64) dma_addr) >> 32) & 0xffffffff)), in xilly_get_dma_buffers()
385 this_buffer->dma_addr = dma_addr; in xilly_get_dma_buffers()
392 ep->msgbuf_dma_addr = dma_addr; in xilly_get_dma_buffers()
639 channel->wr_buffers[0]->dma_addr, in xilly_obtain_idt()
754 channel->wr_buffers[bufidx]->dma_addr, in xillybus_read()
770 channel->wr_buffers[bufidx]->dma_addr, in xillybus_read()
1074 channel->rd_buffers[bufidx]->dma_addr, in xillybus_myflush()
[all …]
Dxillybus_pcie.c78 pci_unmap_single(data->device, data->dma_addr, in xilly_pci_unmap()
115 this->dma_addr = addr; in xilly_map_single_pci()
/linux-4.19.296/drivers/char/agp/
Dalpha-agp.c17 dma_addr_t dma_addr; in alpha_core_agp_vm_fault() local
21 dma_addr = vmf->address - vmf->vma->vm_start + agp->aperture.bus_base; in alpha_core_agp_vm_fault()
22 pa = agp->ops->translate(agp, dma_addr); in alpha_core_agp_vm_fault()
/linux-4.19.296/drivers/i2c/busses/
Di2c-at91.c305 dma_addr_t dma_addr; in at91_twi_write_data_dma() local
317 dma_addr = dma_map_single(dev->dev, dev->buf, dev->buf_len, in at91_twi_write_data_dma()
319 if (dma_mapping_error(dev->dev, dma_addr)) { in at91_twi_write_data_dma()
337 sg_dma_address(sg) = dma_addr; in at91_twi_write_data_dma()
344 sg_dma_address(sg) = dma_addr + part1_len; in at91_twi_write_data_dma()
357 sg_dma_address(&dma->sg[0]) = dma_addr; in at91_twi_write_data_dma()
444 dma_addr_t dma_addr; in at91_twi_read_data_dma() local
455 dma_addr = dma_map_single(dev->dev, dev->buf, buf_len, DMA_FROM_DEVICE); in at91_twi_read_data_dma()
456 if (dma_mapping_error(dev->dev, dma_addr)) { in at91_twi_read_data_dma()
477 sg_dma_address(&dma->sg[0]) = dma_addr; in at91_twi_read_data_dma()
Di2c-ismt.c395 dma_addr_t dma_addr = 0; /* address of the data buffer */ in ismt_access() local
576 dma_addr = dma_map_single(dev, in ismt_access()
581 if (dma_mapping_error(dev, dma_addr)) { in ismt_access()
587 dev_dbg(dev, " dma_addr = %pad\n", &dma_addr); in ismt_access()
589 desc->dptr_low = lower_32_bits(dma_addr); in ismt_access()
590 desc->dptr_high = upper_32_bits(dma_addr); in ismt_access()
603 dma_unmap_single(dev, dma_addr, dma_size, dma_direction); in ismt_access()

123