Lines Matching refs:group

144  * pins in the function's group to disable the higher-priority signals such
221 * Conversely, failing to allocate all pins in a group indicates some bits (as
222 * well as pins) required for the group's configuration will already be in use,
224 * group.
244 * the group and the function. In this way copy/paste errors cause duplicate
248 * no override errors in the pin, group and function arrays.
513 #define SIG_DESC_LIST_SYM(sig, group) sig_descs_ ## sig ## _ ## group
514 #define SIG_DESC_LIST_DECL(sig, group, ...) \
515 static const struct aspeed_sig_desc SIG_DESC_LIST_SYM(sig, group)[] = \
518 #define SIG_EXPR_SYM(sig, group) sig_expr_ ## sig ## _ ## group
519 #define SIG_EXPR_DECL_(sig, group, func) \
520 static const struct aspeed_sig_expr SIG_EXPR_SYM(sig, group) = \
524 .ndescs = ARRAY_SIZE(SIG_DESC_LIST_SYM(sig, group)), \
525 .descs = &(SIG_DESC_LIST_SYM(sig, group))[0], \
545 #define SIG_EXPR_DECL(sig, group, func, ...) \
546 SIG_DESC_LIST_DECL(sig, group, __VA_ARGS__); \
547 SIG_EXPR_DECL_(sig, group, func)
555 #define SIG_EXPR_PTR(sig, group) (&SIG_EXPR_SYM(sig, group))
557 #define SIG_EXPR_LIST_SYM(sig, group) sig_exprs_ ## sig ## _ ## group
574 #define SIG_EXPR_LIST_DECL(sig, group, ...) \
575 static const struct aspeed_sig_expr *SIG_EXPR_LIST_SYM(sig, group)[] =\
582 * Create an expression symbol alias from (signal, group) to (pin, signal).
586 * @group: The name of the group of which the pin is a member that is
590 * the signal for a group multiple times) whilst enabling multiple pin groups
594 #define SIG_EXPR_LIST_ALIAS(pin, sig, group) \
596 SIG_EXPR_LIST_SYM(pin, sig)[ARRAY_SIZE(SIG_EXPR_LIST_SYM(sig, group))] \
597 __attribute__((alias(istringify(SIG_EXPR_LIST_SYM(sig, group)))))
601 * list with a single expression (SE) and a single group (SG) of pins.
608 * For example, signal NCTS6 participates in its own function with one group:
624 * @group: The name of the function's pin group in which the pin participates
628 #define SIG_EXPR_LIST_DECL_SEMG(pin, sig, group, func, ...) \
629 SIG_DESC_LIST_DECL(sig, group, __VA_ARGS__); \
630 SIG_EXPR_DECL_(sig, group, func); \
631 SIG_EXPR_LIST_DECL(sig, group, SIG_EXPR_PTR(sig, group)); \
632 SIG_EXPR_LIST_ALIAS(pin, sig, group)
636 * and a single group (SG) of pins.
640 * @group: The name of the function's pin group in which the pin participates
650 #define SIG_EXPR_LIST_PTR(sig, group) SIG_EXPR_LIST_SYM(sig, group)
741 #define GROUP_SYM(group) group_pins_ ## group
742 #define GROUP_DECL(group, ...) \
743 static const int GROUP_SYM(group)[] = { __VA_ARGS__ }
749 #define FUNC_DECL_1(func, group) FUNC_DECL_(func, #group)