/drivers/vfio/pci/ |
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, 41 TP_PROTO(struct pci_dev *pdev, unsigned long hpa, unsigned long ua, 43 TP_ARGS(pdev, hpa, ua, size, ret), 47 __field(unsigned long, hpa) 55 __entry->hpa = hpa; 61 TP_printk("%s: %lx -> %lx size=%lx ret=%d", __entry->name, __entry->hpa, [all …]
|
/drivers/cxl/core/ |
D | trace.c | 10 static bool cxl_is_hpa_in_range(u64 hpa, struct cxl_region *cxlr, int pos) in cxl_is_hpa_in_range() argument 18 if (hpa < p->res->start || hpa > p->res->end) { in cxl_is_hpa_in_range() 20 "Addr trans fail: hpa 0x%llx not in region\n", hpa); in cxl_is_hpa_in_range() 25 offset = hpa - p->res->start; in cxl_is_hpa_in_range() 31 "Addr trans fail: hpa 0x%llx not in expected chunk\n", hpa); in cxl_is_hpa_in_range() 39 u64 dpa_offset, hpa_offset, bits_upper, mask_upper, hpa; in cxl_dpa_to_hpa() local 76 hpa = hpa_offset + p->res->start; in cxl_dpa_to_hpa() 78 if (!cxl_is_hpa_in_range(hpa, cxlr, cxled->pos)) in cxl_dpa_to_hpa() 81 return hpa; in cxl_dpa_to_hpa()
|
D | trace.h | 658 __field(u64, hpa) 679 __entry->hpa = cxl_trace_hpa(cxlr, cxlmd, 684 __entry->hpa = ULLONG_MAX; 697 __entry->hpa,
|
/drivers/parisc/ |
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()
|
D | lasi.c | 59 unsigned long lasi_base = this_lasi->hpa; in lasi_init_irq() 154 gsc_writel(0x02, lasi->hpa + 0x0000C000); in lasi_power_off() 170 lasi->hpa = dev->hpa.start; in lasi_init_chip() 173 lasi->version = gsc_readl(lasi->hpa + LASI_VER) & 0xf; in lasi_init_chip() 175 lasi->name, lasi->version, lasi->hpa); in lasi_init_chip() 178 lasi_led_init(lasi->hpa); in lasi_init_chip() 201 gsc_writel(lasi->eim, lasi->hpa + OFFSET_IAR); in lasi_init_chip()
|
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() 157 gsc_writel(gsc_dev->eim, gsc_dev->hpa + OFFSET_IAR); in gsc_set_affinity_irq() 245 res = request_mem_region(gsc_asic->hpa, 0x100000, gsc_asic->name); in gsc_common_setup() 253 if (gsc_readl(gsc_asic->hpa + OFFSET_IMR)) in gsc_common_setup() 255 gsc_readl(gsc_asic->hpa + OFFSET_IMR)); in gsc_common_setup()
|
D | wax.c | 50 unsigned long base = wax->hpa; in wax_init_irq() 78 wax->hpa = dev->hpa.start; in wax_init_chip() 81 printk(KERN_INFO "%s at 0x%lx found.\n", wax->name, wax->hpa); in wax_init_chip() 104 gsc_writel(wax->eim, wax->hpa + OFFSET_IAR); in wax_init_chip()
|
D | sba_iommu.c | 158 sba_dump_ranges(void __iomem *hpa) in sba_dump_ranges() argument 160 DBG_INIT("SBA at 0x%p\n", hpa); in sba_dump_ranges() 161 DBG_INIT("IOS_DIST_BASE : %Lx\n", READ_REG64(hpa+IOS_DIST_BASE)); in sba_dump_ranges() 162 DBG_INIT("IOS_DIST_MASK : %Lx\n", READ_REG64(hpa+IOS_DIST_MASK)); in sba_dump_ranges() 163 DBG_INIT("IOS_DIST_ROUTE : %Lx\n", READ_REG64(hpa+IOS_DIST_ROUTE)); in sba_dump_ranges() 165 DBG_INIT("IOS_DIRECT_BASE : %Lx\n", READ_REG64(hpa+IOS_DIRECT_BASE)); in sba_dump_ranges() 166 DBG_INIT("IOS_DIRECT_MASK : %Lx\n", READ_REG64(hpa+IOS_DIRECT_MASK)); in sba_dump_ranges() 167 DBG_INIT("IOS_DIRECT_ROUTE: %Lx\n", READ_REG64(hpa+IOS_DIRECT_ROUTE)); in sba_dump_ranges() 176 static void sba_dump_tlb(void __iomem *hpa) in sba_dump_tlb() argument 178 DBG_INIT("IO TLB at 0x%p\n", hpa); in sba_dump_tlb() [all …]
|
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()
|
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)) 893 void *iosapic_register(unsigned long hpa, void __iomem *vaddr) in iosapic_register() argument 907 if (COMPARE_IRTE_ADDR(irte, hpa)) in iosapic_register() 912 DBG("iosapic_register() ignoring 0x%lx (NOT FOUND)\n", hpa); in iosapic_register() 923 isi->isi_hpa = hpa; in iosapic_register()
|
D | dino.c | 940 unsigned long hpa = dev->hpa.start; in dino_probe() local 960 printk("%s version %s found at 0x%lx\n", name, version, hpa); in dino_probe() 962 if (!request_mem_region(hpa, PAGE_SIZE, name)) { in dino_probe() 964 hpa); in dino_probe() 972 if (hpa == (unsigned long)CUJO_RAVEN_ADDR) { in dino_probe() 974 } else if (hpa == (unsigned long)CUJO_FIREHAWK_ADDR) { in dino_probe() 977 printk("Don't recognise Cujo at address 0x%lx, not enabling workaround\n", hpa); in dino_probe() 1000 dino_dev->hba.base_addr = ioremap(hpa, 4096); in dino_probe()
|
D | lba_pci.c | 1279 r->start += (rsize + 1) * LBA_NUM(pa_dev->hpa.start); in lba_legacy_resources() 1478 addr = ioremap(dev->hpa.start, 4096); in lba_driver_probe() 1498 version, func_class & 0xf, (long)dev->hpa.start); in lba_driver_probe() 1528 minor, func_class, (long)dev->hpa.start); in lba_driver_probe() 1533 (long)dev->hpa.start); in lba_driver_probe() 1538 tmp_obj = iosapic_register(dev->hpa.start + LBA_IOSAPIC_BASE, in lba_driver_probe() 1698 void __iomem * base_addr = ioremap(lba->hpa.start, 4096); in lba_set_iregs()
|
D | gsc.h | 29 unsigned long hpa; member
|
/drivers/input/serio/ |
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() 378 hpa, ps2port->id); in gscps2_probe() 384 if (!request_mem_region(hpa, GSC_STATUS + 4, ps2port->port.name)) in gscps2_probe() 390 hpa, in gscps2_probe() 405 release_mem_region(dev->hpa.start, GSC_STATUS + 4); in gscps2_probe() 428 release_mem_region(dev->hpa, GSC_STATUS + 4); in gscps2_remove()
|
/drivers/vfio/ |
D | vfio_iommu_spapr_tce.c | 180 static bool tce_page_is_contained(struct mm_struct *mm, unsigned long hpa, in tce_page_is_contained() argument 186 if (mm_iommu_is_devmem(mm, hpa, it_page_shift, &size)) in tce_page_is_contained() 189 page = pfn_to_page(hpa >> PAGE_SHIFT); in tce_page_is_contained() 382 static void tce_iommu_unuse_page(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() 485 static int tce_iommu_use_page(unsigned long tce, unsigned long *hpa) in tce_iommu_use_page() argument 495 *hpa = __pa((unsigned long) page_address(page)); in tce_iommu_use_page() 506 unsigned long hpa; in tce_iommu_build() local [all …]
|
/drivers/char/agp/ |
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()
|
/drivers/scsi/ |
D | zalon.c | 64 lasi_scsi_clock(void * hpa, int defaultclock) 68 status = pdc_iodc_read(&pdc_result, hpa, 0, &iodc_data, 32 ); 93 void __iomem *zalon = ioremap(dev->hpa.start, 4096); in zalon_probe() 132 device.slot.base = dev->hpa.start + GSC_SCSI_ZALON_OFFSET; in zalon_probe()
|
/drivers/tty/serial/ |
D | mux.c | 89 status = pdc_iodc_read(&bytecnt, dev->hpa.start, 0, iodc_data, 32); in get_mux_port_count() 436 request_mem_region(dev->hpa.start + MUX_OFFSET, in mux_probe() 452 port->mapbase = dev->hpa.start + MUX_OFFSET + in mux_probe() 481 if(mux_ports[i].port.mapbase == dev->hpa.start + MUX_OFFSET) in mux_remove() 495 release_mem_region(dev->hpa.start + MUX_OFFSET, port_count * MUX_LINE_OFFSET); in mux_remove()
|
/drivers/video/ |
D | sticore.c | 444 unsigned long hpa) in sti_init_glob_cfg() argument 483 newhpa = (i == 0) ? rom_address : hpa; in sti_init_glob_cfg() 906 unsigned long hpa, in sti_try_rom_generic() argument 970 address, hpa); in sti_try_rom_generic() 976 address, hpa); in sti_try_rom_generic() 983 if (sti_init_glob_cfg(sti, address, hpa)) in sti_try_rom_generic() 1031 int hpa = dev->hpa.start; in sticore_pa_init() local 1034 sti = sti_try_rom_generic(dev->addr[0], hpa, NULL); in sticore_pa_init() 1036 sti = sti_try_rom_generic(hpa, hpa, NULL); in sticore_pa_init() 1038 sti = sti_try_rom_generic(PAGE0->proc_sti, hpa, NULL); in sticore_pa_init()
|
/drivers/net/ethernet/i825xx/ |
D | lasi_82596.c | 154 __FILE__, (unsigned long)dev->hpa.start); in lan_init_chip() 159 (unsigned long)dev->hpa.start, dev->irq); in lan_init_chip() 167 netdevice->base_addr = dev->hpa.start; in lan_init_chip()
|
/drivers/cxl/ |
D | acpi.c | 24 static int cxl_xor_calc_n(u64 hpa, struct cxl_cxims_data *cximsd, int iw, in cxl_xor_calc_n() argument 33 n |= (hweight64(hpa & cximsd->xormaps[i]) & 1) << i; in cxl_xor_calc_n() 39 hpa &= GENMASK_ULL(51, eiw + ig); in cxl_xor_calc_n() 40 n |= do_div(hpa, 3) << i; in cxl_xor_calc_n() 53 u64 hpa; in cxl_hb_xor() local 60 hpa = cxlrd->res->start + pos * ig; in cxl_hb_xor() 64 n = cxl_xor_calc_n(hpa, cximsd, iw, ig); in cxl_hb_xor()
|
/drivers/tty/serial/8250/ |
D | 8250_parisc.c | 44 (unsigned long long)dev->hpa.start); in serial_init_chip() 48 address = dev->hpa.start; in serial_init_chip()
|
/drivers/parport/ |
D | parport_gsc.c | 340 (unsigned long long)dev->hpa.start); in parport_init_chip() 344 port = dev->hpa.start + PARPORT_GSC_OFFSET; in parport_init_chip()
|
/drivers/char/ipmi/ |
D | ipmi_si_parisc.c | 19 io.addr_data = dev->hpa.start; in ipmi_parisc_probe()
|
/drivers/input/keyboard/ |
D | hilkbd.c | 306 (void *)dev->hpa.start); in hil_probe_chip() 310 hil_base = dev->hpa.start; in hil_probe_chip()
|