Lines Matching full:cell
60 * _IDX_<i>_VAL_<val>_EXISTS: cell value exists, by index
64 * _NAME_<name>_VAL_<val>_EXISTS: cell value exists, by name
1501 * @brief Get a phandle-array specifier cell value at an index
1504 * `node->phandle_array[index].cell`. That is, the cell value is in
1534 * - index 0 has specifier <17 0x1>, so its `pin` cell is 17, and its
1535 * `flags` cell is 0x1
1550 * @param cell lowercase-and-underscores cell name within the specifier
1552 * @return the cell's value
1554 #define DT_PHA_BY_IDX(node_id, pha, idx, cell) \
1555 DT_CAT7(node_id, _P_, pha, _IDX_, idx, _VAL_, cell)
1561 * idx, cell). The @p default_value parameter is not expanded in this
1567 * Implementation note: the _IDX_##idx##_VAL_##cell##_EXISTS macros are
1575 * @param cell lowercase-and-underscores cell name within the specifier
1578 * @return the cell's value or @p default_value
1580 #define DT_PHA_BY_IDX_OR(node_id, pha, idx, cell, default_value) \
1581 DT_PROP_OR(node_id, DT_CAT5(pha, _IDX_, idx, _VAL_, cell), default_value)
1584 * @brief Equivalent to DT_PHA_BY_IDX(node_id, pha, 0, cell)
1587 * @param cell lowercase-and-underscores cell name
1588 * @return the cell's value
1590 #define DT_PHA(node_id, pha, cell) DT_PHA_BY_IDX(node_id, pha, 0, cell)
1595 * If the value exists, this expands to DT_PHA(node_id, pha, cell).
1602 * @param cell lowercase-and-underscores cell name
1604 * @return the cell's value or @p default_value
1606 #define DT_PHA_OR(node_id, pha, cell, default_value) \
1607 DT_PHA_BY_IDX_OR(node_id, pha, 0, cell, default_value)
1616 * `node->phandle_struct.name.cell`. That is, the cell value is in the
1646 * @param cell lowercase-and-underscores cell name in the named specifier
1647 * @return the cell's value
1649 #define DT_PHA_BY_NAME(node_id, pha, name, cell) \
1650 DT_CAT7(node_id, _P_, pha, _NAME_, name, _VAL_, cell)
1656 * name, cell). The @p default_value parameter is not expanded in this case.
1661 * Implementation note: the `_NAME_##name##_VAL_##cell##_EXISTS` macros are
1669 * @param cell lowercase-and-underscores cell name in the named specifier
1671 * @return the cell's value or @p default_value
1673 #define DT_PHA_BY_NAME_OR(node_id, pha, name, cell, default_value) \
1674 DT_PROP_OR(node_id, DT_CAT5(pha, _NAME_, name, _VAL_, cell), default_value)
1952 * When the node is a PCIe bus, the Child Bus Address has an extra cell used to store some
1953 * flags, thus this cell is extracted from the Child Bus Address as Child Bus Flags field.
1992 * When the node is a PCIe bus, the Child Bus Address has an extra cell used to store some
1993 * flags, thus this cell is removed from the Child Bus Address.
2600 * @brief Does an interrupts property have a named cell specifier at an index?
2601 * If this returns 1, then DT_IRQ_BY_IDX(node_id, idx, cell) is valid.
2605 * @param cell named cell value whose existence to check
2606 * @return 1 if the named cell exists in the interrupt specifier at index idx
2609 #define DT_IRQ_HAS_CELL_AT_IDX(node_id, idx, cell) \
2610 IS_ENABLED(DT_CAT6(node_id, _IRQ_IDX_, idx, _VAL_, cell, _EXISTS))
2613 * @brief Equivalent to DT_IRQ_HAS_CELL_AT_IDX(node_id, 0, cell)
2615 * @param cell named cell value whose existence to check
2616 * @return 1 if the named cell exists in the interrupt specifier at index 0
2619 #define DT_IRQ_HAS_CELL(node_id, cell) DT_IRQ_HAS_CELL_AT_IDX(node_id, 0, cell)
2623 * If this returns 1, then DT_IRQ_BY_NAME(node_id, name, cell) is valid.
2637 * "node->interrupts[index].cell".
2665 * @param cell cell name specifier
2668 #define DT_IRQ_BY_IDX(node_id, idx, cell) \
2669 DT_CAT5(node_id, _IRQ_IDX_, idx, _VAL_, cell)
2675 * `node->interrupts.name.cell`.
2683 * @param cell cell name specifier
2686 #define DT_IRQ_BY_NAME(node_id, name, cell) \
2687 DT_CAT5(node_id, _IRQ_NAME_, name, _VAL_, cell)
2691 * Equivalent to DT_IRQ_BY_IDX(node_id, 0, cell).
2693 * @param cell cell name specifier
2696 #define DT_IRQ(node_id, cell) DT_IRQ_BY_IDX(node_id, 0, cell)
2879 * and the IRQ number is in a cell named `irq`.
3749 * @brief Does a phandle array have a named cell specifier at an index?
3751 * If this returns 1, then the phandle-array property @p pha has a cell
3752 * named @p cell at index @p idx, and therefore DT_PHA_BY_IDX(node_id,
3753 * pha, idx, cell) is valid. If it returns 0, it's an error to use
3759 * @param cell lowercase-and-underscores cell name whose existence to check
3761 * @return 1 if the named cell exists in the specifier at index idx,
3764 #define DT_PHA_HAS_CELL_AT_IDX(node_id, pha, idx, cell) \
3766 _IDX_, idx, _VAL_, cell, _EXISTS))
3769 * @brief Equivalent to DT_PHA_HAS_CELL_AT_IDX(node_id, pha, 0, cell)
3772 * @param cell lowercase-and-underscores cell name whose existence to check
3774 * @return 1 if the named cell exists in the specifier at index 0,
3777 #define DT_PHA_HAS_CELL(node_id, pha, cell) \
3778 DT_PHA_HAS_CELL_AT_IDX(node_id, pha, 0, cell)
4303 * @param cell binding's cell name within the specifier at index @p idx
4304 * @return the value of the cell inside the specifier at index @p idx
4306 #define DT_INST_PHA_BY_IDX(inst, pha, idx, cell) \
4307 DT_PHA_BY_IDX(DT_DRV_INST(inst), pha, idx, cell)
4314 * @param cell binding's cell name within the specifier at index @p idx
4316 * @return DT_INST_PHA_BY_IDX(inst, pha, idx, cell) or default_value
4318 #define DT_INST_PHA_BY_IDX_OR(inst, pha, idx, cell, default_value) \
4319 DT_PHA_BY_IDX_OR(DT_DRV_INST(inst), pha, idx, cell, default_value)
4323 * Equivalent to DT_INST_PHA_BY_IDX(inst, pha, 0, cell)
4326 * @param cell binding's cell name for the specifier at @p pha index 0
4327 * @return the cell value
4329 #define DT_INST_PHA(inst, pha, cell) DT_INST_PHA_BY_IDX(inst, pha, 0, cell)
4335 * @param cell binding's cell name for the specifier at @p pha index 0
4337 * @return DT_INST_PHA(inst, pha, cell) or default_value
4339 #define DT_INST_PHA_OR(inst, pha, cell, default_value) \
4340 DT_INST_PHA_BY_IDX_OR(inst, pha, 0, cell, default_value)
4348 * @param cell binding's cell name for the named specifier
4349 * @return the cell value
4351 #define DT_INST_PHA_BY_NAME(inst, pha, name, cell) \
4352 DT_PHA_BY_NAME(DT_DRV_INST(inst), pha, name, cell)
4359 * @param cell binding's cell name for the named specifier
4361 * @return DT_INST_PHA_BY_NAME(inst, pha, name, cell) or default_value
4363 #define DT_INST_PHA_BY_NAME_OR(inst, pha, name, cell, default_value) \
4364 DT_PHA_BY_NAME_OR(DT_DRV_INST(inst), pha, name, cell, default_value)
4551 * @param cell cell name specifier
4554 #define DT_INST_IRQ_BY_IDX(inst, idx, cell) \
4555 DT_IRQ_BY_IDX(DT_DRV_INST(inst), idx, cell)
4589 * @param cell cell name specifier
4592 #define DT_INST_IRQ_BY_NAME(inst, name, cell) \
4593 DT_IRQ_BY_NAME(DT_DRV_INST(inst), name, cell)
4598 * @param cell cell name specifier
4601 #define DT_INST_IRQ(inst, cell) DT_INST_IRQ_BY_IDX(inst, 0, cell)
5080 * @brief Does a phandle array have a named cell specifier at an index
5085 * @param cell named cell value whose existence to check
5086 * @return 1 if the named @p cell exists in the specifier at index @p idx,
5089 #define DT_INST_PHA_HAS_CELL_AT_IDX(inst, pha, idx, cell) \
5090 DT_PHA_HAS_CELL_AT_IDX(DT_DRV_INST(inst), pha, idx, cell)
5093 * @brief Does a phandle array have a named cell specifier at index 0
5097 * @param cell named cell value whose existence to check
5098 * @return 1 if the named @p cell exists in the specifier at index 0,
5101 #define DT_INST_PHA_HAS_CELL(inst, pha, cell) \
5102 DT_INST_PHA_HAS_CELL_AT_IDX(inst, pha, 0, cell)
5114 * @brief Does a `DT_DRV_COMPAT` instance have an interrupt named cell specifier?
5117 * @param cell named cell value whose existence to check
5118 * @return 1 if the named @p cell exists in the interrupt specifier at index
5121 #define DT_INST_IRQ_HAS_CELL_AT_IDX(inst, idx, cell) \
5122 DT_IRQ_HAS_CELL_AT_IDX(DT_DRV_INST(inst), idx, cell)
5127 * @param cell named cell value whose existence to check
5128 * @return 1 if the named @p cell exists in the interrupt specifier at index 0
5131 #define DT_INST_IRQ_HAS_CELL(inst, cell) \
5132 DT_INST_IRQ_HAS_CELL_AT_IDX(inst, 0, cell)