Lines Matching full:macro

18 abstracted behind a macro API, the Linux kernel would instead read the
32 identifier* for it. This is a just a C macro that refers to the node.
37 Use :c:macro:`DT_PATH()` along with the node's full path in the devicetree,
42 Use :c:macro:`DT_NODELABEL()` to get a node identifier from a :ref:`node
48 Use :c:macro:`DT_ALIAS()` to get a node identifier for a property of the
53 You may also use :c:macro:`DT_HAS_ALIAS()` to verify whether an alias
59 :c:macro:`DT_INST()`, but be careful doing so. See below.
62 Use :c:macro:`DT_CHOSEN()` to get a node identifier for ``/chosen`` node
66 Use :c:macro:`DT_PARENT()` and :c:macro:`DT_CHILD()` to get a node identifier
87 :c:macro:`DT_INST()` documentation for details.
138 You can use :c:macro:`DT_NODE_HAS_PROP()` to check if a node has a property. For
170 ``DT_PROP()`` macro expands to a string literal in the case of strings, and the
207 You can use :c:macro:`DT_PROP_LEN()` to get logical array lengths in number of
231 :c:macro:`DT_REG_ADDR` or :c:macro:`DT_REG_SIZE`:
236 Use :c:macro:`DT_REG_ADDR_BY_IDX` or :c:macro:`DT_REG_SIZE_BY_IDX` instead if the
243 The ``idx`` argument to these must be an integer literal or a macro that
265 The most general purpose API macro for accessing these is
266 :c:macro:`DT_IRQ_BY_IDX`:
275 macro, check the bindings file for the node you are interested in to find the
279 interrupt number. You can use :c:macro:`DT_IRQN` as a convenient way to get a
307 You can convert a phandle to a node identifier using :c:macro:`DT_PHANDLE`,
308 :c:macro:`DT_PHANDLE_BY_IDX`, or :c:macro:`DT_PHANDLE_BY_NAME`, depending on the
317 general purpose APIs for this are :c:macro:`DT_PHA_BY_IDX` and :c:macro:`DT_PHA`.
318 There are also hardware-specific shorthands like :c:macro:`DT_GPIO_CTLR_BY_IDX`,
319 :c:macro:`DT_GPIO_CTLR`,
320 :c:macro:`DT_GPIO_PIN_BY_IDX`, :c:macro:`DT_GPIO_PIN`,
321 :c:macro:`DT_GPIO_FLAGS_BY_IDX`, and :c:macro:`DT_GPIO_FLAGS`.
323 See :c:macro:`DT_PHA_HAS_CELL_AT_IDX` and :c:macro:`DT_PROP_HAS_IDX` for ways to
333 - :c:macro:`DT_CHOSEN`, :c:macro:`DT_HAS_CHOSEN`: for properties
335 - :c:macro:`DT_HAS_COMPAT_STATUS_OKAY`, :c:macro:`DT_NODE_HAS_COMPAT`: global- and
337 - :c:macro:`DT_BUS`: get a node's bus controller, if there is one
338 - :c:macro:`DT_ENUM_IDX`: for properties whose values are among a fixed list of
351 :c:macro:`DT_INST`.