Searched refs:virt (Results 1 - 200 of 455) sorted by relevance

123

/linux-4.4.14/arch/arm/kvm/
H A DMakefile5 plus_virt := $(call as-instr,.arch_extension virt,+virt)
6 ifeq ($(plus_virt),+virt)
17 KVM := ../../../virt/kvm
/linux-4.4.14/arch/m68k/mm/
H A Dsun3kmap.c30 static inline void do_page_mapin(unsigned long phys, unsigned long virt, do_page_mapin() argument
40 sun3_put_pte(virt, pte); do_page_mapin()
43 print_pte_vaddr(virt); do_page_mapin()
48 static inline void do_pmeg_mapin(unsigned long phys, unsigned long virt, do_pmeg_mapin() argument
52 if(sun3_get_segmap(virt & ~SUN3_PMEG_MASK) == SUN3_INVALID_PMEG) do_pmeg_mapin()
53 mmu_emu_map_pmeg(sun3_get_context(), virt); do_pmeg_mapin() local
56 do_page_mapin(phys, virt, type); do_pmeg_mapin()
58 virt += PAGE_SIZE; do_pmeg_mapin()
67 unsigned long offset, virt, ret; sun3_ioremap() local
83 printk("ioremap: got virt %p size %lx(%lx)\n", sun3_ioremap()
88 virt = (unsigned long)area->addr; sun3_ioremap()
89 ret = virt + offset; sun3_ioremap()
94 seg_pages = (SUN3_PMEG_SIZE - (virt & SUN3_PMEG_MASK)) / PAGE_SIZE; sun3_ioremap()
98 do_pmeg_mapin(phys, virt, type, seg_pages); sun3_ioremap()
102 virt += seg_pages * PAGE_SIZE; sun3_ioremap()
/linux-4.4.14/arch/um/include/shared/
H A Dmem.h12 static inline unsigned long to_phys(void *virt) to_phys() argument
14 return(((unsigned long) virt) - uml_physmem); to_phys()
H A Dmem_user.h41 unsigned long virt; member in struct:iomem_region
59 extern void map_memory(unsigned long virt, unsigned long phys,
/linux-4.4.14/arch/unicore32/mm/
H A Dmm.h20 static inline pmd_t *pmd_off(pgd_t *pgd, unsigned long virt) pmd_off() argument
22 return pmd_offset((pud_t *)pgd, virt); pmd_off()
25 static inline pmd_t *pmd_off_k(unsigned long virt) pmd_off_k() argument
27 return pmd_off(pgd_offset_k(virt), virt); pmd_off_k()
H A Dioremap.c48 int ioremap_page(unsigned long virt, unsigned long phys, ioremap_page() argument
51 return ioremap_page_range(virt, virt + PAGE_SIZE, phys, ioremap_page()
66 static void unmap_area_sections(unsigned long virt, unsigned long size) unmap_area_sections() argument
68 unsigned long addr = virt, end = virt + (size & ~(SZ_4M - 1)); unmap_area_sections()
98 flush_tlb_kernel_range(virt, end); unmap_area_sections()
102 remap_area_sections(unsigned long virt, unsigned long pfn, remap_area_sections() argument
105 unsigned long addr = virt, end = virt + size; remap_area_sections()
112 unmap_area_sections(virt, size); remap_area_sections()
/linux-4.4.14/drivers/media/platform/s5p-mfc/
H A Ds5p_mfc_opr.c45 b->virt = dma_alloc_coherent(dev, b->size, &b->dma, GFP_KERNEL); s5p_mfc_alloc_priv_buf()
47 if (!b->virt) { s5p_mfc_alloc_priv_buf()
56 dma_free_coherent(dev, b->size, b->virt, b->dma); s5p_mfc_alloc_priv_buf()
60 mfc_debug(3, "Allocated addr %p %pad\n", b->virt, &b->dma); s5p_mfc_alloc_priv_buf()
67 if (b->virt) { s5p_mfc_release_priv_buf()
68 dma_free_coherent(dev, b->size, b->virt, b->dma); s5p_mfc_release_priv_buf()
69 b->virt = NULL; s5p_mfc_release_priv_buf()
/linux-4.4.14/arch/arm/mach-realview/include/mach/
H A Dmemory.h57 #define __virt_to_phys(virt) \
58 ((virt) >= PAGE_OFFSET2 ? (virt) - PAGE_OFFSET2 + 0x80000000 : \
59 (virt) >= PAGE_OFFSET1 ? (virt) - PAGE_OFFSET1 + 0x20000000 : \
60 (virt) - PAGE_OFFSET)
/linux-4.4.14/drivers/mtd/maps/
H A Duclinux.c59 size_t *retlen, void **virt, resource_size_t *phys) uclinux_point()
62 *virt = map->virt + from; uclinux_point()
96 mapp->virt = phys_to_virt(mapp->phys); uclinux_mtd_init()
98 if (mapp->virt == 0) { uclinux_mtd_init()
130 if (uclinux_ram_map.virt) uclinux_mtd_cleanup()
131 uclinux_ram_map.virt = 0; uclinux_mtd_cleanup()
58 uclinux_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, void **virt, resource_size_t *phys) uclinux_point() argument
H A Ddc21285.c57 val.x[0] = *(uint8_t*)(map->virt + ofs); dc21285_read8()
64 val.x[0] = *(uint16_t*)(map->virt + ofs); dc21285_read16()
71 val.x[0] = *(uint32_t*)(map->virt + ofs); dc21285_read32()
77 memcpy(to, (void*)(map->virt + from), len); dc21285_copy_from()
86 *(uint8_t*)(map->virt + adr) = d.x[0]; dc21285_write8()
95 *(uint16_t*)(map->virt + adr) = d.x[0]; dc21285_write16()
102 *(uint32_t*)(map->virt + adr) = d.x[0]; dc21285_write32()
179 dc21285_map.virt = ioremap(DC21285_FLASH, 16*1024*1024); init_dc21285()
180 if (!dc21285_map.virt) { init_dc21285()
192 iounmap(dc21285_map.virt); init_dc21285()
222 iounmap(dc21285_map.virt); cleanup_dc21285()
H A Dsolutionengine.c40 soleng_flash_map.virt = (void __iomem *)P2SEGADDR(0); init_soleng_maps()
42 soleng_eprom_map.virt = (void __iomem *)P1SEGADDR(0x01000000); init_soleng_maps()
52 soleng_flash_map.virt = P2SEGADDR(0x01000000); init_soleng_maps()
54 soleng_eprom_map.virt = P1SEGADDR(0); init_soleng_maps()
H A Dimpa7.c75 impa7_map[i].virt = ioremap(pt[i].addr, pt[i].size); init_impa7()
76 if (!impa7_map[i].virt) { init_impa7()
95 iounmap((void __iomem *)impa7_map[i].virt); init_impa7()
108 iounmap((void __iomem *)impa7_map[i].virt); cleanup_impa7()
109 impa7_map[i].virt = NULL; cleanup_impa7()
H A Dcfi_flagadm.c97 flagadm_map.virt = ioremap(FLASH_PHYS_ADDR, init_flagadm()
100 if (!flagadm_map.virt) { init_flagadm()
115 iounmap((void __iomem *)flagadm_map.virt); init_flagadm()
125 if (flagadm_map.virt) { cleanup_flagadm()
126 iounmap((void __iomem *)flagadm_map.virt); cleanup_flagadm()
127 flagadm_map.virt = NULL; cleanup_flagadm()
H A Dl440gx.c80 l440gx_map.virt = ioremap_nocache(WINDOW_ADDR, WINDOW_SIZE); init_l440gx()
82 if (!l440gx_map.virt) { init_l440gx()
88 printk(KERN_NOTICE "window_addr = 0x%08lx\n", (unsigned long)l440gx_map.virt); init_l440gx()
115 iounmap(l440gx_map.virt); init_l440gx()
149 iounmap(l440gx_map.virt); init_l440gx()
158 iounmap(l440gx_map.virt); cleanup_l440gx()
H A Dsun_uflash.c81 up->map.virt = of_ioremap(&op->resource[0], 0, up->map.size, uflash_devinit()
83 if (!up->map.virt) { uflash_devinit()
95 of_iounmap(&op->resource[0], up->map.virt, up->map.size); uflash_devinit()
131 if (up->map.virt) { uflash_remove()
132 of_iounmap(&op->resource[0], up->map.virt, up->map.size); uflash_remove()
133 up->map.virt = NULL; uflash_remove()
H A Dts5500_flash.c72 ts5500_map.virt = ioremap_nocache(ts5500_map.phys, ts5500_map.size); init_ts5500_map()
74 if (!ts5500_map.virt) { init_ts5500_map()
97 iounmap(ts5500_map.virt); init_ts5500_map()
109 if (ts5500_map.virt) { cleanup_ts5500_map()
110 iounmap(ts5500_map.virt); cleanup_ts5500_map()
111 ts5500_map.virt = NULL; cleanup_ts5500_map()
H A Dnettel.c219 nettel_amd_map.virt = ioremap_nocache(amdaddr, maxsize); nettel_init()
220 if (!nettel_amd_map.virt) { nettel_init()
279 iounmap(nettel_amd_map.virt); nettel_init()
280 nettel_amd_map.virt = NULL; nettel_init()
305 nettel_intel_map.virt = ioremap_nocache(intel0addr, maxsize); nettel_init()
306 if (!nettel_intel_map.virt) { nettel_init()
336 iounmap(nettel_intel_map.virt); nettel_init()
339 nettel_intel_map.virt = ioremap_nocache(intel0addr, maxsize); nettel_init()
340 if (!nettel_intel_map.virt) { nettel_init()
411 iounmap(nettel_intel_map.virt); nettel_init()
416 iounmap(nettel_amd_map.virt); nettel_init()
436 if (nettel_amd_map.virt) { nettel_cleanup()
437 iounmap(nettel_amd_map.virt); nettel_cleanup()
438 nettel_amd_map.virt = NULL; nettel_cleanup()
445 if (nettel_intel_map.virt) { nettel_cleanup()
446 iounmap(nettel_intel_map.virt); nettel_cleanup()
447 nettel_intel_map.virt = NULL; nettel_cleanup()
H A Dlantiq-flash.c58 temp.x[0] = *(u16 *)(map->virt + adr); ltq_read16()
71 *(u16 *)(map->virt + adr) = d.x[0]; ltq_write16()
86 unsigned char *f = (unsigned char *)map->virt + from; ltq_copy_from()
101 unsigned char *t = (unsigned char *)map->virt + to; ltq_copy_to()
143 ltq_mtd->map->virt = devm_ioremap_resource(&pdev->dev, ltq_mtd->res); ltq_mtd_probe()
144 if (IS_ERR(ltq_mtd->map->virt)) ltq_mtd_probe()
145 return PTR_ERR(ltq_mtd->map->virt); ltq_mtd_probe()
H A Dlatch-addr-flash.c84 memcpy_fromio(to, map->virt + (from & info->win_mask), n); lf_copy_from()
112 if (info->map.virt != NULL) latch_addr_flash_remove()
113 iounmap(info->map.virt); latch_addr_flash_remove()
172 info->map.virt = ioremap(win_base, win_size); latch_addr_flash_probe()
173 if (!info->map.virt) { latch_addr_flash_probe()
206 iounmap(info->map.virt); latch_addr_flash_probe()
H A Dnetsc520.c98 netsc520_map.virt = ioremap_nocache(netsc520_map.phys, netsc520_map.size); init_netsc520()
100 if (!netsc520_map.virt) { init_netsc520()
114 iounmap(netsc520_map.virt); init_netsc520()
129 if (netsc520_map.virt) { cleanup_netsc520()
130 iounmap(netsc520_map.virt); cleanup_netsc520()
131 netsc520_map.virt = NULL; cleanup_netsc520()
H A Dpxa2xx-flash.c68 info->map.virt = ioremap(info->map.phys, info->map.size); pxa2xx_flash_probe()
69 if (!info->map.virt) { pxa2xx_flash_probe()
91 iounmap((void *)info->map.virt); pxa2xx_flash_probe()
112 iounmap(info->map.virt); pxa2xx_flash_remove()
H A Dbfin-async-flash.c78 word = readw(map->virt + ofs); bfin_flash_read()
92 memcpy(to, map->virt + from, len); bfin_flash_copy_from()
106 writew(d, map->virt + ofs); bfin_flash_write()
118 memcpy(map->virt + to, from, len); bfin_flash_copy_to()
145 state->map.virt = (void __iomem *)memory->start; bfin_flash_probe()
H A Dscx200_docflash.c178 scx200_docflash_map.virt = ioremap(docmem.start, scx200_docflash_map.size); init_scx200_docflash()
179 if (!scx200_docflash_map.virt) { init_scx200_docflash()
188 iounmap(scx200_docflash_map.virt); init_scx200_docflash()
211 if (scx200_docflash_map.virt) { cleanup_scx200_docflash()
212 iounmap(scx200_docflash_map.virt); cleanup_scx200_docflash()
H A Damd76xrom.c31 void __iomem *virt; member in struct:amd76xrom_window
93 if (window->virt) { amd76xrom_cleanup()
94 iounmap(window->virt); amd76xrom_cleanup()
95 window->virt = NULL; amd76xrom_cleanup()
165 window->virt = ioremap_nocache(window->phys, window->size); amd76xrom_init_one()
166 if (!window->virt) { amd76xrom_init_one()
201 map->map.virt = (void __iomem *) amd76xrom_init_one()
202 (((unsigned long)(window->virt)) + offset); amd76xrom_init_one()
256 map->map.virt = window->virt; amd76xrom_init_one()
H A Dck804xrom.c35 void __iomem *virt; member in struct:ck804xrom_window
105 if (window->virt) { ck804xrom_cleanup()
106 iounmap(window->virt); ck804xrom_cleanup()
107 window->virt = NULL; ck804xrom_cleanup()
193 window->virt = ioremap_nocache(window->phys, window->size); ck804xrom_init_one()
194 if (!window->virt) { ck804xrom_init_one()
231 map->map.virt = (void __iomem *) ck804xrom_init_one()
232 (((unsigned long)(window->virt)) + offset); ck804xrom_init_one()
286 map->map.virt = window->virt; ck804xrom_init_one()
H A Dichxrom.c36 void __iomem* virt; member in struct:ichxrom_window
77 if (window->virt) { ichxrom_cleanup()
78 iounmap(window->virt); ichxrom_cleanup()
79 window->virt = NULL; ichxrom_cleanup()
184 window->virt = ioremap_nocache(window->phys, window->size); ichxrom_init_one()
185 if (!window->virt) { ichxrom_init_one()
223 map->map.virt = (void __iomem *) ichxrom_init_one()
224 (((unsigned long)(window->virt)) + offset); ichxrom_init_one()
281 map->map.virt = window->virt; ichxrom_init_one()
H A Dixp4xx.c91 val.x[0] = flash_read16(map->virt + ofs); ixp4xx_read16()
104 void __iomem *src = map->virt + from; ixp4xx_copy_from()
134 flash_write16(d.x[0], map->virt + adr); ixp4xx_probe_write16()
142 flash_write16(d.x[0], map->virt + adr); ixp4xx_write16()
217 info->map.virt = devm_ioremap_resource(&dev->dev, dev->resource); ixp4xx_flash_probe()
218 if (IS_ERR(info->map.virt)) { ixp4xx_flash_probe()
219 err = PTR_ERR(info->map.virt); ixp4xx_flash_probe()
H A Dpmcmsp-flash.c134 msp_maps[i].virt = ioremap(addr, size); init_msp_flash()
135 if (msp_maps[i].virt == NULL) { init_msp_flash()
144 iounmap(msp_maps[i].virt); init_msp_flash()
161 iounmap(msp_maps[i].virt); init_msp_flash()
181 iounmap(msp_maps[i].virt); init_msp_flash()
194 iounmap(msp_maps[i].virt); init_msp_flash()
212 iounmap((void *)msp_maps[i].virt); cleanup_msp_flash()
H A Dplat-ram.c107 if (info->map.virt != NULL) platram_remove()
108 iounmap(info->map.virt); platram_remove()
181 info->map.virt = ioremap(res->start, info->map.size); platram_probe()
182 dev_dbg(&pdev->dev, "virt %p, %lu bytes\n", info->map.virt, info->map.size); platram_probe()
184 if (info->map.virt == NULL) { platram_probe()
H A Desb2rom.c97 void __iomem* virt; member in struct:esb2rom_window
138 if (window->virt) { esb2rom_cleanup()
139 iounmap(window->virt); esb2rom_cleanup()
140 window->virt = NULL; esb2rom_cleanup()
251 window->virt = ioremap_nocache(window->phys, window->size); esb2rom_init_one()
252 if (!window->virt) { esb2rom_init_one()
290 map->map.virt = (void __iomem *) esb2rom_init_one()
291 (((unsigned long)(window->virt)) + offset); esb2rom_init_one()
347 map->map.virt = window->virt; esb2rom_init_one()
H A Dgpio-addr-flash.c90 word = readw(map->virt + (ofs % state->win_size)); gf_read()
118 memcpy_fromio(to, map->virt + (from % state->win_size), gf_copy_from()
139 writew(d, map->virt + (ofs % state->win_size)); gf_write()
165 memcpy_toio(map->virt + (to % state->win_size), from, len); gf_copy_to()
241 state->map.virt = ioremap_nocache(memory->start, state->map.size); gpio_flash_probe()
H A Dsc520cdp.c242 sc520cdp_map[i].virt = ioremap_nocache(sc520cdp_map[i].phys, sc520cdp_map[i].size); init_sc520cdp()
244 if (!sc520cdp_map[i].virt) { init_sc520cdp()
262 iounmap(sc520cdp_map[i].virt); init_sc520cdp()
290 if (sc520cdp_map[i].virt) { cleanup_sc520cdp()
291 iounmap(sc520cdp_map[i].virt); cleanup_sc520cdp()
292 sc520cdp_map[i].virt = NULL; cleanup_sc520cdp()
H A Drbtx4939-flash.c82 info->map.virt = devm_ioremap(&dev->dev, info->map.phys, size); rbtx4939_flash_probe()
83 if (!info->map.virt) rbtx4939_flash_probe()
H A Dintel_vr_nor.c108 iounmap(p->map.virt); vr_nor_destroy_maps()
155 p->map.virt = ioremap_nocache(p->map.phys, p->map.size); vr_nor_init_maps()
156 if (!p->map.virt) { vr_nor_init_maps()
237 iounmap(p->map.virt); vr_nor_pci_probe()
H A Dsa1100-flash.c61 if (subdev->map.virt) sa1100_destroy_subdev()
62 iounmap(subdev->map.virt); sa1100_destroy_subdev()
103 subdev->map.virt = ioremap(phys, size); sa1100_probe_subdev()
104 if (!subdev->map.virt) { sa1100_probe_subdev()
H A Dphysmap_of.c60 if (info->list[i].map.virt) of_flash_remove()
61 iounmap(info->list[i].map.virt); of_flash_remove()
246 info->list[i].map.virt = ioremap(info->list[i].map.phys, of_flash_probe()
248 if (!info->list[i].map.virt) { of_flash_probe()
/linux-4.4.14/arch/arm/mach-hisi/
H A Dplatsmp.c108 void __iomem *virt; hix5hd2_set_scu_boot_addr() local
110 virt = ioremap(start_addr, PAGE_SIZE); hix5hd2_set_scu_boot_addr()
112 writel_relaxed(0xe51ff004, virt); /* ldr pc, [rc, #-4] */ hix5hd2_set_scu_boot_addr()
113 writel_relaxed(jump_addr, virt + 4); /* pc jump phy address */ hix5hd2_set_scu_boot_addr()
114 iounmap(virt); hix5hd2_set_scu_boot_addr()
144 void __iomem *virt; hip01_set_boot_addr() local
146 virt = phys_to_virt(start_addr); hip01_set_boot_addr()
148 writel_relaxed(0xe51ff004, virt); hip01_set_boot_addr()
149 writel_relaxed(jump_addr, virt + 4); hip01_set_boot_addr()
/linux-4.4.14/drivers/gpio/
H A Dgpio-stp-xway.c83 void __iomem *virt; member in struct:xway_stp
110 xway_stp_w32(chip->virt, chip->shadow, XWAY_STP_CPU0); xway_stp_set()
111 xway_stp_w32_mask(chip->virt, 0, XWAY_STP_CON_SWU, XWAY_STP_CON0); xway_stp_set()
151 * @virt: pointer to the remapped register range
156 xway_stp_w32(chip->virt, 0, XWAY_STP_AR); xway_stp_hw_init()
157 xway_stp_w32(chip->virt, 0, XWAY_STP_CPU0); xway_stp_hw_init()
158 xway_stp_w32(chip->virt, 0, XWAY_STP_CPU1); xway_stp_hw_init()
159 xway_stp_w32(chip->virt, XWAY_STP_CON_SWU, XWAY_STP_CON0); xway_stp_hw_init()
160 xway_stp_w32(chip->virt, 0, XWAY_STP_CON1); xway_stp_hw_init()
163 xway_stp_w32_mask(chip->virt, XWAY_STP_EDGE_MASK, xway_stp_hw_init()
167 xway_stp_w32_mask(chip->virt, XWAY_STP_GROUP_MASK, xway_stp_hw_init()
171 xway_stp_w32_mask(chip->virt, xway_stp_hw_init()
177 xway_stp_w32_mask(chip->virt, xway_stp_hw_init()
181 xway_stp_w32_mask(chip->virt, xway_stp_hw_init()
194 xway_stp_w32_mask(chip->virt, XWAY_STP_UPD_MASK, xway_stp_hw_init()
213 chip->virt = devm_ioremap_resource(&pdev->dev, res); xway_stp_probe()
214 if (IS_ERR(chip->virt)) xway_stp_probe()
215 return PTR_ERR(chip->virt); xway_stp_probe()
/linux-4.4.14/arch/x86/kvm/
H A DMakefile8 KVM := ../../../virt/kvm
/linux-4.4.14/include/acpi/
H A Dacpi_io.h18 void __ref acpi_os_unmap_iomem(void __iomem *virt, acpi_size size);
/linux-4.4.14/arch/mips/kvm/
H A DMakefile4 common-objs-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o)
/linux-4.4.14/arch/x86/pci/
H A Dmmconfig_64.c22 if (cfg && cfg->virt) pci_dev_base()
23 return cfg->virt + (PCI_MMCFG_BUS_OFFSET(bus) | (devfn << 12)); pci_dev_base()
138 cfg->virt = mcfg_ioremap(cfg); pci_mmcfg_arch_map()
139 if (!cfg->virt) { pci_mmcfg_arch_map()
149 if (cfg && cfg->virt) { pci_mmcfg_arch_unmap()
150 iounmap(cfg->virt + PCI_MMCFG_BUS_OFFSET(cfg->start_bus)); pci_mmcfg_arch_unmap()
151 cfg->virt = NULL; pci_mmcfg_arch_unmap()
H A Dnumachip.c25 if (cfg && cfg->virt) pci_dev_base()
26 return cfg->virt + (PCI_MMCFG_BUS_OFFSET(bus) | (devfn << 12)); pci_dev_base()
/linux-4.4.14/arch/metag/mm/
H A Dmmu-meta1.c68 static unsigned long pgd_entry_addr(unsigned long virt) pgd_entry_addr() argument
80 if (is_global_space(virt)) { pgd_entry_addr()
82 virt &= ~0x80000000; pgd_entry_addr()
86 pgd_phys = mmu_base_phys + ((virt >> PGDIR_SHIFT) * 4); pgd_entry_addr()
94 static unsigned long pgtable_entry_addr(unsigned long virt) pgtable_entry_addr() argument
100 pgtable_phys = metag_in32(pgd_entry_addr(virt)) & MMCU_ENTRY_ADDR_BITS; pgtable_entry_addr()
106 pte_virt = pgtable_virt + ((virt >> PAGE_SHIFT) & 0x3FF) * 4; pgtable_entry_addr()
/linux-4.4.14/drivers/scsi/
H A Dsd_dif.c107 * avoid virt->phys remapping during write. However, at read time we
108 * don't know whether the virt sector is the same as when we wrote it
120 u32 phys, virt; sd_dif_prepare() local
139 virt = bip_get_seed(bip) & 0xffffffff; sd_dif_prepare()
146 if (be32_to_cpu(pi->ref_tag) == virt) bip_for_each_vec()
149 virt++; bip_for_each_vec()
171 u32 phys, virt; sd_dif_complete() local
186 virt = bip_get_seed(bip) & 0xffffffff; sd_dif_complete()
199 pi->ref_tag = cpu_to_be32(virt); bip_for_each_vec()
201 virt++; bip_for_each_vec()
/linux-4.4.14/drivers/char/tpm/
H A Dtpm_acpi.c52 void __iomem *virt; read_log() local
98 virt = acpi_os_map_iomem(start, len); read_log()
99 if (!virt) { read_log()
105 memcpy_fromio(log->bios_event_log, virt, len); read_log()
107 acpi_os_unmap_iomem(virt, len); read_log()
/linux-4.4.14/arch/arm/crypto/
H A Daesbs-glue.c117 u8 *src = walk.src.virt.addr; aesbs_cbc_encrypt()
119 if (walk.dst.virt.addr == walk.src.virt.addr) { aesbs_cbc_encrypt()
130 u8 *dst = walk.dst.virt.addr; aesbs_cbc_encrypt()
158 bsaes_cbc_encrypt(walk.src.virt.addr, walk.dst.virt.addr, aesbs_cbc_decrypt()
165 u8 *dst = walk.dst.virt.addr; aesbs_cbc_decrypt()
166 u8 *src = walk.src.virt.addr; aesbs_cbc_decrypt()
171 if (walk.dst.virt.addr == walk.src.virt.addr) aesbs_cbc_decrypt()
177 if (walk.dst.virt.addr == walk.src.virt.addr) aesbs_cbc_decrypt()
226 bsaes_ctr32_encrypt_blocks(walk.src.virt.addr, aesbs_ctr_encrypt()
227 walk.dst.virt.addr, blocks, aesbs_ctr_encrypt()
239 u8 *tdst = walk.dst.virt.addr + blocks * AES_BLOCK_SIZE; aesbs_ctr_encrypt()
240 u8 *tsrc = walk.src.virt.addr + blocks * AES_BLOCK_SIZE; aesbs_ctr_encrypt()
268 bsaes_xts_encrypt(walk.src.virt.addr, walk.dst.virt.addr, aesbs_xts_encrypt()
292 bsaes_xts_decrypt(walk.src.virt.addr, walk.dst.virt.addr, aesbs_xts_decrypt()
H A Daes-ce-glue.c180 ce_aes_ecb_encrypt(walk.dst.virt.addr, walk.src.virt.addr, ecb_encrypt()
203 ce_aes_ecb_decrypt(walk.dst.virt.addr, walk.src.virt.addr, ecb_decrypt()
226 ce_aes_cbc_encrypt(walk.dst.virt.addr, walk.src.virt.addr, cbc_encrypt()
250 ce_aes_cbc_decrypt(walk.dst.virt.addr, walk.src.virt.addr, cbc_decrypt()
273 ce_aes_ctr_encrypt(walk.dst.virt.addr, walk.src.virt.addr, ctr_encrypt()
283 u8 *tdst = walk.dst.virt.addr + blocks * AES_BLOCK_SIZE; ctr_encrypt()
284 u8 *tsrc = walk.src.virt.addr + blocks * AES_BLOCK_SIZE; ctr_encrypt()
317 ce_aes_xts_encrypt(walk.dst.virt.addr, walk.src.virt.addr, xts_encrypt()
342 ce_aes_xts_decrypt(walk.dst.virt.addr, walk.src.virt.addr, xts_decrypt()
/linux-4.4.14/drivers/scsi/lpfc/
H A Dlpfc_mem.c123 pool->elements[i].virt = pci_pool_alloc(phba->lpfc_mbuf_pool, lpfc_mem_alloc()
125 if (!pool->elements[i].virt) lpfc_mem_alloc()
193 pci_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt, lpfc_mem_alloc()
253 pci_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt, lpfc_mem_free()
302 lpfc_mbuf_free(phba, mp->virt, mp->phys); lpfc_mem_free_all()
312 lpfc_mbuf_free(phba, mp->virt, mp->phys); lpfc_mem_free_all()
326 lpfc_mbuf_free(phba, mp->virt, mp->phys); lpfc_mem_free_all()
373 ret = pool->elements[pool->current_count].virt; lpfc_mbuf_alloc()
383 * @virt: mbuf to free
395 __lpfc_mbuf_free(struct lpfc_hba * phba, void *virt, dma_addr_t dma) __lpfc_mbuf_free() argument
400 pool->elements[pool->current_count].virt = virt; __lpfc_mbuf_free()
404 pci_pool_free(phba->lpfc_mbuf_pool, virt, dma); __lpfc_mbuf_free()
412 * @virt: mbuf to free
423 lpfc_mbuf_free(struct lpfc_hba * phba, void *virt, dma_addr_t dma) lpfc_mbuf_free() argument
428 __lpfc_mbuf_free(phba, virt, dma); lpfc_mbuf_free()
455 hbqbp->dbuf.virt = pci_pool_alloc(phba->lpfc_hbq_pool, GFP_KERNEL, lpfc_els_hbq_alloc()
457 if (!hbqbp->dbuf.virt) { lpfc_els_hbq_alloc()
480 pci_pool_free(phba->lpfc_hbq_pool, hbqbp->dbuf.virt, hbqbp->dbuf.phys); lpfc_els_hbq_free()
507 dma_buf->hbuf.virt = pci_pool_alloc(phba->lpfc_hrb_pool, GFP_KERNEL, lpfc_sli4_rb_alloc()
509 if (!dma_buf->hbuf.virt) { lpfc_sli4_rb_alloc()
513 dma_buf->dbuf.virt = pci_pool_alloc(phba->lpfc_drb_pool, GFP_KERNEL, lpfc_sli4_rb_alloc()
515 if (!dma_buf->dbuf.virt) { lpfc_sli4_rb_alloc()
516 pci_pool_free(phba->lpfc_hrb_pool, dma_buf->hbuf.virt, lpfc_sli4_rb_alloc()
540 pci_pool_free(phba->lpfc_hrb_pool, dmab->hbuf.virt, dmab->hbuf.phys); lpfc_sli4_rb_free()
541 pci_pool_free(phba->lpfc_drb_pool, dmab->dbuf.virt, dmab->dbuf.phys); lpfc_sli4_rb_free()
584 lpfc_mbuf_free(phba, mp->virt, mp->phys); lpfc_in_buf_free()
H A Dlpfc_ct.c194 lpfc_mbuf_free(phba, mlast->virt, mlast->phys); lpfc_free_ct_rsp()
198 lpfc_mbuf_free(phba, mlist->virt, mlist->phys); lpfc_free_ct_rsp()
227 mp->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &(mp->phys)); lpfc_alloc_ct_rsp()
229 mp->virt = lpfc_mbuf_alloc(phba, 0, &(mp->phys)); lpfc_alloc_ct_rsp()
231 if (!mp->virt) { lpfc_alloc_ct_rsp()
271 lpfc_mbuf_free(phba, buf_ptr->virt, buf_ptr->phys); lpfc_ct_free_iocb()
282 lpfc_mbuf_free(phba, buf_ptr->virt, buf_ptr->phys); lpfc_ct_free_iocb()
381 struct ulp_bde64 *bpl = (struct ulp_bde64 *) bmp->virt; lpfc_ct_cmd()
384 int cmdcode = ((struct lpfc_sli_ct_request *) inmp->virt)-> lpfc_ct_cmd()
429 (struct lpfc_sli_ct_request *) mp->virt; lpfc_ns_rsp()
451 ctptr = (uint32_t *) mlast->virt; lpfc_ns_rsp()
641 CTrsp = (struct lpfc_sli_ct_request *) outp->virt; lpfc_cmpl_ct_cmd_gid_ft()
743 did = ((struct lpfc_sli_ct_request *) inp->virt)->un.gff.PortId; lpfc_cmpl_ct_cmd_gff_id()
752 CTrsp = (struct lpfc_sli_ct_request *) outp->virt; lpfc_cmpl_ct_cmd_gff_id()
877 cmdcode = be16_to_cpu(((struct lpfc_sli_ct_request *) inp->virt)-> lpfc_cmpl_ct()
879 CTrsp = (struct lpfc_sli_ct_request *) outp->virt; lpfc_cmpl_ct()
937 CTrsp = (struct lpfc_sli_ct_request *) outp->virt; lpfc_cmpl_ct_cmd_rft_id()
958 CTrsp = (struct lpfc_sli_ct_request *) outp->virt; lpfc_cmpl_ct_cmd_rnn_id()
979 CTrsp = (struct lpfc_sli_ct_request *) outp->virt; lpfc_cmpl_ct_cmd_rspn_id()
1000 CTrsp = (struct lpfc_sli_ct_request *) outp->virt; lpfc_cmpl_ct_cmd_rsnn_nn()
1033 CTrsp = (struct lpfc_sli_ct_request *) outp->virt; lpfc_cmpl_ct_cmd_rff_id()
1156 mp->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &(mp->phys)); lpfc_ns_cmd()
1157 if (!mp->virt) { lpfc_ns_cmd()
1170 bmp->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &(bmp->phys)); lpfc_ns_cmd()
1171 if (!bmp->virt) { lpfc_ns_cmd()
1181 bpl = (struct ulp_bde64 *) bmp->virt; lpfc_ns_cmd()
1206 CtReq = (struct lpfc_sli_ct_request *) mp->virt; lpfc_ns_cmd()
1308 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); lpfc_ns_cmd()
1312 lpfc_mbuf_free(phba, mp->virt, mp->phys); lpfc_ns_cmd()
1328 struct lpfc_sli_ct_request *CTrsp = outp->virt; lpfc_cmpl_ct_cmd_fdmi()
1329 struct lpfc_sli_ct_request *CTcmd = inp->virt; lpfc_cmpl_ct_cmd_fdmi()
1372 struct lpfc_sli_ct_request *CTcmd = inp->virt; lpfc_cmpl_ct_disc_fdmi()
1435 mp->virt = lpfc_mbuf_alloc(phba, 0, &(mp->phys)); lpfc_fdmi_cmd()
1436 if (!mp->virt) lpfc_fdmi_cmd()
1444 bmp->virt = lpfc_mbuf_alloc(phba, 0, &(bmp->phys)); lpfc_fdmi_cmd()
1445 if (!bmp->virt) lpfc_fdmi_cmd()
1455 CtReq = (struct lpfc_sli_ct_request *)mp->virt; lpfc_fdmi_cmd()
2076 bpl = (struct ulp_bde64 *)bmp->virt; lpfc_fdmi_cmd()
2096 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); lpfc_fdmi_cmd()
2100 lpfc_mbuf_free(phba, mp->virt, mp->phys); lpfc_fdmi_cmd()
H A Dlpfc_bsg.c142 lpfc_mbuf_free(phba, mlast->virt, mlast->phys); lpfc_free_bsg_buffers()
146 lpfc_mbuf_free(phba, mlist->virt, mlist->phys); lpfc_free_bsg_buffers()
180 mp->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &(mp->phys)); lpfc_alloc_bsg_buffers()
182 if (!mp->virt) { lpfc_alloc_bsg_buffers()
243 dma_address = mp->virt + dma_offset; lpfc_bsg_copy_data()
361 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); lpfc_bsg_send_mgmt_cmd_cmp()
435 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); lpfc_bsg_send_mgmt_cmd()
436 if (!bmp->virt) { lpfc_bsg_send_mgmt_cmd()
443 bpl = (struct ulp_bde64 *) bmp->virt; lpfc_bsg_send_mgmt_cmd()
534 if (bmp->virt) lpfc_bsg_send_mgmt_cmd()
535 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); lpfc_bsg_send_mgmt_cmd()
615 prsp->virt, lpfc_bsg_rport_els_cmp()
714 ((struct lpfc_dmabuf *)cmdiocbq->context2)->virt, lpfc_bsg_rport_els()
882 if (mlast->dma.virt) diag_cmd_data_free()
885 mlast->dma.virt, diag_cmd_data_free()
945 ct_req = (struct lpfc_sli_ct_request *)dmabuf->virt; lpfc_bsg_ct_unsol_event()
1041 dmabuf->virt, size); lpfc_bsg_ct_unsol_event()
1165 memcpy(fc_hdr_ptr, dmabuf->hbuf.virt, sizeof(struct fc_frame_header)); lpfc_bsg_ct_unsol_abort()
1436 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); lpfc_issue_ct_rsp_cmp()
1634 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); lpfc_bsg_send_mgmt_rsp()
1635 if (!bmp->virt) { lpfc_bsg_send_mgmt_rsp()
1641 bpl = (struct ulp_bde64 *) bmp->virt; lpfc_bsg_send_mgmt_rsp()
1662 if (bmp->virt) lpfc_bsg_send_mgmt_rsp()
1663 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); lpfc_bsg_send_mgmt_rsp()
2466 lpfc_mbuf_free(phba, dmabuff->virt, dmabuff->phys); lpfcdiag_loop_self_reg()
2478 lpfc_mbuf_free(phba, dmabuff->virt, dmabuff->phys); lpfcdiag_loop_self_reg()
2563 dmabuf->virt = lpfc_mbuf_alloc(phba, 0, &dmabuf->phys); lpfcdiag_loop_get_xri()
2564 if (dmabuf->virt) { lpfcdiag_loop_get_xri()
2566 bpl = (struct ulp_bde64 *) dmabuf->virt; lpfcdiag_loop_get_xri()
2583 dmabuf->virt == NULL) { lpfcdiag_loop_get_xri()
2656 if (dmabuf->virt) lpfcdiag_loop_get_xri()
2657 lpfc_mbuf_free(phba, dmabuf->virt, dmabuf->phys); lpfcdiag_loop_get_xri()
2689 dmabuf->virt = dma_zalloc_coherent(&pcidev->dev, BSG_MBOX_SIZE, lpfc_bsg_dma_page_alloc()
2692 if (!dmabuf->virt) { lpfc_bsg_dma_page_alloc()
2716 if (dmabuf->virt) lpfc_bsg_dma_page_free()
2718 dmabuf->virt, dmabuf->phys); lpfc_bsg_dma_page_free()
2791 dmp->dma.virt = dma_alloc_coherent(&pcidev->dev, diag_cmd_data_alloc()
2796 if (!dmp->dma.virt) diag_cmd_data_alloc()
2807 memset((uint8_t *)dmp->dma.virt, 0, cnt); diag_cmd_data_alloc()
2862 rxbmp->virt = lpfc_mbuf_alloc(phba, 0, &rxbmp->phys); lpfcdiag_loop_post_rxbufs()
2863 if (rxbmp->virt) { lpfcdiag_loop_post_rxbufs()
2865 rxbpl = (struct ulp_bde64 *) rxbmp->virt; lpfcdiag_loop_post_rxbufs()
2955 if (rxbmp->virt) lpfcdiag_loop_post_rxbufs()
2956 lpfc_mbuf_free(phba, rxbmp->virt, rxbmp->phys); lpfcdiag_loop_post_rxbufs()
3115 txbmp->virt = lpfc_mbuf_alloc(phba, 0, &txbmp->phys); lpfc_bsg_diag_loopback_run()
3116 if (txbmp->virt) { lpfc_bsg_diag_loopback_run()
3118 txbpl = (struct ulp_bde64 *) txbmp->virt; lpfc_bsg_diag_loopback_run()
3124 if (!cmdiocbq || !txbmp || !txbpl || !txbuffer || !txbmp->virt) { lpfc_bsg_diag_loopback_run()
3142 ctreq = curr->virt; lpfc_bsg_diag_loopback_run()
3155 memcpy(curr->virt + segment_offset, lpfc_bsg_diag_loopback_run()
3266 lpfc_mbuf_free(phba, txbmp->virt, txbmp->phys); lpfc_bsg_diag_loopback_run()
3548 sli_cfg_mbx = (struct lpfc_sli_config_mbox *)dmabuf->virt; lpfc_bsg_issue_mbox_ext_handle_job()
3551 pmbx = (uint8_t *)dmabuf->virt; lpfc_bsg_issue_mbox_ext_handle_job()
3675 sli_cfg_mbx = (struct lpfc_sli_config_mbox *)mbx_dmabuf->virt; lpfc_bsg_sli_cfg_dma_desc_setup()
3790 sli_cfg_mbx = (struct lpfc_sli_config_mbox *)dmabuf->virt; lpfc_bsg_sli_cfg_read_cmd_ext()
3887 pmbx = (uint8_t *)dmabuf->virt; lpfc_bsg_sli_cfg_read_cmd_ext()
3975 sli_cfg_mbx = (struct lpfc_sli_config_mbox *)dmabuf->virt; lpfc_bsg_sli_cfg_write_cmd_ext()
4064 mbx = (uint8_t *)dmabuf->virt; lpfc_bsg_sli_cfg_write_cmd_ext()
4133 sli_cfg_mbx = (struct lpfc_sli_config_mbox *)dmabuf->virt; lpfc_bsg_handle_sli_cfg_mbox()
4283 phba->mbox_ext_buf_ctx.mbx_dmabuf->virt; lpfc_bsg_read_ebuf_get()
4309 pbuf = (uint8_t *)dmabuf->virt; lpfc_bsg_read_ebuf_get()
4361 pbuf = (uint8_t *)dmabuf->virt; lpfc_bsg_write_ebuf_set()
4404 pbuf = (uint8_t *)phba->mbox_ext_buf_ctx.mbx_dmabuf->virt; lpfc_bsg_write_ebuf_set()
4632 if (!dmabuf || !dmabuf->virt) { lpfc_bsg_issue_mbox()
4638 pmbx = (uint8_t *)dmabuf->virt; lpfc_bsg_issue_mbox()
5003 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); lpfc_bsg_menlo_cmd_cmp()
5089 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); lpfc_menlo_cmd()
5090 if (!bmp->virt) { lpfc_menlo_cmd()
5097 bpl = (struct ulp_bde64 *)bmp->virt; lpfc_menlo_cmd()
5176 if (bmp->virt) lpfc_menlo_cmd()
5177 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); lpfc_menlo_cmd()
H A Dlpfc_mbox.c83 mp->virt = lpfc_mbuf_alloc(phba, 0, &mp->phys); lpfc_dump_static_vport()
85 if (!mp || !mp->virt) { lpfc_dump_static_vport()
92 memset(mp->virt, 0, LPFC_BPL_SIZE); lpfc_dump_static_vport()
605 mp->virt = lpfc_mbuf_alloc(phba, 0, &mp->phys); lpfc_read_sparam()
606 if (!mp || !mp->virt) { lpfc_read_sparam()
758 mp->virt = lpfc_mbuf_alloc(phba, 0, &mp->phys); lpfc_reg_rpi()
759 if (!mp || !mp->virt) { lpfc_reg_rpi()
769 sparam = mp->virt; lpfc_reg_rpi()
984 (uint8_t *) phba->slim2p.virt; lpfc_config_pcb_setup()
995 (uint8_t *)phba->slim2p.virt; lpfc_config_pcb_setup()
1277 offset = (uint8_t *)phba->pcb - (uint8_t *)phba->slim2p.virt; lpfc_config_port()
1315 offset = (uint8_t *)phba->mbox - (uint8_t *)phba->slim2p.virt; lpfc_config_port()
1374 (uint8_t *)phba->slim2p.virt; lpfc_config_port()
2235 mp->virt = lpfc_mbuf_alloc(phba, 0, &mp->phys); lpfc_sli4_dump_cfg_rg23()
2237 if (!mp || !mp->virt) { lpfc_sli4_dump_cfg_rg23()
2246 memset(mp->virt, 0, LPFC_BPL_SIZE); lpfc_sli4_dump_cfg_rg23()
2292 lpfc_sli_bemem_bcopy(mp->virt, &rdp_context->page_a2, lpfc_mbx_cmpl_rdp_page_a2()
2296 lpfc_mbuf_free(phba, mp->virt, mp->phys); lpfc_mbx_cmpl_rdp_page_a2()
2310 lpfc_mbuf_free(phba, mp->virt, mp->phys); lpfc_mbx_cmpl_rdp_page_a2()
2328 lpfc_sli_bemem_bcopy(mp->virt, &rdp_context->page_a0, lpfc_mbx_cmpl_rdp_page_a0()
2333 memset(mp->virt, 0, DMP_SFF_PAGE_A2_SIZE); lpfc_mbx_cmpl_rdp_page_a0()
2361 lpfc_mbuf_free(phba, mp->virt, mp->phys); lpfc_mbx_cmpl_rdp_page_a0()
2385 mp->virt = lpfc_mbuf_alloc(phba, 0, &mp->phys); lpfc_sli4_dump_page_a0()
2386 if (!mp || !mp->virt) { lpfc_sli4_dump_page_a0()
2393 memset(mp->virt, 0, LPFC_BPL_SIZE); lpfc_sli4_dump_page_a0()
/linux-4.4.14/arch/x86/crypto/
H A Dsalsa20_glue.c64 salsa20_encrypt_bytes(ctx, walk.src.virt.addr, encrypt()
65 walk.dst.virt.addr, nbytes); encrypt()
70 salsa20_encrypt_bytes(ctx, walk.src.virt.addr, encrypt()
71 walk.dst.virt.addr, encrypt()
77 salsa20_encrypt_bytes(ctx, walk.src.virt.addr, encrypt()
78 walk.dst.virt.addr, walk.nbytes); encrypt()
H A Dglue_helper.c48 u8 *wsrc = walk->src.virt.addr; __glue_ecb_crypt_128bit()
49 u8 *wdst = walk->dst.virt.addr; __glue_ecb_crypt_128bit()
99 u128 *src = (u128 *)walk->src.virt.addr; __glue_cbc_encrypt_128bit()
100 u128 *dst = (u128 *)walk->dst.virt.addr; __glue_cbc_encrypt_128bit()
145 u128 *src = (u128 *)walk->src.virt.addr; __glue_cbc_decrypt_128bit()
146 u128 *dst = (u128 *)walk->dst.virt.addr; __glue_cbc_decrypt_128bit()
221 u8 *src = (u8 *)walk->src.virt.addr; glue_ctr_crypt_final_128bit()
222 u8 *dst = (u8 *)walk->dst.virt.addr; glue_ctr_crypt_final_128bit()
243 u128 *src = (u128 *)walk->src.virt.addr; __glue_ctr_crypt_128bit()
244 u128 *dst = (u128 *)walk->dst.virt.addr; __glue_ctr_crypt_128bit()
313 u128 *src = (u128 *)walk->src.virt.addr; __glue_xts_crypt_128bit()
314 u128 *dst = (u128 *)walk->dst.virt.addr; __glue_xts_crypt_128bit()
H A Dchacha20_glue.c86 chacha20_dosimd(state, walk.dst.virt.addr, walk.src.virt.addr, chacha20_simd()
93 chacha20_dosimd(state, walk.dst.virt.addr, walk.src.virt.addr, chacha20_simd()
H A Dblowfish_glue.c92 u8 *wsrc = walk->src.virt.addr; ecb_crypt()
93 u8 *wdst = walk->dst.virt.addr; ecb_crypt()
149 u64 *src = (u64 *)walk->src.virt.addr; __cbc_encrypt()
150 u64 *dst = (u64 *)walk->dst.virt.addr; __cbc_encrypt()
190 u64 *src = (u64 *)walk->src.virt.addr; __cbc_decrypt()
191 u64 *dst = (u64 *)walk->dst.virt.addr; __cbc_decrypt()
269 u8 *src = walk->src.virt.addr; ctr_crypt_final()
270 u8 *dst = walk->dst.virt.addr; ctr_crypt_final()
286 u64 *src = (u64 *)walk->src.virt.addr; __ctr_crypt()
287 u64 *dst = (u64 *)walk->dst.virt.addr; __ctr_crypt()
H A Dcast5_avx_glue.c75 u8 *wsrc = walk->src.virt.addr; ecb_crypt()
76 u8 *wdst = walk->dst.virt.addr; ecb_crypt()
137 u64 *src = (u64 *)walk->src.virt.addr; __cbc_encrypt()
138 u64 *dst = (u64 *)walk->dst.virt.addr; __cbc_encrypt()
178 u64 *src = (u64 *)walk->src.virt.addr; __cbc_decrypt()
179 u64 *dst = (u64 *)walk->dst.virt.addr; __cbc_decrypt()
254 u8 *src = walk->src.virt.addr; ctr_crypt_final()
255 u8 *dst = walk->dst.virt.addr; ctr_crypt_final()
271 u64 *src = (u64 *)walk->src.virt.addr; __ctr_crypt()
272 u64 *dst = (u64 *)walk->dst.virt.addr; __ctr_crypt()
H A Ddes3_ede_glue.c96 u8 *wsrc = walk->src.virt.addr; ecb_crypt()
97 u8 *wdst = walk->dst.virt.addr; ecb_crypt()
156 u64 *src = (u64 *)walk->src.virt.addr; __cbc_encrypt()
157 u64 *dst = (u64 *)walk->dst.virt.addr; __cbc_encrypt()
197 u64 *src = (u64 *)walk->src.virt.addr; __cbc_decrypt()
198 u64 *dst = (u64 *)walk->dst.virt.addr; __cbc_decrypt()
275 u8 *src = walk->src.virt.addr; ctr_crypt_final()
276 u8 *dst = walk->dst.virt.addr; ctr_crypt_final()
292 __be64 *src = (__be64 *)walk->src.virt.addr; __ctr_crypt()
293 __be64 *dst = (__be64 *)walk->dst.virt.addr; __ctr_crypt()
H A Daesni-intel_glue.c388 aesni_ecb_enc(ctx, walk.dst.virt.addr, walk.src.virt.addr, ecb_encrypt()
412 aesni_ecb_dec(ctx, walk.dst.virt.addr, walk.src.virt.addr, ecb_decrypt()
436 aesni_cbc_enc(ctx, walk.dst.virt.addr, walk.src.virt.addr, cbc_encrypt()
460 aesni_cbc_dec(ctx, walk.dst.virt.addr, walk.src.virt.addr, cbc_decrypt()
476 u8 *src = walk->src.virt.addr; ctr_crypt_final()
477 u8 *dst = walk->dst.virt.addr; ctr_crypt_final()
519 aesni_ctr_enc_tfm(ctx, walk.dst.virt.addr, walk.src.virt.addr, ctr_crypt()
/linux-4.4.14/arch/s390/kvm/
H A DMakefile9 KVM := ../../../virt/kvm
/linux-4.4.14/arch/arm/mm/
H A Dmm.h36 static inline pmd_t *pmd_off_k(unsigned long virt) pmd_off_k() argument
38 return pmd_offset(pud_offset(pgd_offset_k(virt), virt), virt); pmd_off_k()
H A Dioremap.c106 int ioremap_page(unsigned long virt, unsigned long phys, ioremap_page() argument
109 return ioremap_page_range(virt, virt + PAGE_SIZE, phys, ioremap_page()
139 static void unmap_area_sections(unsigned long virt, unsigned long size) unmap_area_sections() argument
141 unsigned long addr = virt, end = virt + (size & ~(SZ_1M - 1)); unmap_area_sections()
182 flush_tlb_kernel_range(virt, end); unmap_area_sections()
186 remap_area_sections(unsigned long virt, unsigned long pfn, remap_area_sections() argument
189 unsigned long addr = virt, end = virt + size; remap_area_sections()
198 unmap_area_sections(virt, size); remap_area_sections()
218 remap_area_supersections(unsigned long virt, unsigned long pfn, remap_area_supersections() argument
221 unsigned long addr = virt, end = virt + size; remap_area_supersections()
230 unmap_area_sections(virt, size); remap_area_supersections()
232 pgd = pgd_offset_k(virt); remap_area_supersections()
/linux-4.4.14/arch/powerpc/mm/
H A Dfsl_booke_mmu.c108 static void settlbcam(int index, unsigned long virt, phys_addr_t phys, settlbcam() argument
122 TLBCAM[index].MAS2 = virt & PAGE_MASK; settlbcam()
141 tlbcam_addrs[index].start = virt; settlbcam()
142 tlbcam_addrs[index].limit = virt + size - 1; settlbcam()
146 unsigned long calc_cam_sz(unsigned long ram, unsigned long virt, calc_cam_sz() argument
150 unsigned int align = __ffs(virt | phys); calc_cam_sz()
171 static unsigned long map_mem_in_cams_addr(phys_addr_t phys, unsigned long virt, map_mem_in_cams_addr() argument
182 cam_sz = calc_cam_sz(ram, virt, phys); map_mem_in_cams_addr()
184 settlbcam(i, virt, phys, cam_sz, map_mem_in_cams_addr()
189 virt += cam_sz; map_mem_in_cams_addr()
210 unsigned long virt = PAGE_OFFSET; map_mem_in_cams() local
213 return map_mem_in_cams_addr(phys, virt, ram, max_cam_idx, dryrun); map_mem_in_cams()
H A D44x_mmu.c67 static void __init ppc44x_pin_tlb(unsigned int virt, unsigned int phys) ppc44x_pin_tlb() argument
82 "r" (virt | PPC44x_TLB_VALID | PPC44x_TLB_256M), ppc44x_pin_tlb()
137 static void ppc47x_pin_tlb(unsigned int virt, unsigned int phys) ppc47x_pin_tlb() argument
153 virt, phys, bolted); ppc47x_pin_tlb()
169 "r" (virt | PPC47x_TLB0_VALID | PPC47x_TLB0_256M), ppc47x_pin_tlb()
H A Dppc_mmu_32.c115 void __init setbat(int index, unsigned long virt, phys_addr_t phys, setbat() argument
134 bat[1].batu = virt | (bl << 2) | 2; /* Vs=1, Vp=0 */ setbat()
153 bat->batu = virt | wimgxpp | 4; /* Ks=0, Ku=1 */ setbat()
157 bat_addrs[index].start = virt; setbat()
158 bat_addrs[index].limit = virt + ((bl + 1) << 17) - 1; setbat()
H A Dmmu_decl.h98 extern void setbat(int index, unsigned long virt, phys_addr_t phys,
146 extern unsigned long calc_cam_sz(unsigned long ram, unsigned long virt,
/linux-4.4.14/arch/arm/mach-axxia/
H A Dplatsmp.c27 u32 *virt = (u32 *) phys_to_virt(release_phys); write_release_addr() local
28 writel_relaxed(virt_to_phys(secondary_startup), virt); write_release_addr() local
31 __cpuc_flush_dcache_area(virt, sizeof(u32)); write_release_addr()
/linux-4.4.14/drivers/infiniband/hw/mlx4/
H A Ddoorbell.c44 int mlx4_ib_db_map_user(struct mlx4_ib_ucontext *context, unsigned long virt, mlx4_ib_db_map_user() argument
53 if (page->user_virt == (virt & PAGE_MASK)) mlx4_ib_db_map_user()
62 page->user_virt = (virt & PAGE_MASK); mlx4_ib_db_map_user()
64 page->umem = ib_umem_get(&context->ibucontext, virt & PAGE_MASK, mlx4_ib_db_map_user()
75 db->dma = sg_dma_address(page->umem->sg_head.sgl) + (virt & ~PAGE_MASK); mlx4_ib_db_map_user()
/linux-4.4.14/drivers/infiniband/hw/mlx5/
H A Ddoorbell.c46 int mlx5_ib_db_map_user(struct mlx5_ib_ucontext *context, unsigned long virt, mlx5_ib_db_map_user() argument
55 if (page->user_virt == (virt & PAGE_MASK)) mlx5_ib_db_map_user()
64 page->user_virt = (virt & PAGE_MASK); mlx5_ib_db_map_user()
66 page->umem = ib_umem_get(&context->ibucontext, virt & PAGE_MASK, mlx5_ib_db_map_user()
77 db->dma = sg_dma_address(page->umem->sg_head.sgl) + (virt & ~PAGE_MASK); mlx5_ib_db_map_user()
/linux-4.4.14/drivers/media/pci/cobalt/
H A Dcobalt-flash.c41 r.x[0] = cobalt_bus_read32(map->virt, ADRS(offset)); flash_read16()
55 cobalt_bus_write16(map->virt, ADRS(offset), data); flash_write16()
66 data = cobalt_bus_read32(map->virt, ADRS(src)); flash_copy_from()
93 cobalt_bus_write16(map->virt, ADRS(dest - 2), data); flash_copy_to()
103 map->virt = cobalt->bar1; cobalt_flash_probe()
H A Dcobalt-omnitek.c166 struct sg_dma_descriptor *d = (struct sg_dma_descriptor *)desc->virt; descriptor_list_create()
301 desc->virt = dma_alloc_coherent(desc->dev, bytes, descriptor_list_allocate()
303 return desc->virt; descriptor_list_allocate()
308 if (desc->virt) descriptor_list_free()
310 desc->virt, desc->bus); descriptor_list_free()
311 desc->virt = NULL; descriptor_list_free()
/linux-4.4.14/arch/powerpc/boot/
H A Doflib.c156 unsigned int of_claim(unsigned long virt, unsigned long size, of_claim() argument
165 return of_call_prom("claim", 3, 1, virt, size, align); of_claim()
168 align, size, virt); of_claim()
172 align, size, virt); of_claim()
175 0x12, size, virt, virt); of_claim()
176 return virt; of_claim()
H A Dof.h11 unsigned int of_claim(unsigned long virt, unsigned long size,
/linux-4.4.14/crypto/
H A Dcbc.c50 u8 *src = walk->src.virt.addr; crypto_cbc_encrypt_segment()
51 u8 *dst = walk->dst.virt.addr; crypto_cbc_encrypt_segment()
74 u8 *src = walk->src.virt.addr; crypto_cbc_encrypt_inplace()
104 if (walk.src.virt.addr == walk.dst.virt.addr) crypto_cbc_encrypt()
122 u8 *src = walk->src.virt.addr; crypto_cbc_decrypt_segment()
123 u8 *dst = walk->dst.virt.addr; crypto_cbc_decrypt_segment()
148 u8 *src = walk->src.virt.addr; crypto_cbc_decrypt_inplace()
183 if (walk.src.virt.addr == walk.dst.virt.addr) crypto_cbc_decrypt()
H A Dpcbc.c53 u8 *src = walk->src.virt.addr; crypto_pcbc_encrypt_segment()
54 u8 *dst = walk->dst.virt.addr; crypto_pcbc_encrypt_segment()
78 u8 *src = walk->src.virt.addr; crypto_pcbc_encrypt_inplace()
111 if (walk.src.virt.addr == walk.dst.virt.addr) crypto_pcbc_encrypt()
131 u8 *src = walk->src.virt.addr; crypto_pcbc_decrypt_segment()
132 u8 *dst = walk->dst.virt.addr; crypto_pcbc_decrypt_segment()
158 u8 *src = walk->src.virt.addr; crypto_pcbc_decrypt_inplace()
191 if (walk.src.virt.addr == walk.dst.virt.addr) crypto_pcbc_decrypt()
H A Dsalsa20_generic.c193 salsa20_encrypt_bytes(ctx, walk.dst.virt.addr, encrypt()
194 walk.src.virt.addr, nbytes); encrypt()
199 salsa20_encrypt_bytes(ctx, walk.dst.virt.addr, encrypt()
200 walk.src.virt.addr, encrypt()
206 salsa20_encrypt_bytes(ctx, walk.dst.virt.addr, encrypt()
207 walk.src.virt.addr, walk.nbytes); encrypt()
H A Dchacha20_generic.c156 chacha20_docrypt(state, walk.dst.virt.addr, walk.src.virt.addr, crypto_chacha20_crypt()
163 chacha20_docrypt(state, walk.dst.virt.addr, walk.src.virt.addr, crypto_chacha20_crypt()
H A Dxts.c115 wsrc = w->src.virt.addr; crypt()
116 wdst = w->dst.virt.addr; crypt()
140 wsrc = w->src.virt.addr; crypt()
141 wdst = w->dst.virt.addr; crypt()
191 src = (be128 *)walk.src.virt.addr; xts_crypt()
192 dst = (be128 *)walk.dst.virt.addr; xts_crypt()
233 src = (be128 *)walk.src.virt.addr; xts_crypt()
234 dst = (be128 *)walk.dst.virt.addr; xts_crypt()
H A Dlrw.c157 wsrc = w->src.virt.addr; crypt()
158 wdst = w->dst.virt.addr; crypt()
188 wsrc = w->src.virt.addr; crypt()
189 wdst = w->dst.virt.addr; crypt()
240 src = (be128 *)walk.src.virt.addr; lrw_crypt()
241 dst = (be128 *)walk.dst.virt.addr; lrw_crypt()
288 src = (be128 *)walk.src.virt.addr; lrw_crypt()
289 dst = (be128 *)walk.dst.virt.addr; lrw_crypt()
H A Dblkcipher.c47 walk->src.virt.addr = scatterwalk_map(&walk->in); blkcipher_map_src()
52 walk->dst.virt.addr = scatterwalk_map(&walk->out); blkcipher_map_dst()
57 scatterwalk_unmap(walk->src.virt.addr); blkcipher_unmap_src()
62 scatterwalk_unmap(walk->dst.virt.addr); blkcipher_unmap_dst()
90 memcpy(walk->dst.virt.addr, walk->page, n); blkcipher_done_fast()
169 walk->dst.virt.addr = (u8 *)ALIGN((unsigned long)walk->buffer, blkcipher_next_slow()
171 walk->dst.virt.addr = blkcipher_get_spot(walk->dst.virt.addr, bsize); blkcipher_next_slow()
172 walk->src.virt.addr = blkcipher_get_spot(walk->dst.virt.addr + blkcipher_next_slow()
175 scatterwalk_copychunks(walk->src.virt.addr, &walk->in, bsize, 0); blkcipher_next_slow()
188 memcpy(tmp, walk->src.virt.addr, walk->nbytes); blkcipher_next_copy()
191 walk->src.virt.addr = tmp; blkcipher_next_copy()
192 walk->dst.virt.addr = tmp; blkcipher_next_copy()
211 diff |= walk->src.virt.page - walk->dst.virt.page; blkcipher_next_fast()
214 walk->dst.virt.addr = walk->src.virt.addr; blkcipher_next_fast()
268 walk->src.phys.page = virt_to_page(walk->src.virt.addr); blkcipher_walk_next()
269 walk->dst.phys.page = virt_to_page(walk->dst.virt.addr); blkcipher_walk_next()
H A Dcrypto_null.c88 if (walk.src.virt.addr != walk.dst.virt.addr) skcipher_null_crypt()
89 memcpy(walk.dst.virt.addr, walk.src.virt.addr, skcipher_null_crypt()
H A Darc4.c107 u8 *wsrc = walk.src.virt.addr; ecb_arc4_crypt()
108 u8 *wdst = walk.dst.virt.addr; ecb_arc4_crypt()
H A Dctr.c63 u8 *src = walk->src.virt.addr; crypto_ctr_crypt_final()
64 u8 *dst = walk->dst.virt.addr; crypto_ctr_crypt_final()
81 u8 *src = walk->src.virt.addr; crypto_ctr_crypt_segment()
82 u8 *dst = walk->dst.virt.addr; crypto_ctr_crypt_segment()
109 u8 *src = walk->src.virt.addr; crypto_ctr_crypt_inplace()
142 if (walk.src.virt.addr == walk.dst.virt.addr) crypto_ctr_crypt()
H A Decb.c53 u8 *wsrc = walk->src.virt.addr; crypto_ecb_crypt()
54 u8 *wdst = walk->dst.virt.addr; crypto_ecb_crypt()
/linux-4.4.14/arch/powerpc/sysdev/
H A Dppc4xx_ocm.c48 void __iomem *virt; member in struct:ocm_region
90 if (!ocm_reg->virt) ocm_free_region()
95 offset = addr - ocm_reg->virt; ocm_free_region()
183 ocm->nc.virt = __ioremap(ocm->nc.phys, ocm->nc.memtotal, ocm_init_node()
186 if (!ocm->nc.virt) { ocm_init_node()
199 ocm->c.virt = __ioremap(ocm->c.phys, ocm->c.memtotal, ocm_init_node()
202 if (!ocm->c.virt) { ocm_init_node()
215 if (ocm->nc.virt) { ocm_init_node()
220 if (ocm->c.virt) { ocm_init_node()
253 seq_printf(m, "NC.VirtAddr : 0x%p\n", ocm->nc.virt); ocm_debugfs_show()
265 seq_printf(m, "C.VirtAddr : 0x%p\n", ocm->c.virt); ocm_debugfs_show()
331 if (!ocm_reg->virt) ppc4xx_ocm_alloc()
350 addr = ocm_reg->virt + offset; ppc4xx_ocm_alloc()
H A Dfsl_rmu.c165 void *virt; member in struct:rio_msg_tx_ring
175 void *virt; member in struct:rio_msg_rx_ring
317 fsl_dbell->dbell_ring.virt + fsl_rio_dbell_handler()
424 kfifo_in(&pw->pw_fifo, pw->port_write_msg.virt, fsl_rio_port_write_handler()
550 pw->port_write_msg.virt = dma_alloc_coherent(pw->dev, fsl_rio_port_write_init()
553 if (!pw->port_write_msg.virt) { fsl_rio_port_write_init()
607 pw->port_write_msg.virt, fsl_rio_port_write_init()
657 struct rio_tx_desc *desc = (struct rio_tx_desc *)rmu->msg_tx_ring.virt fsl_add_outb_message()
747 rmu->msg_tx_ring.virt = dma_alloc_coherent(priv->dev, fsl_open_outb_mbox()
750 if (!rmu->msg_tx_ring.virt) { fsl_open_outb_mbox()
754 memset(rmu->msg_tx_ring.virt, 0, fsl_open_outb_mbox()
797 rmu->msg_tx_ring.virt, rmu->msg_tx_ring.phys); fsl_open_outb_mbox()
827 rmu->msg_tx_ring.virt, rmu->msg_tx_ring.phys); fsl_close_outb_mbox()
865 rmu->msg_rx_ring.virt = dma_alloc_coherent(priv->dev, fsl_open_inb_mbox()
868 if (!rmu->msg_rx_ring.virt) { fsl_open_inb_mbox()
886 rmu->msg_rx_ring.virt, rmu->msg_rx_ring.phys); fsl_open_inb_mbox()
927 rmu->msg_rx_ring.virt, rmu->msg_rx_ring.phys); fsl_close_inb_mbox()
988 virt_buf = rmu->msg_rx_ring.virt + (phys_buf fsl_get_inb_message()
1025 dbell->dbell_ring.virt = dma_alloc_coherent(dbell->dev, 512 * fsl_rio_doorbell_init()
1027 if (!dbell->dbell_ring.virt) { fsl_rio_doorbell_init()
1045 dbell->dbell_ring.virt, dbell->dbell_ring.phys); fsl_rio_doorbell_init()
H A Dfsl_rio.h79 void *virt; member in struct:rio_dbell_ring
84 void *virt; member in struct:rio_port_write_msg
/linux-4.4.14/arch/arm/include/debug/
H A Domap2plus.S69 /* Use omap_uart_phys/virt if already configured */
81 /* Configure the UART offset from the phys/virt base */
141 /* AM33XX: Store both phys and virt address for the uart */
145 add \rp, \rp, #0xf9000000 @ virt base
152 /* Store both phys and virt address for the uart */
156 add \rp, \rp, #0xfa000000 @ virt base
H A Dat91.S27 ldr \rv, =CONFIG_DEBUG_UART_VIRT @ System peripherals (virt address)
H A Dsti.S44 ldr \rv, =VIRT_ADDRESS(DEBUG_LL_UART_BASE) @ virt base
H A Dsa1100.S46 @ clear top bits, and generate both phys and virt addresses
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
H A Dicm.c227 static int mlx4_MAP_ICM(struct mlx4_dev *dev, struct mlx4_icm *icm, u64 virt) mlx4_MAP_ICM() argument
229 return mlx4_map_cmd(dev, MLX4_CMD_MAP_ICM, icm, virt); mlx4_MAP_ICM()
232 static int mlx4_UNMAP_ICM(struct mlx4_dev *dev, u64 virt, u32 page_count) mlx4_UNMAP_ICM() argument
234 return mlx4_cmd(dev, virt, page_count, 0, MLX4_CMD_UNMAP_ICM, mlx4_UNMAP_ICM()
271 if (mlx4_MAP_ICM(dev, table->icm[i], table->virt + mlx4_table_get()
297 mlx4_UNMAP_ICM(dev, table->virt + offset, mlx4_table_put()
387 u64 virt, int obj_size, u32 nobj, int reserved, mlx4_init_icm_table()
402 table->virt = virt; mlx4_init_icm_table()
422 if (mlx4_MAP_ICM(dev, table->icm[i], virt + i * MLX4_TABLE_CHUNK_SIZE)) { mlx4_init_icm_table()
440 mlx4_UNMAP_ICM(dev, virt + i * MLX4_TABLE_CHUNK_SIZE, mlx4_init_icm_table()
456 mlx4_UNMAP_ICM(dev, table->virt + i * MLX4_TABLE_CHUNK_SIZE, mlx4_cleanup_icm_table()
386 mlx4_init_icm_table(struct mlx4_dev *dev, struct mlx4_icm_table *table, u64 virt, int obj_size, u32 nobj, int reserved, int use_lowmem, int use_coherent) mlx4_init_icm_table() argument
/linux-4.4.14/arch/sparc/mm/
H A Dinit_64.h20 unsigned long virt; member in struct:linux_prom_translation
/linux-4.4.14/arch/xtensa/mm/
H A Dcache.c153 unsigned long virt; flush_dcache_page() local
165 virt = TLBTEMP_BASE_1 + (phys & DCACHE_ALIAS_MASK); flush_dcache_page()
166 __flush_invalidate_dcache_page_alias(virt, phys); flush_dcache_page()
168 virt = TLBTEMP_BASE_1 + (temp & DCACHE_ALIAS_MASK); flush_dcache_page()
171 __flush_invalidate_dcache_page_alias(virt, phys); flush_dcache_page()
174 __invalidate_icache_page_alias(virt, phys); flush_dcache_page()
205 unsigned long virt = TLBTEMP_BASE_1 + (address & DCACHE_ALIAS_MASK); local_flush_cache_page() local
207 __flush_invalidate_dcache_page_alias(virt, phys); local_flush_cache_page()
208 __invalidate_icache_page_alias(virt, phys); local_flush_cache_page()
/linux-4.4.14/arch/arm64/crypto/
H A Daes-glue.c113 aes_ecb_encrypt(walk.dst.virt.addr, walk.src.virt.addr, ecb_encrypt()
135 aes_ecb_decrypt(walk.dst.virt.addr, walk.src.virt.addr, ecb_decrypt()
157 aes_cbc_encrypt(walk.dst.virt.addr, walk.src.virt.addr, cbc_encrypt()
180 aes_cbc_decrypt(walk.dst.virt.addr, walk.src.virt.addr, cbc_decrypt()
204 aes_ctr_encrypt(walk.dst.virt.addr, walk.src.virt.addr, ctr_encrypt()
215 u8 *tdst = walk.dst.virt.addr + blocks * AES_BLOCK_SIZE; ctr_encrypt()
216 u8 *tsrc = walk.src.virt.addr + blocks * AES_BLOCK_SIZE; ctr_encrypt()
249 aes_xts_encrypt(walk.dst.virt.addr, walk.src.virt.addr, xts_encrypt()
273 aes_xts_decrypt(walk.dst.virt.addr, walk.src.virt.addr, xts_decrypt()
H A Daes-ce-ccm-glue.c190 ce_aes_ccm_encrypt(walk.dst.virt.addr, walk.src.virt.addr, ccm_encrypt()
255 ce_aes_ccm_decrypt(walk.dst.virt.addr, walk.src.virt.addr, ccm_decrypt()
/linux-4.4.14/arch/arm64/kvm/
H A DMakefile9 KVM=../../../virt/kvm
/linux-4.4.14/arch/arm/mach-ep93xx/include/mach/
H A Dep93xx-regs.h11 * virt phys size
/linux-4.4.14/drivers/firmware/
H A Discsi_ibft_find.c62 void *virt; find_ibft_in_mem() local
70 virt = isa_bus_to_virt(pos); find_ibft_in_mem()
73 if (memcmp(virt, ibft_signs[i].sign, IBFT_SIGN_LEN) == find_ibft_in_mem()
81 ibft_addr = (struct acpi_table_ibft *)virt; find_ibft_in_mem()
/linux-4.4.14/arch/x86/oprofile/
H A Dop_model_amd.c277 int virt = op_x86_phys_to_virt(i); op_mux_switch_ctrl() local
278 if (!reset_value[virt]) op_mux_switch_ctrl()
282 val |= op_x86_get_ctrl(model, &counter_config[virt]); op_mux_switch_ctrl()
367 int virt = op_x86_phys_to_virt(i); op_amd_setup_ctrs() local
368 if (!reset_value[virt]) op_amd_setup_ctrs()
372 wrmsrl(msrs->counters[i].addr, -(u64)reset_value[virt]); op_amd_setup_ctrs()
377 val |= op_x86_get_ctrl(model, &counter_config[virt]); op_amd_setup_ctrs()
389 int virt = op_x86_phys_to_virt(i); op_amd_check_ctrs() local
390 if (!reset_value[virt]) op_amd_check_ctrs()
396 oprofile_add_sample(regs, virt); op_amd_check_ctrs()
397 wrmsrl(msrs->counters[i].addr, -(u64)reset_value[virt]); op_amd_check_ctrs()
H A Dnmi_int.c143 inline int op_x86_virt_to_phys(int virt) op_x86_virt_to_phys() argument
145 return virt % model->num_counters; op_x86_virt_to_phys()
207 int virt = op_x86_phys_to_virt(i); nmi_cpu_save_mpx_registers() local
209 rdmsrl(counters[i].addr, multiplex[virt].saved); nmi_cpu_save_mpx_registers()
220 int virt = op_x86_phys_to_virt(i); nmi_cpu_restore_mpx_registers() local
222 wrmsrl(counters[i].addr, multiplex[virt].saved); nmi_cpu_restore_mpx_registers()
293 inline int op_x86_virt_to_phys(int virt) { return virt; } nmi_shutdown_mux() argument
H A Dop_x86_model.h82 extern int op_x86_virt_to_phys(int virt);
/linux-4.4.14/arch/tile/include/asm/
H A Dhighmem.h50 #define PKMAP_NR(virt) ((virt-PKMAP_BASE) >> PAGE_SHIFT)
/linux-4.4.14/arch/xtensa/include/asm/
H A Dhighmem.h25 #define PKMAP_NR(virt) (((virt) - PKMAP_BASE) >> PAGE_SHIFT)
H A Dcacheflush.h73 static inline void __flush_invalidate_dcache_page_alias(unsigned long virt, __flush_invalidate_dcache_page_alias() argument
75 static inline void __invalidate_dcache_page_alias(unsigned long virt, __invalidate_dcache_page_alias() argument
81 static inline void __invalidate_icache_page_alias(unsigned long virt, __invalidate_icache_page_alias() argument
/linux-4.4.14/arch/arc/include/asm/
H A Dhighmem.h30 #define PKMAP_NR(virt) (((virt) - PKMAP_BASE) >> PAGE_SHIFT)
H A Dpage.h87 * virt here means link-address/program-address as embedded in object code.
/linux-4.4.14/arch/mips/include/asm/
H A Dhighmem.h41 #define PKMAP_NR(virt) ((virt-PKMAP_BASE) >> PAGE_SHIFT)
/linux-4.4.14/arch/sh/include/asm/
H A Dmmu.h61 int pmb_bolt_mapping(unsigned long virt, phys_addr_t phys,
70 pmb_bolt_mapping(unsigned long virt, phys_addr_t phys, pmb_bolt_mapping() argument
H A Dtlb_64.h67 #define sh64_setup_tlb_slot(conf, virt, asid, phys) do { } while (0)
/linux-4.4.14/arch/sparc/include/asm/
H A Dhighmem.h47 #define PKMAP_NR(virt) ((virt - PKMAP_BASE) >> PAGE_SHIFT)
H A Dvaddrs.h59 #define KADB_DEBUGGER_BEGVM 0xffc00000 /* Where kern debugger is in virt-mem */
/linux-4.4.14/arch/metag/include/asm/
H A Dhighmem.h29 #define PKMAP_NR(virt) (((virt) - PKMAP_BASE) >> PAGE_SHIFT)
/linux-4.4.14/arch/arm64/include/asm/
H A Dmmu.h32 extern void __iomem *early_io_map(phys_addr_t phys, unsigned long virt);
35 unsigned long virt, phys_addr_t size,
/linux-4.4.14/arch/powerpc/crypto/
H A Daes-spe-glue.c197 ppc_encrypt_ecb(walk.dst.virt.addr, walk.src.virt.addr, ppc_ecb_encrypt()
225 ppc_decrypt_ecb(walk.dst.virt.addr, walk.src.virt.addr, ppc_ecb_decrypt()
253 ppc_encrypt_cbc(walk.dst.virt.addr, walk.src.virt.addr, ppc_cbc_encrypt()
281 ppc_decrypt_cbc(walk.dst.virt.addr, walk.src.virt.addr, ppc_cbc_decrypt()
310 ppc_crypt_ctr(walk.dst.virt.addr, walk.src.virt.addr, ppc_ctr_crypt()
341 ppc_encrypt_xts(walk.dst.virt.addr, walk.src.virt.addr, ppc_xts_encrypt()
372 ppc_decrypt_xts(walk.dst.virt.addr, walk.src.virt.addr, ppc_xts_decrypt()
/linux-4.4.14/include/linux/mtd/
H A Dmap.h214 void __iomem *virt; member in struct:map_info
416 r.x[0] = __raw_readb(map->virt + ofs); inline_map_read()
418 r.x[0] = __raw_readw(map->virt + ofs); inline_map_read()
420 r.x[0] = __raw_readl(map->virt + ofs); inline_map_read()
423 r.x[0] = __raw_readq(map->virt + ofs); inline_map_read()
426 memcpy_fromio(r.x, map->virt + ofs, map->bankwidth); inline_map_read()
436 __raw_writeb(datum.x[0], map->virt + ofs); inline_map_write()
438 __raw_writew(datum.x[0], map->virt + ofs); inline_map_write()
440 __raw_writel(datum.x[0], map->virt + ofs); inline_map_write()
443 __raw_writeq(datum.x[0], map->virt + ofs); inline_map_write()
446 memcpy_toio(map->virt+ofs, datum.x, map->bankwidth); inline_map_write()
457 memcpy_fromio(to, map->virt + from, len); inline_map_copy_from()
462 memcpy_toio(map->virt + to, from, len); inline_map_copy_to()
/linux-4.4.14/arch/sparc/crypto/
H A Daes_glue.c233 (const u64 *)walk.src.virt.addr, ecb_encrypt()
234 (u64 *) walk.dst.virt.addr, ecb_encrypt()
264 (const u64 *) walk.src.virt.addr, ecb_decrypt()
265 (u64 *) walk.dst.virt.addr, block_len); ecb_decrypt()
293 (const u64 *)walk.src.virt.addr, cbc_encrypt()
294 (u64 *) walk.dst.virt.addr, cbc_encrypt()
324 (const u64 *) walk.src.virt.addr, cbc_decrypt()
325 (u64 *) walk.dst.virt.addr, cbc_decrypt()
341 u8 *src = walk->src.virt.addr; ctr_crypt_final()
342 u8 *dst = walk->dst.virt.addr; ctr_crypt_final()
370 (const u64 *)walk.src.virt.addr, ctr_crypt()
371 (u64 *) walk.dst.virt.addr, ctr_crypt()
H A Ddes_glue.c113 des_sparc64_ecb_crypt((const u64 *)walk.src.virt.addr, __ecb_crypt()
114 (u64 *) walk.dst.virt.addr, __ecb_crypt()
158 des_sparc64_cbc_encrypt((const u64 *)walk.src.virt.addr, cbc_encrypt()
159 (u64 *) walk.dst.virt.addr, cbc_encrypt()
189 des_sparc64_cbc_decrypt((const u64 *)walk.src.virt.addr, cbc_decrypt()
190 (u64 *) walk.dst.virt.addr, cbc_decrypt()
283 const u64 *src64 = (const u64 *)walk.src.virt.addr; __ecb3_crypt()
285 (u64 *) walk.dst.virt.addr, __ecb3_crypt()
332 const u64 *src64 = (const u64 *)walk.src.virt.addr; cbc3_encrypt()
334 (u64 *) walk.dst.virt.addr, cbc3_encrypt()
368 const u64 *src64 = (const u64 *)walk.src.virt.addr; cbc3_decrypt()
370 (u64 *) walk.dst.virt.addr, cbc3_decrypt()
H A Dcamellia_glue.c115 src64 = (const u64 *)walk.src.virt.addr; __ecb_crypt()
116 dst64 = (u64 *) walk.dst.virt.addr; __ecb_crypt()
175 src64 = (const u64 *)walk.src.virt.addr; cbc_encrypt()
176 dst64 = (u64 *) walk.dst.virt.addr; cbc_encrypt()
214 src64 = (const u64 *)walk.src.virt.addr; cbc_decrypt()
215 dst64 = (u64 *) walk.dst.virt.addr; cbc_decrypt()
/linux-4.4.14/drivers/usb/host/
H A Dxhci-dbg.c348 xhci_dbg(xhci, "Ring deq = %p (virt), 0x%llx (dma)\n", xhci_dbg_ring_ptrs()
354 xhci_dbg(xhci, "Ring enq = %p (virt), 0x%llx (dma)\n", xhci_dbg_ring_ptrs()
444 xhci_dbg(xhci, "@%p (virt) @%08llx " dbg_rsvd64()
483 xhci_dbg(xhci, "@%p (virt) @%08llx (dma) %#08x - dev_info\n", xhci_dbg_slot_ctx()
487 xhci_dbg(xhci, "@%p (virt) @%08llx (dma) %#08x - dev_info2\n", xhci_dbg_slot_ctx()
491 xhci_dbg(xhci, "@%p (virt) @%08llx (dma) %#08x - tt_info\n", xhci_dbg_slot_ctx()
495 xhci_dbg(xhci, "@%p (virt) @%08llx (dma) %#08x - dev_state\n", xhci_dbg_slot_ctx()
500 xhci_dbg(xhci, "@%p (virt) @%08llx (dma) %#08x - rsvd[%d]\n", xhci_dbg_slot_ctx()
531 xhci_dbg(xhci, "@%p (virt) @%08llx (dma) %#08x - ep_info\n", xhci_dbg_ep_ctx()
535 xhci_dbg(xhci, "@%p (virt) @%08llx (dma) %#08x - ep_info2\n", xhci_dbg_ep_ctx()
539 xhci_dbg(xhci, "@%p (virt) @%08llx (dma) %#08llx - deq\n", xhci_dbg_ep_ctx()
543 xhci_dbg(xhci, "@%p (virt) @%08llx (dma) %#08x - tx_info\n", xhci_dbg_ep_ctx()
548 xhci_dbg(xhci, "@%p (virt) @%08llx (dma) %#08x - rsvd[%d]\n", xhci_dbg_ep_ctx()
578 xhci_dbg(xhci, "@%p (virt) @%08llx (dma) %#08x - drop flags\n", xhci_dbg_ctx()
582 xhci_dbg(xhci, "@%p (virt) @%08llx (dma) %#08x - add flags\n", xhci_dbg_ctx()
587 xhci_dbg(xhci, "@%p (virt) @%08llx (dma) %#08x - rsvd2[%d]\n", xhci_dbg_ctx()
/linux-4.4.14/drivers/crypto/vmx/
H A Daes_cbc.c124 aes_p8_cbc_encrypt(walk.src.virt.addr, p8_aes_cbc_encrypt()
125 walk.dst.virt.addr, p8_aes_cbc_encrypt()
165 aes_p8_cbc_encrypt(walk.src.virt.addr, p8_aes_cbc_decrypt()
166 walk.dst.virt.addr, p8_aes_cbc_decrypt()
H A Daes_ctr.c98 u8 *src = walk->src.virt.addr; p8_aes_ctr_final()
99 u8 *dst = walk->dst.virt.addr; p8_aes_ctr_final()
138 aes_p8_ctr32_encrypt_blocks(walk.src.virt.addr, p8_aes_ctr_crypt()
139 walk.dst.virt.addr, p8_aes_ctr_crypt()
/linux-4.4.14/arch/um/kernel/skas/
H A Duaccess.c41 static pte_t *maybe_map(unsigned long virt, int is_write) maybe_map() argument
43 pte_t *pte = virt_to_pte(current->mm, virt); maybe_map()
48 err = handle_page_fault(virt, 0, is_write, 1, &dummy_code); maybe_map()
51 pte = virt_to_pte(current->mm, virt); maybe_map()
/linux-4.4.14/include/linux/
H A Ddma-debug.h54 dma_addr_t dma_addr, void *virt);
57 void *virt, dma_addr_t addr);
135 dma_addr_t dma_addr, void *virt) debug_dma_alloc_coherent()
140 void *virt, dma_addr_t addr) debug_dma_free_coherent()
134 debug_dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t dma_addr, void *virt) debug_dma_alloc_coherent() argument
139 debug_dma_free_coherent(struct device *dev, size_t size, void *virt, dma_addr_t addr) debug_dma_free_coherent() argument
H A Dmmiotrace.h98 unsigned long virt; /* base virtual address */ member in struct:mmiotrace_map
/linux-4.4.14/arch/s390/include/uapi/asm/
H A Dhypfs.h43 __u64 virtcpu; /* Virtual time consumed by the virt CPU (us) */
/linux-4.4.14/arch/arm64/mm/
H A Dmmu.c248 phys_addr_t phys, unsigned long virt, __create_mapping()
254 addr = virt & PAGE_MASK; __create_mapping()
255 length = PAGE_ALIGN(size + (virt & ~PAGE_MASK)); __create_mapping()
275 static void __init create_mapping(phys_addr_t phys, unsigned long virt, create_mapping() argument
278 if (virt < VMALLOC_START) { create_mapping()
280 &phys, virt); create_mapping()
283 __create_mapping(&init_mm, pgd_offset_k(virt & PAGE_MASK), phys, virt, create_mapping()
288 unsigned long virt, phys_addr_t size, create_pgd_mapping()
291 __create_mapping(mm, pgd_offset(mm, virt), phys, virt, size, prot, create_pgd_mapping()
295 static void create_mapping_late(phys_addr_t phys, unsigned long virt, create_mapping_late() argument
298 if (virt < VMALLOC_START) { create_mapping_late()
300 &phys, virt); create_mapping_late()
304 return __create_mapping(&init_mm, pgd_offset_k(virt & PAGE_MASK), create_mapping_late()
305 phys, virt, size, prot, late_alloc); create_mapping_late()
247 __create_mapping(struct mm_struct *mm, pgd_t *pgd, phys_addr_t phys, unsigned long virt, phys_addr_t size, pgprot_t prot, void *(*alloc)(unsigned long size)) __create_mapping() argument
287 create_pgd_mapping(struct mm_struct *mm, phys_addr_t phys, unsigned long virt, phys_addr_t size, pgprot_t prot) create_pgd_mapping() argument
/linux-4.4.14/arch/blackfin/include/asm/
H A Dirqflags.h161 static inline notrace unsigned long arch_mangle_irq_bits(int virt, unsigned long real) arch_mangle_irq_bits() argument
167 return (real & ~(1 << 31)) | ((virt != 0) << 31); arch_mangle_irq_bits()
172 int virt = (*x & (1 << 31)) != 0; arch_demangle_irq_bits() local
174 return virt; arch_demangle_irq_bits()
/linux-4.4.14/arch/arm/include/asm/
H A Dopcodes-virt.h2 * opcodes-virt.h: Opcode definitions for the ARM virtualization extensions
H A Dhighmem.h9 #define PKMAP_NR(virt) (((virt) - PKMAP_BASE) >> PAGE_SHIFT)
/linux-4.4.14/virt/kvm/arm/
H A Dtrace.h58 #define TRACE_INCLUDE_PATH ../../../virt/kvm/arm
/linux-4.4.14/drivers/acpi/
H A Dosl.c90 void __iomem *virt; member in struct:acpi_ioremap
301 return map->virt + (phys - map->phys); acpi_map_vaddr_lookup()
309 void __iomem *virt = NULL; acpi_os_get_iomem() local
314 virt = map->virt + (phys - map->phys); acpi_os_get_iomem()
318 return virt; acpi_os_get_iomem()
324 acpi_map_lookup_virt(void __iomem *virt, acpi_size size) acpi_map_lookup_virt() argument
329 if (map->virt <= virt && acpi_map_lookup_virt()
330 virt + size <= map->virt + map->size) acpi_map_lookup_virt()
371 void __iomem *virt; acpi_os_map_iomem() local
399 virt = acpi_map(pg_off, pg_sz); acpi_os_map_iomem()
400 if (!virt) { acpi_os_map_iomem()
407 map->virt = virt; acpi_os_map_iomem()
416 return map->virt + (phys - map->phys); acpi_os_map_iomem()
437 acpi_unmap(map->phys, map->virt); acpi_os_map_cleanup()
442 void __ref acpi_os_unmap_iomem(void __iomem *virt, acpi_size size) acpi_os_unmap_iomem() argument
447 __acpi_unmap_table(virt, size); acpi_os_unmap_iomem()
452 map = acpi_map_lookup_virt(virt, size); acpi_os_unmap_iomem()
455 WARN(true, PREFIX "%s: bad address %p\n", __func__, virt); acpi_os_unmap_iomem()
465 void __ref acpi_os_unmap_memory(void *virt, acpi_size size) acpi_os_unmap_memory() argument
467 return acpi_os_unmap_iomem((void __iomem *)virt, size); acpi_os_unmap_memory()
471 void __init early_acpi_os_unmap_memory(void __iomem *virt, acpi_size size) early_acpi_os_unmap_memory() argument
474 __acpi_unmap_table(virt, size); early_acpi_os_unmap_memory()
480 void __iomem *virt; acpi_os_map_generic_address() local
490 virt = acpi_os_map_iomem(addr, gas->bit_width / 8); acpi_os_map_generic_address()
491 if (!virt) acpi_os_map_generic_address()
526 acpi_os_get_physical_address(void *virt, acpi_physical_address * phys) acpi_os_get_physical_address() argument
528 if (!phys || !virt) acpi_os_get_physical_address()
531 *phys = virt_to_phys(virt); acpi_os_get_physical_address()
/linux-4.4.14/arch/x86/include/asm/
H A Dhighmem.h57 #define PKMAP_NR(virt) ((virt-PKMAP_BASE) >> PAGE_SHIFT)
H A Defi.h81 * All X86_64 virt calls return non-void values. Thus, use non-void call for
82 * virt calls that would be void on X86_32.
/linux-4.4.14/arch/powerpc/include/asm/
H A Dhighmem.h58 #define PKMAP_NR(virt) ((virt-PKMAP_BASE) >> PAGE_SHIFT)
H A Dppc4xx_ocm.h36 void ppc4xx_ocm_free(const void *virt);
H A Dkexec.h19 * XXX: Since we copy virt we can use any page we allocate
/linux-4.4.14/arch/microblaze/include/asm/
H A Dhighmem.h50 #define PKMAP_NR(virt) ((virt - PKMAP_BASE) >> PAGE_SHIFT)
/linux-4.4.14/arch/um/kernel/
H A Dphysmem.c41 void map_memory(unsigned long virt, unsigned long phys, unsigned long len, map_memory() argument
48 err = os_map_memory((void *) virt, fd, offset, len, r, w, x); map_memory()
55 "err = %d\n", virt, fd, offset, len, r, w, x, err); map_memory()
190 return region->virt; find_iomem()
213 region->virt = iomem_start; setup_iomem()
214 region->phys = __pa(region->virt); setup_iomem()
/linux-4.4.14/fs/ecryptfs/
H A Dread_write.c73 char *virt; ecryptfs_write_lower_page_segment() local
79 virt = kmap(page_for_lower); ecryptfs_write_lower_page_segment()
80 rc = ecryptfs_write_lower(ecryptfs_inode, virt, offset, size); ecryptfs_write_lower_page_segment()
261 char *virt; ecryptfs_read_lower_page_segment() local
266 virt = kmap(page_for_ecryptfs); ecryptfs_read_lower_page_segment()
267 rc = ecryptfs_read_lower(virt, offset, size, ecryptfs_inode); ecryptfs_read_lower_page_segment()
H A Dcrypto.c1053 ecryptfs_write_header_metadata(char *virt, ecryptfs_write_header_metadata() argument
1063 put_unaligned_be32(header_extent_size, virt); ecryptfs_write_header_metadata()
1064 virt += 4; ecryptfs_write_header_metadata()
1065 put_unaligned_be16(num_header_extents_at_front, virt); ecryptfs_write_header_metadata()
1135 char *virt, size_t virt_len) ecryptfs_write_metadata_to_contents()
1139 rc = ecryptfs_write_lower(ecryptfs_inode, virt, ecryptfs_write_metadata_to_contents()
1190 char *virt; ecryptfs_write_metadata() local
1210 virt = (char *)ecryptfs_get_zeroed_pages(GFP_KERNEL, order); ecryptfs_write_metadata()
1211 if (!virt) { ecryptfs_write_metadata()
1217 rc = ecryptfs_write_headers_virt(virt, virt_len, &size, crypt_stat, ecryptfs_write_metadata()
1225 rc = ecryptfs_write_metadata_to_xattr(ecryptfs_dentry, virt, ecryptfs_write_metadata()
1228 rc = ecryptfs_write_metadata_to_contents(ecryptfs_inode, virt, ecryptfs_write_metadata()
1236 free_pages((unsigned long)virt, order); ecryptfs_write_metadata()
1244 char *virt, int *bytes_read, parse_header_metadata()
1251 header_extent_size = get_unaligned_be32(virt); parse_header_metadata()
1252 virt += sizeof(__be32); parse_header_metadata()
1253 num_header_extents_at_front = get_unaligned_be16(virt); parse_header_metadata()
1134 ecryptfs_write_metadata_to_contents(struct inode *ecryptfs_inode, char *virt, size_t virt_len) ecryptfs_write_metadata_to_contents() argument
1243 parse_header_metadata(struct ecryptfs_crypt_stat *crypt_stat, char *virt, int *bytes_read, int validate_header_size) parse_header_metadata() argument
/linux-4.4.14/drivers/vfio/pci/
H A Dvfio_pci_config.c115 u8 *virt; /* read/write virtual data, not hw */ member in struct:perm_bits
184 __le32 virt = 0; vfio_default_config_read() local
188 memcpy(&virt, perm->virt + offset, count); vfio_default_config_read()
191 if (cpu_to_le32(~0U >> (32 - (count * 8))) != virt) { vfio_default_config_read()
200 *val = (phys_val & ~virt) | (*val & virt); vfio_default_config_read()
210 __le32 virt = 0, write = 0; vfio_default_config_write() local
217 memcpy(&virt, perm->virt + offset, count); vfio_default_config_write()
220 if (write & virt) { vfio_default_config_write()
225 virt_val &= ~(write & virt); vfio_default_config_write()
226 virt_val |= (val & (write & virt)); vfio_default_config_write()
232 if (write & ~virt) { vfio_default_config_write()
241 phys_val &= ~(write & ~virt); vfio_default_config_write()
242 phys_val |= (val & (write & ~virt)); vfio_default_config_write()
324 kfree(perm->virt); free_perm_bits()
326 perm->virt = NULL; free_perm_bits()
346 perm->virt = kzalloc(size, GFP_KERNEL); alloc_perm_bits()
348 if (!perm->virt || !perm->write) { alloc_perm_bits()
362 static inline void p_setb(struct perm_bits *p, int off, u8 virt, u8 write) p_setb() argument
364 p->virt[off] = virt; p_setb()
369 static inline void p_setw(struct perm_bits *p, int off, u16 virt, u16 write) p_setw() argument
371 *(__le16 *)(&p->virt[off]) = cpu_to_le16(virt); p_setw()
376 static inline void p_setd(struct perm_bits *p, int off, u32 virt, u32 write) p_setd() argument
378 *(__le32 *)(&p->virt[off]) = cpu_to_le32(virt); p_setd()
962 /* Write back to virt and to hardware */ vfio_msi_config_write()
1461 * us from allocating cfg_size buffers for virt and write for every
/linux-4.4.14/drivers/net/fddi/skfp/
H A Dhwmtm.c121 extern u_long mac_drv_virt2phys(struct s_smc *smc, void *virt);
122 extern u_long dma_master(struct s_smc *smc, void *virt, int len, int flag);
147 void hwm_tx_frag(struct s_smc *smc, char far *virt, u_long phys, int len,
149 void hwm_rx_frag(struct s_smc *smc, char far *virt, u_long phys, int len,
1053 u_char far *virt ; process_receive() local
1225 virt = (u_char far *) rxd->rxd_virt ; process_receive()
1226 DB_RX("FC = %x",*virt,0,2) ; process_receive()
1227 if (virt[12] == MA[5] && process_receive()
1228 virt[11] == MA[4] && process_receive()
1229 virt[10] == MA[3] && process_receive()
1230 virt[9] == MA[2] && process_receive()
1231 virt[8] == MA[1] && process_receive()
1232 (virt[7] & ~GROUP_ADDR_BIT) == MA[0]) { process_receive()
1246 if(!(virt[1] & GROUP_ADDR_BIT)) { process_receive()
1247 if (virt[6] != MA[5] || process_receive()
1248 virt[5] != MA[4] || process_receive()
1249 virt[4] != MA[3] || process_receive()
1250 virt[3] != MA[2] || process_receive()
1251 virt[2] != MA[1] || process_receive()
1252 virt[1] != MA[0]) { process_receive()
1395 * void hwm_rx_frag(smc,virt,phys,len,frame_status)
1406 * para virt virtual pointer to the fragment
1415 void hwm_rx_frag(struct s_smc *smc, char far *virt, u_long phys, int len, hwm_rx_frag() argument
1421 NDD_TRACE("RHfB",virt,len,frame_status) ; hwm_rx_frag()
1424 r->rxd_virt = virt ; hwm_rx_frag()
1603 * void hwm_tx_frag(smc,virt,phys,len,frame_status)
1617 * para virt virtual pointer to the fragment
1628 void hwm_tx_frag(struct s_smc *smc, char far *virt, u_long phys, int len, hwm_tx_frag() argument
1637 NDD_TRACE("THfB",virt,len,frame_status) ; hwm_tx_frag()
1648 DB_TX("LAN_TX: TxD = %x, virt = %x ",t,virt,3) ; hwm_tx_frag()
1649 t->txd_virt = virt ; hwm_tx_frag()
1697 memcpy(smc->os.hwm.tx_data,virt,len) ; hwm_tx_frag()
1814 SK_LOC_DECL(char far,*virt[3]) ; smt_send_mbuf()
1832 * determine the frag count and the virt addresses of the frags smt_send_mbuf()
1841 DB_TX("frag: virt/len = 0x%x/%d ",(void *)data,n,5) ; smt_send_mbuf()
1842 virt[frag_count] = data ; smt_send_mbuf()
1890 t->txd_virt = virt[i] ; smt_send_mbuf()
1891 phys = dma_master(smc, (void far *)virt[i], smt_send_mbuf()
H A Dskfddi.c121 unsigned long mac_drv_virt2phys(struct s_smc *smc, void *virt);
122 unsigned long dma_master(struct s_smc *smc, void *virt, int len, int flag);
141 extern void hwm_tx_frag(struct s_smc *smc, char far * virt, u_long phys,
146 extern void hwm_rx_frag(struct s_smc *smc, char far * virt, u_long phys,
1308 void *virt; mac_drv_get_space() local
1311 virt = (void *) (smc->os.SharedMemAddr + smc->os.SharedMemHeap); mac_drv_get_space()
1320 pr_debug("virt addr: %lx\n", (ulong) virt); mac_drv_get_space()
1323 ((char *) virt - (char *)smc->os.SharedMemAddr))); mac_drv_get_space()
1324 return virt; mac_drv_get_space()
1349 char *virt; mac_drv_get_desc_mem() local
1355 virt = mac_drv_get_space(smc, size); mac_drv_get_desc_mem()
1357 size = (u_int) (16 - (((unsigned long) virt) & 15UL)); mac_drv_get_desc_mem()
1367 return virt + size; mac_drv_get_desc_mem()
1379 * virt - A (virtual) pointer into our 'shared' memory area.
1384 unsigned long mac_drv_virt2phys(struct s_smc *smc, void *virt) mac_drv_virt2phys() argument
1387 ((char *) virt - (char *)smc->os.SharedMemAddr); mac_drv_virt2phys()
1400 * frame. This means that the virt address passed in here is part of
1405 * virt - The virtual address of the data.
1419 u_long dma_master(struct s_smc * smc, void *virt, int len, int flag) dma_master() argument
1422 ((char *) virt - (char *)smc->os.SharedMemAddr); dma_master()
1578 unsigned char *virt, *cp; mac_drv_rx_complete() local
1595 virt = skb->data; mac_drv_rx_complete()
1616 if ((virt[1 + 6] & FDDI_RII) == 0) mac_drv_rx_complete()
1623 cp = virt + FDDI_MAC_HDR_LEN; // Point behind MAC header. mac_drv_rx_complete()
1632 virt[1 + 6] &= ~FDDI_RII; // Clear RII bit. mac_drv_rx_complete()
1635 virt = cp + RifLength; mac_drv_rx_complete()
1637 *--virt = *--cp; mac_drv_rx_complete()
1649 // virt points to header again mac_drv_rx_complete()
1650 if (virt[1] & 0x01) { // Check group (multicast) bit. mac_drv_rx_complete()
/linux-4.4.14/drivers/scsi/isci/
H A Dunsolicited_frame_control.c65 void *virt = ihost->ufi_buf; sci_unsolicited_frame_control_construct() local
85 uf_control->headers.array = virt + SCI_UFI_BUF_SIZE; sci_unsolicited_frame_control_construct()
95 uf_control->address_table.array = virt + SCI_UFI_BUF_SIZE + SCI_UFI_HDR_SIZE; sci_unsolicited_frame_control_construct()
114 uf->buffer = virt; sci_unsolicited_frame_control_construct()
123 virt += SCU_UNSOLICITED_FRAME_BUFFER_SIZE; sci_unsolicited_frame_control_construct()
/linux-4.4.14/drivers/soc/tegra/fuse/
H A Dfuse-tegra20.c90 value = *fuse->apbdma.virt; tegra20_fuse_read()
110 fuse->apbdma.virt = dma_alloc_coherent(fuse->dev, sizeof(u32), tegra20_fuse_probe()
113 if (!fuse->apbdma.virt) { tegra20_fuse_probe()
H A Dfuse.h58 u32 *virt; member in struct:tegra_fuse::__anon10226
/linux-4.4.14/arch/um/os-Linux/skas/
H A Dmem.c170 int map(struct mm_id * mm_idp, unsigned long virt, unsigned long len, int prot, map() argument
174 unsigned long args[] = { virt, len, prot, map()
178 ret = run_syscall_stub(mm_idp, STUB_MMAP_NR, args, virt, map()
/linux-4.4.14/drivers/isdn/hardware/eicon/
H A Ddiva_dma.c59 int nr, void *virt, dword phys, diva_init_dma_map_entry()
62 pmap[nr].local_ram_addr = virt; diva_init_dma_map_entry()
58 diva_init_dma_map_entry(struct _diva_dma_map_entry *pmap, int nr, void *virt, dword phys, void *addr_handle) diva_init_dma_map_entry() argument
H A Ddiva_dma.h31 int nr, void *virt, dword phys,
/linux-4.4.14/drivers/misc/mic/scif/
H A Dscif_map.h105 scif_iounmap(void *virt, size_t len, struct scif_dev *scifdev) scif_iounmap() argument
110 sdev->hw_ops->iounmap(sdev, (void __force __iomem *)virt); scif_iounmap()
/linux-4.4.14/drivers/crypto/
H A Dgeode-aes.c320 op->src = walk.src.virt.addr, geode_cbc_decrypt()
321 op->dst = walk.dst.virt.addr; geode_cbc_decrypt()
352 op->src = walk.src.virt.addr, geode_cbc_encrypt()
353 op->dst = walk.dst.virt.addr; geode_cbc_encrypt()
432 op->src = walk.src.virt.addr, geode_ecb_decrypt()
433 op->dst = walk.dst.virt.addr; geode_ecb_decrypt()
462 op->src = walk.src.virt.addr, geode_ecb_encrypt()
463 op->dst = walk.dst.virt.addr; geode_ecb_encrypt()
H A Dpadlock-aes.c358 padlock_xcrypt_ecb(walk.src.virt.addr, walk.dst.virt.addr, ecb_aes_encrypt()
387 padlock_xcrypt_ecb(walk.src.virt.addr, walk.dst.virt.addr, ecb_aes_decrypt()
437 u8 *iv = padlock_xcrypt_cbc(walk.src.virt.addr, cbc_aes_encrypt()
438 walk.dst.virt.addr, ctx->E, cbc_aes_encrypt()
468 padlock_xcrypt_cbc(walk.src.virt.addr, walk.dst.virt.addr, cbc_aes_decrypt()
/linux-4.4.14/arch/um/include/asm/
H A Dpage.h109 #define __pa(virt) to_phys((void *) (unsigned long) (virt))
/linux-4.4.14/arch/s390/crypto/
H A Ddes_s390.c95 u8 *out = walk->dst.virt.addr; ecb_desall_crypt()
96 u8 *in = walk->src.virt.addr; ecb_desall_crypt()
128 u8 *out = walk->dst.virt.addr; cbc_desall_crypt()
129 u8 *in = walk->src.virt.addr; cbc_desall_crypt()
403 out = walk->dst.virt.addr; ctr_desall_crypt()
404 in = walk->src.virt.addr; ctr_desall_crypt()
439 out = walk->dst.virt.addr; ctr_desall_crypt()
440 in = walk->src.virt.addr; ctr_desall_crypt()
H A Daes_s390.c325 u8 *out = walk->dst.virt.addr; ecb_aes_crypt()
326 u8 *in = walk->src.virt.addr; ecb_aes_crypt()
464 u8 *out = walk->dst.virt.addr; cbc_aes_crypt()
465 u8 *in = walk->src.virt.addr; cbc_aes_crypt()
649 out = walk->dst.virt.addr; xts_aes_crypt()
650 in = walk->src.virt.addr; xts_aes_crypt()
794 out = walk->dst.virt.addr; ctr_aes_crypt()
795 in = walk->src.virt.addr; ctr_aes_crypt()
832 out = walk->dst.virt.addr; ctr_aes_crypt()
833 in = walk->src.virt.addr; ctr_aes_crypt()
/linux-4.4.14/arch/mn10300/include/asm/
H A Dhighmem.h43 #define PKMAP_NR(virt) ((virt - PKMAP_BASE) >> PAGE_SHIFT)
/linux-4.4.14/arch/frv/include/asm/
H A Dhighmem.h56 #define PKMAP_NR(virt) ((virt - PKMAP_BASE) >> PAGE_SHIFT)
/linux-4.4.14/arch/hexagon/include/asm/
H A Dmem-layout.h99 #define PKMAP_NR(virt) ((virt - PKMAP_BASE) >> PAGE_SHIFT)
/linux-4.4.14/arch/arm64/kernel/
H A Dhead.S39 #include <asm/virt.h>
249 * virt: virtual address
253 * Preserves: virt
257 .macro create_table_entry, tbl, virt, shift, ptrs, tmp1, tmp2
258 lsr \tmp1, \virt, #\shift
270 * Preserves: tbl, next, virt
273 .macro create_pgd_entry, tbl, virt, tmp1, tmp2
274 create_table_entry \tbl, \virt, PGDIR_SHIFT, PTRS_PER_PGD, \tmp1, \tmp2
276 create_table_entry \tbl, \virt, PUD_SHIFT, PTRS_PER_PUD, \tmp1, \tmp2
279 create_table_entry \tbl, \virt, SWAPPER_TABLE_SHIFT, PTRS_PER_PTE, \tmp1, \tmp2
543 * in x20. See arch/arm64/include/asm/virt.h for more info.
H A Dhyp-stub.S26 #include <asm/virt.h>
H A Dvmlinux.lds.S191 * If padding is applied before .head.text, virt<->phys conversions will fail.
/linux-4.4.14/include/linux/platform_data/
H A Datmel.h50 void __iomem *regs; /* virt. base address, if any */
/linux-4.4.14/arch/powerpc/kvm/
H A DMakefile8 KVM := ../../../virt/kvm
/linux-4.4.14/arch/arm/mach-sa1100/include/mach/
H A Dhardware.h23 * phys virt
/linux-4.4.14/arch/arm/include/asm/mach/
H A Dmap.h58 extern int ioremap_page(unsigned long virt, unsigned long phys, debug_ll_io_init()
/linux-4.4.14/arch/arm/mach-ep93xx/
H A Dts72xx.h8 * virt phys size
/linux-4.4.14/drivers/sfi/
H A Dsfi_core.c109 static void __ref sfi_unmap_memory(void __iomem *virt, u32 size) sfi_unmap_memory() argument
111 if (!virt || !size) sfi_unmap_memory()
115 iounmap(virt); sfi_unmap_memory()
117 early_iounmap(virt, size); sfi_unmap_memory()
218 * the mapped virt address will be returned, and the virt space
228 * virt table address: when a matched table is found
/linux-4.4.14/drivers/mtd/devices/
H A Dmtdram.c65 size_t *retlen, void **virt, resource_size_t *phys) ram_point()
67 *virt = mtd->priv + from; ram_point()
64 ram_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, void **virt, resource_size_t *phys) ram_point() argument
/linux-4.4.14/drivers/infiniband/hw/mthca/
H A Dmthca_memfree.c243 table->virt + i * MTHCA_TABLE_CHUNK_SIZE)) { mthca_table_get()
269 mthca_UNMAP_ICM(dev, table->virt + i * MTHCA_TABLE_CHUNK_SIZE, mthca_table_put()
357 u64 virt, int obj_size, mthca_alloc_icm_table()
374 table->virt = virt; mthca_alloc_icm_table()
396 virt + i * MTHCA_TABLE_CHUNK_SIZE)) { mthca_alloc_icm_table()
414 mthca_UNMAP_ICM(dev, virt + i * MTHCA_TABLE_CHUNK_SIZE, mthca_alloc_icm_table()
431 table->virt + i * MTHCA_TABLE_CHUNK_SIZE, mthca_free_icm_table()
356 mthca_alloc_icm_table(struct mthca_dev *dev, u64 virt, int obj_size, int nobj, int reserved, int use_lowmem, int use_coherent) mthca_alloc_icm_table() argument
H A Dmthca_memfree.h64 u64 virt; member in struct:mthca_icm_table
87 u64 virt, int obj_size,
H A Dmthca_cmd.c656 u64 virt) mthca_map_cmd()
691 if (virt != -1) { mthca_map_cmd()
692 pages[nent * 2] = cpu_to_be64(virt); mthca_map_cmd()
693 virt += 1 << lg; mthca_map_cmd()
725 tc, ts, (unsigned long long) virt - (ts << 10)); mthca_map_cmd()
1532 int mthca_MAP_ICM(struct mthca_dev *dev, struct mthca_icm *icm, u64 virt) mthca_MAP_ICM() argument
1534 return mthca_map_cmd(dev, CMD_MAP_ICM, icm, virt); mthca_MAP_ICM()
1537 int mthca_MAP_ICM_page(struct mthca_dev *dev, u64 dma_addr, u64 virt) mthca_MAP_ICM_page() argument
1548 inbox[0] = cpu_to_be64(virt); mthca_MAP_ICM_page()
1558 (unsigned long long) dma_addr, (unsigned long long) virt); mthca_MAP_ICM_page()
1563 int mthca_UNMAP_ICM(struct mthca_dev *dev, u64 virt, u32 page_count) mthca_UNMAP_ICM() argument
1566 page_count, (unsigned long long) virt); mthca_UNMAP_ICM()
1568 return mthca_cmd(dev, virt, page_count, 0, mthca_UNMAP_ICM()
655 mthca_map_cmd(struct mthca_dev *dev, u16 op, struct mthca_icm *icm, u64 virt) mthca_map_cmd() argument
H A Dmthca_cmd.h277 int mthca_MAP_ICM(struct mthca_dev *dev, struct mthca_icm *icm, u64 virt);
278 int mthca_MAP_ICM_page(struct mthca_dev *dev, u64 dma_addr, u64 virt);
279 int mthca_UNMAP_ICM(struct mthca_dev *dev, u64 virt, u32 page_count);
/linux-4.4.14/arch/um/os-Linux/
H A Dprocess.c138 int os_map_memory(void *virt, int fd, unsigned long long off, unsigned long len, os_map_memory() argument
147 loc = mmap64((void *) virt, len, prot, MAP_SHARED | MAP_FIXED, os_map_memory()
/linux-4.4.14/arch/unicore32/kernel/
H A Dsleep.S167 ldm (r3 - r6), [r0]+ @ CP regs + virt stack ptr
168 mov sp, r6 @ CP regs + virt stack ptr
/linux-4.4.14/arch/m68k/atari/
H A Dstram.c143 unsigned long atari_stram_to_phys(void *virt) atari_stram_to_phys() argument
145 return (unsigned long)(virt - stram_virt_offset); atari_stram_to_phys()
/linux-4.4.14/sound/pci/mixart/
H A Dmixart_hwdep.h44 #define MIXART_MEM(mgr,x) ((mgr)->mem[0].virt + (x))
45 #define MIXART_REG(mgr,x) ((mgr)->mem[1].virt + (x))
/linux-4.4.14/drivers/sh/intc/
H A Dcore.c216 d->window[k].virt = ioremap_nocache(res->start, register_intc_controller()
218 if (!d->window[k].virt) register_intc_controller()
396 if (d->window[k].virt) register_intc_controller()
397 iounmap(d->window[k].virt); register_intc_controller()
/linux-4.4.14/drivers/scsi/cxlflash/
H A Dvlun.c31 * @virt: Source structure from which to translate/copy.
34 static void marshal_virt_to_resize(struct dk_cxlflash_uvirtual *virt, marshal_virt_to_resize() argument
37 resize->hdr = virt->hdr; marshal_virt_to_resize()
38 resize->context_id = virt->context_id; marshal_virt_to_resize()
39 resize->rsrc_handle = virt->rsrc_handle; marshal_virt_to_resize()
40 resize->req_size = virt->lun_size; marshal_virt_to_resize()
41 resize->last_lba = virt->last_lba; marshal_virt_to_resize()
931 struct dk_cxlflash_uvirtual *virt = (struct dk_cxlflash_uvirtual *)arg; cxlflash_disk_virtual_open() local
934 u64 ctxid = DECODE_CTXID(virt->context_id), cxlflash_disk_virtual_open()
935 rctxid = virt->context_id; cxlflash_disk_virtual_open()
936 u64 lun_size = virt->lun_size; cxlflash_disk_virtual_open()
995 marshal_virt_to_resize(virt, &resize); cxlflash_disk_virtual_open()
1004 if (virt->hdr.flags & DK_CXLFLASH_UVIRTUAL_NEED_WRITE_SAME) cxlflash_disk_virtual_open()
1007 virt->hdr.return_flags = 0; cxlflash_disk_virtual_open()
1008 virt->last_lba = last_lba; cxlflash_disk_virtual_open()
1009 virt->rsrc_handle = rsrc_handle; cxlflash_disk_virtual_open()
/linux-4.4.14/drivers/pinctrl/sh-pfc/
H A Dcore.h21 void __iomem *virt; member in struct:sh_pfc_window
/linux-4.4.14/drivers/dma/hsu/
H A Dhsu.h19 #include "../virt-dma.h"
/linux-4.4.14/drivers/dma/
H A Dvirt-dma.c15 #include "virt-dma.h"
/linux-4.4.14/include/linux/soc/ti/
H A Dknav_qmss.h87 dma_addr_t knav_pool_desc_virt_to_dma(void *ph, void *virt);
/linux-4.4.14/drivers/gpu/drm/i810/
H A Di810_drv.h145 volatile char *virt;
155 virt = dev_priv->ring.virtual_start; \
168 *(volatile unsigned int *)(virt + outring) = n; \
/linux-4.4.14/arch/mips/txx9/rbtx4939/
H A Dsetup.c314 r.x[0] = __raw_readw(map->virt + ofs); rbtx4939_flash_read16()
322 __raw_writew(datum.x[0], map->virt + ofs); rbtx4939_flash_write16()
333 from += (unsigned long)map->virt; rbtx4939_flash_copy_from()
/linux-4.4.14/arch/arm/mach-imx/
H A Dpm-imx5.c282 void __iomem *virt; imx_suspend_alloc_ocram() local
315 virt = __arm_ioremap_exec(phys, size, false); imx_suspend_alloc_ocram()
319 *virt_out = virt; imx_suspend_alloc_ocram()
/linux-4.4.14/drivers/usb/gadget/udc/bdc/
H A Dbdc_dbg.c114 "tbi:%2d bdi:%2d gbdi:%2d virt:%p phys:%llx %08x %08x %08x %08x\n", bdc_dbg_bd_list()
/linux-4.4.14/drivers/tty/serial/
H A Dmsm_serial.c61 unsigned char *virt; member in struct:msm_dma
126 kfree(dma->virt); msm_release_dma()
192 dma->virt = kzalloc(UARTDM_RX_SIZE, GFP_KERNEL); msm_request_rx_dma()
193 if (!dma->virt) msm_request_rx_dma()
216 kfree(dma->virt); msm_request_rx_dma()
412 if (msm_port->break_detected && dma->virt[i] == 0) { msm_complete_rx_dma()
424 sysrq = uart_handle_sysrq_char(port, dma->virt[i]); msm_complete_rx_dma()
427 tty_insert_flip_char(tport, dma->virt[i], flag); msm_complete_rx_dma()
448 dma->phys = dma_map_single(uart->dev, dma->virt, msm_start_rx_dma()
/linux-4.4.14/drivers/video/fbdev/
H A Dxilinxfb.c141 void __iomem *regs; /* virt. address of the control
147 void *fb_virt; /* virt. address of the frame buffer */
352 dev_dbg(dev, "regs: phys=%pa, virt=%p\n", xilinxfb_assign()
356 dev_dbg(dev, "fb: phys=%llx, virt=%p, size=%x\n", xilinxfb_assign()
/linux-4.4.14/drivers/media/common/saa7146/
H A Dsaa7146_core.c147 make sure virt has been allocated with vmalloc_32(), otherwise the BUG()
149 static struct scatterlist* vmalloc_to_sg(unsigned char *virt, int nr_pages) vmalloc_to_sg() argument
159 for (i = 0; i < nr_pages; i++, virt += PAGE_SIZE) { vmalloc_to_sg()
160 pg = vmalloc_to_page(virt); vmalloc_to_sg()
/linux-4.4.14/drivers/mtd/chips/
H A Dmap_ram.c96 return (unsigned long) map->virt + offset; mapram_unmapped_area()
H A Dmap_rom.c80 return (unsigned long) map->virt + offset; maprom_unmapped_area()
/linux-4.4.14/drivers/net/ethernet/atheros/alx/
H A Dalx.h87 void *virt; member in struct:alx_priv::__anon6497
/linux-4.4.14/drivers/crypto/caam/
H A Dintern.h33 u32 *desc_addr_virt; /* Stored virt addr for postprocessing */
/linux-4.4.14/arch/mips/cavium-octeon/
H A Dflash_setup.c101 flash_map.virt = ioremap(flash_map.phys, flash_map.size); octeon_flash_probe()
/linux-4.4.14/arch/ia64/kernel/
H A Defi.c228 STUB_GET_TIME(virt, id) STUB_GET_TIME()
229 STUB_SET_TIME(virt, id) STUB_GET_TIME()
230 STUB_GET_WAKEUP_TIME(virt, id) STUB_GET_TIME()
231 STUB_SET_WAKEUP_TIME(virt, id) STUB_GET_TIME()
232 STUB_GET_VARIABLE(virt, id) STUB_GET_TIME()
233 STUB_GET_NEXT_VARIABLE(virt, id) STUB_GET_TIME()
234 STUB_SET_VARIABLE(virt, id) STUB_GET_TIME()
235 STUB_GET_NEXT_HIGH_MONO_COUNT(virt, id) STUB_GET_TIME()
236 STUB_RESET_SYSTEM(virt, id) STUB_GET_TIME()
/linux-4.4.14/arch/arm/mach-mv78xx0/include/mach/
H A Dmv78xx0.h30 * virt phys size
/linux-4.4.14/arch/arm/mach-orion5x/include/mach/
H A Dorion5x.h33 * virt phys size
/linux-4.4.14/arch/arm/mach-sa1100/
H A Dassabet.c497 unsigned long virt = (unsigned long)io_p2v(phys); map_sa1100_gpio_regs() local
501 pmd = pmd_offset(pud_offset(pgd_offset_k(virt), virt), virt); map_sa1100_gpio_regs()
/linux-4.4.14/drivers/regulator/
H A Dvirtual.c340 .name = "reg-virt-consumer",
349 MODULE_ALIAS("platform:reg-virt-consumer");

Completed in 6095 milliseconds

123