Lines Matching defs:alias
761 * node (an alias). In the case of an alias, the node
762 * matching the alias' value will be returned.
769 * * foo Valid alias
770 * * foo/bar Valid alias + relative path
788 /* The path could begin with an alias */
1025 * of_alias_from_compatible - Lookup appropriate alias for a device node
1028 * @alias: Pointer to buffer that alias value will be copied into
1029 * @len: Length of alias value
1032 * to choose an appropriate alias value for a particular device tree node.
1041 int of_alias_from_compatible(const struct device_node *node, char *alias, int len)
1050 strscpy(alias, p ? p + 1 : compatible, len);
1723 pr_debug("adding DT alias:%s: stem=%s id=%i node=%pOF\n",
1724 ap->alias, ap->stem, ap->id, np);
1734 * number of alias properties found, or an error code in case of failure.
1780 /* walk the alias backwards to extract the id and work out
1794 ap->alias = start;
1800 * of_alias_get_id - Get alias id for the given device_node
1804 * The function travels the lookup table to get the alias id for the given
1805 * device_node and alias stem.
1807 * Return: The alias id if found.
1831 * of_alias_get_highest_id - Get highest alias id for the given stem
1834 * The function travels the lookup table to get the highest alias id for the
1835 * given alias stem. It returns the alias id if found.