Lines Matching refs:cell
60 * _IDX_<i>_VAL_<val>_EXISTS: cell value exists, by index
64 * _NAME_<name>_VAL_<val>_EXISTS: cell value exists, by name
1511 * @brief Get a phandle-array specifier cell value at an index
1514 * `node->phandle_array[index].cell`. That is, the cell value is in
1544 * - index 0 has specifier <17 0x1>, so its `pin` cell is 17, and its
1545 * `flags` cell is 0x1
1560 * @param cell lowercase-and-underscores cell name within the specifier
1562 * @return the cell's value
1564 #define DT_PHA_BY_IDX(node_id, pha, idx, cell) \
1565 DT_CAT7(node_id, _P_, pha, _IDX_, idx, _VAL_, cell)
1571 * idx, cell). The @p default_value parameter is not expanded in this
1577 * Implementation note: the _IDX_##idx##_VAL_##cell##_EXISTS macros are
1585 * @param cell lowercase-and-underscores cell name within the specifier
1588 * @return the cell's value or @p default_value
1590 #define DT_PHA_BY_IDX_OR(node_id, pha, idx, cell, default_value) \
1591 DT_PROP_OR(node_id, DT_CAT5(pha, _IDX_, idx, _VAL_, cell), default_value)
1594 * @brief Equivalent to DT_PHA_BY_IDX(node_id, pha, 0, cell)
1597 * @param cell lowercase-and-underscores cell name
1598 * @return the cell's value
1600 #define DT_PHA(node_id, pha, cell) DT_PHA_BY_IDX(node_id, pha, 0, cell)
1605 * If the value exists, this expands to DT_PHA(node_id, pha, cell).
1612 * @param cell lowercase-and-underscores cell name
1614 * @return the cell's value or @p default_value
1616 #define DT_PHA_OR(node_id, pha, cell, default_value) \
1617 DT_PHA_BY_IDX_OR(node_id, pha, 0, cell, default_value)
1626 * `node->phandle_struct.name.cell`. That is, the cell value is in the
1656 * @param cell lowercase-and-underscores cell name in the named specifier
1657 * @return the cell's value
1659 #define DT_PHA_BY_NAME(node_id, pha, name, cell) \
1660 DT_CAT7(node_id, _P_, pha, _NAME_, name, _VAL_, cell)
1666 * name, cell). The @p default_value parameter is not expanded in this case.
1671 * Implementation note: the `_NAME_##name##_VAL_##cell##_EXISTS` macros are
1679 * @param cell lowercase-and-underscores cell name in the named specifier
1681 * @return the cell's value or @p default_value
1683 #define DT_PHA_BY_NAME_OR(node_id, pha, name, cell, default_value) \
1684 DT_PROP_OR(node_id, DT_CAT5(pha, _NAME_, name, _VAL_, cell), default_value)
1962 * When the node is a PCIe bus, the Child Bus Address has an extra cell used to store some
1963 * flags, thus this cell is extracted from the Child Bus Address as Child Bus Flags field.
2002 * When the node is a PCIe bus, the Child Bus Address has an extra cell used to store some
2003 * flags, thus this cell is removed from the Child Bus Address.
2610 * @brief Does an interrupts property have a named cell specifier at an index?
2611 * If this returns 1, then DT_IRQ_BY_IDX(node_id, idx, cell) is valid.
2615 * @param cell named cell value whose existence to check
2616 * @return 1 if the named cell exists in the interrupt specifier at index idx
2619 #define DT_IRQ_HAS_CELL_AT_IDX(node_id, idx, cell) \
2620 IS_ENABLED(DT_CAT6(node_id, _IRQ_IDX_, idx, _VAL_, cell, _EXISTS))
2623 * @brief Equivalent to DT_IRQ_HAS_CELL_AT_IDX(node_id, 0, cell)
2625 * @param cell named cell value whose existence to check
2626 * @return 1 if the named cell exists in the interrupt specifier at index 0
2629 #define DT_IRQ_HAS_CELL(node_id, cell) DT_IRQ_HAS_CELL_AT_IDX(node_id, 0, cell)
2633 * If this returns 1, then DT_IRQ_BY_NAME(node_id, name, cell) is valid.
2647 * "node->interrupts[index].cell".
2675 * @param cell cell name specifier
2678 #define DT_IRQ_BY_IDX(node_id, idx, cell) \
2679 DT_CAT5(node_id, _IRQ_IDX_, idx, _VAL_, cell)
2685 * `node->interrupts.name.cell`.
2693 * @param cell cell name specifier
2696 #define DT_IRQ_BY_NAME(node_id, name, cell) \
2697 DT_CAT5(node_id, _IRQ_NAME_, name, _VAL_, cell)
2701 * Equivalent to DT_IRQ_BY_IDX(node_id, 0, cell).
2703 * @param cell cell name specifier
2706 #define DT_IRQ(node_id, cell) DT_IRQ_BY_IDX(node_id, 0, cell)
2889 * and the IRQ number is in a cell named `irq`.
3789 * @brief Does a phandle array have a named cell specifier at an index?
3791 * If this returns 1, then the phandle-array property @p pha has a cell
3792 * named @p cell at index @p idx, and therefore DT_PHA_BY_IDX(node_id,
3793 * pha, idx, cell) is valid. If it returns 0, it's an error to use
3799 * @param cell lowercase-and-underscores cell name whose existence to check
3801 * @return 1 if the named cell exists in the specifier at index idx,
3804 #define DT_PHA_HAS_CELL_AT_IDX(node_id, pha, idx, cell) \
3806 _IDX_, idx, _VAL_, cell, _EXISTS))
3809 * @brief Equivalent to DT_PHA_HAS_CELL_AT_IDX(node_id, pha, 0, cell)
3812 * @param cell lowercase-and-underscores cell name whose existence to check
3814 * @return 1 if the named cell exists in the specifier at index 0,
3817 #define DT_PHA_HAS_CELL(node_id, pha, cell) \
3818 DT_PHA_HAS_CELL_AT_IDX(node_id, pha, 0, cell)
4343 * @param cell binding's cell name within the specifier at index @p idx
4344 * @return the value of the cell inside the specifier at index @p idx
4346 #define DT_INST_PHA_BY_IDX(inst, pha, idx, cell) \
4347 DT_PHA_BY_IDX(DT_DRV_INST(inst), pha, idx, cell)
4354 * @param cell binding's cell name within the specifier at index @p idx
4356 * @return DT_INST_PHA_BY_IDX(inst, pha, idx, cell) or default_value
4358 #define DT_INST_PHA_BY_IDX_OR(inst, pha, idx, cell, default_value) \
4359 DT_PHA_BY_IDX_OR(DT_DRV_INST(inst), pha, idx, cell, default_value)
4363 * Equivalent to DT_INST_PHA_BY_IDX(inst, pha, 0, cell)
4366 * @param cell binding's cell name for the specifier at @p pha index 0
4367 * @return the cell value
4369 #define DT_INST_PHA(inst, pha, cell) DT_INST_PHA_BY_IDX(inst, pha, 0, cell)
4375 * @param cell binding's cell name for the specifier at @p pha index 0
4377 * @return DT_INST_PHA(inst, pha, cell) or default_value
4379 #define DT_INST_PHA_OR(inst, pha, cell, default_value) \
4380 DT_INST_PHA_BY_IDX_OR(inst, pha, 0, cell, default_value)
4388 * @param cell binding's cell name for the named specifier
4389 * @return the cell value
4391 #define DT_INST_PHA_BY_NAME(inst, pha, name, cell) \
4392 DT_PHA_BY_NAME(DT_DRV_INST(inst), pha, name, cell)
4399 * @param cell binding's cell name for the named specifier
4401 * @return DT_INST_PHA_BY_NAME(inst, pha, name, cell) or default_value
4403 #define DT_INST_PHA_BY_NAME_OR(inst, pha, name, cell, default_value) \
4404 DT_PHA_BY_NAME_OR(DT_DRV_INST(inst), pha, name, cell, default_value)
4591 * @param cell cell name specifier
4594 #define DT_INST_IRQ_BY_IDX(inst, idx, cell) \
4595 DT_IRQ_BY_IDX(DT_DRV_INST(inst), idx, cell)
4629 * @param cell cell name specifier
4632 #define DT_INST_IRQ_BY_NAME(inst, name, cell) \
4633 DT_IRQ_BY_NAME(DT_DRV_INST(inst), name, cell)
4638 * @param cell cell name specifier
4641 #define DT_INST_IRQ(inst, cell) DT_INST_IRQ_BY_IDX(inst, 0, cell)
5120 * @brief Does a phandle array have a named cell specifier at an index
5125 * @param cell named cell value whose existence to check
5126 * @return 1 if the named @p cell exists in the specifier at index @p idx,
5129 #define DT_INST_PHA_HAS_CELL_AT_IDX(inst, pha, idx, cell) \
5130 DT_PHA_HAS_CELL_AT_IDX(DT_DRV_INST(inst), pha, idx, cell)
5133 * @brief Does a phandle array have a named cell specifier at index 0
5137 * @param cell named cell value whose existence to check
5138 * @return 1 if the named @p cell exists in the specifier at index 0,
5141 #define DT_INST_PHA_HAS_CELL(inst, pha, cell) \
5142 DT_INST_PHA_HAS_CELL_AT_IDX(inst, pha, 0, cell)
5154 * @brief Does a `DT_DRV_COMPAT` instance have an interrupt named cell specifier?
5157 * @param cell named cell value whose existence to check
5158 * @return 1 if the named @p cell exists in the interrupt specifier at index
5161 #define DT_INST_IRQ_HAS_CELL_AT_IDX(inst, idx, cell) \
5162 DT_IRQ_HAS_CELL_AT_IDX(DT_DRV_INST(inst), idx, cell)
5167 * @param cell named cell value whose existence to check
5168 * @return 1 if the named @p cell exists in the interrupt specifier at index 0
5171 #define DT_INST_IRQ_HAS_CELL(inst, cell) \
5172 DT_INST_IRQ_HAS_CELL_AT_IDX(inst, 0, cell)