Lines Matching +full:0 +full:a

21  * @brief Get a node identifier for a phandle in a pinctrl property by index
26 * pinctrl-0 = <&foo &bar>;
32 * DT_PINCTRL_BY_IDX(DT_NODELABEL(n), 0, 1) // DT_NODELABEL(bar)
33 * DT_PINCTRL_BY_IDX(DT_NODELABEL(n), 1, 0) // DT_NODELABEL(baz)
35 * @param node_id node with a pinctrl-'pc_idx' property
44 * @brief Get a node identifier from a pinctrl-0 property
48 * DT_PINCTRL_BY_IDX(node_id, 0, idx)
50 * It is provided for convenience since pinctrl-0 is commonly used.
52 * @param node_id node with a pinctrl-0 property
53 * @param idx index into the pinctrl-0 property
54 * @return node identifier for the phandle at index idx in the pinctrl-0
57 #define DT_PINCTRL_0(node_id, idx) DT_PINCTRL_BY_IDX(node_id, 0, idx)
60 * @brief Get a node identifier for a phandle inside a pinctrl node by name
65 * pinctrl-0 = <&foo &bar>;
73 * DT_PINCTRL_BY_NAME(DT_NODELABEL(n), sleep, 0) // DT_NODELABEL(baz)
75 * @param node_id node with a named pinctrl property
85 * @brief Convert a pinctrl name to its corresponding index
90 * pinctrl-0 = <&foo &bar>;
97 * DT_PINCTRL_NAME_TO_IDX(DT_NODELABEL(n), default) // 0
100 * @param node_id node identifier with a named pinctrl property
108 * @brief Convert a pinctrl property index to its name as a token
110 * This allows you to get a pinctrl property's name, and "remove the
113 * DT_PINCTRL_IDX_TO_NAME_TOKEN() can only be used if the node has a
114 * pinctrl-'pc_idx' property and a pinctrl-names property element for
120 * pinctrl-0 = <...>;
127 * DT_PINCTRL_IDX_TO_NAME_TOKEN(DT_NODELABEL(n), 0) // default
134 * @param pc_idx index of a pinctrl property in that node
135 * @return name of the pinctrl property, as a token, without any quotes
144 * This does the a similar conversion as
151 * pinctrl-0 = <...>;
158 * DT_PINCTRL_IDX_TO_NAME_TOKEN(DT_NODELABEL(n), 0) // DEFAULT
168 * @brief Get the number of phandles in a pinctrl property
173 * pinctrl-0 = <&foo &bar>;
177 * pinctrl-0 = <&baz>;
182 * DT_NUM_PINCTRLS_BY_IDX(DT_NODELABEL(n1), 0) // 2
183 * DT_NUM_PINCTRLS_BY_IDX(DT_NODELABEL(n2), 0) // 1
185 * @param node_id node identifier with a pinctrl property
198 * pinctrl-0 = <&foo &bar>;
208 * @param node_id node identifier with a pinctrl property
216 * @brief Get the number of pinctrl properties in a node
218 * This expands to 0 if there are no pinctrl-i properties.
224 * pinctrl-0 = <...>;
234 * DT_NUM_PINCTRL_STATES(DT_NODELABEL(n2)) // 0
242 * @brief Test if a node has a pinctrl property with an index
245 * Otherwise, it expands to 0.
250 * pinctrl-0 = <...>;
259 * DT_PINCTRL_HAS_IDX(DT_NODELABEL(n1), 0) // 1
261 * DT_PINCTRL_HAS_IDX(DT_NODELABEL(n1), 2) // 0
262 * DT_PINCTRL_HAS_IDX(DT_NODELABEL(n2), 0) // 0
265 * @param pc_idx index of a pinctrl property whose existence to check
266 * @return 1 if the property exists, 0 otherwise
272 * @brief Test if a node has a pinctrl property with a name
275 * Otherwise, it expands to 0.
280 * pinctrl-0 = <...>;
290 * DT_PINCTRL_HAS_NAME(DT_NODELABEL(n1), sleep) // 0
291 * DT_PINCTRL_HAS_NAME(DT_NODELABEL(n2), default) // 0
295 * @return 1 if the property exists, 0 otherwise
301 * @brief Get a node identifier for a phandle in a pinctrl property by index
302 * for a DT_DRV_COMPAT instance
315 * @brief Get a node identifier from a pinctrl-0 property for a
320 * DT_PINCTRL_BY_IDX(DT_DRV_INST(inst), 0, idx)
322 * It is provided for convenience since pinctrl-0 is commonly used.
325 * @param idx index into the pinctrl-0 property
326 * @return node identifier for the phandle at index idx in the pinctrl-0
330 DT_PINCTRL_BY_IDX(DT_DRV_INST(inst), 0, idx)
333 * @brief Get a node identifier for a phandle inside a pinctrl node
334 * for a DT_DRV_COMPAT instance
348 * @brief Convert a pinctrl name to its corresponding index
349 * for a DT_DRV_COMPAT instance
362 * @brief Convert a pinctrl index to its name as an uppercased token
369 * @return name of the pin control property as a token
375 * @brief Convert a pinctrl index to its name as an uppercased token
388 * @brief Get the number of phandles in a pinctrl property
389 * for a DT_DRV_COMPAT instance
415 * @brief Get the number of pinctrl properties in a DT_DRV_COMPAT instance
426 * @brief Test if a DT_DRV_COMPAT instance has a pinctrl property
432 * @param pc_idx index of a pinctrl property whose existence to check
433 * @return 1 if the property exists, 0 otherwise
439 * @brief Test if a DT_DRV_COMPAT instance has a pinctrl property with a name
445 * @return 1 if the property exists, 0 otherwise