• Home
  • Raw
  • Download

Lines Matching refs:bank

448 #define PORT_GP_CFG_1(bank, pin, fn, sfx, cfg)				\  argument
449 fn(bank, pin, GP_##bank##_##pin, sfx, cfg)
450 #define PORT_GP_1(bank, pin, fn, sfx) PORT_GP_CFG_1(bank, pin, fn, sfx, 0) argument
452 #define PORT_GP_CFG_4(bank, fn, sfx, cfg) \ argument
453 PORT_GP_CFG_1(bank, 0, fn, sfx, cfg), \
454 PORT_GP_CFG_1(bank, 1, fn, sfx, cfg), \
455 PORT_GP_CFG_1(bank, 2, fn, sfx, cfg), \
456 PORT_GP_CFG_1(bank, 3, fn, sfx, cfg)
457 #define PORT_GP_4(bank, fn, sfx) PORT_GP_CFG_4(bank, fn, sfx, 0) argument
459 #define PORT_GP_CFG_6(bank, fn, sfx, cfg) \ argument
460 PORT_GP_CFG_4(bank, fn, sfx, cfg), \
461 PORT_GP_CFG_1(bank, 4, fn, sfx, cfg), \
462 PORT_GP_CFG_1(bank, 5, fn, sfx, cfg)
463 #define PORT_GP_6(bank, fn, sfx) PORT_GP_CFG_6(bank, fn, sfx, 0) argument
465 #define PORT_GP_CFG_8(bank, fn, sfx, cfg) \ argument
466 PORT_GP_CFG_6(bank, fn, sfx, cfg), \
467 PORT_GP_CFG_1(bank, 6, fn, sfx, cfg), \
468 PORT_GP_CFG_1(bank, 7, fn, sfx, cfg)
469 #define PORT_GP_8(bank, fn, sfx) PORT_GP_CFG_8(bank, fn, sfx, 0) argument
471 #define PORT_GP_CFG_9(bank, fn, sfx, cfg) \ argument
472 PORT_GP_CFG_8(bank, fn, sfx, cfg), \
473 PORT_GP_CFG_1(bank, 8, fn, sfx, cfg)
474 #define PORT_GP_9(bank, fn, sfx) PORT_GP_CFG_9(bank, fn, sfx, 0) argument
476 #define PORT_GP_CFG_10(bank, fn, sfx, cfg) \ argument
477 PORT_GP_CFG_9(bank, fn, sfx, cfg), \
478 PORT_GP_CFG_1(bank, 9, fn, sfx, cfg)
479 #define PORT_GP_10(bank, fn, sfx) PORT_GP_CFG_10(bank, fn, sfx, 0) argument
481 #define PORT_GP_CFG_11(bank, fn, sfx, cfg) \ argument
482 PORT_GP_CFG_10(bank, fn, sfx, cfg), \
483 PORT_GP_CFG_1(bank, 10, fn, sfx, cfg)
484 #define PORT_GP_11(bank, fn, sfx) PORT_GP_CFG_11(bank, fn, sfx, 0) argument
486 #define PORT_GP_CFG_12(bank, fn, sfx, cfg) \ argument
487 PORT_GP_CFG_11(bank, fn, sfx, cfg), \
488 PORT_GP_CFG_1(bank, 11, fn, sfx, cfg)
489 #define PORT_GP_12(bank, fn, sfx) PORT_GP_CFG_12(bank, fn, sfx, 0) argument
491 #define PORT_GP_CFG_14(bank, fn, sfx, cfg) \ argument
492 PORT_GP_CFG_12(bank, fn, sfx, cfg), \
493 PORT_GP_CFG_1(bank, 12, fn, sfx, cfg), \
494 PORT_GP_CFG_1(bank, 13, fn, sfx, cfg)
495 #define PORT_GP_14(bank, fn, sfx) PORT_GP_CFG_14(bank, fn, sfx, 0) argument
497 #define PORT_GP_CFG_15(bank, fn, sfx, cfg) \ argument
498 PORT_GP_CFG_14(bank, fn, sfx, cfg), \
499 PORT_GP_CFG_1(bank, 14, fn, sfx, cfg)
500 #define PORT_GP_15(bank, fn, sfx) PORT_GP_CFG_15(bank, fn, sfx, 0) argument
502 #define PORT_GP_CFG_16(bank, fn, sfx, cfg) \ argument
503 PORT_GP_CFG_15(bank, fn, sfx, cfg), \
504 PORT_GP_CFG_1(bank, 15, fn, sfx, cfg)
505 #define PORT_GP_16(bank, fn, sfx) PORT_GP_CFG_16(bank, fn, sfx, 0) argument
507 #define PORT_GP_CFG_17(bank, fn, sfx, cfg) \ argument
508 PORT_GP_CFG_16(bank, fn, sfx, cfg), \
509 PORT_GP_CFG_1(bank, 16, fn, sfx, cfg)
510 #define PORT_GP_17(bank, fn, sfx) PORT_GP_CFG_17(bank, fn, sfx, 0) argument
512 #define PORT_GP_CFG_18(bank, fn, sfx, cfg) \ argument
513 PORT_GP_CFG_17(bank, fn, sfx, cfg), \
514 PORT_GP_CFG_1(bank, 17, fn, sfx, cfg)
515 #define PORT_GP_18(bank, fn, sfx) PORT_GP_CFG_18(bank, fn, sfx, 0) argument
517 #define PORT_GP_CFG_20(bank, fn, sfx, cfg) \ argument
518 PORT_GP_CFG_18(bank, fn, sfx, cfg), \
519 PORT_GP_CFG_1(bank, 18, fn, sfx, cfg), \
520 PORT_GP_CFG_1(bank, 19, fn, sfx, cfg)
521 #define PORT_GP_20(bank, fn, sfx) PORT_GP_CFG_20(bank, fn, sfx, 0) argument
523 #define PORT_GP_CFG_21(bank, fn, sfx, cfg) \ argument
524 PORT_GP_CFG_20(bank, fn, sfx, cfg), \
525 PORT_GP_CFG_1(bank, 20, fn, sfx, cfg)
526 #define PORT_GP_21(bank, fn, sfx) PORT_GP_CFG_21(bank, fn, sfx, 0) argument
528 #define PORT_GP_CFG_22(bank, fn, sfx, cfg) \ argument
529 PORT_GP_CFG_21(bank, fn, sfx, cfg), \
530 PORT_GP_CFG_1(bank, 21, fn, sfx, cfg)
531 #define PORT_GP_22(bank, fn, sfx) PORT_GP_CFG_22(bank, fn, sfx, 0) argument
533 #define PORT_GP_CFG_23(bank, fn, sfx, cfg) \ argument
534 PORT_GP_CFG_22(bank, fn, sfx, cfg), \
535 PORT_GP_CFG_1(bank, 22, fn, sfx, cfg)
536 #define PORT_GP_23(bank, fn, sfx) PORT_GP_CFG_23(bank, fn, sfx, 0) argument
538 #define PORT_GP_CFG_24(bank, fn, sfx, cfg) \ argument
539 PORT_GP_CFG_23(bank, fn, sfx, cfg), \
540 PORT_GP_CFG_1(bank, 23, fn, sfx, cfg)
541 #define PORT_GP_24(bank, fn, sfx) PORT_GP_CFG_24(bank, fn, sfx, 0) argument
543 #define PORT_GP_CFG_25(bank, fn, sfx, cfg) \ argument
544 PORT_GP_CFG_24(bank, fn, sfx, cfg), \
545 PORT_GP_CFG_1(bank, 24, fn, sfx, cfg)
546 #define PORT_GP_25(bank, fn, sfx) PORT_GP_CFG_25(bank, fn, sfx, 0) argument
548 #define PORT_GP_CFG_26(bank, fn, sfx, cfg) \ argument
549 PORT_GP_CFG_25(bank, fn, sfx, cfg), \
550 PORT_GP_CFG_1(bank, 25, fn, sfx, cfg)
551 #define PORT_GP_26(bank, fn, sfx) PORT_GP_CFG_26(bank, fn, sfx, 0) argument
553 #define PORT_GP_CFG_27(bank, fn, sfx, cfg) \ argument
554 PORT_GP_CFG_26(bank, fn, sfx, cfg), \
555 PORT_GP_CFG_1(bank, 26, fn, sfx, cfg)
556 #define PORT_GP_27(bank, fn, sfx) PORT_GP_CFG_27(bank, fn, sfx, 0) argument
558 #define PORT_GP_CFG_28(bank, fn, sfx, cfg) \ argument
559 PORT_GP_CFG_27(bank, fn, sfx, cfg), \
560 PORT_GP_CFG_1(bank, 27, fn, sfx, cfg)
561 #define PORT_GP_28(bank, fn, sfx) PORT_GP_CFG_28(bank, fn, sfx, 0) argument
563 #define PORT_GP_CFG_29(bank, fn, sfx, cfg) \ argument
564 PORT_GP_CFG_28(bank, fn, sfx, cfg), \
565 PORT_GP_CFG_1(bank, 28, fn, sfx, cfg)
566 #define PORT_GP_29(bank, fn, sfx) PORT_GP_CFG_29(bank, fn, sfx, 0) argument
568 #define PORT_GP_CFG_30(bank, fn, sfx, cfg) \ argument
569 PORT_GP_CFG_29(bank, fn, sfx, cfg), \
570 PORT_GP_CFG_1(bank, 29, fn, sfx, cfg)
571 #define PORT_GP_30(bank, fn, sfx) PORT_GP_CFG_30(bank, fn, sfx, 0) argument
573 #define PORT_GP_CFG_32(bank, fn, sfx, cfg) \ argument
574 PORT_GP_CFG_30(bank, fn, sfx, cfg), \
575 PORT_GP_CFG_1(bank, 30, fn, sfx, cfg), \
576 PORT_GP_CFG_1(bank, 31, fn, sfx, cfg)
577 #define PORT_GP_32(bank, fn, sfx) PORT_GP_CFG_32(bank, fn, sfx, 0) argument
579 #define PORT_GP_32_REV(bank, fn, sfx) \ argument
580 PORT_GP_1(bank, 31, fn, sfx), PORT_GP_1(bank, 30, fn, sfx), \
581 PORT_GP_1(bank, 29, fn, sfx), PORT_GP_1(bank, 28, fn, sfx), \
582 PORT_GP_1(bank, 27, fn, sfx), PORT_GP_1(bank, 26, fn, sfx), \
583 PORT_GP_1(bank, 25, fn, sfx), PORT_GP_1(bank, 24, fn, sfx), \
584 PORT_GP_1(bank, 23, fn, sfx), PORT_GP_1(bank, 22, fn, sfx), \
585 PORT_GP_1(bank, 21, fn, sfx), PORT_GP_1(bank, 20, fn, sfx), \
586 PORT_GP_1(bank, 19, fn, sfx), PORT_GP_1(bank, 18, fn, sfx), \
587 PORT_GP_1(bank, 17, fn, sfx), PORT_GP_1(bank, 16, fn, sfx), \
588 PORT_GP_1(bank, 15, fn, sfx), PORT_GP_1(bank, 14, fn, sfx), \
589 PORT_GP_1(bank, 13, fn, sfx), PORT_GP_1(bank, 12, fn, sfx), \
590 PORT_GP_1(bank, 11, fn, sfx), PORT_GP_1(bank, 10, fn, sfx), \
591 PORT_GP_1(bank, 9, fn, sfx), PORT_GP_1(bank, 8, fn, sfx), \
592 PORT_GP_1(bank, 7, fn, sfx), PORT_GP_1(bank, 6, fn, sfx), \
593 PORT_GP_1(bank, 5, fn, sfx), PORT_GP_1(bank, 4, fn, sfx), \
594 PORT_GP_1(bank, 3, fn, sfx), PORT_GP_1(bank, 2, fn, sfx), \
595 PORT_GP_1(bank, 1, fn, sfx), PORT_GP_1(bank, 0, fn, sfx)
598 #define _GP_ALL(bank, pin, name, sfx, cfg) name##_##sfx argument
602 #define _GP_GPIO(bank, _pin, _name, sfx, cfg) \ argument
604 .pin = (bank * 32) + _pin, \
612 #define _GP_DATA(bank, pin, name, sfx, cfg) PINMUX_DATA(name##_DATA, name##_FN) argument
624 #define _GP_ENTRY(bank, pin, name, sfx, cfg) \ argument
625 deprecated)); char name[(bank * 32) + pin] __attribute__((deprecated
754 #define RCAR_GP_PIN(bank, pin) (((bank) * 32) + (pin)) argument