Lines Matching defs:ranges
456 * the ranges of the PHB though, not the bus itself as the rules
496 * the ranges of the PHB though, not the bus itself as the rules
626 * This function will parse the "ranges" property of a PCI host bridge device
634 * ranges. However, some machines (thanks Apple !) tend to split their
635 * space into lots of small contiguous ranges. So we have to coalesce.
637 * - We can only cope with all memory ranges having the same offset
657 const u32 *ranges;
667 printk(KERN_INFO "PCI host bridge %s %s ranges:\n",
670 /* Get ranges property */
671 ranges = of_get_property(dev, "ranges", &rlen);
672 if (ranges == NULL)
677 /* Read next ranges element */
678 pci_space = ranges[0];
679 pci_addr = of_read_number(ranges + 1, 2);
680 cpu_addr = of_translate_address(dev, ranges + 3);
681 size = of_read_number(ranges + pna + 3, 2);
682 ranges += np;
694 ranges += np, rlen -= np * 4) {
695 if (ranges[0] != pci_space)
697 pci_next = of_read_number(ranges + 1, 2);
698 cpu_next = of_translate_address(dev, ranges + 3);
702 size += of_read_number(ranges + pna + 3, 2);
750 /* We support only 3 memory ranges */
880 * probed, but not for bridge ranges
1345 pr_debug("Reserving legacy ranges for domain %04x\n", pci_domain_nr(bus));