Lines Matching refs:prtx_cfg

801 	union cvmx_agl_gmx_prtx_cfg prtx_cfg;  in octeon_mgmt_disable_link()  local
804 prtx_cfg.u64 = cvmx_read_csr(p->agl + AGL_GMX_PRT_CFG); in octeon_mgmt_disable_link()
805 prtx_cfg.s.en = 0; in octeon_mgmt_disable_link()
806 prtx_cfg.s.tx_en = 0; in octeon_mgmt_disable_link()
807 prtx_cfg.s.rx_en = 0; in octeon_mgmt_disable_link()
808 cvmx_write_csr(p->agl + AGL_GMX_PRT_CFG, prtx_cfg.u64); in octeon_mgmt_disable_link()
813 prtx_cfg.u64 = cvmx_read_csr(p->agl + AGL_GMX_PRT_CFG); in octeon_mgmt_disable_link()
814 if (prtx_cfg.s.tx_idle == 1 || prtx_cfg.s.rx_idle == 1) in octeon_mgmt_disable_link()
824 union cvmx_agl_gmx_prtx_cfg prtx_cfg; in octeon_mgmt_enable_link() local
827 prtx_cfg.u64 = cvmx_read_csr(p->agl + AGL_GMX_PRT_CFG); in octeon_mgmt_enable_link()
828 prtx_cfg.s.tx_en = 1; in octeon_mgmt_enable_link()
829 prtx_cfg.s.rx_en = 1; in octeon_mgmt_enable_link()
830 prtx_cfg.s.en = 1; in octeon_mgmt_enable_link()
831 cvmx_write_csr(p->agl + AGL_GMX_PRT_CFG, prtx_cfg.u64); in octeon_mgmt_enable_link()
838 union cvmx_agl_gmx_prtx_cfg prtx_cfg; in octeon_mgmt_update_link() local
840 prtx_cfg.u64 = cvmx_read_csr(p->agl + AGL_GMX_PRT_CFG); in octeon_mgmt_update_link()
843 prtx_cfg.s.duplex = 1; in octeon_mgmt_update_link()
845 prtx_cfg.s.duplex = phydev->duplex; in octeon_mgmt_update_link()
849 prtx_cfg.s.speed = 0; in octeon_mgmt_update_link()
850 prtx_cfg.s.slottime = 0; in octeon_mgmt_update_link()
853 prtx_cfg.s.burst = 1; in octeon_mgmt_update_link()
854 prtx_cfg.s.speed_msb = 1; in octeon_mgmt_update_link()
858 prtx_cfg.s.speed = 0; in octeon_mgmt_update_link()
859 prtx_cfg.s.slottime = 0; in octeon_mgmt_update_link()
862 prtx_cfg.s.burst = 1; in octeon_mgmt_update_link()
863 prtx_cfg.s.speed_msb = 0; in octeon_mgmt_update_link()
869 prtx_cfg.s.speed = 1; in octeon_mgmt_update_link()
870 prtx_cfg.s.speed_msb = 0; in octeon_mgmt_update_link()
872 prtx_cfg.s.slottime = 1; in octeon_mgmt_update_link()
873 prtx_cfg.s.burst = phydev->duplex; in octeon_mgmt_update_link()
882 cvmx_write_csr(p->agl + AGL_GMX_PRT_CFG, prtx_cfg.u64); in octeon_mgmt_update_link()
885 prtx_cfg.u64 = cvmx_read_csr(p->agl + AGL_GMX_PRT_CFG); in octeon_mgmt_update_link()