Lines Matching defs:index
282 * @index: the 'ranges' index to convert to a resource
289 int of_range_to_resource(struct device_node *np, int index, struct resource *res)
300 if (i++ == index)
643 int ret, index;
645 index = of_property_match_string(np, "interconnect-names", "dma-mem");
646 if (index < 0)
651 index, &args);
727 const __be32 *__of_get_address(struct device_node *dev, int index, int bar_no,
759 /* PCI bus matches on BAR number instead of index */
761 ((index >= 0) && (i == index))) {
774 * of_property_read_reg - Retrieve the specified "reg" entry index without translating
776 * @idx: "reg" entry index to read
1114 static int __of_address_to_resource(struct device_node *dev, int index, int bar_no,
1123 addrp = __of_get_address(dev, index, bar_no, &size, &flags);
1128 if (index >= 0)
1129 of_property_read_string_index(dev, "reg-names", index, &name);
1156 * @index: Index into the array
1166 int of_address_to_resource(struct device_node *dev, int index,
1169 return __of_address_to_resource(dev, index, -1, r);
1187 * @index: index of the io range
1191 void __iomem *of_iomap(struct device_node *np, int index)
1195 if (of_address_to_resource(np, index, &res))
1209 * @index: index of the io range
1219 void __iomem *of_io_request_and_map(struct device_node *np, int index,
1225 if (of_address_to_resource(np, index, &res))