Searched refs:gmx_cfg (Results 1 - 5 of 5) sorted by relevance

/linux-4.4.14/arch/mips/cavium-octeon/executive/
H A Dcvmx-helper-rgmii.c109 union cvmx_gmxx_prtx_cfg gmx_cfg; cvmx_helper_rgmii_internal_loopback() local
110 gmx_cfg.u64 = 0; cvmx_helper_rgmii_internal_loopback()
111 gmx_cfg.s.duplex = 1; cvmx_helper_rgmii_internal_loopback()
112 gmx_cfg.s.slottime = 1; cvmx_helper_rgmii_internal_loopback()
113 gmx_cfg.s.speed = 1; cvmx_helper_rgmii_internal_loopback()
117 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64); cvmx_helper_rgmii_internal_loopback()
124 gmx_cfg.s.en = 1; cvmx_helper_rgmii_internal_loopback()
125 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64); cvmx_helper_rgmii_internal_loopback()
245 union cvmx_gmxx_prtx_cfg gmx_cfg; __cvmx_helper_rgmii_enable() local
248 gmx_cfg.u64 = __cvmx_helper_rgmii_enable()
250 gmx_cfg.s.en = 1; __cvmx_helper_rgmii_enable()
252 gmx_cfg.u64); __cvmx_helper_rgmii_enable()
479 union cvmx_gmxx_prtx_cfg gmx_cfg; __cvmx_helper_rgmii_configure_loopback() local
483 gmx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface)); __cvmx_helper_rgmii_configure_loopback()
484 original_enable = gmx_cfg.s.en; __cvmx_helper_rgmii_configure_loopback()
486 gmx_cfg.s.en = 0; __cvmx_helper_rgmii_configure_loopback()
489 gmx_cfg.s.duplex = 1; __cvmx_helper_rgmii_configure_loopback()
490 gmx_cfg.s.slottime = 1; __cvmx_helper_rgmii_configure_loopback()
491 gmx_cfg.s.speed = 1; __cvmx_helper_rgmii_configure_loopback()
496 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64); __cvmx_helper_rgmii_configure_loopback()
523 gmx_cfg.s.en = original_enable; __cvmx_helper_rgmii_configure_loopback()
524 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64); __cvmx_helper_rgmii_configure_loopback()
H A Dcvmx-helper-xaui.c119 union cvmx_gmxx_prtx_cfg gmx_cfg; __cvmx_helper_xaui_enable() local
129 gmx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(0, interface)); __cvmx_helper_xaui_enable()
130 gmx_cfg.s.pknd = cvmx_helper_get_ipd_port(interface, 0); __cvmx_helper_xaui_enable()
131 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(0, interface), gmx_cfg.u64); __cvmx_helper_xaui_enable()
186 gmx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(0, interface)); __cvmx_helper_xaui_enable()
187 gmx_cfg.s.en = 0; __cvmx_helper_xaui_enable()
188 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(0, interface), gmx_cfg.u64); __cvmx_helper_xaui_enable()
202 gmx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(0, interface)); __cvmx_helper_xaui_enable()
203 gmx_cfg.s.speed = 1; __cvmx_helper_xaui_enable()
204 gmx_cfg.s.speed_msb = 0; __cvmx_helper_xaui_enable()
205 gmx_cfg.s.slottime = 1; __cvmx_helper_xaui_enable()
209 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(0, interface), gmx_cfg.u64); __cvmx_helper_xaui_enable()
243 gmx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(0, interface)); __cvmx_helper_xaui_enable()
244 gmx_cfg.s.en = 1; __cvmx_helper_xaui_enable()
245 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(0, interface), gmx_cfg.u64); __cvmx_helper_xaui_enable()
H A Dcvmx-helper.c797 union cvmx_gmxx_prtx_cfg gmx_cfg; __cvmx_helper_errata_fix_ipd_ptr_alignment() local
900 gmx_cfg.u64 = __cvmx_helper_errata_fix_ipd_ptr_alignment()
904 gmx_cfg.s.en = 1; __cvmx_helper_errata_fix_ipd_ptr_alignment()
907 INTERFACE(FIX_IPD_OUTPORT)), gmx_cfg.u64); __cvmx_helper_errata_fix_ipd_ptr_alignment()
/linux-4.4.14/drivers/staging/octeon/
H A Dethernet-mdio.c138 union cvmx_gmxx_prtx_cfg gmx_cfg; cvm_oct_common_stop() local
141 gmx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface)); cvm_oct_common_stop()
142 gmx_cfg.s.en = 0; cvm_oct_common_stop()
143 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64); cvm_oct_common_stop()
H A Dethernet.c317 union cvmx_gmxx_prtx_cfg gmx_cfg; cvm_oct_common_set_multicast_list() local
348 gmx_cfg.u64 = cvm_oct_common_set_multicast_list()
351 gmx_cfg.u64 & ~1ull); cvm_oct_common_set_multicast_list()
363 gmx_cfg.u64); cvm_oct_common_set_multicast_list()
370 union cvmx_gmxx_prtx_cfg gmx_cfg; cvm_oct_set_mac_filter() local
384 gmx_cfg.u64 = cvm_oct_set_mac_filter()
387 gmx_cfg.u64 & ~1ull); cvm_oct_set_mac_filter()
404 gmx_cfg.u64); cvm_oct_set_mac_filter()
486 union cvmx_gmxx_prtx_cfg gmx_cfg; cvm_oct_common_open() local
497 gmx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface)); cvm_oct_common_open()
498 gmx_cfg.s.en = 1; cvm_oct_common_open()
499 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64); cvm_oct_common_open()

Completed in 145 milliseconds