Lines Matching refs:l2sys_reg
754 struct vsc9953_system_reg *l2sys_reg; in vsc9953_port_statistics_show() local
762 l2sys_reg = (struct vsc9953_system_reg *)(VSC9953_OFFSET + in vsc9953_port_statistics_show()
768 out_le32(&l2sys_reg->sys.stat_cfg, port_no); in vsc9953_port_statistics_show()
773 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_short) + in vsc9953_port_statistics_show()
774 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_frag) + in vsc9953_port_statistics_show()
775 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_jabber) + in vsc9953_port_statistics_show()
776 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_long) + in vsc9953_port_statistics_show()
777 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_64) + in vsc9953_port_statistics_show()
778 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_65_127) + in vsc9953_port_statistics_show()
779 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_128_255) + in vsc9953_port_statistics_show()
780 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_256_511) + in vsc9953_port_statistics_show()
781 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_512_1023) + in vsc9953_port_statistics_show()
782 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_1024_1526) + in vsc9953_port_statistics_show()
783 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_jumbo); in vsc9953_port_statistics_show()
784 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_64) + in vsc9953_port_statistics_show()
785 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_65_127) + in vsc9953_port_statistics_show()
786 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_128_255) + in vsc9953_port_statistics_show()
787 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_256_511) + in vsc9953_port_statistics_show()
788 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_512_1023) + in vsc9953_port_statistics_show()
789 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_1024_1526) + in vsc9953_port_statistics_show()
790 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_jumbo); in vsc9953_port_statistics_show()
795 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_oct); in vsc9953_port_statistics_show()
796 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_oct); in vsc9953_port_statistics_show()
801 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_yellow_prio_0) + in vsc9953_port_statistics_show()
802 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_yellow_prio_1) + in vsc9953_port_statistics_show()
803 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_yellow_prio_2) + in vsc9953_port_statistics_show()
804 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_yellow_prio_3) + in vsc9953_port_statistics_show()
805 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_yellow_prio_4) + in vsc9953_port_statistics_show()
806 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_yellow_prio_5) + in vsc9953_port_statistics_show()
807 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_yellow_prio_6) + in vsc9953_port_statistics_show()
808 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_yellow_prio_7) + in vsc9953_port_statistics_show()
809 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_green_prio_0) + in vsc9953_port_statistics_show()
810 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_green_prio_1) + in vsc9953_port_statistics_show()
811 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_green_prio_2) + in vsc9953_port_statistics_show()
812 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_green_prio_3) + in vsc9953_port_statistics_show()
813 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_green_prio_4) + in vsc9953_port_statistics_show()
814 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_green_prio_5) + in vsc9953_port_statistics_show()
815 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_green_prio_6) + in vsc9953_port_statistics_show()
816 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_green_prio_7); in vsc9953_port_statistics_show()
817 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_64) + in vsc9953_port_statistics_show()
818 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_65_127) + in vsc9953_port_statistics_show()
819 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_128_255) + in vsc9953_port_statistics_show()
820 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_256_511) + in vsc9953_port_statistics_show()
821 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_512_1023) + in vsc9953_port_statistics_show()
822 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_1024_1526) + in vsc9953_port_statistics_show()
823 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_jumbo); in vsc9953_port_statistics_show()
828 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_uc); in vsc9953_port_statistics_show()
829 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_uc); in vsc9953_port_statistics_show()
834 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_bc); in vsc9953_port_statistics_show()
835 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_bc); in vsc9953_port_statistics_show()
840 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_64); in vsc9953_port_statistics_show()
841 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_64); in vsc9953_port_statistics_show()
846 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_65_127); in vsc9953_port_statistics_show()
847 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_65_127); in vsc9953_port_statistics_show()
852 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_128_255); in vsc9953_port_statistics_show()
853 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_128_255); in vsc9953_port_statistics_show()
858 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_256_511); in vsc9953_port_statistics_show()
859 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_256_511); in vsc9953_port_statistics_show()
864 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_512_1023); in vsc9953_port_statistics_show()
865 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_512_1023); in vsc9953_port_statistics_show()
870 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_1024_1526); in vsc9953_port_statistics_show()
871 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_1024_1526); in vsc9953_port_statistics_show()
876 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_jumbo); in vsc9953_port_statistics_show()
877 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_jumbo); in vsc9953_port_statistics_show()
882 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_cat_drop) + in vsc9953_port_statistics_show()
883 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_tail) + in vsc9953_port_statistics_show()
884 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_yellow_prio_0) + in vsc9953_port_statistics_show()
885 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_yellow_prio_1) + in vsc9953_port_statistics_show()
886 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_yellow_prio_2) + in vsc9953_port_statistics_show()
887 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_yellow_prio_3) + in vsc9953_port_statistics_show()
888 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_yellow_prio_4) + in vsc9953_port_statistics_show()
889 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_yellow_prio_5) + in vsc9953_port_statistics_show()
890 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_yellow_prio_6) + in vsc9953_port_statistics_show()
891 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_yellow_prio_7) + in vsc9953_port_statistics_show()
892 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_green_prio_0) + in vsc9953_port_statistics_show()
893 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_green_prio_1) + in vsc9953_port_statistics_show()
894 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_green_prio_2) + in vsc9953_port_statistics_show()
895 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_green_prio_3) + in vsc9953_port_statistics_show()
896 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_green_prio_4) + in vsc9953_port_statistics_show()
897 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_green_prio_5) + in vsc9953_port_statistics_show()
898 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_green_prio_6) + in vsc9953_port_statistics_show()
899 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_green_prio_7); in vsc9953_port_statistics_show()
900 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_drop) + in vsc9953_port_statistics_show()
901 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_aged); in vsc9953_port_statistics_show()
909 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_crc); in vsc9953_port_statistics_show()
910 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_col); in vsc9953_port_statistics_show()
918 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_short); in vsc9953_port_statistics_show()
919 tx_val = in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_aged); in vsc9953_port_statistics_show()
924 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_long); in vsc9953_port_statistics_show()
928 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_frag); in vsc9953_port_statistics_show()
932 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_jabber); in vsc9953_port_statistics_show()
939 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_cat_drop) + in vsc9953_port_statistics_show()
940 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_local); in vsc9953_port_statistics_show()
949 struct vsc9953_system_reg *l2sys_reg; in vsc9953_port_statistics_clear() local
957 l2sys_reg = (struct vsc9953_system_reg *)(VSC9953_OFFSET + in vsc9953_port_statistics_clear()
961 out_le32(&l2sys_reg->sys.stat_cfg, port_no | in vsc9953_port_statistics_clear()
2610 struct vsc9953_system_reg *l2sys_reg; in vsc9953_init() local
2622 l2sys_reg = (struct vsc9953_system_reg *)(VSC9953_OFFSET + in vsc9953_init()
2640 out_le32(&l2sys_reg->sys.reset_cfg, VSC9953_MEM_ENABLE | in vsc9953_init()
2644 while ((in_le32(&l2sys_reg->sys.reset_cfg) & in vsc9953_init()
2650 out_le32(&l2sys_reg->sys.reset_cfg, (in_le32(&l2sys_reg->sys.reset_cfg) in vsc9953_init()
2667 out_le32(&l2sys_reg->pause_cfg.mac_fc_cfg[i], in vsc9953_init()
2672 out_le32(&l2sys_reg->pause_cfg.mac_fc_cfg[i], in vsc9953_init()
2691 out_le32(&l2sys_reg->sys.front_port_mode[i], in vsc9953_init()
2697 out_le32(&l2sys_reg->pause_cfg.pause_cfg[i], in vsc9953_init()