Home
last modified time | relevance | path

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

12345

/drivers/usb/gadget/udc/
Damd5536udc_pci.c73 iounmap(dev->virt_addr); in udc_pci_remove()
119 dev->virt_addr = ioremap_nocache(resource, len); in udc_pci_probe()
120 if (!dev->virt_addr) { in udc_pci_probe()
134 dev->csr = dev->virt_addr + UDC_CSR_ADDR; in udc_pci_probe()
136 dev->regs = dev->virt_addr + UDC_DEVCFG_ADDR; in udc_pci_probe()
138 dev->ep_regs = dev->virt_addr + UDC_EPREGS_ADDR; in udc_pci_probe()
140 dev->rxfifo = (u32 __iomem *)(dev->virt_addr + UDC_RXFIFO_ADDR); in udc_pci_probe()
141 dev->txfifo = (u32 __iomem *)(dev->virt_addr + UDC_TXFIFO_ADDR); in udc_pci_probe()
182 iounmap(dev->virt_addr); in udc_pci_probe()
Dsnps_udc_plat.c116 udc->virt_addr = devm_ioremap_resource(dev, res); 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()
/drivers/crypto/qat/qat_common/
Dadf_admin.c148 void *virt_addr; member
170 memcpy(admin->virt_addr + offset, in, ADF_ADMINMSG_LEN); in adf_put_admin_msg_sync()
181 memcpy(out, admin->virt_addr + offset + in adf_put_admin_msg_sync()
238 void __iomem *csr = pmisc->virt_addr; in adf_init_admin_comms()
247 admin->virt_addr = dma_alloc_coherent(&GET_DEV(accel_dev), PAGE_SIZE, in adf_init_admin_comms()
249 if (!admin->virt_addr) { in adf_init_admin_comms()
262 admin->virt_addr, admin->phy_addr); in adf_init_admin_comms()
285 if (admin->virt_addr) in adf_exit_admin_comms()
287 admin->virt_addr, admin->phy_addr); in adf_exit_admin_comms()
Dadf_pf2vf_msg.c64 pci_info->pci_bars[hw_data->get_misc_bar_id(hw_data)].virt_addr; in adf_enable_pf2vf_interrupts()
74 pci_info->pci_bars[hw_data->get_misc_bar_id(hw_data)].virt_addr; in adf_disable_pf2vf_interrupts()
85 void __iomem *pmisc_addr = pmisc->virt_addr; in adf_enable_vf2pf_interrupts()
108 void __iomem *pmisc_addr = pmisc->virt_addr; in adf_disable_vf2pf_interrupts()
131 pci_info->pci_bars[hw_data->get_misc_bar_id(hw_data)].virt_addr; in __adf_iov_putmsg()
242 void __iomem *pmisc_addr = pmisc->virt_addr; in adf_vf2pf_req_hndl()
Dqat_uclo.c1265 u64 virt_addr, bus_addr, virt_base; in qat_uclo_map_auth_fw() local
1289 virt_addr = virt_base; in qat_uclo_map_auth_fw()
1291 memcpy((void *)(uintptr_t)virt_addr, image, sizeof(*css_hdr)); in qat_uclo_map_auth_fw()
1295 virt_addr = virt_addr + sizeof(*css_hdr); in qat_uclo_map_auth_fw()
1300 memcpy((void *)(uintptr_t)virt_addr, in qat_uclo_map_auth_fw()
1304 memset((void *)(uintptr_t)(virt_addr + ICP_QAT_CSS_FWSK_MODULUS_LEN), in qat_uclo_map_auth_fw()
1308 memcpy((void *)(uintptr_t)(virt_addr + ICP_QAT_CSS_FWSK_MODULUS_LEN + in qat_uclo_map_auth_fw()
1318 virt_addr = virt_addr + ICP_QAT_CSS_FWSK_PUB_LEN; in qat_uclo_map_auth_fw()
1322 memcpy((void *)(uintptr_t)virt_addr, in qat_uclo_map_auth_fw()
1331 virt_addr += ICP_QAT_CSS_SIGNATURE_LEN; in qat_uclo_map_auth_fw()
[all …]
/drivers/misc/habanalabs/
Dmmu.c168 u64 virt_addr, u64 mask, u64 shift) in get_hopN_pte_addr() argument
171 ((virt_addr & mask) >> shift); in get_hopN_pte_addr()
516 static int _hl_mmu_unmap(struct hl_ctx *ctx, u64 virt_addr) in _hl_mmu_unmap() argument
528 is_dram_addr = hl_mem_area_inside_range(virt_addr, PAGE_SIZE_2MB, in _hl_mmu_unmap()
533 hop0_pte_addr = get_hop0_pte_addr(ctx, hop0_addr, virt_addr); in _hl_mmu_unmap()
542 hop1_pte_addr = get_hop1_pte_addr(ctx, hop1_addr, virt_addr); in _hl_mmu_unmap()
551 hop2_pte_addr = get_hop2_pte_addr(ctx, hop2_addr, virt_addr); in _hl_mmu_unmap()
560 hop3_pte_addr = get_hop3_pte_addr(ctx, hop3_addr, virt_addr); in _hl_mmu_unmap()
578 hop4_pte_addr = get_hop4_pte_addr(ctx, hop4_addr, virt_addr); in _hl_mmu_unmap()
592 virt_addr); in _hl_mmu_unmap()
[all …]
Ddebugfs.c311 u64 virt_addr) in get_hop0_pte_addr() argument
314 ((virt_addr & HOP0_MASK) >> HOP0_SHIFT); in get_hop0_pte_addr()
318 u64 virt_addr) in get_hop1_pte_addr() argument
321 ((virt_addr & HOP1_MASK) >> HOP1_SHIFT); in get_hop1_pte_addr()
325 u64 virt_addr) in get_hop2_pte_addr() argument
328 ((virt_addr & HOP2_MASK) >> HOP2_SHIFT); in get_hop2_pte_addr()
332 u64 virt_addr) in get_hop3_pte_addr() argument
335 ((virt_addr & HOP3_MASK) >> HOP3_SHIFT); in get_hop3_pte_addr()
339 u64 virt_addr) in get_hop4_pte_addr() argument
342 ((virt_addr & HOP4_MASK) >> HOP4_SHIFT); in get_hop4_pte_addr()
[all …]
/drivers/w1/masters/
Dmatrox_w1.c50 void __iomem *virt_addr; member
142 dev->virt_addr = ioremap_nocache(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()
/drivers/net/wireless/ath/ath10k/
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()
/drivers/staging/comedi/
Dcomedi_buf.c38 buf->virt_addr, buf->dma_addr); in comedi_buf_map_kref_release()
42 ClearPageReserved(virt_to_page(buf->virt_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()
121 buf->virt_addr = (void *)get_zeroed_page(GFP_KERNEL); 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()
[all …]
/drivers/pci/endpoint/
Dpci-epc-mem.c125 void __iomem *virt_addr; in pci_epc_mem_alloc_addr() local
138 virt_addr = ioremap(*phys_addr, size); in pci_epc_mem_alloc_addr()
139 if (!virt_addr) in pci_epc_mem_alloc_addr()
142 return virt_addr; in pci_epc_mem_alloc_addr()
156 void __iomem *virt_addr, size_t size) in pci_epc_mem_free_addr() argument
163 iounmap(virt_addr); in pci_epc_mem_free_addr()
/drivers/net/ethernet/cirrus/
Dcs89x0.c150 void __iomem *virt_addr;/* CS89x0 virtual address. */ member
204 tmp16 = ioread16(lp->virt_addr + portno); in readwords()
219 iowrite16(tmp16, lp->virt_addr + portno); in writewords()
228 iowrite16(regno, lp->virt_addr + ADD_PORT); in readreg()
229 return ioread16(lp->virt_addr + DATA_PORT); in readreg()
237 iowrite16(regno, lp->virt_addr + ADD_PORT); in writereg()
238 iowrite16(value, lp->virt_addr + DATA_PORT); in writereg()
526 iowrite16(TX_AFTER_ALL, lp->virt_addr + TX_CMD_PORT); in send_test_pkt()
527 iowrite16(ETH_ZLEN, lp->virt_addr + TX_LEN_PORT); in send_test_pkt()
677 status = ioread16(lp->virt_addr + RX_FRAME_PORT); in net_rx()
[all …]
/drivers/acpi/
Dosl.c680 int acpi_os_read_iomem(void __iomem *virt_addr, u64 *value, u32 width) in acpi_os_read_iomem() argument
685 *(u8 *) value = readb(virt_addr); in acpi_os_read_iomem()
688 *(u16 *) value = readw(virt_addr); in acpi_os_read_iomem()
691 *(u32 *) value = readl(virt_addr); in acpi_os_read_iomem()
694 *(u64 *) value = readq(virt_addr); in acpi_os_read_iomem()
706 void __iomem *virt_addr; in acpi_os_read_memory() local
713 virt_addr = acpi_map_vaddr_lookup(phys_addr, size); in acpi_os_read_memory()
714 if (!virt_addr) { in acpi_os_read_memory()
716 virt_addr = acpi_os_ioremap(phys_addr, size); in acpi_os_read_memory()
717 if (!virt_addr) in acpi_os_read_memory()
[all …]
/drivers/mtd/
Dftl.c795 uint32_t virt_addr) in set_bam_entry() argument
806 part, log_addr, virt_addr); in set_bam_entry()
822 if (((virt_addr == 0xfffffffe) && !BLOCK_FREE(old_addr)) || in set_bam_entry()
823 ((virt_addr == 0) && (BLOCK_TYPE(old_addr) != BLOCK_DATA)) || 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()
[all …]
/drivers/media/platform/omap3isp/
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()
370 buf->virt_addr = dma_alloc_coherent(dev, size, &buf->dma_addr, in isp_stat_bufs_alloc_one()
372 if (!buf->virt_addr) in isp_stat_bufs_alloc_one()
[all …]
/drivers/net/ethernet/marvell/
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()
/drivers/media/platform/omap/
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()
/drivers/staging/comedi/drivers/
Dcomedi_isadma.c208 desc->virt_addr = dma_alloc_coherent(dma->dev, desc->maxsize, in comedi_isadma_alloc()
211 if (!desc->virt_addr) in comedi_isadma_alloc()
239 if (desc->virt_addr) in comedi_isadma_free()
241 desc->virt_addr, in comedi_isadma_free()
/drivers/crypto/qat/qat_c3xxxvf/
Dadf_drv.c99 if (bar->virt_addr) in adf_cleanup_accel()
100 pci_iounmap(accel_pci_dev->pci_dev, bar->virt_addr); in adf_cleanup_accel()
221 bar->virt_addr = pci_iomap(accel_pci_dev->pci_dev, bar_nr, 0); in adf_probe()
222 if (!bar->virt_addr) { in adf_probe()
/drivers/crypto/qat/qat_dh895xccvf/
Dadf_drv.c99 if (bar->virt_addr) in adf_cleanup_accel()
100 pci_iounmap(accel_pci_dev->pci_dev, bar->virt_addr); in adf_cleanup_accel()
221 bar->virt_addr = pci_iomap(accel_pci_dev->pci_dev, bar_nr, 0); in adf_probe()
222 if (!bar->virt_addr) { in adf_probe()
/drivers/crypto/qat/qat_c62xvf/
Dadf_drv.c99 if (bar->virt_addr) in adf_cleanup_accel()
100 pci_iounmap(accel_pci_dev->pci_dev, bar->virt_addr); in adf_cleanup_accel()
221 bar->virt_addr = pci_iomap(accel_pci_dev->pci_dev, bar_nr, 0); in adf_probe()
222 if (!bar->virt_addr) { in adf_probe()
/drivers/firmware/efi/
Darm-init.c44 if (md->virt_addr == 0) in efi_to_phys()
47 if (md->virt_addr <= addr && in efi_to_phys()
48 (addr - md->virt_addr) < (md->num_pages << EFI_PAGE_SHIFT)) in efi_to_phys()
49 return md->phys_addr + addr - md->virt_addr; in efi_to_phys()
Dmemattr.c94 if (md->virt_addr == 0 && md->phys_addr != 0) { in entry_is_valid()
116 out->virt_addr = in_paddr + (md->virt_addr - md_paddr); in entry_is_valid()
/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_eqs.c48 ((eq)->virt_addr[(idx) / (eq)->num_elem_in_pg] + \
579 addr_size = eq->num_pages * sizeof(*eq->virt_addr); in alloc_eq_pages()
580 eq->virt_addr = devm_kzalloc(&pdev->dev, addr_size, GFP_KERNEL); in alloc_eq_pages()
581 if (!eq->virt_addr) { in alloc_eq_pages()
587 eq->virt_addr[pg] = dma_alloc_coherent(&pdev->dev, in alloc_eq_pages()
591 if (!eq->virt_addr[pg]) { in alloc_eq_pages()
619 eq->virt_addr[pg], in alloc_eq_pages()
622 devm_kfree(&pdev->dev, eq->virt_addr); in alloc_eq_pages()
641 eq->virt_addr[pg], in free_eq_pages()
644 devm_kfree(&pdev->dev, eq->virt_addr); in free_eq_pages()
/drivers/dma/
Dfsl-qdma.c190 struct fsl_qdma_format *virt_addr; member
313 comp_temp->virt_addr, in fsl_qdma_free_chan_resources()
325 comp_temp->virt_addr, in fsl_qdma_free_chan_resources()
349 ccdf = fsl_comp->virt_addr; in fsl_qdma_comp_fill_memcpy()
350 csgf_desc = fsl_comp->virt_addr + 1; in fsl_qdma_comp_fill_memcpy()
351 csgf_src = fsl_comp->virt_addr + 2; in fsl_qdma_comp_fill_memcpy()
352 csgf_dest = fsl_comp->virt_addr + 3; in fsl_qdma_comp_fill_memcpy()
356 memset(fsl_comp->virt_addr, 0, FSL_QDMA_COMMAND_BUFFER_SIZE); in fsl_qdma_comp_fill_memcpy()
396 comp_temp->virt_addr = in fsl_qdma_pre_request_enqueue_desc()
399 if (!comp_temp->virt_addr) in fsl_qdma_pre_request_enqueue_desc()
[all …]

12345