Lines Matching refs:hpa
234 unsigned long hpa; member
244 if (pdev->hpa.start == d->hpa) { in find_device()
252 static struct parisc_device *find_device_by_addr(unsigned long hpa) in find_device_by_addr() argument
255 .hpa = hpa, in find_device_by_addr()
475 alloc_pa_dev(unsigned long hpa, struct hardware_path *mod_path) in alloc_pa_dev() argument
484 if (find_device_by_addr(hpa) != NULL) in alloc_pa_dev()
487 status = pdc_iodc_read(&bytecnt, hpa, 0, &iodc_data, 32); in alloc_pa_dev()
507 dev->hpa.name = parisc_pathname(dev); in alloc_pa_dev()
508 dev->hpa.start = hpa; in alloc_pa_dev()
513 if (hpa == 0xf4000000 || hpa == 0xf8000000) { in alloc_pa_dev()
514 dev->hpa.end = hpa + 0x03ffffff; in alloc_pa_dev()
515 } else if (hpa == 0xf6000000 || hpa == 0xfa000000) { in alloc_pa_dev()
516 dev->hpa.end = hpa + 0x01ffffff; in alloc_pa_dev()
518 dev->hpa.end = hpa + 0xfff; in alloc_pa_dev()
520 dev->hpa.flags = IORESOURCE_MEM; in alloc_pa_dev()
529 if ((hpa & 0xfff) == 0 && insert_resource(&iomem_resource, &dev->hpa)) in alloc_pa_dev()
531 hpa, name); in alloc_pa_dev()
776 ((gsc_readl(dev->hpa.start + offsetof(struct bc_module, io_status)) \
785 #define READ_IO_IO_LOW(dev) (unsigned long)(signed int)gsc_readl(dev->hpa.start + IO_IO_LOW)
786 #define READ_IO_IO_HIGH(dev) (unsigned long)(signed int)gsc_readl(dev->hpa.start + IO_IO_HIGH)
825 unsigned long hpa = io_io_low; in walk_native_bus() local
830 for(i = 0; i < MAX_NATIVE_DEVICES; i++, hpa += NATIVE_DEVICE_OFFSET) { in walk_native_bus()
834 dev = find_device_by_addr(hpa); in walk_native_bus()
837 dev = alloc_pa_dev(hpa, &path); in walk_native_bus()
846 } while(!devices_found && hpa < io_io_high); in walk_native_bus()
871 ++count, dev->name, (void*) dev->hpa.start, hw_path, dev->id.hw_type, in print_parisc_device()