Lines Matching +full:2 +full:- +full:cell

1 /*-
11 * 2. Redistributions in binary form must reproduce the above copyright
54 res = OF_getencprop(node, "#address-cells", &addr, sizeof(addr)); in get_addr_props()
55 if (res == -1) in get_addr_props()
56 addr = 2; in get_addr_props()
57 res = OF_getencprop(node, "#size-cells", &size, sizeof(size)); in get_addr_props()
58 if (res == -1) in get_addr_props()
61 if (addr == 3 && size == 2) { in get_addr_props()
63 if (res != -1) { in get_addr_props()
64 type[sizeof(type) - 1] = '\0'; in get_addr_props()
82 static pcell_t cell[256]; in ofw_reg_to_paddr() local
103 res = OF_getencprop(dev, (pci) ? "assigned-addresses" : "reg", in ofw_reg_to_paddr()
104 cell, sizeof(cell)); in ofw_reg_to_paddr()
105 if (res == -1) in ofw_reg_to_paddr()
107 if (res % sizeof(cell[0])) in ofw_reg_to_paddr()
109 res /= sizeof(cell[0]); in ofw_reg_to_paddr()
113 pci_hi = pci ? cell[regno] : OFW_PADDR_NOT_PCI; in ofw_reg_to_paddr()
117 addr = ((uint64_t)addr << 32) | cell[regno++]; in ofw_reg_to_paddr()
120 size = ((uint64_t)size << 32) | cell[regno++]; in ofw_reg_to_paddr()
133 res = OF_getencprop(bridge, "ranges", cell, sizeof(cell)); in ofw_reg_to_paddr()
136 if (res % sizeof(cell[0])) in ofw_reg_to_paddr()
140 pci_hi = cell[0]; in ofw_reg_to_paddr()
143 res /= sizeof(cell[0]); in ofw_reg_to_paddr()
146 rspc = (pci ? cell[regno] : OFW_PADDR_NOT_PCI) & in ofw_reg_to_paddr()
154 raddr = ((uint64_t)raddr << 32) | cell[regno++]; in ofw_reg_to_paddr()
156 ? cell[regno] & OFW_PCI_PHYS_HI_SPACEMASK in ofw_reg_to_paddr()
160 baddr = ((uint64_t)baddr << 32) | cell[regno++]; in ofw_reg_to_paddr()
163 rsize = ((uint64_t)rsize << 32) | cell[regno++]; in ofw_reg_to_paddr()
166 addr = addr - raddr + baddr; in ofw_reg_to_paddr()
201 if (chosen == -1) in ofw_parse_bootargs()
204 if ((err = OF_getprop(chosen, "bootargs", buf, sizeof(buf))) != -1) { in ofw_parse_bootargs()