Home
last modified time | relevance | path

Searched refs:virt_addr (Results 1 – 25 of 193) sorted by relevance

12345678

/linux/drivers/misc/habanalabs/common/mmu/
A Dmmu.c194 real_virt_addr = virt_addr; in hl_mmu_unmap_page()
295 (virt_addr & (real_page_size - 1))))) in hl_mmu_map_page()
301 real_virt_addr = virt_addr; in hl_mmu_map_page()
322 real_virt_addr = virt_addr; in hl_mmu_map_page()
370 curr_va = virt_addr + off; in hl_mmu_map_contiguous()
387 curr_va = virt_addr + off; in hl_mmu_map_contiguous()
428 curr_va = virt_addr + off; in hl_mmu_unmap_contiguous()
517 abs_virt_addr = virt_addr - dram_base; in hl_mmu_pa_page_with_offset()
536 (virt_addr & offset_mask); in hl_mmu_pa_page_with_offset()
581 virt_addr, hops); in hl_mmu_get_tlb_info()
[all …]
A Dmmu_v1.c174 u64 virt_addr, u64 mask, u64 shift) in get_hopN_pte_addr() argument
177 ((virt_addr & mask) >> shift); in get_hopN_pte_addr()
528 u64 virt_addr, bool is_dram_addr) in _hl_mmu_v1_unmap() argument
591 virt_addr); in _hl_mmu_v1_unmap()
605 virt_addr); in _hl_mmu_v1_unmap()
612 virt_addr); in _hl_mmu_v1_unmap()
656 virt_addr); in _hl_mmu_v1_unmap()
726 virt_addr); in _hl_mmu_v1_map()
738 virt_addr); in _hl_mmu_v1_map()
752 virt_addr); in _hl_mmu_v1_map()
[all …]
/linux/drivers/usb/gadget/udc/
A Damd5536udc_pci.c72 iounmap(dev->virt_addr); in udc_pci_remove()
118 dev->virt_addr = ioremap(resource, len); in udc_pci_probe()
119 if (!dev->virt_addr) { in udc_pci_probe()
133 dev->csr = dev->virt_addr + UDC_CSR_ADDR; in udc_pci_probe()
135 dev->regs = dev->virt_addr + UDC_DEVCFG_ADDR; in udc_pci_probe()
137 dev->ep_regs = dev->virt_addr + UDC_EPREGS_ADDR; in udc_pci_probe()
139 dev->rxfifo = (u32 __iomem *)(dev->virt_addr + UDC_RXFIFO_ADDR); in udc_pci_probe()
140 dev->txfifo = (u32 __iomem *)(dev->virt_addr + UDC_TXFIFO_ADDR); in udc_pci_probe()
181 iounmap(dev->virt_addr); in udc_pci_probe()
A Dsnps_udc_plat.c116 udc->virt_addr = devm_ioremap_resource(dev, res); in udc_plat_probe()
117 if (IS_ERR(udc->virt_addr)) in udc_plat_probe()
118 return PTR_ERR(udc->virt_addr); in udc_plat_probe()
121 udc->csr = udc->virt_addr + UDC_CSR_ADDR; in udc_plat_probe()
124 udc->regs = udc->virt_addr + UDC_DEVCFG_ADDR; in udc_plat_probe()
127 udc->ep_regs = udc->virt_addr + UDC_EPREGS_ADDR; in udc_plat_probe()
130 udc->rxfifo = (u32 __iomem *)(udc->virt_addr + UDC_RXFIFO_ADDR); in udc_plat_probe()
131 udc->txfifo = (u32 __iomem *)(udc->virt_addr + UDC_TXFIFO_ADDR); in udc_plat_probe()
/linux/drivers/crypto/qat/qat_common/
A Dadf_admin.c103 void *virt_addr; member
127 memcpy(admin->virt_addr + offset, in, ADF_ADMINMSG_LEN); in adf_put_admin_msg_sync()
143 memcpy(out, admin->virt_addr + offset + in adf_put_admin_msg_sync()
223 void __iomem *csr = pmisc->virt_addr; in adf_init_admin_comms()
233 admin->virt_addr = dma_alloc_coherent(&GET_DEV(accel_dev), PAGE_SIZE, in adf_init_admin_comms()
235 if (!admin->virt_addr) { in adf_init_admin_comms()
248 admin->virt_addr, admin->phy_addr); in adf_init_admin_comms()
279 if (admin->virt_addr) in adf_exit_admin_comms()
281 admin->virt_addr, admin->phy_addr); in adf_exit_admin_comms()
/linux/drivers/w1/masters/
A Dmatrox_w1.c50 void __iomem *virt_addr; member
142 dev->virt_addr = ioremap(dev->phys_addr, 16384); in matrox_w1_probe()
143 if (!dev->virt_addr) { in matrox_w1_probe()
150 dev->base_addr = dev->virt_addr + MATROX_BASE; in matrox_w1_probe()
174 if (dev->virt_addr) in matrox_w1_probe()
175 iounmap(dev->virt_addr); in matrox_w1_probe()
187 iounmap(dev->virt_addr); in matrox_w1_remove()
/linux/arch/powerpc/include/asm/
A Dedac.h21 unsigned int *virt_addr = va; in edac_atomic_scrub() local
25 for (i = 0; i < size / sizeof(*virt_addr); i++, virt_addr++) { in edac_atomic_scrub()
35 : "r"(virt_addr) in edac_atomic_scrub()
/linux/arch/mips/include/asm/
A Dedac.h11 unsigned long *virt_addr = va; in edac_atomic_scrub() local
31 : "=&r" (temp), "=" GCC_OFF_SMALL_ASM() (*virt_addr) in edac_atomic_scrub()
32 : GCC_OFF_SMALL_ASM() (*virt_addr)); in edac_atomic_scrub()
34 virt_addr++; in edac_atomic_scrub()
/linux/arch/arm/include/asm/
A Dedac.h18 unsigned int *virt_addr = va; in edac_atomic_scrub() local
22 for (i = 0; i < size / sizeof(*virt_addr); i++, virt_addr++) { in edac_atomic_scrub()
32 : "r"(virt_addr) in edac_atomic_scrub()
/linux/drivers/net/wireless/ath/ath10k/
A Dswap.c19 u8 *virt_addr = seg_info->virt_address[0]; in ath10k_swap_code_seg_fill() local
55 memcpy(virt_addr, swap_item->tlv.data, payload_len); in ath10k_swap_code_seg_fill()
56 virt_addr += payload_len; in ath10k_swap_code_seg_fill()
93 void *virt_addr; in ath10k_swap_code_seg_alloc() local
107 virt_addr = dma_alloc_coherent(ar->dev, swap_bin_len, &paddr, in ath10k_swap_code_seg_alloc()
109 if (!virt_addr) in ath10k_swap_code_seg_alloc()
118 seg_info->virt_address[0] = virt_addr; in ath10k_swap_code_seg_alloc()
/linux/arch/x86/boot/compressed/
A Dmisc.c180 unsigned long virt_addr) in handle_relocations() argument
208 delta = virt_addr - LOAD_PHYSICAL_ADDR; in handle_relocations()
270 unsigned long virt_addr) in handle_relocations() argument
351 unsigned long virt_addr = LOAD_PHYSICAL_ADDR; in extract_kernel() local
419 &virt_addr); in extract_kernel()
424 if (virt_addr & (MIN_KERNEL_ALIGN - 1)) in extract_kernel()
429 if (virt_addr + max(output_len, kernel_total_size) > KERNEL_IMAGE_SIZE) in extract_kernel()
436 if (virt_addr != LOAD_PHYSICAL_ADDR) in extract_kernel()
444 handle_relocations(output, output_len, virt_addr); in extract_kernel()
/linux/arch/riscv/mm/
A Dinit.c355 BUG_ON((va - kernel_map.virt_addr) >> PGDIR_SHIFT); in alloc_pmd_early()
527 end_va = kernel_map.virt_addr + kernel_map.xiprom_sz; in create_kernel_page_table()
528 for (va = kernel_map.virt_addr; va < end_va; va += PMD_SIZE) in create_kernel_page_table()
530 kernel_map.xiprom + (va - kernel_map.virt_addr), in create_kernel_page_table()
545 end_va = kernel_map.virt_addr + kernel_map.size; in create_kernel_page_table()
548 kernel_map.phys_addr + (va - kernel_map.virt_addr), in create_kernel_page_table()
595 kernel_map.virt_addr = KERNEL_LINK_ADDR; in setup_vm()
642 create_pgd_mapping(trampoline_pg_dir, kernel_map.virt_addr, in setup_vm()
645 create_pmd_mapping(trampoline_pmd, kernel_map.virt_addr, in setup_vm()
648 create_pmd_mapping(trampoline_pmd, kernel_map.virt_addr, in setup_vm()
[all …]
/linux/drivers/comedi/
A Dcomedi_buf.c38 buf->virt_addr, buf->dma_addr); in comedi_buf_map_kref_release()
43 free_page((unsigned long)buf->virt_addr); in comedi_buf_map_kref_release()
98 void *virt_addr; in comedi_buf_map_alloc() local
105 virt_addr = dma_alloc_coherent(bm->dma_hw_dev, in comedi_buf_map_alloc()
108 if (!virt_addr) in comedi_buf_map_alloc()
113 buf->virt_addr = virt_addr + (i << PAGE_SHIFT); in comedi_buf_map_alloc()
122 if (!buf->virt_addr) in comedi_buf_map_alloc()
125 SetPageReserved(virt_to_page(buf->virt_addr)); in comedi_buf_map_alloc()
171 async->prealloc_buf = buf->virt_addr; in __comedi_buf_alloc()
179 pages[i] = virt_to_page(buf->virt_addr); in __comedi_buf_alloc()
[all …]
/linux/arch/arm64/kvm/hyp/nvhe/
A Dmm.c74 unsigned long virt_addr; in pkvm_create_mappings_locked() local
82 for (virt_addr = start; virt_addr < end; virt_addr += PAGE_SIZE) { in pkvm_create_mappings_locked()
85 phys = hyp_virt_to_phys((void *)virt_addr); in pkvm_create_mappings_locked()
86 err = kvm_pgtable_hyp_map(&pkvm_pgtable, virt_addr, PAGE_SIZE, in pkvm_create_mappings_locked()
/linux/drivers/net/ethernet/cirrus/
A Dcs89x0.c204 tmp16 = ioread16(lp->virt_addr + portno); in readwords()
219 iowrite16(tmp16, lp->virt_addr + portno); in writewords()
1290 lp->virt_addr + DATA_PORT); in reset_chip()
1292 lp->virt_addr + DATA_PORT + 1); in reset_chip()
1349 lp->virt_addr = ioaddr; in cs89x0_probe1()
1373 lp->virt_addr); in cs89x0_probe1()
1837 ioport_unmap(lp->virt_addr); in cs89x0_isa_cleanup_module()
1849 void __iomem *virt_addr; in cs89x0_platform_probe() local
1863 if (IS_ERR(virt_addr)) { in cs89x0_platform_probe()
1864 err = PTR_ERR(virt_addr); in cs89x0_platform_probe()
[all …]
/linux/drivers/pci/endpoint/
A Dpci-epc-mem.c171 void __iomem *virt_addr = NULL; in pci_epc_mem_alloc_addr() local
191 virt_addr = ioremap(*phys_addr, align_size); in pci_epc_mem_alloc_addr()
192 if (!virt_addr) { in pci_epc_mem_alloc_addr()
199 return virt_addr; in pci_epc_mem_alloc_addr()
204 return virt_addr; in pci_epc_mem_alloc_addr()
235 void __iomem *virt_addr, size_t size) in pci_epc_mem_free_addr() argument
251 iounmap(virt_addr); in pci_epc_mem_free_addr()
/linux/arch/powerpc/platforms/ps3/
A Dmm.c781 unsigned long phys_addr = is_kernel_addr(virt_addr) ? __pa(virt_addr) in dma_sb_map_area()
782 : virt_addr; in dma_sb_map_area()
792 virt_addr); in dma_sb_map_area()
836 unsigned long phys_addr = is_kernel_addr(virt_addr) ? __pa(virt_addr) in dma_ioc0_map_area()
837 : virt_addr; in dma_ioc0_map_area()
843 virt_addr, len); in dma_ioc0_map_area()
973 unsigned long virt_addr, len; in dma_sb_region_create_linear() local
991 virt_addr = map.rm.base + r->offset; in dma_sb_region_create_linear()
1003 virt_addr = map.rm.size; in dma_sb_region_create_linear()
1077 unsigned long phys_addr = is_kernel_addr(virt_addr) ? __pa(virt_addr) in dma_sb_map_area_linear()
[all …]
/linux/arch/x86/include/asm/
A Dedac.h9 u32 i, *virt_addr = va; in edac_atomic_scrub() local
15 for (i = 0; i < size / 4; i++, virt_addr++) in edac_atomic_scrub()
16 asm volatile("lock; addl $0, %0"::"m" (*virt_addr)); in edac_atomic_scrub()
/linux/drivers/acpi/
A Dosl.c711 void __iomem *virt_addr; in acpi_os_read_memory() local
719 if (!virt_addr) { in acpi_os_read_memory()
722 if (!virt_addr) in acpi_os_read_memory()
734 iounmap(virt_addr); in acpi_os_read_memory()
744 void __iomem *virt_addr; in acpi_os_write_memory() local
750 if (!virt_addr) { in acpi_os_write_memory()
753 if (!virt_addr) in acpi_os_write_memory()
760 writeb(value, virt_addr); in acpi_os_write_memory()
763 writew(value, virt_addr); in acpi_os_write_memory()
766 writel(value, virt_addr); in acpi_os_write_memory()
[all …]
/linux/arch/riscv/include/asm/
A Dpage.h89 unsigned long virt_addr; member
107 ((x) >= kernel_map.virt_addr && (x) < (kernel_map.virt_addr + kernel_map.size))
110 ((x) >= PAGE_OFFSET && (!IS_ENABLED(CONFIG_64BIT) || (x) < kernel_map.virt_addr))
124 (IS_ENABLED(CONFIG_XIP_KERNEL) && _y < kernel_map.virt_addr + XIP_OFFSET) ? \
/linux/tools/testing/nvdimm/
A Dpmem-dax.c27 *kaddr = pmem->virt_addr + offset; in __pmem_direct_access()
28 page = vmalloc_to_page(pmem->virt_addr + offset); in __pmem_direct_access()
38 *kaddr = pmem->virt_addr + offset; in __pmem_direct_access()
/linux/drivers/mtd/
A Dftl.c795 uint32_t virt_addr) in set_bam_entry() argument
806 part, log_addr, virt_addr); in set_bam_entry()
824 (!BLOCK_DELETED(virt_addr) && (old_addr != 0xfffffffe))) { in set_bam_entry()
829 ", new = 0x%x\n", log_addr, old_addr, virt_addr); in set_bam_entry()
834 le_virt_addr = cpu_to_le32(virt_addr); in set_bam_entry()
857 log_addr, virt_addr); in set_bam_entry()
865 uint32_t bsize, log_addr, virt_addr, old_addr, blk; in ftl_write() local
885 virt_addr = sector * SECTOR_SIZE | BLOCK_DATA; in ftl_write()
916 " = 0x%x, Offset = 0x%zx\n", log_addr, virt_addr, in ftl_write()
931 if (set_bam_entry(part, log_addr, virt_addr)) in ftl_write()
[all …]
/linux/drivers/media/platform/omap3isp/
A Dispstat.c109 for (w = buf->virt_addr, end = w + MAGIC_SIZE; w < end; w++) in isp_stat_buf_check_magic()
121 for (w = buf->virt_addr + buf_size, end = w + MAGIC_SIZE; in isp_stat_buf_check_magic()
151 memset(buf->virt_addr, MAGIC_NUM, MAGIC_SIZE); in isp_stat_buf_insert_magic()
152 memset(buf->virt_addr + buf_size, MAGIC_NUM, MAGIC_SIZE); in isp_stat_buf_insert_magic()
321 buf->virt_addr, in isp_stat_buf_get()
344 if (!buf->virt_addr) in isp_stat_bufs_free()
349 dma_free_coherent(dev, stat->buf_alloc_size, buf->virt_addr, in isp_stat_bufs_free()
353 buf->virt_addr = NULL; in isp_stat_bufs_free()
372 if (!buf->virt_addr) in isp_stat_bufs_alloc_one()
379 buf->virt_addr = NULL; in isp_stat_bufs_alloc_one()
[all …]
/linux/drivers/net/ethernet/marvell/
A Dmvneta_bm.c123 bm_pool->virt_addr = dma_alloc_coherent(&pdev->dev, size_bytes, in mvneta_bm_pool_create()
126 if (!bm_pool->virt_addr) in mvneta_bm_pool_create()
129 if (!IS_ALIGNED((u32)bm_pool->virt_addr, MVNETA_BM_POOL_PTR_ALIGN)) { in mvneta_bm_pool_create()
130 dma_free_coherent(&pdev->dev, size_bytes, bm_pool->virt_addr, in mvneta_bm_pool_create()
140 dma_free_coherent(&pdev->dev, size_bytes, bm_pool->virt_addr, in mvneta_bm_pool_create()
272 if (bm_pool->virt_addr) { in mvneta_bm_pool_destroy()
275 bm_pool->virt_addr, bm_pool->phys_addr); in mvneta_bm_pool_destroy()
276 bm_pool->virt_addr = NULL; in mvneta_bm_pool_destroy()
/linux/drivers/media/platform/omap/
A Domap_voutlib.c308 unsigned long virt_addr, addr; in omap_vout_alloc_buffer() local
312 virt_addr = __get_free_pages(GFP_KERNEL, order); in omap_vout_alloc_buffer()
313 addr = virt_addr; in omap_vout_alloc_buffer()
315 if (virt_addr) { in omap_vout_alloc_buffer()
322 *phys_addr = (u32) virt_to_phys((void *) virt_addr); in omap_vout_alloc_buffer()
323 return virt_addr; in omap_vout_alloc_buffer()

Completed in 51 milliseconds

12345678