Lines Matching +full:0 +full:x3b00
35 #define MIB_COUNTER_NUM 0x20
114 { 0x00, "rx" },
115 { 0x01, "rx_hi" },
116 { 0x02, "rx_undersize" },
117 { 0x03, "rx_fragments" },
118 { 0x04, "rx_oversize" },
119 { 0x05, "rx_jabbers" },
120 { 0x06, "rx_symbol_err" },
121 { 0x07, "rx_crc_err" },
122 { 0x08, "rx_align_err" },
123 { 0x09, "rx_mac_ctrl" },
124 { 0x0a, "rx_pause" },
125 { 0x0b, "rx_bcast" },
126 { 0x0c, "rx_mcast" },
127 { 0x0d, "rx_ucast" },
128 { 0x0e, "rx_64_or_less" },
129 { 0x0f, "rx_65_127" },
130 { 0x10, "rx_128_255" },
131 { 0x11, "rx_256_511" },
132 { 0x12, "rx_512_1023" },
133 { 0x13, "rx_1024_1522" },
134 { 0x14, "tx" },
135 { 0x15, "tx_hi" },
136 { 0x16, "tx_late_col" },
137 { 0x17, "tx_pause" },
138 { 0x18, "tx_bcast" },
139 { 0x19, "tx_mcast" },
140 { 0x1a, "tx_ucast" },
141 { 0x1b, "tx_deferred" },
142 { 0x1c, "tx_total_col" },
143 { 0x1d, "tx_exc_col" },
144 { 0x1e, "tx_single_col" },
145 { 0x1f, "tx_mult_col" },
146 { 0x100, "rx_discards" },
147 { 0x101, "tx_discards" },
151 { 0x00, "rx_hi" },
152 { 0x01, "rx_undersize" },
153 { 0x02, "rx_fragments" },
154 { 0x03, "rx_oversize" },
155 { 0x04, "rx_jabbers" },
156 { 0x05, "rx_symbol_err" },
157 { 0x06, "rx_crc_err" },
158 { 0x07, "rx_align_err" },
159 { 0x08, "rx_mac_ctrl" },
160 { 0x09, "rx_pause" },
161 { 0x0A, "rx_bcast" },
162 { 0x0B, "rx_mcast" },
163 { 0x0C, "rx_ucast" },
164 { 0x0D, "rx_64_or_less" },
165 { 0x0E, "rx_65_127" },
166 { 0x0F, "rx_128_255" },
167 { 0x10, "rx_256_511" },
168 { 0x11, "rx_512_1023" },
169 { 0x12, "rx_1024_1522" },
170 { 0x13, "rx_1523_2000" },
171 { 0x14, "rx_2001" },
172 { 0x15, "tx_hi" },
173 { 0x16, "tx_late_col" },
174 { 0x17, "tx_pause" },
175 { 0x18, "tx_bcast" },
176 { 0x19, "tx_mcast" },
177 { 0x1A, "tx_ucast" },
178 { 0x1B, "tx_deferred" },
179 { 0x1C, "tx_total_col" },
180 { 0x1D, "tx_exc_col" },
181 { 0x1E, "tx_single_col" },
182 { 0x1F, "tx_mult_col" },
183 { 0x80, "rx_total" },
184 { 0x81, "tx_total" },
185 { 0x82, "rx_discards" },
186 { 0x83, "tx_discards" },
301 [REG_IND_CTRL_0] = 0x6E,
302 [REG_IND_DATA_8] = 0x70,
303 [REG_IND_DATA_CHECK] = 0x72,
304 [REG_IND_DATA_HI] = 0x71,
305 [REG_IND_DATA_LO] = 0x75,
306 [REG_IND_MIB_CHECK] = 0x74,
307 [REG_IND_BYTE] = 0xA0,
308 [P_FORCE_CTRL] = 0x0C,
309 [P_LINK_STATUS] = 0x0E,
310 [P_LOCAL_CTRL] = 0x07,
311 [P_NEG_RESTART_CTRL] = 0x0D,
312 [P_REMOTE_STATUS] = 0x08,
313 [P_SPEED_STATUS] = 0x09,
314 [S_TAIL_TAG_CTRL] = 0x0C,
315 [P_STP_CTRL] = 0x02,
316 [S_START_CTRL] = 0x01,
317 [S_BROADCAST_CTRL] = 0x06,
318 [S_MULTICAST_CTRL] = 0x04,
319 [P_XMII_CTRL_0] = 0x06,
320 [P_XMII_CTRL_1] = 0x06,
328 [VLAN_TABLE_FID] = GENMASK(6, 0),
336 [DYNAMIC_MAC_TABLE_ENTRIES_H] = GENMASK(6, 0),
348 [P_MII_100MBIT] = 0,
350 [P_MII_FULL_DUPLEX] = 0,
358 [P_MII_SEL] = 0,
360 [P_GMII_NOT_1GBIT] = 0,
376 [REG_IND_CTRL_0] = 0x79,
377 [REG_IND_DATA_8] = 0x7B,
378 [REG_IND_DATA_CHECK] = 0x7B,
379 [REG_IND_DATA_HI] = 0x7C,
380 [REG_IND_DATA_LO] = 0x80,
381 [REG_IND_MIB_CHECK] = 0x80,
382 [P_FORCE_CTRL] = 0x0C,
383 [P_LINK_STATUS] = 0x0E,
384 [P_LOCAL_CTRL] = 0x0C,
385 [P_NEG_RESTART_CTRL] = 0x0D,
386 [P_REMOTE_STATUS] = 0x0E,
387 [P_SPEED_STATUS] = 0x0F,
388 [S_TAIL_TAG_CTRL] = 0x03,
389 [P_STP_CTRL] = 0x02,
390 [S_START_CTRL] = 0x01,
391 [S_BROADCAST_CTRL] = 0x06,
392 [S_MULTICAST_CTRL] = 0x04,
408 [DYNAMIC_MAC_TABLE_ENTRIES_H] = GENMASK(1, 0),
429 [P_STP_CTRL] = 0x0B04,
430 [S_START_CTRL] = 0x0300,
431 [S_BROADCAST_CTRL] = 0x0332,
432 [S_MULTICAST_CTRL] = 0x0331,
433 [P_XMII_CTRL_0] = 0x0300,
434 [P_XMII_CTRL_1] = 0x0301,
438 [ALU_STAT_WRITE] = 0,
450 [P_MII_10MBIT] = 0,
452 [P_MII_HALF_DUPLEX] = 0,
456 [P_RGMII_SEL] = 0,
460 [P_GMII_1GBIT] = 0,
476 regmap_reg_range(0x0000, 0x0003),
477 regmap_reg_range(0x0006, 0x0006),
478 regmap_reg_range(0x000f, 0x001f),
479 regmap_reg_range(0x0100, 0x0100),
480 regmap_reg_range(0x0104, 0x0107),
481 regmap_reg_range(0x010d, 0x010d),
482 regmap_reg_range(0x0110, 0x0113),
483 regmap_reg_range(0x0120, 0x012b),
484 regmap_reg_range(0x0201, 0x0201),
485 regmap_reg_range(0x0210, 0x0213),
486 regmap_reg_range(0x0300, 0x0300),
487 regmap_reg_range(0x0302, 0x031b),
488 regmap_reg_range(0x0320, 0x032b),
489 regmap_reg_range(0x0330, 0x0336),
490 regmap_reg_range(0x0338, 0x033e),
491 regmap_reg_range(0x0340, 0x035f),
492 regmap_reg_range(0x0370, 0x0370),
493 regmap_reg_range(0x0378, 0x0378),
494 regmap_reg_range(0x037c, 0x037d),
495 regmap_reg_range(0x0390, 0x0393),
496 regmap_reg_range(0x0400, 0x040e),
497 regmap_reg_range(0x0410, 0x042f),
498 regmap_reg_range(0x0500, 0x0519),
499 regmap_reg_range(0x0520, 0x054b),
500 regmap_reg_range(0x0550, 0x05b3),
503 regmap_reg_range(0x1000, 0x1001),
504 regmap_reg_range(0x1004, 0x100b),
505 regmap_reg_range(0x1013, 0x1013),
506 regmap_reg_range(0x1017, 0x1017),
507 regmap_reg_range(0x101b, 0x101b),
508 regmap_reg_range(0x101f, 0x1021),
509 regmap_reg_range(0x1030, 0x1030),
510 regmap_reg_range(0x1100, 0x1111),
511 regmap_reg_range(0x111a, 0x111d),
512 regmap_reg_range(0x1122, 0x1127),
513 regmap_reg_range(0x112a, 0x112b),
514 regmap_reg_range(0x1136, 0x1139),
515 regmap_reg_range(0x113e, 0x113f),
516 regmap_reg_range(0x1400, 0x1401),
517 regmap_reg_range(0x1403, 0x1403),
518 regmap_reg_range(0x1410, 0x1417),
519 regmap_reg_range(0x1420, 0x1423),
520 regmap_reg_range(0x1500, 0x1507),
521 regmap_reg_range(0x1600, 0x1612),
522 regmap_reg_range(0x1800, 0x180f),
523 regmap_reg_range(0x1900, 0x1907),
524 regmap_reg_range(0x1914, 0x191b),
525 regmap_reg_range(0x1a00, 0x1a03),
526 regmap_reg_range(0x1a04, 0x1a08),
527 regmap_reg_range(0x1b00, 0x1b01),
528 regmap_reg_range(0x1b04, 0x1b04),
529 regmap_reg_range(0x1c00, 0x1c05),
530 regmap_reg_range(0x1c08, 0x1c1b),
533 regmap_reg_range(0x2000, 0x2001),
534 regmap_reg_range(0x2004, 0x200b),
535 regmap_reg_range(0x2013, 0x2013),
536 regmap_reg_range(0x2017, 0x2017),
537 regmap_reg_range(0x201b, 0x201b),
538 regmap_reg_range(0x201f, 0x2021),
539 regmap_reg_range(0x2030, 0x2030),
540 regmap_reg_range(0x2100, 0x2111),
541 regmap_reg_range(0x211a, 0x211d),
542 regmap_reg_range(0x2122, 0x2127),
543 regmap_reg_range(0x212a, 0x212b),
544 regmap_reg_range(0x2136, 0x2139),
545 regmap_reg_range(0x213e, 0x213f),
546 regmap_reg_range(0x2400, 0x2401),
547 regmap_reg_range(0x2403, 0x2403),
548 regmap_reg_range(0x2410, 0x2417),
549 regmap_reg_range(0x2420, 0x2423),
550 regmap_reg_range(0x2500, 0x2507),
551 regmap_reg_range(0x2600, 0x2612),
552 regmap_reg_range(0x2800, 0x280f),
553 regmap_reg_range(0x2900, 0x2907),
554 regmap_reg_range(0x2914, 0x291b),
555 regmap_reg_range(0x2a00, 0x2a03),
556 regmap_reg_range(0x2a04, 0x2a08),
557 regmap_reg_range(0x2b00, 0x2b01),
558 regmap_reg_range(0x2b04, 0x2b04),
559 regmap_reg_range(0x2c00, 0x2c05),
560 regmap_reg_range(0x2c08, 0x2c1b),
563 regmap_reg_range(0x3000, 0x3001),
564 regmap_reg_range(0x3004, 0x300b),
565 regmap_reg_range(0x3013, 0x3013),
566 regmap_reg_range(0x3017, 0x3017),
567 regmap_reg_range(0x301b, 0x301b),
568 regmap_reg_range(0x301f, 0x3021),
569 regmap_reg_range(0x3030, 0x3030),
570 regmap_reg_range(0x3300, 0x3301),
571 regmap_reg_range(0x3303, 0x3303),
572 regmap_reg_range(0x3400, 0x3401),
573 regmap_reg_range(0x3403, 0x3403),
574 regmap_reg_range(0x3410, 0x3417),
575 regmap_reg_range(0x3420, 0x3423),
576 regmap_reg_range(0x3500, 0x3507),
577 regmap_reg_range(0x3600, 0x3612),
578 regmap_reg_range(0x3800, 0x380f),
579 regmap_reg_range(0x3900, 0x3907),
580 regmap_reg_range(0x3914, 0x391b),
581 regmap_reg_range(0x3a00, 0x3a03),
582 regmap_reg_range(0x3a04, 0x3a08),
583 regmap_reg_range(0x3b00, 0x3b01),
584 regmap_reg_range(0x3b04, 0x3b04),
585 regmap_reg_range(0x3c00, 0x3c05),
586 regmap_reg_range(0x3c08, 0x3c1b),
595 regmap_reg_range(0x0000, 0x0003),
596 regmap_reg_range(0x0006, 0x0006),
597 regmap_reg_range(0x0010, 0x001f),
598 regmap_reg_range(0x0100, 0x0100),
599 regmap_reg_range(0x0103, 0x0107),
600 regmap_reg_range(0x010d, 0x010d),
601 regmap_reg_range(0x0110, 0x0113),
602 regmap_reg_range(0x0120, 0x012b),
603 regmap_reg_range(0x0201, 0x0201),
604 regmap_reg_range(0x0210, 0x0213),
605 regmap_reg_range(0x0300, 0x0300),
606 regmap_reg_range(0x0302, 0x031b),
607 regmap_reg_range(0x0320, 0x032b),
608 regmap_reg_range(0x0330, 0x0336),
609 regmap_reg_range(0x0338, 0x033b),
610 regmap_reg_range(0x033e, 0x033e),
611 regmap_reg_range(0x0340, 0x035f),
612 regmap_reg_range(0x0370, 0x0370),
613 regmap_reg_range(0x0378, 0x0378),
614 regmap_reg_range(0x037c, 0x037d),
615 regmap_reg_range(0x0390, 0x0393),
616 regmap_reg_range(0x0400, 0x040e),
617 regmap_reg_range(0x0410, 0x042f),
618 regmap_reg_range(0x0444, 0x044b),
619 regmap_reg_range(0x0450, 0x046f),
620 regmap_reg_range(0x0500, 0x0519),
621 regmap_reg_range(0x0520, 0x054b),
622 regmap_reg_range(0x0550, 0x05b3),
623 regmap_reg_range(0x0604, 0x060b),
624 regmap_reg_range(0x0610, 0x0612),
625 regmap_reg_range(0x0614, 0x062c),
626 regmap_reg_range(0x0640, 0x0645),
627 regmap_reg_range(0x0648, 0x064d),
630 regmap_reg_range(0x1000, 0x1001),
631 regmap_reg_range(0x1013, 0x1013),
632 regmap_reg_range(0x1017, 0x1017),
633 regmap_reg_range(0x101b, 0x101b),
634 regmap_reg_range(0x101f, 0x1020),
635 regmap_reg_range(0x1030, 0x1030),
636 regmap_reg_range(0x1100, 0x1115),
637 regmap_reg_range(0x111a, 0x111f),
638 regmap_reg_range(0x1120, 0x112b),
639 regmap_reg_range(0x1134, 0x113b),
640 regmap_reg_range(0x113c, 0x113f),
641 regmap_reg_range(0x1400, 0x1401),
642 regmap_reg_range(0x1403, 0x1403),
643 regmap_reg_range(0x1410, 0x1417),
644 regmap_reg_range(0x1420, 0x1423),
645 regmap_reg_range(0x1500, 0x1507),
646 regmap_reg_range(0x1600, 0x1613),
647 regmap_reg_range(0x1800, 0x180f),
648 regmap_reg_range(0x1820, 0x1827),
649 regmap_reg_range(0x1830, 0x1837),
650 regmap_reg_range(0x1840, 0x184b),
651 regmap_reg_range(0x1900, 0x1907),
652 regmap_reg_range(0x1914, 0x191b),
653 regmap_reg_range(0x1920, 0x1920),
654 regmap_reg_range(0x1923, 0x1927),
655 regmap_reg_range(0x1a00, 0x1a03),
656 regmap_reg_range(0x1a04, 0x1a07),
657 regmap_reg_range(0x1b00, 0x1b01),
658 regmap_reg_range(0x1b04, 0x1b04),
659 regmap_reg_range(0x1c00, 0x1c05),
660 regmap_reg_range(0x1c08, 0x1c1b),
663 regmap_reg_range(0x2000, 0x2001),
664 regmap_reg_range(0x2013, 0x2013),
665 regmap_reg_range(0x2017, 0x2017),
666 regmap_reg_range(0x201b, 0x201b),
667 regmap_reg_range(0x201f, 0x2020),
668 regmap_reg_range(0x2030, 0x2030),
669 regmap_reg_range(0x2100, 0x2115),
670 regmap_reg_range(0x211a, 0x211f),
671 regmap_reg_range(0x2120, 0x212b),
672 regmap_reg_range(0x2134, 0x213b),
673 regmap_reg_range(0x213c, 0x213f),
674 regmap_reg_range(0x2400, 0x2401),
675 regmap_reg_range(0x2403, 0x2403),
676 regmap_reg_range(0x2410, 0x2417),
677 regmap_reg_range(0x2420, 0x2423),
678 regmap_reg_range(0x2500, 0x2507),
679 regmap_reg_range(0x2600, 0x2613),
680 regmap_reg_range(0x2800, 0x280f),
681 regmap_reg_range(0x2820, 0x2827),
682 regmap_reg_range(0x2830, 0x2837),
683 regmap_reg_range(0x2840, 0x284b),
684 regmap_reg_range(0x2900, 0x2907),
685 regmap_reg_range(0x2914, 0x291b),
686 regmap_reg_range(0x2920, 0x2920),
687 regmap_reg_range(0x2923, 0x2927),
688 regmap_reg_range(0x2a00, 0x2a03),
689 regmap_reg_range(0x2a04, 0x2a07),
690 regmap_reg_range(0x2b00, 0x2b01),
691 regmap_reg_range(0x2b04, 0x2b04),
692 regmap_reg_range(0x2c00, 0x2c05),
693 regmap_reg_range(0x2c08, 0x2c1b),
696 regmap_reg_range(0x3000, 0x3001),
697 regmap_reg_range(0x3013, 0x3013),
698 regmap_reg_range(0x3017, 0x3017),
699 regmap_reg_range(0x301b, 0x301b),
700 regmap_reg_range(0x301f, 0x3020),
701 regmap_reg_range(0x3030, 0x3030),
702 regmap_reg_range(0x3100, 0x3115),
703 regmap_reg_range(0x311a, 0x311f),
704 regmap_reg_range(0x3120, 0x312b),
705 regmap_reg_range(0x3134, 0x313b),
706 regmap_reg_range(0x313c, 0x313f),
707 regmap_reg_range(0x3400, 0x3401),
708 regmap_reg_range(0x3403, 0x3403),
709 regmap_reg_range(0x3410, 0x3417),
710 regmap_reg_range(0x3420, 0x3423),
711 regmap_reg_range(0x3500, 0x3507),
712 regmap_reg_range(0x3600, 0x3613),
713 regmap_reg_range(0x3800, 0x380f),
714 regmap_reg_range(0x3820, 0x3827),
715 regmap_reg_range(0x3830, 0x3837),
716 regmap_reg_range(0x3840, 0x384b),
717 regmap_reg_range(0x3900, 0x3907),
718 regmap_reg_range(0x3914, 0x391b),
719 regmap_reg_range(0x3920, 0x3920),
720 regmap_reg_range(0x3923, 0x3927),
721 regmap_reg_range(0x3a00, 0x3a03),
722 regmap_reg_range(0x3a04, 0x3a07),
723 regmap_reg_range(0x3b00, 0x3b01),
724 regmap_reg_range(0x3b04, 0x3b04),
725 regmap_reg_range(0x3c00, 0x3c05),
726 regmap_reg_range(0x3c08, 0x3c1b),
729 regmap_reg_range(0x4000, 0x4001),
730 regmap_reg_range(0x4013, 0x4013),
731 regmap_reg_range(0x4017, 0x4017),
732 regmap_reg_range(0x401b, 0x401b),
733 regmap_reg_range(0x401f, 0x4020),
734 regmap_reg_range(0x4030, 0x4030),
735 regmap_reg_range(0x4100, 0x4115),
736 regmap_reg_range(0x411a, 0x411f),
737 regmap_reg_range(0x4120, 0x412b),
738 regmap_reg_range(0x4134, 0x413b),
739 regmap_reg_range(0x413c, 0x413f),
740 regmap_reg_range(0x4400, 0x4401),
741 regmap_reg_range(0x4403, 0x4403),
742 regmap_reg_range(0x4410, 0x4417),
743 regmap_reg_range(0x4420, 0x4423),
744 regmap_reg_range(0x4500, 0x4507),
745 regmap_reg_range(0x4600, 0x4613),
746 regmap_reg_range(0x4800, 0x480f),
747 regmap_reg_range(0x4820, 0x4827),
748 regmap_reg_range(0x4830, 0x4837),
749 regmap_reg_range(0x4840, 0x484b),
750 regmap_reg_range(0x4900, 0x4907),
751 regmap_reg_range(0x4914, 0x491b),
752 regmap_reg_range(0x4920, 0x4920),
753 regmap_reg_range(0x4923, 0x4927),
754 regmap_reg_range(0x4a00, 0x4a03),
755 regmap_reg_range(0x4a04, 0x4a07),
756 regmap_reg_range(0x4b00, 0x4b01),
757 regmap_reg_range(0x4b04, 0x4b04),
758 regmap_reg_range(0x4c00, 0x4c05),
759 regmap_reg_range(0x4c08, 0x4c1b),
762 regmap_reg_range(0x5000, 0x5001),
763 regmap_reg_range(0x5013, 0x5013),
764 regmap_reg_range(0x5017, 0x5017),
765 regmap_reg_range(0x501b, 0x501b),
766 regmap_reg_range(0x501f, 0x5020),
767 regmap_reg_range(0x5030, 0x5030),
768 regmap_reg_range(0x5100, 0x5115),
769 regmap_reg_range(0x511a, 0x511f),
770 regmap_reg_range(0x5120, 0x512b),
771 regmap_reg_range(0x5134, 0x513b),
772 regmap_reg_range(0x513c, 0x513f),
773 regmap_reg_range(0x5400, 0x5401),
774 regmap_reg_range(0x5403, 0x5403),
775 regmap_reg_range(0x5410, 0x5417),
776 regmap_reg_range(0x5420, 0x5423),
777 regmap_reg_range(0x5500, 0x5507),
778 regmap_reg_range(0x5600, 0x5613),
779 regmap_reg_range(0x5800, 0x580f),
780 regmap_reg_range(0x5820, 0x5827),
781 regmap_reg_range(0x5830, 0x5837),
782 regmap_reg_range(0x5840, 0x584b),
783 regmap_reg_range(0x5900, 0x5907),
784 regmap_reg_range(0x5914, 0x591b),
785 regmap_reg_range(0x5920, 0x5920),
786 regmap_reg_range(0x5923, 0x5927),
787 regmap_reg_range(0x5a00, 0x5a03),
788 regmap_reg_range(0x5a04, 0x5a07),
789 regmap_reg_range(0x5b00, 0x5b01),
790 regmap_reg_range(0x5b04, 0x5b04),
791 regmap_reg_range(0x5c00, 0x5c05),
792 regmap_reg_range(0x5c08, 0x5c1b),
795 regmap_reg_range(0x6000, 0x6001),
796 regmap_reg_range(0x6013, 0x6013),
797 regmap_reg_range(0x6017, 0x6017),
798 regmap_reg_range(0x601b, 0x601b),
799 regmap_reg_range(0x601f, 0x6020),
800 regmap_reg_range(0x6030, 0x6030),
801 regmap_reg_range(0x6300, 0x6301),
802 regmap_reg_range(0x6400, 0x6401),
803 regmap_reg_range(0x6403, 0x6403),
804 regmap_reg_range(0x6410, 0x6417),
805 regmap_reg_range(0x6420, 0x6423),
806 regmap_reg_range(0x6500, 0x6507),
807 regmap_reg_range(0x6600, 0x6613),
808 regmap_reg_range(0x6800, 0x680f),
809 regmap_reg_range(0x6820, 0x6827),
810 regmap_reg_range(0x6830, 0x6837),
811 regmap_reg_range(0x6840, 0x684b),
812 regmap_reg_range(0x6900, 0x6907),
813 regmap_reg_range(0x6914, 0x691b),
814 regmap_reg_range(0x6920, 0x6920),
815 regmap_reg_range(0x6923, 0x6927),
816 regmap_reg_range(0x6a00, 0x6a03),
817 regmap_reg_range(0x6a04, 0x6a07),
818 regmap_reg_range(0x6b00, 0x6b01),
819 regmap_reg_range(0x6b04, 0x6b04),
820 regmap_reg_range(0x6c00, 0x6c05),
821 regmap_reg_range(0x6c08, 0x6c1b),
824 regmap_reg_range(0x7000, 0x7001),
825 regmap_reg_range(0x7013, 0x7013),
826 regmap_reg_range(0x7017, 0x7017),
827 regmap_reg_range(0x701b, 0x701b),
828 regmap_reg_range(0x701f, 0x7020),
829 regmap_reg_range(0x7030, 0x7030),
830 regmap_reg_range(0x7200, 0x7203),
831 regmap_reg_range(0x7206, 0x7207),
832 regmap_reg_range(0x7300, 0x7301),
833 regmap_reg_range(0x7400, 0x7401),
834 regmap_reg_range(0x7403, 0x7403),
835 regmap_reg_range(0x7410, 0x7417),
836 regmap_reg_range(0x7420, 0x7423),
837 regmap_reg_range(0x7500, 0x7507),
838 regmap_reg_range(0x7600, 0x7613),
839 regmap_reg_range(0x7800, 0x780f),
840 regmap_reg_range(0x7820, 0x7827),
841 regmap_reg_range(0x7830, 0x7837),
842 regmap_reg_range(0x7840, 0x784b),
843 regmap_reg_range(0x7900, 0x7907),
844 regmap_reg_range(0x7914, 0x791b),
845 regmap_reg_range(0x7920, 0x7920),
846 regmap_reg_range(0x7923, 0x7927),
847 regmap_reg_range(0x7a00, 0x7a03),
848 regmap_reg_range(0x7a04, 0x7a07),
849 regmap_reg_range(0x7b00, 0x7b01),
850 regmap_reg_range(0x7b04, 0x7b04),
851 regmap_reg_range(0x7c00, 0x7c05),
852 regmap_reg_range(0x7c08, 0x7c1b),
861 regmap_reg_range(0x0000, 0x0003),
862 regmap_reg_range(0x0006, 0x0006),
863 regmap_reg_range(0x0010, 0x001f),
864 regmap_reg_range(0x0100, 0x0100),
865 regmap_reg_range(0x0103, 0x0107),
866 regmap_reg_range(0x010d, 0x010d),
867 regmap_reg_range(0x0110, 0x0113),
868 regmap_reg_range(0x0120, 0x0127),
869 regmap_reg_range(0x0201, 0x0201),
870 regmap_reg_range(0x0210, 0x0213),
871 regmap_reg_range(0x0300, 0x0300),
872 regmap_reg_range(0x0302, 0x030b),
873 regmap_reg_range(0x0310, 0x031b),
874 regmap_reg_range(0x0320, 0x032b),
875 regmap_reg_range(0x0330, 0x0336),
876 regmap_reg_range(0x0338, 0x033b),
877 regmap_reg_range(0x033e, 0x033e),
878 regmap_reg_range(0x0340, 0x035f),
879 regmap_reg_range(0x0370, 0x0370),
880 regmap_reg_range(0x0378, 0x0378),
881 regmap_reg_range(0x037c, 0x037d),
882 regmap_reg_range(0x0390, 0x0393),
883 regmap_reg_range(0x0400, 0x040e),
884 regmap_reg_range(0x0410, 0x042f),
887 regmap_reg_range(0x1000, 0x1001),
888 regmap_reg_range(0x1013, 0x1013),
889 regmap_reg_range(0x1017, 0x1017),
890 regmap_reg_range(0x101b, 0x101b),
891 regmap_reg_range(0x101f, 0x1020),
892 regmap_reg_range(0x1030, 0x1030),
893 regmap_reg_range(0x1100, 0x1115),
894 regmap_reg_range(0x111a, 0x111f),
895 regmap_reg_range(0x1120, 0x112b),
896 regmap_reg_range(0x1134, 0x113b),
897 regmap_reg_range(0x113c, 0x113f),
898 regmap_reg_range(0x1400, 0x1401),
899 regmap_reg_range(0x1403, 0x1403),
900 regmap_reg_range(0x1410, 0x1417),
901 regmap_reg_range(0x1420, 0x1423),
902 regmap_reg_range(0x1500, 0x1507),
903 regmap_reg_range(0x1600, 0x1612),
904 regmap_reg_range(0x1800, 0x180f),
905 regmap_reg_range(0x1820, 0x1827),
906 regmap_reg_range(0x1830, 0x1837),
907 regmap_reg_range(0x1840, 0x184b),
908 regmap_reg_range(0x1900, 0x1907),
909 regmap_reg_range(0x1914, 0x1915),
910 regmap_reg_range(0x1a00, 0x1a03),
911 regmap_reg_range(0x1a04, 0x1a07),
912 regmap_reg_range(0x1b00, 0x1b01),
913 regmap_reg_range(0x1b04, 0x1b04),
916 regmap_reg_range(0x2000, 0x2001),
917 regmap_reg_range(0x2013, 0x2013),
918 regmap_reg_range(0x2017, 0x2017),
919 regmap_reg_range(0x201b, 0x201b),
920 regmap_reg_range(0x201f, 0x2020),
921 regmap_reg_range(0x2030, 0x2030),
922 regmap_reg_range(0x2100, 0x2115),
923 regmap_reg_range(0x211a, 0x211f),
924 regmap_reg_range(0x2120, 0x212b),
925 regmap_reg_range(0x2134, 0x213b),
926 regmap_reg_range(0x213c, 0x213f),
927 regmap_reg_range(0x2400, 0x2401),
928 regmap_reg_range(0x2403, 0x2403),
929 regmap_reg_range(0x2410, 0x2417),
930 regmap_reg_range(0x2420, 0x2423),
931 regmap_reg_range(0x2500, 0x2507),
932 regmap_reg_range(0x2600, 0x2612),
933 regmap_reg_range(0x2800, 0x280f),
934 regmap_reg_range(0x2820, 0x2827),
935 regmap_reg_range(0x2830, 0x2837),
936 regmap_reg_range(0x2840, 0x284b),
937 regmap_reg_range(0x2900, 0x2907),
938 regmap_reg_range(0x2914, 0x2915),
939 regmap_reg_range(0x2a00, 0x2a03),
940 regmap_reg_range(0x2a04, 0x2a07),
941 regmap_reg_range(0x2b00, 0x2b01),
942 regmap_reg_range(0x2b04, 0x2b04),
945 regmap_reg_range(0x3000, 0x3001),
946 regmap_reg_range(0x3013, 0x3013),
947 regmap_reg_range(0x3017, 0x3017),
948 regmap_reg_range(0x301b, 0x301b),
949 regmap_reg_range(0x301f, 0x3020),
950 regmap_reg_range(0x3030, 0x3030),
951 regmap_reg_range(0x3100, 0x3115),
952 regmap_reg_range(0x311a, 0x311f),
953 regmap_reg_range(0x3120, 0x312b),
954 regmap_reg_range(0x3134, 0x313b),
955 regmap_reg_range(0x313c, 0x313f),
956 regmap_reg_range(0x3400, 0x3401),
957 regmap_reg_range(0x3403, 0x3403),
958 regmap_reg_range(0x3410, 0x3417),
959 regmap_reg_range(0x3420, 0x3423),
960 regmap_reg_range(0x3500, 0x3507),
961 regmap_reg_range(0x3600, 0x3612),
962 regmap_reg_range(0x3800, 0x380f),
963 regmap_reg_range(0x3820, 0x3827),
964 regmap_reg_range(0x3830, 0x3837),
965 regmap_reg_range(0x3840, 0x384b),
966 regmap_reg_range(0x3900, 0x3907),
967 regmap_reg_range(0x3914, 0x3915),
968 regmap_reg_range(0x3a00, 0x3a03),
969 regmap_reg_range(0x3a04, 0x3a07),
970 regmap_reg_range(0x3b00, 0x3b01),
971 regmap_reg_range(0x3b04, 0x3b04),
974 regmap_reg_range(0x4000, 0x4001),
975 regmap_reg_range(0x4013, 0x4013),
976 regmap_reg_range(0x4017, 0x4017),
977 regmap_reg_range(0x401b, 0x401b),
978 regmap_reg_range(0x401f, 0x4020),
979 regmap_reg_range(0x4030, 0x4030),
980 regmap_reg_range(0x4100, 0x4115),
981 regmap_reg_range(0x411a, 0x411f),
982 regmap_reg_range(0x4120, 0x412b),
983 regmap_reg_range(0x4134, 0x413b),
984 regmap_reg_range(0x413c, 0x413f),
985 regmap_reg_range(0x4400, 0x4401),
986 regmap_reg_range(0x4403, 0x4403),
987 regmap_reg_range(0x4410, 0x4417),
988 regmap_reg_range(0x4420, 0x4423),
989 regmap_reg_range(0x4500, 0x4507),
990 regmap_reg_range(0x4600, 0x4612),
991 regmap_reg_range(0x4800, 0x480f),
992 regmap_reg_range(0x4820, 0x4827),
993 regmap_reg_range(0x4830, 0x4837),
994 regmap_reg_range(0x4840, 0x484b),
995 regmap_reg_range(0x4900, 0x4907),
996 regmap_reg_range(0x4914, 0x4915),
997 regmap_reg_range(0x4a00, 0x4a03),
998 regmap_reg_range(0x4a04, 0x4a07),
999 regmap_reg_range(0x4b00, 0x4b01),
1000 regmap_reg_range(0x4b04, 0x4b04),
1003 regmap_reg_range(0x5000, 0x5001),
1004 regmap_reg_range(0x5013, 0x5013),
1005 regmap_reg_range(0x5017, 0x5017),
1006 regmap_reg_range(0x501b, 0x501b),
1007 regmap_reg_range(0x501f, 0x5020),
1008 regmap_reg_range(0x5030, 0x5030),
1009 regmap_reg_range(0x5100, 0x5115),
1010 regmap_reg_range(0x511a, 0x511f),
1011 regmap_reg_range(0x5120, 0x512b),
1012 regmap_reg_range(0x5134, 0x513b),
1013 regmap_reg_range(0x513c, 0x513f),
1014 regmap_reg_range(0x5400, 0x5401),
1015 regmap_reg_range(0x5403, 0x5403),
1016 regmap_reg_range(0x5410, 0x5417),
1017 regmap_reg_range(0x5420, 0x5423),
1018 regmap_reg_range(0x5500, 0x5507),
1019 regmap_reg_range(0x5600, 0x5612),
1020 regmap_reg_range(0x5800, 0x580f),
1021 regmap_reg_range(0x5820, 0x5827),
1022 regmap_reg_range(0x5830, 0x5837),
1023 regmap_reg_range(0x5840, 0x584b),
1024 regmap_reg_range(0x5900, 0x5907),
1025 regmap_reg_range(0x5914, 0x5915),
1026 regmap_reg_range(0x5a00, 0x5a03),
1027 regmap_reg_range(0x5a04, 0x5a07),
1028 regmap_reg_range(0x5b00, 0x5b01),
1029 regmap_reg_range(0x5b04, 0x5b04),
1032 regmap_reg_range(0x6000, 0x6001),
1033 regmap_reg_range(0x6013, 0x6013),
1034 regmap_reg_range(0x6017, 0x6017),
1035 regmap_reg_range(0x601b, 0x601b),
1036 regmap_reg_range(0x601f, 0x6020),
1037 regmap_reg_range(0x6030, 0x6030),
1038 regmap_reg_range(0x6100, 0x6115),
1039 regmap_reg_range(0x611a, 0x611f),
1040 regmap_reg_range(0x6120, 0x612b),
1041 regmap_reg_range(0x6134, 0x613b),
1042 regmap_reg_range(0x613c, 0x613f),
1043 regmap_reg_range(0x6300, 0x6301),
1044 regmap_reg_range(0x6400, 0x6401),
1045 regmap_reg_range(0x6403, 0x6403),
1046 regmap_reg_range(0x6410, 0x6417),
1047 regmap_reg_range(0x6420, 0x6423),
1048 regmap_reg_range(0x6500, 0x6507),
1049 regmap_reg_range(0x6600, 0x6612),
1050 regmap_reg_range(0x6800, 0x680f),
1051 regmap_reg_range(0x6820, 0x6827),
1052 regmap_reg_range(0x6830, 0x6837),
1053 regmap_reg_range(0x6840, 0x684b),
1054 regmap_reg_range(0x6900, 0x6907),
1055 regmap_reg_range(0x6914, 0x6915),
1056 regmap_reg_range(0x6a00, 0x6a03),
1057 regmap_reg_range(0x6a04, 0x6a07),
1058 regmap_reg_range(0x6b00, 0x6b01),
1059 regmap_reg_range(0x6b04, 0x6b04),
1068 regmap_reg_range(0x00, 0x01),
1070 regmap_reg_range(0x02, 0x0f),
1073 regmap_reg_range(0x10, 0x1d),
1074 regmap_reg_range(0x1e, 0x1f),
1075 regmap_reg_range(0x20, 0x2d),
1076 regmap_reg_range(0x2e, 0x2f),
1077 regmap_reg_range(0x30, 0x39),
1078 regmap_reg_range(0x3f, 0x3f),
1081 regmap_reg_range(0x60, 0x6f),
1082 regmap_reg_range(0x70, 0x75),
1083 regmap_reg_range(0x76, 0x78),
1084 regmap_reg_range(0x79, 0x7a),
1085 regmap_reg_range(0x7b, 0x83),
1086 regmap_reg_range(0x8e, 0x99),
1087 regmap_reg_range(0x9a, 0xa5),
1088 regmap_reg_range(0xa6, 0xa6),
1089 regmap_reg_range(0xa7, 0xaa),
1090 regmap_reg_range(0xab, 0xae),
1091 regmap_reg_range(0xaf, 0xba),
1092 regmap_reg_range(0xbb, 0xbc),
1093 regmap_reg_range(0xbd, 0xbd),
1094 regmap_reg_range(0xc0, 0xc0),
1095 regmap_reg_range(0xc2, 0xc2),
1096 regmap_reg_range(0xc3, 0xc3),
1097 regmap_reg_range(0xc4, 0xc4),
1098 regmap_reg_range(0xc6, 0xc6),
1113 .cpu_ports = 0x07, /* can be configured as cpu port */
1141 .num_alus = 0,
1143 .cpu_ports = 0x10, /* can be configured as cpu port */
1169 * offset 0x40 are NOT used on KSZ8794 and they ARE
1172 * KSZ8794 0,1,2 4
1173 * KSZ8795 0,1,2,3 4
1174 * KSZ8765 0,1,2,3 4
1180 .num_alus = 0,
1182 .cpu_ports = 0x10, /* can be configured as cpu port */
1205 .num_alus = 0,
1207 .cpu_ports = 0x10, /* can be configured as cpu port */
1230 .num_alus = 0,
1232 .cpu_ports = 0x4, /* can be configured as cpu port */
1255 .cpu_ports = 0x7F, /* can be configured as cpu port */
1289 .cpu_ports = 0x3F, /* can be configured as cpu port */
1321 .cpu_ports = 0x7F, /* can be configured as cpu port */
1351 .cpu_ports = 0x07, /* can be configured as cpu port */
1377 .cpu_ports = 0x07, /* can be configured as cpu port */
1405 .cpu_ports = 0x7F, /* can be configured as cpu port */
1437 .cpu_ports = 0x10, /* can be configured as cpu port */
1464 .cpu_ports = 0x30, /* can be configured as cpu port */
1491 .cpu_ports = 0x30, /* can be configured as cpu port */
1522 .cpu_ports = 0x38, /* can be configured as cpu port */
1553 .cpu_ports = 0x30, /* can be configured as cpu port */
1584 for (i = 0; i < ARRAY_SIZE(ksz_switch_chips); i++) { in ksz_lookup_info()
1608 return 0; in ksz_check_device_id()
1773 for (i = 0; i < dev->info->mib_cnt; i++) { in ksz_get_strings()
1783 u8 port_member = 0, cpu_port; in ksz_update_port_member()
1793 for (i = 0; i < ds->num_ports; i++) { in ksz_update_port_member()
1796 u8 val = 0; in ksz_update_port_member()
1813 for (j = 0; j < ds->num_ports; j++) { in ksz_update_port_member()
1844 if (ret < 0) in ksz_sw_mdio_read()
1865 for (phy = 0; phy < KSZ_MAX_NUM_PORTS; phy++) { in ksz_irq_phy_setup()
1869 if (irq < 0) { in ksz_irq_phy_setup()
1876 return 0; in ksz_irq_phy_setup()
1890 for (phy = 0; phy < KSZ_MAX_NUM_PORTS; phy++) in ksz_irq_phy_free()
1904 return 0; in ksz_mdio_register()
1922 if (dev->irq > 0) { in ksz_mdio_register()
1934 if (dev->irq > 0) in ksz_mdio_register()
1992 return 0; in ksz_irq_domain_map()
2006 for (irq = 0; irq < kirq->nirqs; irq++) { in ksz_irq_free()
2017 unsigned int nhandled = 0; in ksz_irq_thread_fn()
2031 for (n = 0; n < kirq->nirqs; ++n) { in ksz_irq_thread_fn()
2039 return (nhandled > 0 ? IRQ_HANDLED : IRQ_NONE); in ksz_irq_thread_fn()
2047 kirq->masked = ~0; in ksz_irq_common_setup()
2049 kirq->domain = irq_domain_add_simple(dev->dev->of_node, kirq->nirqs, 0, in ksz_irq_common_setup()
2054 for (n = 0; n < kirq->nirqs; n++) in ksz_irq_common_setup()
2062 return 0; in ksz_irq_common_setup()
2094 if (pirq->irq_num < 0) in ksz_pirq_setup()
2154 if (dev->irq > 0) { in ksz_setup()
2177 if (ret < 0) { in ksz_setup()
2186 return 0; in ksz_setup()
2191 if (dev->irq > 0) in ksz_setup()
2195 if (dev->irq > 0) in ksz_setup()
2199 if (dev->irq > 0) in ksz_setup()
2212 if (dev->irq > 0) { in ksz_teardown()
2247 mib->cnt_ptr = 0; in port_r_cnt()
2258 for (i = 0; i < dev->info->port_cnt; i++) { in ksz_mib_read_work()
2293 for (i = 0; i < dev->info->port_cnt; i++) { in ksz_init_mib_timer()
2298 mib->cnt_ptr = 0; in ksz_init_mib_timer()
2299 memset(mib->counters, 0, dev->info->mib_cnt * sizeof(u64)); in ksz_init_mib_timer()
2306 u16 val = 0xffff; in ksz_phy_read16()
2325 return 0; in ksz_phy_write16()
2355 return 0; in ksz_get_phy_flags()
2368 schedule_delayed_work(&dev->mib_read, 0); in ksz_mac_link_down()
2376 return 0; in ksz_sset_count()
2408 return 0; in ksz_port_bridge_join()
2501 return 0; in ksz_enable_port()
2510 return 0; in ksz_enable_port()
2566 return 0; in ksz_port_pre_bridge_flags()
2583 return 0; in ksz_port_bridge_flags()
2623 return 0; in ksz_connect_tag_protocol()
2629 return 0; in ksz_connect_tag_protocol()
2744 return 0; in ksz_validate_eee()
2765 e->tx_lpi_timer = 0; in ksz_get_mac_eee()
2767 return 0; in ksz_get_mac_eee()
2790 return 0; in ksz_set_mac_eee()
3075 id32 &= ~0xFF; in ksz_switch_detect()
3109 return 0; in ksz_switch_detect()
3118 u32 cinc = 0; in cinc_cal()
3132 for (i = 0; i < 6; i++) { in cinc_cal()
3144 return 0; in cinc_cal()
3211 for (queue = 0; queue < dev->info->num_tx_queues; queue++) { in ksz_disable_egress_rate_limit()
3218 return 0; in ksz_disable_egress_rate_limit()
3225 * priority mode, the lowest priority is assigned to Queue 0 while the in ksz_ets_band_to_queue()
3226 * highest priority is given to Band 0. in ksz_ets_band_to_queue()
3264 u32 queue_map = 0; in ksz_tc_ets_add()
3277 for (band = 0; band < p->bands; band++) { in ksz_tc_ets_add()
3289 for (tc_prio = 0; tc_prio < ARRAY_SIZE(p->priomap); tc_prio++) { in ksz_tc_ets_add()
3305 u32 queue_map = 0; in ksz_tc_ets_del()
3310 for (queue = 0; queue < dev->info->num_tx_queues; queue++) { in ksz_tc_ets_del()
3325 s = 0; in ksz_tc_ets_del()
3334 for (tc_prio = 0; tc_prio <= KSZ9477_MAX_TC_PRIO; tc_prio++) { in ksz_tc_ets_del()
3358 for (band = 0; band < p->bands; ++band) { in ksz_tc_ets_validate()
3377 return 0; in ksz_tc_ets_validate()
3526 if (rx_delay < 0) in ksz_parse_rgmii_delay()
3527 rx_delay = 0; in ksz_parse_rgmii_delay()
3528 if (tx_delay < 0) in ksz_parse_rgmii_delay()
3529 tx_delay = 0; in ksz_parse_rgmii_delay()
3555 gpiod_set_value_cansleep(dev->reset_gpio, 0); in ksz_switch_register()
3594 for (i = 0; i < dev->info->port_cnt; i++) { in ksz_switch_register()
3614 for (port_num = 0; port_num < dev->info->port_cnt; ++port_num) in ksz_switch_register()
3618 if (ret == 0) in ksz_switch_register()
3660 schedule_delayed_work(&dev->mib_read, 0); in ksz_switch_register()
3670 dev->mib_read_interval = 0; in ksz_switch_remove()