Lines Matching +full:0 +full:x180f

38 #define MIB_COUNTER_NUM 0x20
117 { 0x00, "rx" },
118 { 0x01, "rx_hi" },
119 { 0x02, "rx_undersize" },
120 { 0x03, "rx_fragments" },
121 { 0x04, "rx_oversize" },
122 { 0x05, "rx_jabbers" },
123 { 0x06, "rx_symbol_err" },
124 { 0x07, "rx_crc_err" },
125 { 0x08, "rx_align_err" },
126 { 0x09, "rx_mac_ctrl" },
127 { 0x0a, "rx_pause" },
128 { 0x0b, "rx_bcast" },
129 { 0x0c, "rx_mcast" },
130 { 0x0d, "rx_ucast" },
131 { 0x0e, "rx_64_or_less" },
132 { 0x0f, "rx_65_127" },
133 { 0x10, "rx_128_255" },
134 { 0x11, "rx_256_511" },
135 { 0x12, "rx_512_1023" },
136 { 0x13, "rx_1024_1522" },
137 { 0x14, "tx" },
138 { 0x15, "tx_hi" },
139 { 0x16, "tx_late_col" },
140 { 0x17, "tx_pause" },
141 { 0x18, "tx_bcast" },
142 { 0x19, "tx_mcast" },
143 { 0x1a, "tx_ucast" },
144 { 0x1b, "tx_deferred" },
145 { 0x1c, "tx_total_col" },
146 { 0x1d, "tx_exc_col" },
147 { 0x1e, "tx_single_col" },
148 { 0x1f, "tx_mult_col" },
149 { 0x100, "rx_discards" },
150 { 0x101, "tx_discards" },
154 { 0x00, "rx_hi" },
155 { 0x01, "rx_undersize" },
156 { 0x02, "rx_fragments" },
157 { 0x03, "rx_oversize" },
158 { 0x04, "rx_jabbers" },
159 { 0x05, "rx_symbol_err" },
160 { 0x06, "rx_crc_err" },
161 { 0x07, "rx_align_err" },
162 { 0x08, "rx_mac_ctrl" },
163 { 0x09, "rx_pause" },
164 { 0x0A, "rx_bcast" },
165 { 0x0B, "rx_mcast" },
166 { 0x0C, "rx_ucast" },
167 { 0x0D, "rx_64_or_less" },
168 { 0x0E, "rx_65_127" },
169 { 0x0F, "rx_128_255" },
170 { 0x10, "rx_256_511" },
171 { 0x11, "rx_512_1023" },
172 { 0x12, "rx_1024_1522" },
173 { 0x13, "rx_1523_2000" },
174 { 0x14, "rx_2001" },
175 { 0x15, "tx_hi" },
176 { 0x16, "tx_late_col" },
177 { 0x17, "tx_pause" },
178 { 0x18, "tx_bcast" },
179 { 0x19, "tx_mcast" },
180 { 0x1A, "tx_ucast" },
181 { 0x1B, "tx_deferred" },
182 { 0x1C, "tx_total_col" },
183 { 0x1D, "tx_exc_col" },
184 { 0x1E, "tx_single_col" },
185 { 0x1F, "tx_mult_col" },
186 { 0x80, "rx_total" },
187 { 0x81, "tx_total" },
188 { 0x82, "rx_discards" },
189 { 0x83, "tx_discards" },
254 { 0, 8000 },
445 [REG_SW_MAC_ADDR] = 0x68,
446 [REG_IND_CTRL_0] = 0x6E,
447 [REG_IND_DATA_8] = 0x70,
448 [REG_IND_DATA_CHECK] = 0x72,
449 [REG_IND_DATA_HI] = 0x71,
450 [REG_IND_DATA_LO] = 0x75,
451 [REG_IND_MIB_CHECK] = 0x74,
452 [REG_IND_BYTE] = 0xA0,
453 [P_FORCE_CTRL] = 0x0C,
454 [P_LINK_STATUS] = 0x0E,
455 [P_LOCAL_CTRL] = 0x07,
456 [P_NEG_RESTART_CTRL] = 0x0D,
457 [P_REMOTE_STATUS] = 0x08,
458 [P_SPEED_STATUS] = 0x09,
459 [S_TAIL_TAG_CTRL] = 0x0C,
460 [P_STP_CTRL] = 0x02,
461 [S_START_CTRL] = 0x01,
462 [S_BROADCAST_CTRL] = 0x06,
463 [S_MULTICAST_CTRL] = 0x04,
464 [P_XMII_CTRL_0] = 0x06,
465 [P_XMII_CTRL_1] = 0x06,
466 [REG_SW_PME_CTRL] = 0x8003,
467 [REG_PORT_PME_STATUS] = 0x8003,
468 [REG_PORT_PME_CTRL] = 0x8007,
476 [VLAN_TABLE_FID] = GENMASK(6, 0),
484 [DYNAMIC_MAC_TABLE_ENTRIES_H] = GENMASK(6, 0),
496 [P_MII_100MBIT] = 0,
498 [P_MII_FULL_DUPLEX] = 0,
506 [P_MII_SEL] = 0,
508 [P_GMII_NOT_1GBIT] = 0,
524 [REG_SW_MAC_ADDR] = 0x70,
525 [REG_IND_CTRL_0] = 0x79,
526 [REG_IND_DATA_8] = 0x7B,
527 [REG_IND_DATA_CHECK] = 0x7B,
528 [REG_IND_DATA_HI] = 0x7C,
529 [REG_IND_DATA_LO] = 0x80,
530 [REG_IND_MIB_CHECK] = 0x80,
531 [P_FORCE_CTRL] = 0x0C,
532 [P_LINK_STATUS] = 0x0E,
533 [P_LOCAL_CTRL] = 0x0C,
534 [P_NEG_RESTART_CTRL] = 0x0D,
535 [P_REMOTE_STATUS] = 0x0E,
536 [P_SPEED_STATUS] = 0x0F,
537 [S_TAIL_TAG_CTRL] = 0x03,
538 [P_STP_CTRL] = 0x02,
539 [S_START_CTRL] = 0x01,
540 [S_BROADCAST_CTRL] = 0x06,
541 [S_MULTICAST_CTRL] = 0x04,
557 [DYNAMIC_MAC_TABLE_ENTRIES_H] = GENMASK(1, 0),
578 [REG_SW_MAC_ADDR] = 0x68,
579 [REG_IND_CTRL_0] = 0x6E,
580 [REG_IND_DATA_8] = 0x70,
581 [REG_IND_DATA_CHECK] = 0x72,
582 [REG_IND_DATA_HI] = 0x71,
583 [REG_IND_DATA_LO] = 0x75,
584 [REG_IND_MIB_CHECK] = 0x75,
585 [P_FORCE_CTRL] = 0x0C,
586 [P_LINK_STATUS] = 0x0E,
587 [P_LOCAL_CTRL] = 0x0C,
588 [P_NEG_RESTART_CTRL] = 0x0D,
589 [P_REMOTE_STATUS] = 0x0E,
590 [P_SPEED_STATUS] = 0x09,
591 [S_TAIL_TAG_CTRL] = 0x0C,
592 [P_STP_CTRL] = 0x02,
593 [S_START_CTRL] = 0x01,
594 [S_BROADCAST_CTRL] = 0x06,
595 [S_MULTICAST_CTRL] = 0x04,
603 [VLAN_TABLE_FID] = GENMASK(6, 0),
611 [DYNAMIC_MAC_TABLE_ENTRIES_H] = GENMASK(6, 0),
633 [REG_SW_MAC_ADDR] = 0x0302,
634 [P_STP_CTRL] = 0x0B04,
635 [S_START_CTRL] = 0x0300,
636 [S_BROADCAST_CTRL] = 0x0332,
637 [S_MULTICAST_CTRL] = 0x0331,
638 [P_XMII_CTRL_0] = 0x0300,
639 [P_XMII_CTRL_1] = 0x0301,
640 [REG_SW_PME_CTRL] = 0x0006,
641 [REG_PORT_PME_STATUS] = 0x0013,
642 [REG_PORT_PME_CTRL] = 0x0017,
646 [ALU_STAT_WRITE] = 0,
658 [P_MII_10MBIT] = 0,
660 [P_MII_HALF_DUPLEX] = 0,
664 [P_RGMII_SEL] = 0,
668 [P_GMII_1GBIT] = 0,
684 regmap_reg_range(0x0000, 0x0003),
685 regmap_reg_range(0x0006, 0x0006),
686 regmap_reg_range(0x000f, 0x001f),
687 regmap_reg_range(0x0100, 0x0100),
688 regmap_reg_range(0x0104, 0x0107),
689 regmap_reg_range(0x010d, 0x010d),
690 regmap_reg_range(0x0110, 0x0113),
691 regmap_reg_range(0x0120, 0x012b),
692 regmap_reg_range(0x0201, 0x0201),
693 regmap_reg_range(0x0210, 0x0213),
694 regmap_reg_range(0x0300, 0x0300),
695 regmap_reg_range(0x0302, 0x031b),
696 regmap_reg_range(0x0320, 0x032b),
697 regmap_reg_range(0x0330, 0x0336),
698 regmap_reg_range(0x0338, 0x033e),
699 regmap_reg_range(0x0340, 0x035f),
700 regmap_reg_range(0x0370, 0x0370),
701 regmap_reg_range(0x0378, 0x0378),
702 regmap_reg_range(0x037c, 0x037d),
703 regmap_reg_range(0x0390, 0x0393),
704 regmap_reg_range(0x0400, 0x040e),
705 regmap_reg_range(0x0410, 0x042f),
706 regmap_reg_range(0x0500, 0x0519),
707 regmap_reg_range(0x0520, 0x054b),
708 regmap_reg_range(0x0550, 0x05b3),
711 regmap_reg_range(0x1000, 0x1001),
712 regmap_reg_range(0x1004, 0x100b),
713 regmap_reg_range(0x1013, 0x1013),
714 regmap_reg_range(0x1017, 0x1017),
715 regmap_reg_range(0x101b, 0x101b),
716 regmap_reg_range(0x101f, 0x1021),
717 regmap_reg_range(0x1030, 0x1030),
718 regmap_reg_range(0x1100, 0x1111),
719 regmap_reg_range(0x111a, 0x111d),
720 regmap_reg_range(0x1122, 0x1127),
721 regmap_reg_range(0x112a, 0x112b),
722 regmap_reg_range(0x1136, 0x1139),
723 regmap_reg_range(0x113e, 0x113f),
724 regmap_reg_range(0x1400, 0x1401),
725 regmap_reg_range(0x1403, 0x1403),
726 regmap_reg_range(0x1410, 0x1417),
727 regmap_reg_range(0x1420, 0x1423),
728 regmap_reg_range(0x1500, 0x1507),
729 regmap_reg_range(0x1600, 0x1612),
730 regmap_reg_range(0x1800, 0x180f),
731 regmap_reg_range(0x1900, 0x1907),
732 regmap_reg_range(0x1914, 0x191b),
733 regmap_reg_range(0x1a00, 0x1a03),
734 regmap_reg_range(0x1a04, 0x1a08),
735 regmap_reg_range(0x1b00, 0x1b01),
736 regmap_reg_range(0x1b04, 0x1b04),
737 regmap_reg_range(0x1c00, 0x1c05),
738 regmap_reg_range(0x1c08, 0x1c1b),
741 regmap_reg_range(0x2000, 0x2001),
742 regmap_reg_range(0x2004, 0x200b),
743 regmap_reg_range(0x2013, 0x2013),
744 regmap_reg_range(0x2017, 0x2017),
745 regmap_reg_range(0x201b, 0x201b),
746 regmap_reg_range(0x201f, 0x2021),
747 regmap_reg_range(0x2030, 0x2030),
748 regmap_reg_range(0x2100, 0x2111),
749 regmap_reg_range(0x211a, 0x211d),
750 regmap_reg_range(0x2122, 0x2127),
751 regmap_reg_range(0x212a, 0x212b),
752 regmap_reg_range(0x2136, 0x2139),
753 regmap_reg_range(0x213e, 0x213f),
754 regmap_reg_range(0x2400, 0x2401),
755 regmap_reg_range(0x2403, 0x2403),
756 regmap_reg_range(0x2410, 0x2417),
757 regmap_reg_range(0x2420, 0x2423),
758 regmap_reg_range(0x2500, 0x2507),
759 regmap_reg_range(0x2600, 0x2612),
760 regmap_reg_range(0x2800, 0x280f),
761 regmap_reg_range(0x2900, 0x2907),
762 regmap_reg_range(0x2914, 0x291b),
763 regmap_reg_range(0x2a00, 0x2a03),
764 regmap_reg_range(0x2a04, 0x2a08),
765 regmap_reg_range(0x2b00, 0x2b01),
766 regmap_reg_range(0x2b04, 0x2b04),
767 regmap_reg_range(0x2c00, 0x2c05),
768 regmap_reg_range(0x2c08, 0x2c1b),
771 regmap_reg_range(0x3000, 0x3001),
772 regmap_reg_range(0x3004, 0x300b),
773 regmap_reg_range(0x3013, 0x3013),
774 regmap_reg_range(0x3017, 0x3017),
775 regmap_reg_range(0x301b, 0x301b),
776 regmap_reg_range(0x301f, 0x3021),
777 regmap_reg_range(0x3030, 0x3030),
778 regmap_reg_range(0x3300, 0x3301),
779 regmap_reg_range(0x3303, 0x3303),
780 regmap_reg_range(0x3400, 0x3401),
781 regmap_reg_range(0x3403, 0x3403),
782 regmap_reg_range(0x3410, 0x3417),
783 regmap_reg_range(0x3420, 0x3423),
784 regmap_reg_range(0x3500, 0x3507),
785 regmap_reg_range(0x3600, 0x3612),
786 regmap_reg_range(0x3800, 0x380f),
787 regmap_reg_range(0x3900, 0x3907),
788 regmap_reg_range(0x3914, 0x391b),
789 regmap_reg_range(0x3a00, 0x3a03),
790 regmap_reg_range(0x3a04, 0x3a08),
791 regmap_reg_range(0x3b00, 0x3b01),
792 regmap_reg_range(0x3b04, 0x3b04),
793 regmap_reg_range(0x3c00, 0x3c05),
794 regmap_reg_range(0x3c08, 0x3c1b),
803 regmap_reg_range(0x0000, 0x0003),
804 regmap_reg_range(0x0006, 0x0006),
805 regmap_reg_range(0x0010, 0x001f),
806 regmap_reg_range(0x0100, 0x0100),
807 regmap_reg_range(0x0103, 0x0107),
808 regmap_reg_range(0x010d, 0x010d),
809 regmap_reg_range(0x0110, 0x0113),
810 regmap_reg_range(0x0120, 0x012b),
811 regmap_reg_range(0x0201, 0x0201),
812 regmap_reg_range(0x0210, 0x0213),
813 regmap_reg_range(0x0300, 0x0300),
814 regmap_reg_range(0x0302, 0x031b),
815 regmap_reg_range(0x0320, 0x032b),
816 regmap_reg_range(0x0330, 0x0336),
817 regmap_reg_range(0x0338, 0x033b),
818 regmap_reg_range(0x033e, 0x033e),
819 regmap_reg_range(0x0340, 0x035f),
820 regmap_reg_range(0x0370, 0x0370),
821 regmap_reg_range(0x0378, 0x0378),
822 regmap_reg_range(0x037c, 0x037d),
823 regmap_reg_range(0x0390, 0x0393),
824 regmap_reg_range(0x0400, 0x040e),
825 regmap_reg_range(0x0410, 0x042f),
826 regmap_reg_range(0x0444, 0x044b),
827 regmap_reg_range(0x0450, 0x046f),
828 regmap_reg_range(0x0500, 0x0519),
829 regmap_reg_range(0x0520, 0x054b),
830 regmap_reg_range(0x0550, 0x05b3),
831 regmap_reg_range(0x0604, 0x060b),
832 regmap_reg_range(0x0610, 0x0612),
833 regmap_reg_range(0x0614, 0x062c),
834 regmap_reg_range(0x0640, 0x0645),
835 regmap_reg_range(0x0648, 0x064d),
838 regmap_reg_range(0x1000, 0x1001),
839 regmap_reg_range(0x1013, 0x1013),
840 regmap_reg_range(0x1017, 0x1017),
841 regmap_reg_range(0x101b, 0x101b),
842 regmap_reg_range(0x101f, 0x1020),
843 regmap_reg_range(0x1030, 0x1030),
844 regmap_reg_range(0x1100, 0x1115),
845 regmap_reg_range(0x111a, 0x111f),
846 regmap_reg_range(0x1120, 0x112b),
847 regmap_reg_range(0x1134, 0x113b),
848 regmap_reg_range(0x113c, 0x113f),
849 regmap_reg_range(0x1400, 0x1401),
850 regmap_reg_range(0x1403, 0x1403),
851 regmap_reg_range(0x1410, 0x1417),
852 regmap_reg_range(0x1420, 0x1423),
853 regmap_reg_range(0x1500, 0x1507),
854 regmap_reg_range(0x1600, 0x1613),
855 regmap_reg_range(0x1800, 0x180f),
856 regmap_reg_range(0x1820, 0x1827),
857 regmap_reg_range(0x1830, 0x1837),
858 regmap_reg_range(0x1840, 0x184b),
859 regmap_reg_range(0x1900, 0x1907),
860 regmap_reg_range(0x1914, 0x191b),
861 regmap_reg_range(0x1920, 0x1920),
862 regmap_reg_range(0x1923, 0x1927),
863 regmap_reg_range(0x1a00, 0x1a03),
864 regmap_reg_range(0x1a04, 0x1a07),
865 regmap_reg_range(0x1b00, 0x1b01),
866 regmap_reg_range(0x1b04, 0x1b04),
867 regmap_reg_range(0x1c00, 0x1c05),
868 regmap_reg_range(0x1c08, 0x1c1b),
871 regmap_reg_range(0x2000, 0x2001),
872 regmap_reg_range(0x2013, 0x2013),
873 regmap_reg_range(0x2017, 0x2017),
874 regmap_reg_range(0x201b, 0x201b),
875 regmap_reg_range(0x201f, 0x2020),
876 regmap_reg_range(0x2030, 0x2030),
877 regmap_reg_range(0x2100, 0x2115),
878 regmap_reg_range(0x211a, 0x211f),
879 regmap_reg_range(0x2120, 0x212b),
880 regmap_reg_range(0x2134, 0x213b),
881 regmap_reg_range(0x213c, 0x213f),
882 regmap_reg_range(0x2400, 0x2401),
883 regmap_reg_range(0x2403, 0x2403),
884 regmap_reg_range(0x2410, 0x2417),
885 regmap_reg_range(0x2420, 0x2423),
886 regmap_reg_range(0x2500, 0x2507),
887 regmap_reg_range(0x2600, 0x2613),
888 regmap_reg_range(0x2800, 0x280f),
889 regmap_reg_range(0x2820, 0x2827),
890 regmap_reg_range(0x2830, 0x2837),
891 regmap_reg_range(0x2840, 0x284b),
892 regmap_reg_range(0x2900, 0x2907),
893 regmap_reg_range(0x2914, 0x291b),
894 regmap_reg_range(0x2920, 0x2920),
895 regmap_reg_range(0x2923, 0x2927),
896 regmap_reg_range(0x2a00, 0x2a03),
897 regmap_reg_range(0x2a04, 0x2a07),
898 regmap_reg_range(0x2b00, 0x2b01),
899 regmap_reg_range(0x2b04, 0x2b04),
900 regmap_reg_range(0x2c00, 0x2c05),
901 regmap_reg_range(0x2c08, 0x2c1b),
904 regmap_reg_range(0x3000, 0x3001),
905 regmap_reg_range(0x3013, 0x3013),
906 regmap_reg_range(0x3017, 0x3017),
907 regmap_reg_range(0x301b, 0x301b),
908 regmap_reg_range(0x301f, 0x3020),
909 regmap_reg_range(0x3030, 0x3030),
910 regmap_reg_range(0x3100, 0x3115),
911 regmap_reg_range(0x311a, 0x311f),
912 regmap_reg_range(0x3120, 0x312b),
913 regmap_reg_range(0x3134, 0x313b),
914 regmap_reg_range(0x313c, 0x313f),
915 regmap_reg_range(0x3400, 0x3401),
916 regmap_reg_range(0x3403, 0x3403),
917 regmap_reg_range(0x3410, 0x3417),
918 regmap_reg_range(0x3420, 0x3423),
919 regmap_reg_range(0x3500, 0x3507),
920 regmap_reg_range(0x3600, 0x3613),
921 regmap_reg_range(0x3800, 0x380f),
922 regmap_reg_range(0x3820, 0x3827),
923 regmap_reg_range(0x3830, 0x3837),
924 regmap_reg_range(0x3840, 0x384b),
925 regmap_reg_range(0x3900, 0x3907),
926 regmap_reg_range(0x3914, 0x391b),
927 regmap_reg_range(0x3920, 0x3920),
928 regmap_reg_range(0x3923, 0x3927),
929 regmap_reg_range(0x3a00, 0x3a03),
930 regmap_reg_range(0x3a04, 0x3a07),
931 regmap_reg_range(0x3b00, 0x3b01),
932 regmap_reg_range(0x3b04, 0x3b04),
933 regmap_reg_range(0x3c00, 0x3c05),
934 regmap_reg_range(0x3c08, 0x3c1b),
937 regmap_reg_range(0x4000, 0x4001),
938 regmap_reg_range(0x4013, 0x4013),
939 regmap_reg_range(0x4017, 0x4017),
940 regmap_reg_range(0x401b, 0x401b),
941 regmap_reg_range(0x401f, 0x4020),
942 regmap_reg_range(0x4030, 0x4030),
943 regmap_reg_range(0x4100, 0x4115),
944 regmap_reg_range(0x411a, 0x411f),
945 regmap_reg_range(0x4120, 0x412b),
946 regmap_reg_range(0x4134, 0x413b),
947 regmap_reg_range(0x413c, 0x413f),
948 regmap_reg_range(0x4400, 0x4401),
949 regmap_reg_range(0x4403, 0x4403),
950 regmap_reg_range(0x4410, 0x4417),
951 regmap_reg_range(0x4420, 0x4423),
952 regmap_reg_range(0x4500, 0x4507),
953 regmap_reg_range(0x4600, 0x4613),
954 regmap_reg_range(0x4800, 0x480f),
955 regmap_reg_range(0x4820, 0x4827),
956 regmap_reg_range(0x4830, 0x4837),
957 regmap_reg_range(0x4840, 0x484b),
958 regmap_reg_range(0x4900, 0x4907),
959 regmap_reg_range(0x4914, 0x491b),
960 regmap_reg_range(0x4920, 0x4920),
961 regmap_reg_range(0x4923, 0x4927),
962 regmap_reg_range(0x4a00, 0x4a03),
963 regmap_reg_range(0x4a04, 0x4a07),
964 regmap_reg_range(0x4b00, 0x4b01),
965 regmap_reg_range(0x4b04, 0x4b04),
966 regmap_reg_range(0x4c00, 0x4c05),
967 regmap_reg_range(0x4c08, 0x4c1b),
970 regmap_reg_range(0x5000, 0x5001),
971 regmap_reg_range(0x5013, 0x5013),
972 regmap_reg_range(0x5017, 0x5017),
973 regmap_reg_range(0x501b, 0x501b),
974 regmap_reg_range(0x501f, 0x5020),
975 regmap_reg_range(0x5030, 0x5030),
976 regmap_reg_range(0x5100, 0x5115),
977 regmap_reg_range(0x511a, 0x511f),
978 regmap_reg_range(0x5120, 0x512b),
979 regmap_reg_range(0x5134, 0x513b),
980 regmap_reg_range(0x513c, 0x513f),
981 regmap_reg_range(0x5400, 0x5401),
982 regmap_reg_range(0x5403, 0x5403),
983 regmap_reg_range(0x5410, 0x5417),
984 regmap_reg_range(0x5420, 0x5423),
985 regmap_reg_range(0x5500, 0x5507),
986 regmap_reg_range(0x5600, 0x5613),
987 regmap_reg_range(0x5800, 0x580f),
988 regmap_reg_range(0x5820, 0x5827),
989 regmap_reg_range(0x5830, 0x5837),
990 regmap_reg_range(0x5840, 0x584b),
991 regmap_reg_range(0x5900, 0x5907),
992 regmap_reg_range(0x5914, 0x591b),
993 regmap_reg_range(0x5920, 0x5920),
994 regmap_reg_range(0x5923, 0x5927),
995 regmap_reg_range(0x5a00, 0x5a03),
996 regmap_reg_range(0x5a04, 0x5a07),
997 regmap_reg_range(0x5b00, 0x5b01),
998 regmap_reg_range(0x5b04, 0x5b04),
999 regmap_reg_range(0x5c00, 0x5c05),
1000 regmap_reg_range(0x5c08, 0x5c1b),
1003 regmap_reg_range(0x6000, 0x6001),
1004 regmap_reg_range(0x6013, 0x6013),
1005 regmap_reg_range(0x6017, 0x6017),
1006 regmap_reg_range(0x601b, 0x601b),
1007 regmap_reg_range(0x601f, 0x6020),
1008 regmap_reg_range(0x6030, 0x6030),
1009 regmap_reg_range(0x6300, 0x6301),
1010 regmap_reg_range(0x6400, 0x6401),
1011 regmap_reg_range(0x6403, 0x6403),
1012 regmap_reg_range(0x6410, 0x6417),
1013 regmap_reg_range(0x6420, 0x6423),
1014 regmap_reg_range(0x6500, 0x6507),
1015 regmap_reg_range(0x6600, 0x6613),
1016 regmap_reg_range(0x6800, 0x680f),
1017 regmap_reg_range(0x6820, 0x6827),
1018 regmap_reg_range(0x6830, 0x6837),
1019 regmap_reg_range(0x6840, 0x684b),
1020 regmap_reg_range(0x6900, 0x6907),
1021 regmap_reg_range(0x6914, 0x691b),
1022 regmap_reg_range(0x6920, 0x6920),
1023 regmap_reg_range(0x6923, 0x6927),
1024 regmap_reg_range(0x6a00, 0x6a03),
1025 regmap_reg_range(0x6a04, 0x6a07),
1026 regmap_reg_range(0x6b00, 0x6b01),
1027 regmap_reg_range(0x6b04, 0x6b04),
1028 regmap_reg_range(0x6c00, 0x6c05),
1029 regmap_reg_range(0x6c08, 0x6c1b),
1032 regmap_reg_range(0x7000, 0x7001),
1033 regmap_reg_range(0x7013, 0x7013),
1034 regmap_reg_range(0x7017, 0x7017),
1035 regmap_reg_range(0x701b, 0x701b),
1036 regmap_reg_range(0x701f, 0x7020),
1037 regmap_reg_range(0x7030, 0x7030),
1038 regmap_reg_range(0x7200, 0x7203),
1039 regmap_reg_range(0x7206, 0x7207),
1040 regmap_reg_range(0x7300, 0x7301),
1041 regmap_reg_range(0x7400, 0x7401),
1042 regmap_reg_range(0x7403, 0x7403),
1043 regmap_reg_range(0x7410, 0x7417),
1044 regmap_reg_range(0x7420, 0x7423),
1045 regmap_reg_range(0x7500, 0x7507),
1046 regmap_reg_range(0x7600, 0x7613),
1047 regmap_reg_range(0x7800, 0x780f),
1048 regmap_reg_range(0x7820, 0x7827),
1049 regmap_reg_range(0x7830, 0x7837),
1050 regmap_reg_range(0x7840, 0x784b),
1051 regmap_reg_range(0x7900, 0x7907),
1052 regmap_reg_range(0x7914, 0x791b),
1053 regmap_reg_range(0x7920, 0x7920),
1054 regmap_reg_range(0x7923, 0x7927),
1055 regmap_reg_range(0x7a00, 0x7a03),
1056 regmap_reg_range(0x7a04, 0x7a07),
1057 regmap_reg_range(0x7b00, 0x7b01),
1058 regmap_reg_range(0x7b04, 0x7b04),
1059 regmap_reg_range(0x7c00, 0x7c05),
1060 regmap_reg_range(0x7c08, 0x7c1b),
1069 regmap_reg_range(0x0000, 0x0003),
1070 regmap_reg_range(0x0006, 0x0006),
1071 regmap_reg_range(0x0010, 0x001f),
1072 regmap_reg_range(0x0100, 0x0100),
1073 regmap_reg_range(0x0103, 0x0107),
1074 regmap_reg_range(0x010d, 0x010d),
1075 regmap_reg_range(0x0110, 0x0113),
1076 regmap_reg_range(0x0120, 0x0127),
1077 regmap_reg_range(0x0201, 0x0201),
1078 regmap_reg_range(0x0210, 0x0213),
1079 regmap_reg_range(0x0300, 0x0300),
1080 regmap_reg_range(0x0302, 0x030b),
1081 regmap_reg_range(0x0310, 0x031b),
1082 regmap_reg_range(0x0320, 0x032b),
1083 regmap_reg_range(0x0330, 0x0336),
1084 regmap_reg_range(0x0338, 0x033b),
1085 regmap_reg_range(0x033e, 0x033e),
1086 regmap_reg_range(0x0340, 0x035f),
1087 regmap_reg_range(0x0370, 0x0370),
1088 regmap_reg_range(0x0378, 0x0378),
1089 regmap_reg_range(0x037c, 0x037d),
1090 regmap_reg_range(0x0390, 0x0393),
1091 regmap_reg_range(0x0400, 0x040e),
1092 regmap_reg_range(0x0410, 0x042f),
1095 regmap_reg_range(0x1000, 0x1001),
1096 regmap_reg_range(0x1013, 0x1013),
1097 regmap_reg_range(0x1017, 0x1017),
1098 regmap_reg_range(0x101b, 0x101b),
1099 regmap_reg_range(0x101f, 0x1020),
1100 regmap_reg_range(0x1030, 0x1030),
1101 regmap_reg_range(0x1100, 0x1115),
1102 regmap_reg_range(0x111a, 0x111f),
1103 regmap_reg_range(0x1120, 0x112b),
1104 regmap_reg_range(0x1134, 0x113b),
1105 regmap_reg_range(0x113c, 0x113f),
1106 regmap_reg_range(0x1400, 0x1401),
1107 regmap_reg_range(0x1403, 0x1403),
1108 regmap_reg_range(0x1410, 0x1417),
1109 regmap_reg_range(0x1420, 0x1423),
1110 regmap_reg_range(0x1500, 0x1507),
1111 regmap_reg_range(0x1600, 0x1612),
1112 regmap_reg_range(0x1800, 0x180f),
1113 regmap_reg_range(0x1820, 0x1827),
1114 regmap_reg_range(0x1830, 0x1837),
1115 regmap_reg_range(0x1840, 0x184b),
1116 regmap_reg_range(0x1900, 0x1907),
1117 regmap_reg_range(0x1914, 0x1915),
1118 regmap_reg_range(0x1a00, 0x1a03),
1119 regmap_reg_range(0x1a04, 0x1a07),
1120 regmap_reg_range(0x1b00, 0x1b01),
1121 regmap_reg_range(0x1b04, 0x1b04),
1124 regmap_reg_range(0x2000, 0x2001),
1125 regmap_reg_range(0x2013, 0x2013),
1126 regmap_reg_range(0x2017, 0x2017),
1127 regmap_reg_range(0x201b, 0x201b),
1128 regmap_reg_range(0x201f, 0x2020),
1129 regmap_reg_range(0x2030, 0x2030),
1130 regmap_reg_range(0x2100, 0x2115),
1131 regmap_reg_range(0x211a, 0x211f),
1132 regmap_reg_range(0x2120, 0x212b),
1133 regmap_reg_range(0x2134, 0x213b),
1134 regmap_reg_range(0x213c, 0x213f),
1135 regmap_reg_range(0x2400, 0x2401),
1136 regmap_reg_range(0x2403, 0x2403),
1137 regmap_reg_range(0x2410, 0x2417),
1138 regmap_reg_range(0x2420, 0x2423),
1139 regmap_reg_range(0x2500, 0x2507),
1140 regmap_reg_range(0x2600, 0x2612),
1141 regmap_reg_range(0x2800, 0x280f),
1142 regmap_reg_range(0x2820, 0x2827),
1143 regmap_reg_range(0x2830, 0x2837),
1144 regmap_reg_range(0x2840, 0x284b),
1145 regmap_reg_range(0x2900, 0x2907),
1146 regmap_reg_range(0x2914, 0x2915),
1147 regmap_reg_range(0x2a00, 0x2a03),
1148 regmap_reg_range(0x2a04, 0x2a07),
1149 regmap_reg_range(0x2b00, 0x2b01),
1150 regmap_reg_range(0x2b04, 0x2b04),
1153 regmap_reg_range(0x3000, 0x3001),
1154 regmap_reg_range(0x3013, 0x3013),
1155 regmap_reg_range(0x3017, 0x3017),
1156 regmap_reg_range(0x301b, 0x301b),
1157 regmap_reg_range(0x301f, 0x3020),
1158 regmap_reg_range(0x3030, 0x3030),
1159 regmap_reg_range(0x3100, 0x3115),
1160 regmap_reg_range(0x311a, 0x311f),
1161 regmap_reg_range(0x3120, 0x312b),
1162 regmap_reg_range(0x3134, 0x313b),
1163 regmap_reg_range(0x313c, 0x313f),
1164 regmap_reg_range(0x3400, 0x3401),
1165 regmap_reg_range(0x3403, 0x3403),
1166 regmap_reg_range(0x3410, 0x3417),
1167 regmap_reg_range(0x3420, 0x3423),
1168 regmap_reg_range(0x3500, 0x3507),
1169 regmap_reg_range(0x3600, 0x3612),
1170 regmap_reg_range(0x3800, 0x380f),
1171 regmap_reg_range(0x3820, 0x3827),
1172 regmap_reg_range(0x3830, 0x3837),
1173 regmap_reg_range(0x3840, 0x384b),
1174 regmap_reg_range(0x3900, 0x3907),
1175 regmap_reg_range(0x3914, 0x3915),
1176 regmap_reg_range(0x3a00, 0x3a03),
1177 regmap_reg_range(0x3a04, 0x3a07),
1178 regmap_reg_range(0x3b00, 0x3b01),
1179 regmap_reg_range(0x3b04, 0x3b04),
1182 regmap_reg_range(0x4000, 0x4001),
1183 regmap_reg_range(0x4013, 0x4013),
1184 regmap_reg_range(0x4017, 0x4017),
1185 regmap_reg_range(0x401b, 0x401b),
1186 regmap_reg_range(0x401f, 0x4020),
1187 regmap_reg_range(0x4030, 0x4030),
1188 regmap_reg_range(0x4100, 0x4115),
1189 regmap_reg_range(0x411a, 0x411f),
1190 regmap_reg_range(0x4120, 0x412b),
1191 regmap_reg_range(0x4134, 0x413b),
1192 regmap_reg_range(0x413c, 0x413f),
1193 regmap_reg_range(0x4400, 0x4401),
1194 regmap_reg_range(0x4403, 0x4403),
1195 regmap_reg_range(0x4410, 0x4417),
1196 regmap_reg_range(0x4420, 0x4423),
1197 regmap_reg_range(0x4500, 0x4507),
1198 regmap_reg_range(0x4600, 0x4612),
1199 regmap_reg_range(0x4800, 0x480f),
1200 regmap_reg_range(0x4820, 0x4827),
1201 regmap_reg_range(0x4830, 0x4837),
1202 regmap_reg_range(0x4840, 0x484b),
1203 regmap_reg_range(0x4900, 0x4907),
1204 regmap_reg_range(0x4914, 0x4915),
1205 regmap_reg_range(0x4a00, 0x4a03),
1206 regmap_reg_range(0x4a04, 0x4a07),
1207 regmap_reg_range(0x4b00, 0x4b01),
1208 regmap_reg_range(0x4b04, 0x4b04),
1211 regmap_reg_range(0x5000, 0x5001),
1212 regmap_reg_range(0x5013, 0x5013),
1213 regmap_reg_range(0x5017, 0x5017),
1214 regmap_reg_range(0x501b, 0x501b),
1215 regmap_reg_range(0x501f, 0x5020),
1216 regmap_reg_range(0x5030, 0x5030),
1217 regmap_reg_range(0x5100, 0x5115),
1218 regmap_reg_range(0x511a, 0x511f),
1219 regmap_reg_range(0x5120, 0x512b),
1220 regmap_reg_range(0x5134, 0x513b),
1221 regmap_reg_range(0x513c, 0x513f),
1222 regmap_reg_range(0x5400, 0x5401),
1223 regmap_reg_range(0x5403, 0x5403),
1224 regmap_reg_range(0x5410, 0x5417),
1225 regmap_reg_range(0x5420, 0x5423),
1226 regmap_reg_range(0x5500, 0x5507),
1227 regmap_reg_range(0x5600, 0x5612),
1228 regmap_reg_range(0x5800, 0x580f),
1229 regmap_reg_range(0x5820, 0x5827),
1230 regmap_reg_range(0x5830, 0x5837),
1231 regmap_reg_range(0x5840, 0x584b),
1232 regmap_reg_range(0x5900, 0x5907),
1233 regmap_reg_range(0x5914, 0x5915),
1234 regmap_reg_range(0x5a00, 0x5a03),
1235 regmap_reg_range(0x5a04, 0x5a07),
1236 regmap_reg_range(0x5b00, 0x5b01),
1237 regmap_reg_range(0x5b04, 0x5b04),
1240 regmap_reg_range(0x6000, 0x6001),
1241 regmap_reg_range(0x6013, 0x6013),
1242 regmap_reg_range(0x6017, 0x6017),
1243 regmap_reg_range(0x601b, 0x601b),
1244 regmap_reg_range(0x601f, 0x6020),
1245 regmap_reg_range(0x6030, 0x6030),
1246 regmap_reg_range(0x6100, 0x6115),
1247 regmap_reg_range(0x611a, 0x611f),
1248 regmap_reg_range(0x6120, 0x612b),
1249 regmap_reg_range(0x6134, 0x613b),
1250 regmap_reg_range(0x613c, 0x613f),
1251 regmap_reg_range(0x6300, 0x6301),
1252 regmap_reg_range(0x6400, 0x6401),
1253 regmap_reg_range(0x6403, 0x6403),
1254 regmap_reg_range(0x6410, 0x6417),
1255 regmap_reg_range(0x6420, 0x6423),
1256 regmap_reg_range(0x6500, 0x6507),
1257 regmap_reg_range(0x6600, 0x6612),
1258 regmap_reg_range(0x6800, 0x680f),
1259 regmap_reg_range(0x6820, 0x6827),
1260 regmap_reg_range(0x6830, 0x6837),
1261 regmap_reg_range(0x6840, 0x684b),
1262 regmap_reg_range(0x6900, 0x6907),
1263 regmap_reg_range(0x6914, 0x6915),
1264 regmap_reg_range(0x6a00, 0x6a03),
1265 regmap_reg_range(0x6a04, 0x6a07),
1266 regmap_reg_range(0x6b00, 0x6b01),
1267 regmap_reg_range(0x6b04, 0x6b04),
1276 regmap_reg_range(0x00, 0x01),
1278 regmap_reg_range(0x02, 0x0f),
1281 regmap_reg_range(0x10, 0x1d),
1282 regmap_reg_range(0x1e, 0x1f),
1283 regmap_reg_range(0x20, 0x2d),
1284 regmap_reg_range(0x2e, 0x2f),
1285 regmap_reg_range(0x30, 0x39),
1286 regmap_reg_range(0x3f, 0x3f),
1289 regmap_reg_range(0x60, 0x6f),
1290 regmap_reg_range(0x70, 0x75),
1291 regmap_reg_range(0x76, 0x78),
1292 regmap_reg_range(0x79, 0x7a),
1293 regmap_reg_range(0x7b, 0x83),
1294 regmap_reg_range(0x8e, 0x99),
1295 regmap_reg_range(0x9a, 0xa5),
1296 regmap_reg_range(0xa6, 0xa6),
1297 regmap_reg_range(0xa7, 0xaa),
1298 regmap_reg_range(0xab, 0xae),
1299 regmap_reg_range(0xaf, 0xba),
1300 regmap_reg_range(0xbb, 0xbc),
1301 regmap_reg_range(0xbd, 0xbd),
1302 regmap_reg_range(0xc0, 0xc0),
1303 regmap_reg_range(0xc2, 0xc2),
1304 regmap_reg_range(0xc3, 0xc3),
1305 regmap_reg_range(0xc4, 0xc4),
1306 regmap_reg_range(0xc6, 0xc6),
1321 .cpu_ports = 0x07, /* can be configured as cpu port */
1350 .num_alus = 0,
1352 .cpu_ports = 0x10, /* can be configured as cpu port */
1380 * offset 0x40 are NOT used on KSZ8794 and they ARE
1383 * KSZ8794 0,1,2 4
1384 * KSZ8795 0,1,2,3 4
1385 * KSZ8765 0,1,2,3 4
1391 .num_alus = 0,
1393 .cpu_ports = 0x10, /* can be configured as cpu port */
1418 .num_alus = 0,
1420 .cpu_ports = 0x10, /* can be configured as cpu port */
1445 .num_alus = 0,
1447 .cpu_ports = 0x4, /* can be configured as cpu port */
1473 * KSZ8895 0,1,2,3 4
1479 .num_alus = 0,
1481 .cpu_ports = 0x10, /* can be configured as cpu port */
1502 .num_alus = 0,
1504 .cpu_ports = 0x10, /* can be configured as cpu port */
1527 .cpu_ports = 0x7F, /* can be configured as cpu port */
1563 .cpu_ports = 0x3F, /* can be configured as cpu port */
1598 .cpu_ports = 0x7F, /* can be configured as cpu port */
1631 .cpu_ports = 0x07, /* can be configured as cpu port */
1659 .cpu_ports = 0x07, /* can be configured as cpu port */
1688 .cpu_ports = 0x7F, /* can be configured as cpu port */
1723 .cpu_ports = 0x7F, /* can be configured as cpu port */
1755 .cpu_ports = 0x10, /* can be configured as cpu port */
1784 .cpu_ports = 0x30, /* can be configured as cpu port */
1813 .cpu_ports = 0x30, /* can be configured as cpu port */
1846 .cpu_ports = 0x38, /* can be configured as cpu port */
1879 .cpu_ports = 0x30, /* can be configured as cpu port */
1912 .cpu_ports = 0x7F, /* can be configured as cpu port */
1947 for (i = 0; i < ARRAY_SIZE(ksz_switch_chips); i++) { in ksz_lookup_info()
1979 return 0; in ksz_check_device_id()
2151 for (i = 0; i < dev->info->mib_cnt; i++) in ksz_get_strings()
2182 u8 port_member = 0, cpu_port; in ksz_update_port_member()
2192 for (i = 0; i < ds->num_ports; i++) { in ksz_update_port_member()
2195 u8 val = 0; in ksz_update_port_member()
2219 for (j = 0; j < ds->num_ports; j++) { in ksz_update_port_member()
2261 if (ret < 0) in ksz_sw_mdio_read()
2306 * Return: 0 on success, or a negative error code on failure.
2351 * Return: 0 on success, or a negative error code on failure.
2360 for (phy = 0; phy < PHY_MAX_ADDR; phy++) { in ksz_irq_phy_setup()
2363 if (port < 0) { in ksz_irq_phy_setup()
2370 if (irq < 0) { in ksz_irq_phy_setup()
2377 return 0; in ksz_irq_phy_setup()
2398 for (phy = 0; phy < PHY_MAX_ADDR; phy++) in ksz_irq_phy_free()
2415 * Return: 0 on success, or a negative error code on failure.
2430 phy_node = of_parse_phandle(dp->dn, "phy-handle", 0); in ksz_parse_dt_phy_config()
2449 if (ret < 0) { in ksz_parse_dt_phy_config()
2454 dev_err(dev->dev, "PHY address mismatch for port %d, expected 0x%x, got 0x%x\n", in ksz_parse_dt_phy_config()
2470 return 0; in ksz_parse_dt_phy_config()
2483 * Return: 0 on success, or a negative error code on failure.
2496 return 0; in ksz_mdio_register()
2498 parent_bus_node = of_parse_phandle(mdio_np, "mdio-parent-bus", 0); in ksz_mdio_register()
2532 for (i = 0; i < dev->info->port_cnt; i++) in ksz_mdio_register()
2559 if (dev->irq > 0) { in ksz_mdio_register()
2569 if (dev->irq > 0) in ksz_mdio_register()
2629 return 0; in ksz_irq_domain_map()
2643 for (irq = 0; irq < kirq->nirqs; irq++) { in ksz_irq_free()
2654 unsigned int nhandled = 0; in ksz_irq_thread_fn()
2668 for (n = 0; n < kirq->nirqs; ++n) { in ksz_irq_thread_fn()
2676 return (nhandled > 0 ? IRQ_HANDLED : IRQ_NONE); in ksz_irq_thread_fn()
2684 kirq->masked = ~0; in ksz_irq_common_setup()
2686 kirq->domain = irq_domain_add_simple(dev->dev->of_node, kirq->nirqs, 0, in ksz_irq_common_setup()
2691 for (n = 0; n < kirq->nirqs; n++) in ksz_irq_common_setup()
2699 return 0; in ksz_irq_common_setup()
2731 if (pirq->irq_num < 0) in ksz_pirq_setup()
2798 if (dev->irq > 0) { in ksz_setup()
2821 if (ret < 0) { in ksz_setup()
2834 return 0; in ksz_setup()
2839 if (dev->irq > 0) in ksz_setup()
2843 if (dev->irq > 0) in ksz_setup()
2847 if (dev->irq > 0) in ksz_setup()
2860 if (dev->irq > 0) { in ksz_teardown()
2895 mib->cnt_ptr = 0; in port_r_cnt()
2906 for (i = 0; i < dev->info->port_cnt; i++) { in ksz_mib_read_work()
2941 for (i = 0; i < dev->info->port_cnt; i++) { in ksz_init_mib_timer()
2946 mib->cnt_ptr = 0; in ksz_init_mib_timer()
2947 memset(mib->counters, 0, dev->info->mib_cnt * sizeof(u64)); in ksz_init_mib_timer()
2954 u16 val = 0xffff; in ksz_phy_read16()
2973 return 0; in ksz_phy_write16()
3016 return 0; in ksz_get_phy_flags()
3030 schedule_delayed_work(&dev->mib_read, 0); in ksz_phylink_mac_link_down()
3038 return 0; in ksz_sset_count()
3070 return 0; in ksz_port_bridge_join()
3160 u32 queue_map = 0; in ksz9477_set_default_prio_queue_mapping()
3163 for (ipm = 0; ipm < dev->info->num_ipms; ipm++) { in ksz9477_set_default_prio_queue_mapping()
3171 if (queue < 0) in ksz9477_set_default_prio_queue_mapping()
3186 return 0; in ksz_port_setup()
3276 return 0; in ksz_port_pre_bridge_flags()
3297 return 0; in ksz_port_bridge_flags()
3337 return 0; in ksz_connect_tag_protocol()
3343 return 0; in ksz_connect_tag_protocol()
3464 return 0; in ksz_validate_eee()
3485 e->tx_lpi_timer = 0; in ksz_get_mac_eee()
3487 return 0; in ksz_get_mac_eee()
3510 return 0; in ksz_set_mac_eee()
3803 id32 &= ~0xFF; in ksz_switch_detect()
3841 return 0; in ksz_switch_detect()
3892 u32 cinc = 0; in cinc_cal()
3906 for (i = 0; i < 6; i++) { in cinc_cal()
3918 return 0; in cinc_cal()
3985 for (queue = 0; queue < dev->info->num_tx_queues; queue++) { in ksz_disable_egress_rate_limit()
3992 return 0; in ksz_disable_egress_rate_limit()
3999 * priority mode, the lowest priority is assigned to Queue 0 while the in ksz_ets_band_to_queue()
4000 * highest priority is given to Band 0. in ksz_ets_band_to_queue()
4038 u32 queue_map = 0; in ksz_tc_ets_add()
4051 for (band = 0; band < p->bands; band++) { in ksz_tc_ets_add()
4063 for (tc_prio = 0; tc_prio < ARRAY_SIZE(p->priomap); tc_prio++) { in ksz_tc_ets_add()
4083 for (queue = 0; queue < dev->info->num_tx_queues; queue++) { in ksz_tc_ets_del()
4110 for (band = 0; band < p->bands; ++band) { in ksz_tc_ets_validate()
4129 return 0; in ksz_tc_ets_validate()
4187 * Return: 0 on success, or an error code on failure.
4202 return 0; in ksz_handle_wake_reason()
4269 * Return: 0 on success, or other error codes on failure.
4274 u8 pme_ctrl = 0, pme_ctrl_old = 0; in ksz_set_wol()
4305 return 0; in ksz_set_wol()
4331 return 0; in ksz_set_wol()
4363 u8 pme_ctrl = 0; in ksz_wol_pre_shutdown()
4402 wol.wolopts = 0; in ksz_port_set_mac_address()
4412 return 0; in ksz_port_set_mac_address()
4456 * Return: 0 on success, or other error codes on failure.
4481 return 0; in ksz_switch_macaddr_get()
4493 for (i = 0; i < ETH_ALEN; i++) { in ksz_switch_macaddr_get()
4499 return 0; in ksz_switch_macaddr_get()
4503 refcount_set(&switch_macaddr->refcount, 0); in ksz_switch_macaddr_get()
4523 for (i = 0; i < ETH_ALEN; i++) in ksz_switch_macaddr_put()
4524 ksz_write8(dev, regs[REG_SW_MAC_ADDR] + i, 0); in ksz_switch_macaddr_put()
4576 return 0; in ksz_hsr_join()
4593 return 0; in ksz_hsr_leave()
4733 if (rx_delay < 0) in ksz_parse_rgmii_delay()
4734 rx_delay = 0; in ksz_parse_rgmii_delay()
4735 if (tx_delay < 0) in ksz_parse_rgmii_delay()
4736 tx_delay = 0; in ksz_parse_rgmii_delay()
4760 for (i = 0; i < array_size; i++) { in ksz_drive_strength_to_reg()
4792 for (i = 0; i < array_size; i++) { in ksz_drive_strength_error()
4794 i == 0 ? "%d" : ", %d", array[i].microamp); in ksz_drive_strength_error()
4818 * Return: 0 on successful configuration, a negative error code on failure.
4826 u8 mask = 0; in ksz9477_drive_strength_write()
4827 u8 val = 0; in ksz9477_drive_strength_write()
4840 for (i = 0; i < num_props; i++) { in ksz9477_drive_strength_write()
4846 if (ret < 0) { in ksz9477_drive_strength_write()
4871 * Return: 0 on success, error code otherwise
4881 for (i = 0; i < num_props; i++) { in ksz88x3_drive_strength_write()
4892 if (ret < 0) { in ksz88x3_drive_strength_write()
4912 * Return: 0 on success, error code otherwise
4929 .offset = 0, /* don't care */ in ksz_parse_drive_strength()
4937 for (i = 0; i < ARRAY_SIZE(of_props); i++) { in ksz_parse_drive_strength()
4950 return 0; in ksz_parse_drive_strength()
4971 for (i = 0; i < ARRAY_SIZE(of_props); i++) { in ksz_parse_drive_strength()
4980 return 0; in ksz_parse_drive_strength()
5000 gpiod_set_value_cansleep(dev->reset_gpio, 0); in ksz_switch_register()
5039 for (i = 0; i < dev->info->port_cnt; i++) { in ksz_switch_register()
5062 for (port_num = 0; port_num < dev->info->port_cnt; ++port_num) in ksz_switch_register()
5066 if (ret == 0) in ksz_switch_register()
5112 schedule_delayed_work(&dev->mib_read, 0); in ksz_switch_register()
5122 dev->mib_read_interval = 0; in ksz_switch_remove()