Lines Matching refs:gmx_cfg
104 union cvmx_gmxx_prtx_cfg gmx_cfg; in cvmx_helper_rgmii_internal_loopback() local
105 gmx_cfg.u64 = 0; in cvmx_helper_rgmii_internal_loopback()
106 gmx_cfg.s.duplex = 1; in cvmx_helper_rgmii_internal_loopback()
107 gmx_cfg.s.slottime = 1; in cvmx_helper_rgmii_internal_loopback()
108 gmx_cfg.s.speed = 1; in cvmx_helper_rgmii_internal_loopback()
112 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64); in cvmx_helper_rgmii_internal_loopback()
119 gmx_cfg.s.en = 1; in cvmx_helper_rgmii_internal_loopback()
120 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64); in cvmx_helper_rgmii_internal_loopback()
240 union cvmx_gmxx_prtx_cfg gmx_cfg; in __cvmx_helper_rgmii_enable() local
242 gmx_cfg.u64 = in __cvmx_helper_rgmii_enable()
244 gmx_cfg.s.en = 1; in __cvmx_helper_rgmii_enable()
246 gmx_cfg.u64); in __cvmx_helper_rgmii_enable()
472 union cvmx_gmxx_prtx_cfg gmx_cfg; in __cvmx_helper_rgmii_configure_loopback() local
476 gmx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface)); in __cvmx_helper_rgmii_configure_loopback()
477 original_enable = gmx_cfg.s.en; in __cvmx_helper_rgmii_configure_loopback()
479 gmx_cfg.s.en = 0; in __cvmx_helper_rgmii_configure_loopback()
482 gmx_cfg.s.duplex = 1; in __cvmx_helper_rgmii_configure_loopback()
483 gmx_cfg.s.slottime = 1; in __cvmx_helper_rgmii_configure_loopback()
484 gmx_cfg.s.speed = 1; in __cvmx_helper_rgmii_configure_loopback()
489 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64); in __cvmx_helper_rgmii_configure_loopback()
516 gmx_cfg.s.en = original_enable; in __cvmx_helper_rgmii_configure_loopback()
517 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64); in __cvmx_helper_rgmii_configure_loopback()