/linux/drivers/vfio/pci/ |
A D | trace.h | 18 TP_PROTO(struct pci_dev *pdev, unsigned long hpa, unsigned long ua, 20 TP_ARGS(pdev, hpa, ua, ret), 24 __field(unsigned long, hpa) 31 __entry->hpa = hpa; 36 TP_printk("%s: %lx -> %lx ret=%d", __entry->name, __entry->hpa, 43 TP_ARGS(pdev, hpa, ua, size, ret), 47 __field(unsigned long, hpa) 55 __entry->hpa = hpa; 68 TP_ARGS(pdev, hpa, ua, size, ret), 72 __field(unsigned long, hpa) [all …]
|
/linux/arch/parisc/kernel/ |
A D | drivers.c | 228 unsigned long hpa; member 238 if (pdev->hpa.start == d->hpa) { in find_device() 249 .hpa = hpa, in find_device_by_addr() 524 dev->hpa.start = hpa; in alloc_pa_dev() 529 if (hpa == 0xf4000000 || hpa == 0xf8000000) { in alloc_pa_dev() 530 dev->hpa.end = hpa + 0x03ffffff; in alloc_pa_dev() 531 } else if (hpa == 0xf6000000 || hpa == 0xfa000000) { in alloc_pa_dev() 532 dev->hpa.end = hpa + 0x01ffffff; in alloc_pa_dev() 534 dev->hpa.end = hpa + 0xfff; in alloc_pa_dev() 967 unsigned long hpa = dev->hpa.start; in qemu_print_hpa() local [all …]
|
A D | pa7300lc.c | 33 u32 hpa; in pa7300lc_lpmc() local 38 hpa = cpu_hpa(); in pa7300lc_lpmc() 43 gsc_readl(hpa+MIOC_CONTROL), gsc_readl(hpa+MIOC_STATUS), in pa7300lc_lpmc() 44 gsc_readl(hpa+MDERRADD), gsc_readl(hpa+DMAERR), in pa7300lc_lpmc() 45 gsc_readl(hpa+DIOERR), gsc_readl(hpa+HIDMAMEM)); in pa7300lc_lpmc()
|
A D | processor.c | 102 txn_addr = dev->hpa.start; /* for legacy PDC */ in processor_probe() 129 status = pdc_pat_cpu_get_number(&cpu_info, dev->hpa.start); in processor_probe() 135 &dev->hpa.start); in processor_probe() 148 &dev->hpa.start, cpu_info.cpu_num, NR_CPUS); in processor_probe() 167 p->hpa = dev->hpa.start; /* save CPU hpa */ in processor_probe() 379 if (0 == cpuinfo->hpa) in show_cpuinfo()
|
A D | firmware.c | 396 retval = mem_pdc_call(PDC_IODC, PDC_IODC_READ, __pa(pdc_result), hpa, in pdc_iodc_read() 704 int pdc_lan_station_id(char *lan_addr, unsigned long hpa) in pdc_lan_station_id() argument 711 __pa(pdc_result), hpa); in pdc_lan_station_id() 912 int pdc_pci_irt_size(unsigned long *num_entries, unsigned long hpa) in pdc_pci_irt_size() argument 919 __pa(pdc_result), hpa); in pdc_pci_irt_size() 946 __pa(pdc_result), hpa, __pa(tbl)); in pdc_pci_irt() 962 unsigned int pdc_pci_config_read(void *hpa, unsigned long cfg_addr) 971 __pa(pdc_result), hpa, cfg_addr&~3UL, 4UL); 994 __pa(pdc_result), hpa, 1313 (unsigned long)PAGE0->mem_kbd.hpa, ENTRY_IO_CIN, in pdc_iodc_getc() [all …]
|
/linux/drivers/parisc/ |
A D | hppb.c | 26 unsigned long hpa; member 32 .hpa = 0, 56 if(card->hpa) { in hppb_probe() 65 card->hpa = dev->hpa.start; in hppb_probe() 69 card->mmio_region.start = gsc_readl(dev->hpa.start + IO_IO_LOW); in hppb_probe() 70 card->mmio_region.end = gsc_readl(dev->hpa.start + IO_IO_HIGH) - 1; in hppb_probe() 75 &dev->hpa.start, in hppb_probe()
|
A D | lasi.c | 58 unsigned long lasi_base = this_lasi->hpa; in lasi_init_irq() 174 lasi->hpa = dev->hpa.start; in lasi_init_chip() 177 lasi->version = gsc_readl(lasi->hpa + LASI_VER) & 0xf; in lasi_init_chip() 179 lasi->name, lasi->version, lasi->hpa); in lasi_init_chip() 182 lasi_led_init(lasi->hpa); in lasi_init_chip() 205 gsc_writel(lasi->eim, lasi->hpa + OFFSET_IAR); in lasi_init_chip() 220 lasi_power_off_hpa = lasi->hpa; in lasi_init_chip()
|
A D | gsc.c | 76 irr = gsc_readl(gsc_asic->hpa + OFFSET_IRR); in gsc_asic_intr() 114 imr = gsc_readl(irq_dev->hpa + OFFSET_IMR); in gsc_asic_mask_irq() 116 gsc_writel(imr, irq_dev->hpa + OFFSET_IMR); in gsc_asic_mask_irq() 129 imr = gsc_readl(irq_dev->hpa + OFFSET_IMR); in gsc_asic_unmask_irq() 131 gsc_writel(imr, irq_dev->hpa + OFFSET_IMR); in gsc_asic_unmask_irq() 214 res = request_mem_region(gsc_asic->hpa, 0x100000, gsc_asic->name); in gsc_common_setup() 222 if (gsc_readl(gsc_asic->hpa + OFFSET_IMR)) in gsc_common_setup() 224 gsc_readl(gsc_asic->hpa + OFFSET_IMR)); in gsc_common_setup()
|
A D | wax.c | 50 unsigned long base = wax->hpa; in wax_init_irq() 79 wax->hpa = dev->hpa.start; in wax_init_chip() 82 printk(KERN_INFO "%s at 0x%lx found.\n", wax->name, wax->hpa); in wax_init_chip() 105 gsc_writel(wax->eim, wax->hpa + OFFSET_IAR); in wax_init_chip()
|
A D | sba_iommu.c | 154 sba_dump_ranges(void __iomem *hpa) in sba_dump_ranges() argument 156 DBG_INIT("SBA at 0x%p\n", hpa); in sba_dump_ranges() 157 DBG_INIT("IOS_DIST_BASE : %Lx\n", READ_REG64(hpa+IOS_DIST_BASE)); in sba_dump_ranges() 172 static void sba_dump_tlb(void __iomem *hpa) in sba_dump_tlb() argument 174 DBG_INIT("IO TLB at 0x%p\n", hpa); in sba_dump_tlb() 175 DBG_INIT("IOC_IBASE : 0x%Lx\n", READ_REG64(hpa+IOC_IBASE)); in sba_dump_tlb() 176 DBG_INIT("IOC_IMASK : 0x%Lx\n", READ_REG64(hpa+IOC_IMASK)); in sba_dump_tlb() 177 DBG_INIT("IOC_TCNFG : 0x%Lx\n", READ_REG64(hpa+IOC_TCNFG)); in sba_dump_tlb() 178 DBG_INIT("IOC_PDIR_BASE: 0x%Lx\n", READ_REG64(hpa+IOC_PDIR_BASE)); in sba_dump_tlb() 1229 int rope_num = (lba->hpa.start >> 13) & 0xf; in setup_ibase_imask_callback() [all …]
|
A D | asp.c | 74 asp.version = gsc_readb(dev->hpa.start + ASP_VER_OFFSET) & 0xf; in asp_init_chip() 76 asp.hpa = ASP_INTERRUPT_ADDR; in asp_init_chip() 79 asp.name, asp.version, (unsigned long)dev->hpa.start); in asp_init_chip()
|
A D | iosapic.c | 158 #define COMPARE_IRTE_ADDR(irte, hpa) ((irte)->dest_iosapic_addr == (hpa)) argument 160 #define COMPARE_IRTE_ADDR(irte, hpa) \ argument 161 ((irte)->dest_iosapic_addr == ((hpa) | 0xffffffff00000000ULL)) 901 void *iosapic_register(unsigned long hpa) in iosapic_register() argument 915 if (COMPARE_IRTE_ADDR(irte, hpa)) in iosapic_register() 920 DBG("iosapic_register() ignoring 0x%lx (NOT FOUND)\n", hpa); in iosapic_register() 930 isi->addr = ioremap(hpa, 4096); in iosapic_register() 931 isi->isi_hpa = hpa; in iosapic_register()
|
/linux/arch/s390/kvm/ |
A D | vsie.c | 665 hpa_t hpa; in unpin_blocks() local 668 if (hpa) { in unpin_blocks() 675 hpa = scb_s->itdba; in unpin_blocks() 676 if (hpa) { in unpin_blocks() 682 hpa = scb_s->gvrd; in unpin_blocks() 683 if (hpa) { in unpin_blocks() 690 if (hpa) { in unpin_blocks() 697 if (hpa) { in unpin_blocks() 722 hpa_t hpa; in pin_blocks() local 841 if (hpa) in unpin_scb() [all …]
|
/linux/drivers/input/serio/ |
A D | gscps2.c | 331 unsigned long hpa = dev->hpa.start; in gscps2_probe() local 339 hpa += GSC_DINO_OFFSET; in gscps2_probe() 352 ps2port->addr = ioremap(hpa, GSC_STATUS + 4); in gscps2_probe() 374 hpa, ps2port->id); in gscps2_probe() 380 if (!request_mem_region(hpa, GSC_STATUS + 4, ps2port->port.name)) in gscps2_probe() 386 hpa, in gscps2_probe() 401 release_mem_region(dev->hpa.start, GSC_STATUS + 4); in gscps2_probe() 424 release_mem_region(dev->hpa, GSC_STATUS + 4); in gscps2_remove()
|
/linux/arch/powerpc/mm/book3s64/ |
A D | iommu_api.c | 349 unsigned long ua, unsigned int pageshift, unsigned long *hpa) in mm_iommu_ua_to_hpa() argument 361 *hpa = mem->dev_hpa + (ua - mem->ua); in mm_iommu_ua_to_hpa() 366 *hpa = (*va & MM_IOMMU_TABLE_GROUP_PAGE_MASK) | (ua & ~PAGE_MASK); in mm_iommu_ua_to_hpa() 373 unsigned long ua, unsigned int pageshift, unsigned long *hpa) in mm_iommu_ua_to_hpa_rm() argument 385 *hpa = mem->dev_hpa + (ua - mem->ua); in mm_iommu_ua_to_hpa_rm() 393 *hpa = (*pa & MM_IOMMU_TABLE_GROUP_PAGE_MASK) | (ua & ~PAGE_MASK); in mm_iommu_ua_to_hpa_rm() 422 bool mm_iommu_is_devmem(struct mm_struct *mm, unsigned long hpa, in mm_iommu_is_devmem() argument 434 if ((mem->dev_hpa <= hpa) && (hpa < end)) { in mm_iommu_is_devmem() 441 *size = min(1UL << pageshift, end - hpa); in mm_iommu_is_devmem()
|
/linux/arch/powerpc/kvm/ |
A D | book3s_64_vio_hv.c | 120 unsigned long hpa = 0; in kvmppc_rm_tce_validate() local 128 if (mm_iommu_ua_to_hpa_rm(mem, ua, shift, &hpa)) in kvmppc_rm_tce_validate() 222 unsigned long entry, unsigned long *hpa, in iommu_tce_xchg_no_kill_rm() argument 253 unsigned long hpa = 0; in kvmppc_rm_clear_tce() local 256 iommu_tce_xchg_no_kill_rm(kvm->mm, tbl, entry, &hpa, &dir); in kvmppc_rm_clear_tce() 285 unsigned long hpa = 0; in kvmppc_rm_tce_iommu_do_unmap() local 288 if (iommu_tce_xchg_no_kill_rm(kvm->mm, tbl, entry, &hpa, &dir)) in kvmppc_rm_tce_iommu_do_unmap() 300 iommu_tce_xchg_no_kill_rm(kvm->mm, tbl, entry, &hpa, &dir); in kvmppc_rm_tce_iommu_do_unmap() 327 unsigned long hpa = 0; in kvmppc_rm_tce_iommu_do_map() local 340 &hpa))) in kvmppc_rm_tce_iommu_do_map() [all …]
|
A D | book3s_64_vio.c | 378 unsigned long hpa = 0; in kvmppc_tce_validate() local 383 if (!mem || mm_iommu_ua_to_hpa(mem, ua, shift, &hpa)) { in kvmppc_tce_validate() 426 unsigned long hpa = 0; in kvmppc_clear_tce() local 429 iommu_tce_xchg_no_kill(mm, tbl, entry, &hpa, &dir); in kvmppc_clear_tce() 457 unsigned long hpa = 0; in kvmppc_tce_iommu_do_unmap() local 460 if (WARN_ON_ONCE(iommu_tce_xchg_no_kill(kvm->mm, tbl, entry, &hpa, in kvmppc_tce_iommu_do_unmap() 469 iommu_tce_xchg_no_kill(kvm->mm, tbl, entry, &hpa, &dir); in kvmppc_tce_iommu_do_unmap() 496 unsigned long hpa; in kvmppc_tce_iommu_do_map() local 509 if (WARN_ON_ONCE(mm_iommu_ua_to_hpa(mem, ua, tbl->it_page_shift, &hpa))) in kvmppc_tce_iommu_do_map() 515 ret = iommu_tce_xchg_no_kill(kvm->mm, tbl, entry, &hpa, &dir); in kvmppc_tce_iommu_do_map()
|
/linux/drivers/vfio/ |
A D | vfio_iommu_spapr_tce.c | 188 page = pfn_to_page(hpa >> PAGE_SHIFT); in tce_page_is_contained() 382 unsigned long hpa) in tce_iommu_unuse_page() argument 386 page = pfn_to_page(hpa >> PAGE_SHIFT); in tce_iommu_unuse_page() 415 unsigned long hpa = 0; in tce_iommu_unuse_page_v2() local 422 tbl->it_page_shift, &hpa, &mem); in tce_iommu_unuse_page_v2() 506 unsigned long hpa; in tce_iommu_build() local 512 ret = tce_iommu_use_page(tce, &hpa); in tce_iommu_build() 522 hpa |= offset; in tce_iommu_build() 525 &hpa, &dirtmp); in tce_iommu_build() 554 unsigned long hpa; in tce_iommu_build_v2() local [all …]
|
/linux/arch/powerpc/platforms/powernv/ |
A D | pci-ioda-tce.c | 148 unsigned long *hpa, enum dma_data_direction *direction, in pnv_tce_xchg() argument 152 unsigned long newtce = *hpa | proto_tce, oldtce; in pnv_tce_xchg() 156 BUG_ON(*hpa & ~IOMMU_PAGE_MASK(tbl)); in pnv_tce_xchg() 161 *hpa = 0; in pnv_tce_xchg() 176 *hpa = oldtce & ~(TCE_PCI_READ | TCE_PCI_WRITE); in pnv_tce_xchg() 228 unsigned long hpa = be64_to_cpu(tmp[i]); in pnv_pci_ioda2_table_do_free_pages() local 230 if (!(hpa & (TCE_PCI_READ | TCE_PCI_WRITE))) in pnv_pci_ioda2_table_do_free_pages() 233 pnv_pci_ioda2_table_do_free_pages(__va(hpa), size, in pnv_pci_ioda2_table_do_free_pages()
|
/linux/drivers/char/agp/ |
A D | hp-agp.c | 160 hp_zx1_ioc_init (u64 hpa) in hp_zx1_ioc_init() argument 164 hp->ioc_regs = ioremap(hpa, 1024); in hp_zx1_ioc_init() 181 hp_zx1_lba_find_capability (volatile u8 __iomem *hpa, int cap) in hp_zx1_lba_find_capability() argument 187 status = readw(hpa+PCI_STATUS); in hp_zx1_lba_find_capability() 190 pos = readb(hpa+PCI_CAPABILITY_LIST); in hp_zx1_lba_find_capability() 193 id = readb(hpa+pos+PCI_CAP_LIST_ID); in hp_zx1_lba_find_capability() 198 pos = readb(hpa+pos+PCI_CAP_LIST_NEXT); in hp_zx1_lba_find_capability() 204 hp_zx1_lba_init (u64 hpa) in hp_zx1_lba_init() argument 209 hp->lba_regs = ioremap(hpa, 256); in hp_zx1_lba_init()
|
/linux/drivers/scsi/ |
A D | zalon.c | 64 lasi_scsi_clock(void * hpa, int defaultclock) 68 status = pdc_iodc_read(&pdc_result, hpa, 0, &iodc_data, 32 ); 92 void __iomem *zalon = ioremap(dev->hpa.start, 4096); in zalon_probe() 131 device.slot.base = dev->hpa.start + GSC_SCSI_ZALON_OFFSET; in zalon_probe()
|
/linux/arch/parisc/include/asm/ |
A D | pdc.h | 36 int pdc_iodc_read(unsigned long *actcnt, unsigned long hpa, unsigned int index, 64 int pdc_pci_irt_size(unsigned long *num_entries, unsigned long hpa); 65 int pdc_pci_irt(unsigned long num_entries, unsigned long hpa, void *tbl);
|
/linux/arch/x86/kvm/mmu/ |
A D | tdp_mmu.h | 97 hpa_t hpa = mmu->root_hpa; in is_tdp_mmu() local 99 if (WARN_ON(!VALID_PAGE(hpa))) in is_tdp_mmu() 107 sp = to_shadow_page(hpa); in is_tdp_mmu()
|
/linux/drivers/video/console/ |
A D | sticore.c | 413 unsigned long hpa) in sti_init_glob_cfg() argument 454 newhpa = (i == 0) ? rom_address : hpa; in sti_init_glob_cfg() 839 unsigned long hpa, in sti_try_rom_generic() argument 901 address, hpa); in sti_try_rom_generic() 907 address, hpa); in sti_try_rom_generic() 914 if (sti_init_glob_cfg(sti, address, hpa)) in sti_try_rom_generic() 962 int hpa = dev->hpa.start; in sticore_pa_init() local 965 sti = sti_try_rom_generic(dev->addr[0], hpa, NULL); in sticore_pa_init() 967 sti = sti_try_rom_generic(hpa, hpa, NULL); in sticore_pa_init() 969 sti = sti_try_rom_generic(PAGE0->proc_sti, hpa, NULL); in sticore_pa_init()
|
/linux/drivers/tty/serial/ |
A D | mux.c | 89 status = pdc_iodc_read(&bytecnt, dev->hpa.start, 0, iodc_data, 32); in get_mux_port_count() 455 request_mem_region(dev->hpa.start + MUX_OFFSET, in mux_probe() 471 port->mapbase = dev->hpa.start + MUX_OFFSET + in mux_probe() 506 if(mux_ports[i].port.mapbase == dev->hpa.start + MUX_OFFSET) in mux_remove() 520 release_mem_region(dev->hpa.start + MUX_OFFSET, port_count * MUX_LINE_OFFSET); in mux_remove()
|