Lines Matching full:cell

64  * _IDX_<i>_VAL_<val>_EXISTS: cell value exists, by index
68 * _NAME_<name>_VAL_<val>_EXISTS: cell value exists, by name
1354 * @brief Get a phandle-array specifier cell value at an index
1357 * `node->phandle_array[index].cell`. That is, the cell value is in
1387 * - index 0 has specifier <17 0x1>, so its `pin` cell is 17, and its
1388 * `flags` cell is 0x1
1403 * @param cell lowercase-and-underscores cell name within the specifier
1405 * @return the cell's value
1407 #define DT_PHA_BY_IDX(node_id, pha, idx, cell) \
1408 DT_CAT7(node_id, _P_, pha, _IDX_, idx, _VAL_, cell)
1414 * idx, cell). The @p default_value parameter is not expanded in this
1420 * Implementation note: the _IDX_##idx##_VAL_##cell##_EXISTS macros are
1428 * @param cell lowercase-and-underscores cell name within the specifier
1431 * @return the cell's value or @p default_value
1433 #define DT_PHA_BY_IDX_OR(node_id, pha, idx, cell, default_value) \
1434 DT_PROP_OR(node_id, DT_CAT5(pha, _IDX_, idx, _VAL_, cell), default_value)
1437 * @brief Equivalent to DT_PHA_BY_IDX(node_id, pha, 0, cell)
1440 * @param cell lowercase-and-underscores cell name
1441 * @return the cell's value
1443 #define DT_PHA(node_id, pha, cell) DT_PHA_BY_IDX(node_id, pha, 0, cell)
1448 * If the value exists, this expands to DT_PHA(node_id, pha, cell).
1455 * @param cell lowercase-and-underscores cell name
1457 * @return the cell's value or @p default_value
1459 #define DT_PHA_OR(node_id, pha, cell, default_value) \
1460 DT_PHA_BY_IDX_OR(node_id, pha, 0, cell, default_value)
1469 * `node->phandle_struct.name.cell`. That is, the cell value is in the
1499 * @param cell lowercase-and-underscores cell name in the named specifier
1500 * @return the cell's value
1502 #define DT_PHA_BY_NAME(node_id, pha, name, cell) \
1503 DT_CAT7(node_id, _P_, pha, _NAME_, name, _VAL_, cell)
1509 * name, cell). The @p default_value parameter is not expanded in this case.
1514 * Implementation note: the `_NAME_##name##_VAL_##cell##_EXISTS` macros are
1522 * @param cell lowercase-and-underscores cell name in the named specifier
1524 * @return the cell's value or @p default_value
1526 #define DT_PHA_BY_NAME_OR(node_id, pha, name, cell, default_value) \
1527 DT_PROP_OR(node_id, DT_CAT5(pha, _NAME_, name, _VAL_, cell), default_value)
1805 * When the node is a PCIe bus, the Child Bus Address has an extra cell used to store some
1806 * flags, thus this cell is extracted from the Child Bus Address as Child Bus Flags field.
1845 * When the node is a PCIe bus, the Child Bus Address has an extra cell used to store some
1846 * flags, thus this cell is removed from the Child Bus Address.
2425 * @brief Does an interrupts property have a named cell specifier at an index?
2426 * If this returns 1, then DT_IRQ_BY_IDX(node_id, idx, cell) is valid.
2430 * @param cell named cell value whose existence to check
2431 * @return 1 if the named cell exists in the interrupt specifier at index idx
2434 #define DT_IRQ_HAS_CELL_AT_IDX(node_id, idx, cell) \
2435 IS_ENABLED(DT_CAT6(node_id, _IRQ_IDX_, idx, _VAL_, cell, _EXISTS))
2438 * @brief Equivalent to DT_IRQ_HAS_CELL_AT_IDX(node_id, 0, cell)
2440 * @param cell named cell value whose existence to check
2441 * @return 1 if the named cell exists in the interrupt specifier at index 0
2444 #define DT_IRQ_HAS_CELL(node_id, cell) DT_IRQ_HAS_CELL_AT_IDX(node_id, 0, cell)
2448 * If this returns 1, then DT_IRQ_BY_NAME(node_id, name, cell) is valid.
2462 * "node->interrupts[index].cell".
2490 * @param cell cell name specifier
2493 #define DT_IRQ_BY_IDX(node_id, idx, cell) \
2494 DT_CAT5(node_id, _IRQ_IDX_, idx, _VAL_, cell)
2500 * `node->interrupts.name.cell`.
2508 * @param cell cell name specifier
2511 #define DT_IRQ_BY_NAME(node_id, name, cell) \
2512 DT_CAT5(node_id, _IRQ_NAME_, name, _VAL_, cell)
2516 * Equivalent to DT_IRQ_BY_IDX(node_id, 0, cell).
2518 * @param cell cell name specifier
2521 #define DT_IRQ(node_id, cell) DT_IRQ_BY_IDX(node_id, 0, cell)
2704 * and the IRQ number is in a cell named `irq`.
3484 * @brief Does a phandle array have a named cell specifier at an index?
3486 * If this returns 1, then the phandle-array property @p pha has a cell
3487 * named @p cell at index @p idx, and therefore DT_PHA_BY_IDX(node_id,
3488 * pha, idx, cell) is valid. If it returns 0, it's an error to use
3494 * @param cell lowercase-and-underscores cell name whose existence to check
3496 * @return 1 if the named cell exists in the specifier at index idx,
3499 #define DT_PHA_HAS_CELL_AT_IDX(node_id, pha, idx, cell) \
3501 _IDX_, idx, _VAL_, cell, _EXISTS))
3504 * @brief Equivalent to DT_PHA_HAS_CELL_AT_IDX(node_id, pha, 0, cell)
3507 * @param cell lowercase-and-underscores cell name whose existence to check
3509 * @return 1 if the named cell exists in the specifier at index 0,
3512 #define DT_PHA_HAS_CELL(node_id, pha, cell) \
3513 DT_PHA_HAS_CELL_AT_IDX(node_id, pha, 0, cell)
4005 * @param cell binding's cell name within the specifier at index @p idx
4006 * @return the value of the cell inside the specifier at index @p idx
4008 #define DT_INST_PHA_BY_IDX(inst, pha, idx, cell) \
4009 DT_PHA_BY_IDX(DT_DRV_INST(inst), pha, idx, cell)
4016 * @param cell binding's cell name within the specifier at index @p idx
4018 * @return DT_INST_PHA_BY_IDX(inst, pha, idx, cell) or default_value
4020 #define DT_INST_PHA_BY_IDX_OR(inst, pha, idx, cell, default_value) \
4021 DT_PHA_BY_IDX_OR(DT_DRV_INST(inst), pha, idx, cell, default_value)
4025 * Equivalent to DT_INST_PHA_BY_IDX(inst, pha, 0, cell)
4028 * @param cell binding's cell name for the specifier at @p pha index 0
4029 * @return the cell value
4031 #define DT_INST_PHA(inst, pha, cell) DT_INST_PHA_BY_IDX(inst, pha, 0, cell)
4037 * @param cell binding's cell name for the specifier at @p pha index 0
4039 * @return DT_INST_PHA(inst, pha, cell) or default_value
4041 #define DT_INST_PHA_OR(inst, pha, cell, default_value) \
4042 DT_INST_PHA_BY_IDX_OR(inst, pha, 0, cell, default_value)
4050 * @param cell binding's cell name for the named specifier
4051 * @return the cell value
4053 #define DT_INST_PHA_BY_NAME(inst, pha, name, cell) \
4054 DT_PHA_BY_NAME(DT_DRV_INST(inst), pha, name, cell)
4061 * @param cell binding's cell name for the named specifier
4063 * @return DT_INST_PHA_BY_NAME(inst, pha, name, cell) or default_value
4065 #define DT_INST_PHA_BY_NAME_OR(inst, pha, name, cell, default_value) \
4066 DT_PHA_BY_NAME_OR(DT_DRV_INST(inst), pha, name, cell, default_value)
4230 * @param cell cell name specifier
4233 #define DT_INST_IRQ_BY_IDX(inst, idx, cell) \
4234 DT_IRQ_BY_IDX(DT_DRV_INST(inst), idx, cell)
4268 * @param cell cell name specifier
4271 #define DT_INST_IRQ_BY_NAME(inst, name, cell) \
4272 DT_IRQ_BY_NAME(DT_DRV_INST(inst), name, cell)
4277 * @param cell cell name specifier
4280 #define DT_INST_IRQ(inst, cell) DT_INST_IRQ_BY_IDX(inst, 0, cell)
4661 * @brief Does a phandle array have a named cell specifier at an index
4666 * @param cell named cell value whose existence to check
4667 * @return 1 if the named @p cell exists in the specifier at index @p idx,
4670 #define DT_INST_PHA_HAS_CELL_AT_IDX(inst, pha, idx, cell) \
4671 DT_PHA_HAS_CELL_AT_IDX(DT_DRV_INST(inst), pha, idx, cell)
4674 * @brief Does a phandle array have a named cell specifier at index 0
4678 * @param cell named cell value whose existence to check
4679 * @return 1 if the named @p cell exists in the specifier at index 0,
4682 #define DT_INST_PHA_HAS_CELL(inst, pha, cell) \
4683 DT_INST_PHA_HAS_CELL_AT_IDX(inst, pha, 0, cell)
4695 * @brief Does a `DT_DRV_COMPAT` instance have an interrupt named cell specifier?
4698 * @param cell named cell value whose existence to check
4699 * @return 1 if the named @p cell exists in the interrupt specifier at index
4702 #define DT_INST_IRQ_HAS_CELL_AT_IDX(inst, idx, cell) \
4703 DT_IRQ_HAS_CELL_AT_IDX(DT_DRV_INST(inst), idx, cell)
4708 * @param cell named cell value whose existence to check
4709 * @return 1 if the named @p cell exists in the interrupt specifier at index 0
4712 #define DT_INST_IRQ_HAS_CELL(inst, cell) \
4713 DT_INST_IRQ_HAS_CELL_AT_IDX(inst, 0, cell)