Lines Matching defs:index
132 * @index: index of the u32 in the list of values
146 u32 index, u32 *out_value)
149 ((index + 1) * sizeof(*out_value)),
156 *out_value = be32_to_cpup(((__be32 *)val) + index);
166 * @index: index of the u64 in the list of values
180 u32 index, u64 *out_value)
183 ((index + 1) * sizeof(*out_value)),
189 *out_value = be64_to_cpup(((__be64 *)val) + index);
456 * of_property_match_string() - Find string in a list and return index
461 * This function searches a string list property and returns the index
486 return i; /* Found it; return index */
983 unsigned int nargs, unsigned int index,
992 nargs_prop, index, &of_args);
995 nargs, index, &of_args);
1095 * @index: For properties holding a list of phandles, this is the index
1107 * - NULL if no phandle found at index
1110 const char *prop_name, int index,
1119 if (__of_parse_phandle_with_args(np, list_name, cells_name, 0, index,
1128 const char *prop_name, int index) \
1130 return parse_prop_cells(np, prop_name, index, name, cells); \
1149 * @index: For properties holding a list of phandles, this is the index
1161 * - NULL if no phandle found at index
1164 const char *prop_name, int index,
1173 if (of_parse_phandle_with_args(np, prop_name, cells_name, index,
1182 const char *prop_name, int index) \
1184 return parse_suffix_prop_cells(np, prop_name, index, suffix, cells); \
1194 * @parse_prop.index: For properties holding a list of phandles, this is the
1195 * index into the list
1205 * - NULL if no phandle found at index
1209 const char *prop_name, int index);
1245 const char *prop_name, int index)
1250 return parse_suffix_prop_cells(np, prop_name, index, "-gpios",
1255 const char *prop_name, int index)
1260 return of_parse_phandle(np, prop_name, (index * 4) + 1);
1264 const char *prop_name, int index)
1278 if (of_parse_phandle_with_args(np, prop_name, "#gpio-cells", index,
1286 const char *prop_name, int index)
1297 return of_irq_parse_one(np, index, &sup_args) ? NULL : sup_args.np;
1302 int index)
1304 /* Return NULL for index > 0 to signify end of remote-endpoints. */
1305 if (index > 0 || strcmp(prop_name, "remote-endpoint"))
1402 static void __iomem *of_fwnode_iomap(struct fwnode_handle *fwnode, int index)
1405 return of_iomap(to_of_node(fwnode), index);
1412 unsigned int index)
1414 return of_irq_get(to_of_node(fwnode), index);