Lines Matching refs:group
145 * pins in the function's group to disable the higher-priority signals such
222 * Conversely, failing to allocate all pins in a group indicates some bits (as
223 * well as pins) required for the group's configuration will already be in use,
225 * group.
245 * the group and the function. In this way copy/paste errors cause duplicate
249 * no override errors in the pin, group and function arrays.
514 #define SIG_DESC_LIST_SYM(sig, group) sig_descs_ ## sig ## _ ## group
515 #define SIG_DESC_LIST_DECL(sig, group, ...) \
516 static const struct aspeed_sig_desc SIG_DESC_LIST_SYM(sig, group)[] = \
519 #define SIG_EXPR_SYM(sig, group) sig_expr_ ## sig ## _ ## group
520 #define SIG_EXPR_DECL_(sig, group, func) \
521 static const struct aspeed_sig_expr SIG_EXPR_SYM(sig, group) = \
525 .ndescs = ARRAY_SIZE(SIG_DESC_LIST_SYM(sig, group)), \
526 .descs = &(SIG_DESC_LIST_SYM(sig, group))[0], \
546 #define SIG_EXPR_DECL(sig, group, func, ...) \
547 SIG_DESC_LIST_DECL(sig, group, __VA_ARGS__); \
548 SIG_EXPR_DECL_(sig, group, func)
556 #define SIG_EXPR_PTR(sig, group) (&SIG_EXPR_SYM(sig, group))
558 #define SIG_EXPR_LIST_SYM(sig, group) sig_exprs_ ## sig ## _ ## group
575 #define SIG_EXPR_LIST_DECL(sig, group, ...) \
576 static const struct aspeed_sig_expr *SIG_EXPR_LIST_SYM(sig, group)[] =\
583 * Create an expression symbol alias from (signal, group) to (pin, signal).
587 * @group: The name of the group of which the pin is a member that is
591 * the signal for a group multiple times) whilst enabling multiple pin groups
595 #define SIG_EXPR_LIST_ALIAS(pin, sig, group) \
597 SIG_EXPR_LIST_SYM(pin, sig)[ARRAY_SIZE(SIG_EXPR_LIST_SYM(sig, group))] \
598 __attribute__((alias(istringify(SIG_EXPR_LIST_SYM(sig, group)))))
602 * list with a single expression (SE) and a single group (SG) of pins.
609 * For example, signal NCTS6 participates in its own function with one group:
625 * @group: The name of the function's pin group in which the pin participates
629 #define SIG_EXPR_LIST_DECL_SEMG(pin, sig, group, func, ...) \
630 SIG_DESC_LIST_DECL(sig, group, __VA_ARGS__); \
631 SIG_EXPR_DECL_(sig, group, func); \
632 SIG_EXPR_LIST_DECL(sig, group, SIG_EXPR_PTR(sig, group)); \
633 SIG_EXPR_LIST_ALIAS(pin, sig, group)
637 * and a single group (SG) of pins.
641 * @group: The name of the function's pin group in which the pin participates
651 #define SIG_EXPR_LIST_PTR(sig, group) SIG_EXPR_LIST_SYM(sig, group)
733 #define GROUP_SYM(group) group_pins_ ## group
734 #define GROUP_DECL(group, ...) \
735 static const int GROUP_SYM(group)[] = { __VA_ARGS__ }
741 #define FUNC_DECL_1(func, group) FUNC_DECL_(func, #group)