Lines Matching refs:l2sys_reg
755 struct vsc9953_system_reg *l2sys_reg; in vsc9953_port_statistics_show() local
763 l2sys_reg = (struct vsc9953_system_reg *)(VSC9953_OFFSET + in vsc9953_port_statistics_show()
769 out_le32(&l2sys_reg->sys.stat_cfg, port_no); in vsc9953_port_statistics_show()
774 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_short) + in vsc9953_port_statistics_show()
775 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_frag) + in vsc9953_port_statistics_show()
776 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_jabber) + in vsc9953_port_statistics_show()
777 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_long) + in vsc9953_port_statistics_show()
778 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_64) + in vsc9953_port_statistics_show()
779 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_65_127) + in vsc9953_port_statistics_show()
780 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_128_255) + in vsc9953_port_statistics_show()
781 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_256_511) + in vsc9953_port_statistics_show()
782 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_512_1023) + in vsc9953_port_statistics_show()
783 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_1024_1526) + in vsc9953_port_statistics_show()
784 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_jumbo); in vsc9953_port_statistics_show()
785 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_64) + in vsc9953_port_statistics_show()
786 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_65_127) + in vsc9953_port_statistics_show()
787 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_128_255) + in vsc9953_port_statistics_show()
788 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_256_511) + in vsc9953_port_statistics_show()
789 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_512_1023) + in vsc9953_port_statistics_show()
790 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_1024_1526) + in vsc9953_port_statistics_show()
791 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_jumbo); in vsc9953_port_statistics_show()
796 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_oct); in vsc9953_port_statistics_show()
797 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_oct); in vsc9953_port_statistics_show()
802 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_yellow_prio_0) + in vsc9953_port_statistics_show()
803 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_yellow_prio_1) + in vsc9953_port_statistics_show()
804 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_yellow_prio_2) + in vsc9953_port_statistics_show()
805 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_yellow_prio_3) + in vsc9953_port_statistics_show()
806 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_yellow_prio_4) + in vsc9953_port_statistics_show()
807 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_yellow_prio_5) + in vsc9953_port_statistics_show()
808 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_yellow_prio_6) + in vsc9953_port_statistics_show()
809 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_yellow_prio_7) + in vsc9953_port_statistics_show()
810 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_green_prio_0) + in vsc9953_port_statistics_show()
811 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_green_prio_1) + in vsc9953_port_statistics_show()
812 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_green_prio_2) + in vsc9953_port_statistics_show()
813 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_green_prio_3) + in vsc9953_port_statistics_show()
814 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_green_prio_4) + in vsc9953_port_statistics_show()
815 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_green_prio_5) + in vsc9953_port_statistics_show()
816 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_green_prio_6) + in vsc9953_port_statistics_show()
817 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_green_prio_7); in vsc9953_port_statistics_show()
818 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_64) + in vsc9953_port_statistics_show()
819 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_65_127) + in vsc9953_port_statistics_show()
820 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_128_255) + in vsc9953_port_statistics_show()
821 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_256_511) + in vsc9953_port_statistics_show()
822 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_512_1023) + in vsc9953_port_statistics_show()
823 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_1024_1526) + in vsc9953_port_statistics_show()
824 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_jumbo); in vsc9953_port_statistics_show()
829 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_uc); in vsc9953_port_statistics_show()
830 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_uc); in vsc9953_port_statistics_show()
835 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_bc); in vsc9953_port_statistics_show()
836 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_bc); in vsc9953_port_statistics_show()
841 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_64); in vsc9953_port_statistics_show()
842 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_64); in vsc9953_port_statistics_show()
847 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_65_127); in vsc9953_port_statistics_show()
848 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_65_127); in vsc9953_port_statistics_show()
853 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_128_255); in vsc9953_port_statistics_show()
854 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_128_255); in vsc9953_port_statistics_show()
859 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_256_511); in vsc9953_port_statistics_show()
860 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_256_511); in vsc9953_port_statistics_show()
865 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_512_1023); in vsc9953_port_statistics_show()
866 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_512_1023); in vsc9953_port_statistics_show()
871 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_1024_1526); in vsc9953_port_statistics_show()
872 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_1024_1526); in vsc9953_port_statistics_show()
877 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_jumbo); in vsc9953_port_statistics_show()
878 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_jumbo); in vsc9953_port_statistics_show()
883 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_cat_drop) + in vsc9953_port_statistics_show()
884 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_tail) + in vsc9953_port_statistics_show()
885 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_yellow_prio_0) + in vsc9953_port_statistics_show()
886 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_yellow_prio_1) + in vsc9953_port_statistics_show()
887 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_yellow_prio_2) + in vsc9953_port_statistics_show()
888 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_yellow_prio_3) + in vsc9953_port_statistics_show()
889 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_yellow_prio_4) + in vsc9953_port_statistics_show()
890 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_yellow_prio_5) + in vsc9953_port_statistics_show()
891 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_yellow_prio_6) + in vsc9953_port_statistics_show()
892 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_yellow_prio_7) + in vsc9953_port_statistics_show()
893 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_green_prio_0) + in vsc9953_port_statistics_show()
894 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_green_prio_1) + in vsc9953_port_statistics_show()
895 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_green_prio_2) + in vsc9953_port_statistics_show()
896 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_green_prio_3) + in vsc9953_port_statistics_show()
897 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_green_prio_4) + in vsc9953_port_statistics_show()
898 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_green_prio_5) + in vsc9953_port_statistics_show()
899 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_green_prio_6) + in vsc9953_port_statistics_show()
900 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_green_prio_7); in vsc9953_port_statistics_show()
901 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_drop) + in vsc9953_port_statistics_show()
902 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_aged); in vsc9953_port_statistics_show()
910 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_crc); in vsc9953_port_statistics_show()
911 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_col); in vsc9953_port_statistics_show()
919 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_short); in vsc9953_port_statistics_show()
920 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_aged); in vsc9953_port_statistics_show()
925 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_long); in vsc9953_port_statistics_show()
929 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_frag); in vsc9953_port_statistics_show()
933 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_jabber); in vsc9953_port_statistics_show()
940 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_cat_drop) + in vsc9953_port_statistics_show()
941 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_local); in vsc9953_port_statistics_show()
950 struct vsc9953_system_reg *l2sys_reg; in vsc9953_port_statistics_clear() local
958 l2sys_reg = (struct vsc9953_system_reg *)(VSC9953_OFFSET + in vsc9953_port_statistics_clear()
962 out_le32(&l2sys_reg->sys.stat_cfg, port_no | in vsc9953_port_statistics_clear()
2478 struct vsc9953_system_reg *l2sys_reg; in vsc9953_init() local
2490 l2sys_reg = (struct vsc9953_system_reg *)(VSC9953_OFFSET + in vsc9953_init()
2508 out_le32(&l2sys_reg->sys.reset_cfg, VSC9953_MEM_ENABLE | in vsc9953_init()
2512 while ((in_le32(&l2sys_reg->sys.reset_cfg) & in vsc9953_init()
2518 out_le32(&l2sys_reg->sys.reset_cfg, (in_le32(&l2sys_reg->sys.reset_cfg) in vsc9953_init()
2535 out_le32(&l2sys_reg->pause_cfg.mac_fc_cfg[i], in vsc9953_init()
2540 out_le32(&l2sys_reg->pause_cfg.mac_fc_cfg[i], in vsc9953_init()
2559 out_le32(&l2sys_reg->sys.front_port_mode[i], in vsc9953_init()
2565 out_le32(&l2sys_reg->pause_cfg.pause_cfg[i], in vsc9953_init()