Lines Matching defs:ranges
443 * the ranges of the PHB though, not the bus itself as the rules
483 * the ranges of the PHB though, not the bus itself as the rules
618 * This function will parse the "ranges" property of a PCI host bridge device
626 * ranges. However, some machines (thanks Apple !) tend to split their
627 * space into lots of small contiguous ranges. So we have to coalesce.
629 * - We can only cope with all memory ranges having the same offset
649 const u32 *ranges;
659 printk(KERN_INFO "PCI host bridge %s %s ranges:\n",
662 /* Get ranges property */
663 ranges = of_get_property(dev, "ranges", &rlen);
664 if (ranges == NULL)
668 pr_debug("Parsing ranges property...\n");
670 /* Read next ranges element */
671 pci_space = ranges[0];
672 pci_addr = of_read_number(ranges + 1, 2);
673 cpu_addr = of_translate_address(dev, ranges + 3);
674 size = of_read_number(ranges + pna + 3, 2);
680 ranges += np;
692 ranges += np, rlen -= np * 4) {
693 if (ranges[0] != pci_space)
695 pci_next = of_read_number(ranges + 1, 2);
696 cpu_next = of_translate_address(dev, ranges + 3);
700 size += of_read_number(ranges + pna + 3, 2);
746 /* We support only 3 memory ranges */
875 * probed, but not for bridge ranges
1314 pr_debug("Reserving legacy ranges for domain %04x\n",