Lines Matching refs:hpa
228 unsigned long hpa; member
238 if (pdev->hpa.start == d->hpa) { in find_device()
246 static struct parisc_device *find_device_by_addr(unsigned long hpa) in find_device_by_addr() argument
249 .hpa = hpa, in find_device_by_addr()
494 alloc_pa_dev(unsigned long hpa, struct hardware_path *mod_path) in alloc_pa_dev() argument
503 if (find_device_by_addr(hpa) != NULL) in alloc_pa_dev()
506 status = pdc_iodc_read(&bytecnt, hpa, 0, &iodc_data, 32); in alloc_pa_dev()
523 dev->hpa.start = hpa; in alloc_pa_dev()
528 if (hpa == 0xf4000000 || hpa == 0xf8000000) { in alloc_pa_dev()
529 dev->hpa.end = hpa + 0x03ffffff; in alloc_pa_dev()
530 } else if (hpa == 0xf6000000 || hpa == 0xfa000000) { in alloc_pa_dev()
531 dev->hpa.end = hpa + 0x01ffffff; in alloc_pa_dev()
533 dev->hpa.end = hpa + 0xfff; in alloc_pa_dev()
535 dev->hpa.flags = IORESOURCE_MEM; in alloc_pa_dev()
536 dev->hpa.name = dev->name; in alloc_pa_dev()
544 if ((hpa & 0xfff) == 0 && insert_resource(&iomem_resource, &dev->hpa)) in alloc_pa_dev()
545 pr_warn("Unable to claim HPA %lx for device %s\n", hpa, name); in alloc_pa_dev()
797 ((gsc_readl(dev->hpa.start + offsetof(struct bc_module, io_status)) \
806 #define READ_IO_IO_LOW(dev) (unsigned long)(signed int)gsc_readl(dev->hpa.start + IO_IO_LOW)
807 #define READ_IO_IO_HIGH(dev) (unsigned long)(signed int)gsc_readl(dev->hpa.start + IO_IO_HIGH)
846 unsigned long hpa = io_io_low; in walk_native_bus() local
851 for(i = 0; i < MAX_NATIVE_DEVICES; i++, hpa += NATIVE_DEVICE_OFFSET) { in walk_native_bus()
855 dev = find_device_by_addr(hpa); in walk_native_bus()
858 dev = alloc_pa_dev(hpa, &path); in walk_native_bus()
867 } while(!devices_found && hpa < io_io_high); in walk_native_bus()
890 ++count, dev->name, &(dev->hpa.start), dev->id.hw_type, in print_parisc_device()
964 unsigned long hpa = dev->hpa.start; in qemu_print_hpa() local
966 pr_cont("\t{\t.hpa = 0x%08lx,\\\n", hpa); in qemu_print_hpa()
967 pr_cont("\t\t.iodc = &iodc_data_hpa_%08lx,\\\n", hpa); in qemu_print_hpa()
968 pr_cont("\t\t.mod_info = &mod_info_hpa_%08lx,\\\n", hpa); in qemu_print_hpa()
969 pr_cont("\t\t.mod_path = &mod_path_hpa_%08lx,\\\n", hpa); in qemu_print_hpa()
970 pr_cont("\t\t.num_addr = HPA_%08lx_num_addr,\\\n", hpa); in qemu_print_hpa()
971 pr_cont("\t\t.add_addr = { HPA_%08lx_add_addr } },\\\n", hpa); in qemu_print_hpa()
989 unsigned long hpa = dev->hpa.start; in qemu_print_iodc_data() local
997 status = pdc_iodc_read(&count, hpa, 0, in qemu_print_iodc_data()
1000 pr_info("No IODC data for hpa 0x%08lx\n", hpa); in qemu_print_iodc_data()
1007 hpa, parisc_hardware_description(&dev->id)); in qemu_print_iodc_data()
1013 } while (status == PDC_OK && pdc_mod_info.mod_addr != hpa); in qemu_print_iodc_data()
1016 " mod_info_hpa_%08lx = {\n", hpa); in qemu_print_iodc_data()
1026 "mod_path_hpa_%08lx = {\n", hpa); in qemu_print_iodc_data()
1043 pr_info("static struct pdc_iodc iodc_data_hpa_%08lx = {\n", hpa); in qemu_print_iodc_data()
1064 pr_info("#define HPA_%08lx_num_addr %d\n", hpa, dev->num_addrs); in qemu_print_iodc_data()
1065 pr_info("#define HPA_%08lx_add_addr ", hpa); in qemu_print_iodc_data()