Home
last modified time | relevance | path

Searched refs:virt (Results 1 – 25 of 149) sorted by relevance

123456

/drivers/gpio/
Dgpio-stp-xway.c83 void __iomem *virt; member
110 xway_stp_w32(chip->virt, chip->shadow, XWAY_STP_CPU0); in xway_stp_set()
111 xway_stp_w32_mask(chip->virt, 0, XWAY_STP_CON_SWU, XWAY_STP_CON0); in xway_stp_set()
156 xway_stp_w32(chip->virt, 0, XWAY_STP_AR); in xway_stp_hw_init()
157 xway_stp_w32(chip->virt, 0, XWAY_STP_CPU0); in xway_stp_hw_init()
158 xway_stp_w32(chip->virt, 0, XWAY_STP_CPU1); in xway_stp_hw_init()
159 xway_stp_w32(chip->virt, XWAY_STP_CON_SWU, XWAY_STP_CON0); in xway_stp_hw_init()
160 xway_stp_w32(chip->virt, 0, XWAY_STP_CON1); in xway_stp_hw_init()
163 xway_stp_w32_mask(chip->virt, XWAY_STP_EDGE_MASK, in xway_stp_hw_init()
167 xway_stp_w32_mask(chip->virt, XWAY_STP_GROUP_MASK, in xway_stp_hw_init()
[all …]
/drivers/scsi/lpfc/
Dlpfc_mem.c123 pool->elements[i].virt = pci_pool_alloc(phba->lpfc_mbuf_pool, in lpfc_mem_alloc()
125 if (!pool->elements[i].virt) in lpfc_mem_alloc()
193 pci_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt, in lpfc_mem_alloc()
253 pci_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt, in lpfc_mem_free()
302 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_mem_free_all()
312 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_mem_free_all()
326 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_mem_free_all()
373 ret = pool->elements[pool->current_count].virt; in lpfc_mbuf_alloc()
395 __lpfc_mbuf_free(struct lpfc_hba * phba, void *virt, dma_addr_t dma) in __lpfc_mbuf_free() argument
400 pool->elements[pool->current_count].virt = virt; in __lpfc_mbuf_free()
[all …]
/drivers/mtd/maps/
Dnettel.c219 nettel_amd_map.virt = ioremap_nocache(amdaddr, maxsize); in nettel_init()
220 if (!nettel_amd_map.virt) { in nettel_init()
279 iounmap(nettel_amd_map.virt); in nettel_init()
280 nettel_amd_map.virt = NULL; in nettel_init()
305 nettel_intel_map.virt = ioremap_nocache(intel0addr, maxsize); in nettel_init()
306 if (!nettel_intel_map.virt) { in nettel_init()
336 iounmap(nettel_intel_map.virt); in nettel_init()
339 nettel_intel_map.virt = ioremap_nocache(intel0addr, maxsize); in nettel_init()
340 if (!nettel_intel_map.virt) { in nettel_init()
411 iounmap(nettel_intel_map.virt); in nettel_init()
[all …]
Ddc21285.c57 val.x[0] = *(uint8_t*)(map->virt + ofs); in dc21285_read8()
64 val.x[0] = *(uint16_t*)(map->virt + ofs); in dc21285_read16()
71 val.x[0] = *(uint32_t*)(map->virt + ofs); in dc21285_read32()
77 memcpy(to, (void*)(map->virt + from), len); in dc21285_copy_from()
86 *(uint8_t*)(map->virt + adr) = d.x[0]; in dc21285_write8()
95 *(uint16_t*)(map->virt + adr) = d.x[0]; in dc21285_write16()
102 *(uint32_t*)(map->virt + adr) = d.x[0]; in dc21285_write32()
179 dc21285_map.virt = ioremap(DC21285_FLASH, 16*1024*1024); in init_dc21285()
180 if (!dc21285_map.virt) { in init_dc21285()
192 iounmap(dc21285_map.virt); in init_dc21285()
[all …]
Duclinux.c59 size_t *retlen, void **virt, resource_size_t *phys) in uclinux_point() argument
62 *virt = map->virt + from; in uclinux_point()
96 mapp->virt = phys_to_virt(mapp->phys); in uclinux_mtd_init()
98 if (mapp->virt == 0) { in uclinux_mtd_init()
130 if (uclinux_ram_map.virt) in uclinux_mtd_cleanup()
131 uclinux_ram_map.virt = 0; in uclinux_mtd_cleanup()
Dts5500_flash.c72 ts5500_map.virt = ioremap_nocache(ts5500_map.phys, ts5500_map.size); in init_ts5500_map()
74 if (!ts5500_map.virt) { in init_ts5500_map()
97 iounmap(ts5500_map.virt); in init_ts5500_map()
109 if (ts5500_map.virt) { in cleanup_ts5500_map()
110 iounmap(ts5500_map.virt); in cleanup_ts5500_map()
111 ts5500_map.virt = NULL; in cleanup_ts5500_map()
Dnetsc520.c98 netsc520_map.virt = ioremap_nocache(netsc520_map.phys, netsc520_map.size); in init_netsc520()
100 if (!netsc520_map.virt) { in init_netsc520()
114 iounmap(netsc520_map.virt); in init_netsc520()
129 if (netsc520_map.virt) { in cleanup_netsc520()
130 iounmap(netsc520_map.virt); in cleanup_netsc520()
131 netsc520_map.virt = NULL; in cleanup_netsc520()
Dcfi_flagadm.c97 flagadm_map.virt = ioremap(FLASH_PHYS_ADDR, in init_flagadm()
100 if (!flagadm_map.virt) { in init_flagadm()
115 iounmap((void __iomem *)flagadm_map.virt); in init_flagadm()
125 if (flagadm_map.virt) { in cleanup_flagadm()
126 iounmap((void __iomem *)flagadm_map.virt); in cleanup_flagadm()
127 flagadm_map.virt = NULL; in cleanup_flagadm()
Damd76xrom.c31 void __iomem *virt; member
93 if (window->virt) { in amd76xrom_cleanup()
94 iounmap(window->virt); in amd76xrom_cleanup()
95 window->virt = NULL; in amd76xrom_cleanup()
165 window->virt = ioremap_nocache(window->phys, window->size); in amd76xrom_init_one()
166 if (!window->virt) { in amd76xrom_init_one()
201 map->map.virt = (void __iomem *) in amd76xrom_init_one()
202 (((unsigned long)(window->virt)) + offset); in amd76xrom_init_one()
256 map->map.virt = window->virt; in amd76xrom_init_one()
Dl440gx.c80 l440gx_map.virt = ioremap_nocache(WINDOW_ADDR, WINDOW_SIZE); in init_l440gx()
82 if (!l440gx_map.virt) { in init_l440gx()
88 printk(KERN_NOTICE "window_addr = 0x%08lx\n", (unsigned long)l440gx_map.virt); in init_l440gx()
115 iounmap(l440gx_map.virt); in init_l440gx()
149 iounmap(l440gx_map.virt); in init_l440gx()
158 iounmap(l440gx_map.virt); in cleanup_l440gx()
Dpmcmsp-flash.c134 msp_maps[i].virt = ioremap(addr, size); in init_msp_flash()
135 if (msp_maps[i].virt == NULL) { in init_msp_flash()
144 iounmap(msp_maps[i].virt); in init_msp_flash()
159 iounmap(msp_maps[i].virt); in init_msp_flash()
179 iounmap(msp_maps[i].virt); in init_msp_flash()
192 iounmap(msp_maps[i].virt); in init_msp_flash()
210 iounmap((void *)msp_maps[i].virt); in cleanup_msp_flash()
Dlantiq-flash.c58 temp.x[0] = *(u16 *)(map->virt + adr); in ltq_read16()
71 *(u16 *)(map->virt + adr) = d.x[0]; in ltq_write16()
86 unsigned char *f = (unsigned char *)map->virt + from; in ltq_copy_from()
101 unsigned char *t = (unsigned char *)map->virt + to; in ltq_copy_to()
143 ltq_mtd->map->virt = devm_ioremap_resource(&pdev->dev, ltq_mtd->res); in ltq_mtd_probe()
144 if (IS_ERR(ltq_mtd->map->virt)) in ltq_mtd_probe()
145 return PTR_ERR(ltq_mtd->map->virt); in ltq_mtd_probe()
Dixp4xx.c91 val.x[0] = flash_read16(map->virt + ofs); in ixp4xx_read16()
104 void __iomem *src = map->virt + from; in ixp4xx_copy_from()
134 flash_write16(d.x[0], map->virt + adr); in ixp4xx_probe_write16()
142 flash_write16(d.x[0], map->virt + adr); in ixp4xx_write16()
217 info->map.virt = devm_ioremap_resource(&dev->dev, dev->resource); in ixp4xx_flash_probe()
218 if (IS_ERR(info->map.virt)) { in ixp4xx_flash_probe()
219 err = PTR_ERR(info->map.virt); in ixp4xx_flash_probe()
Dsun_uflash.c81 up->map.virt = of_ioremap(&op->resource[0], 0, up->map.size, in uflash_devinit()
83 if (!up->map.virt) { in uflash_devinit()
95 of_iounmap(&op->resource[0], up->map.virt, up->map.size); in uflash_devinit()
131 if (up->map.virt) { in uflash_remove()
132 of_iounmap(&op->resource[0], up->map.virt, up->map.size); in uflash_remove()
133 up->map.virt = NULL; in uflash_remove()
Dichxrom.c36 void __iomem* virt; member
79 if (window->virt) { in ichxrom_cleanup()
80 iounmap(window->virt); in ichxrom_cleanup()
81 window->virt = NULL; in ichxrom_cleanup()
186 window->virt = ioremap_nocache(window->phys, window->size); in ichxrom_init_one()
187 if (!window->virt) { in ichxrom_init_one()
225 map->map.virt = (void __iomem *) in ichxrom_init_one()
226 (((unsigned long)(window->virt)) + offset); in ichxrom_init_one()
283 map->map.virt = window->virt; in ichxrom_init_one()
Dck804xrom.c35 void __iomem *virt; member
105 if (window->virt) { in ck804xrom_cleanup()
106 iounmap(window->virt); in ck804xrom_cleanup()
107 window->virt = NULL; in ck804xrom_cleanup()
193 window->virt = ioremap_nocache(window->phys, window->size); in ck804xrom_init_one()
194 if (!window->virt) { in ck804xrom_init_one()
231 map->map.virt = (void __iomem *) in ck804xrom_init_one()
232 (((unsigned long)(window->virt)) + offset); in ck804xrom_init_one()
286 map->map.virt = window->virt; in ck804xrom_init_one()
Dimpa7.c75 impa7_map[i].virt = ioremap(pt[i].addr, pt[i].size); in init_impa7()
76 if (!impa7_map[i].virt) { in init_impa7()
95 iounmap((void __iomem *)impa7_map[i].virt); in init_impa7()
108 iounmap((void __iomem *)impa7_map[i].virt); in cleanup_impa7()
109 impa7_map[i].virt = NULL; in cleanup_impa7()
/drivers/media/platform/s5p-mfc/
Ds5p_mfc_opr.c45 b->virt = dma_alloc_coherent(dev, b->size, &b->dma, GFP_KERNEL); in s5p_mfc_alloc_priv_buf()
47 if (!b->virt) { in s5p_mfc_alloc_priv_buf()
56 dma_free_coherent(dev, b->size, b->virt, b->dma); in s5p_mfc_alloc_priv_buf()
60 mfc_debug(3, "Allocated addr %p %pad\n", b->virt, &b->dma); in s5p_mfc_alloc_priv_buf()
67 if (b->virt) { in s5p_mfc_release_priv_buf()
68 dma_free_coherent(dev, b->size, b->virt, b->dma); in s5p_mfc_release_priv_buf()
69 b->virt = NULL; in s5p_mfc_release_priv_buf()
/drivers/scsi/
Dsd_dif.c120 u32 phys, virt; in sd_dif_prepare() local
139 virt = bip_get_seed(bip) & 0xffffffff; in sd_dif_prepare()
146 if (be32_to_cpu(pi->ref_tag) == virt) in sd_dif_prepare()
149 virt++; in sd_dif_prepare()
171 u32 phys, virt; in sd_dif_complete() local
186 virt = bip_get_seed(bip) & 0xffffffff; in sd_dif_complete()
199 pi->ref_tag = cpu_to_be32(virt); in sd_dif_complete()
201 virt++; in sd_dif_complete()
/drivers/acpi/
Dosl.c90 void __iomem *virt; member
301 return map->virt + (phys - map->phys); in acpi_map_vaddr_lookup()
309 void __iomem *virt = NULL; in acpi_os_get_iomem() local
314 virt = map->virt + (phys - map->phys); in acpi_os_get_iomem()
318 return virt; in acpi_os_get_iomem()
324 acpi_map_lookup_virt(void __iomem *virt, acpi_size size) in acpi_map_lookup_virt() argument
329 if (map->virt <= virt && in acpi_map_lookup_virt()
330 virt + size <= map->virt + map->size) in acpi_map_lookup_virt()
371 void __iomem *virt; in acpi_os_map_iomem() local
399 virt = acpi_map(pg_off, pg_sz); in acpi_os_map_iomem()
[all …]
/drivers/char/tpm/
Dtpm_acpi.c52 void __iomem *virt; in read_log() local
98 virt = acpi_os_map_iomem(start, len); in read_log()
99 if (!virt) { in read_log()
105 memcpy_fromio(log->bios_event_log, virt, len); in read_log()
107 acpi_os_unmap_iomem(virt, len); in read_log()
/drivers/infiniband/hw/mlx5/
Ddoorbell.c46 int mlx5_ib_db_map_user(struct mlx5_ib_ucontext *context, unsigned long virt, in mlx5_ib_db_map_user() argument
55 if (page->user_virt == (virt & PAGE_MASK)) in mlx5_ib_db_map_user()
64 page->user_virt = (virt & PAGE_MASK); in mlx5_ib_db_map_user()
66 page->umem = ib_umem_get(&context->ibucontext, virt & PAGE_MASK, in mlx5_ib_db_map_user()
77 db->dma = sg_dma_address(page->umem->sg_head.sgl) + (virt & ~PAGE_MASK); in mlx5_ib_db_map_user()
/drivers/infiniband/hw/mlx4/
Ddoorbell.c44 int mlx4_ib_db_map_user(struct mlx4_ib_ucontext *context, unsigned long virt, in mlx4_ib_db_map_user() argument
53 if (page->user_virt == (virt & PAGE_MASK)) in mlx4_ib_db_map_user()
62 page->user_virt = (virt & PAGE_MASK); in mlx4_ib_db_map_user()
64 page->umem = ib_umem_get(&context->ibucontext, virt & PAGE_MASK, in mlx4_ib_db_map_user()
75 db->dma = sg_dma_address(page->umem->sg_head.sgl) + (virt & ~PAGE_MASK); in mlx4_ib_db_map_user()
/drivers/net/ethernet/mellanox/mlx4/
Dicm.c232 static int mlx4_MAP_ICM(struct mlx4_dev *dev, struct mlx4_icm *icm, u64 virt) in mlx4_MAP_ICM() argument
234 return mlx4_map_cmd(dev, MLX4_CMD_MAP_ICM, icm, virt); in mlx4_MAP_ICM()
237 static int mlx4_UNMAP_ICM(struct mlx4_dev *dev, u64 virt, u32 page_count) in mlx4_UNMAP_ICM() argument
239 return mlx4_cmd(dev, virt, page_count, 0, MLX4_CMD_UNMAP_ICM, in mlx4_UNMAP_ICM()
276 if (mlx4_MAP_ICM(dev, table->icm[i], table->virt + in mlx4_table_get()
302 mlx4_UNMAP_ICM(dev, table->virt + offset, in mlx4_table_put()
392 u64 virt, int obj_size, u32 nobj, int reserved, in mlx4_init_icm_table() argument
407 table->virt = virt; in mlx4_init_icm_table()
427 if (mlx4_MAP_ICM(dev, table->icm[i], virt + i * MLX4_TABLE_CHUNK_SIZE)) { in mlx4_init_icm_table()
445 mlx4_UNMAP_ICM(dev, virt + i * MLX4_TABLE_CHUNK_SIZE, in mlx4_init_icm_table()
[all …]
/drivers/firmware/
Discsi_ibft_find.c62 void *virt; in find_ibft_in_mem() local
70 virt = isa_bus_to_virt(pos); in find_ibft_in_mem()
73 if (memcmp(virt, ibft_signs[i].sign, IBFT_SIGN_LEN) == in find_ibft_in_mem()
81 ibft_addr = (struct acpi_table_ibft *)virt; in find_ibft_in_mem()

123456