• Home
  • Raw
  • Download

Lines Matching refs:index

101 	int index = port & 0xf;  in cvmx_helper_rgmii_internal_loopback()  local
109 cvmx_write_csr(CVMX_GMXX_TXX_CLK(index, interface), 1); in cvmx_helper_rgmii_internal_loopback()
110 cvmx_write_csr(CVMX_GMXX_TXX_SLOT(index, interface), 0x200); in cvmx_helper_rgmii_internal_loopback()
111 cvmx_write_csr(CVMX_GMXX_TXX_BURST(index, interface), 0x2000); 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()
114 cvmx_write_csr(CVMX_ASXX_PRT_LOOP(interface), (1 << index) | tmp); in cvmx_helper_rgmii_internal_loopback()
116 cvmx_write_csr(CVMX_ASXX_TX_PRT_EN(interface), (1 << index) | tmp); in cvmx_helper_rgmii_internal_loopback()
118 cvmx_write_csr(CVMX_ASXX_RX_PRT_EN(interface), (1 << index) | tmp); 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()
267 int index = cvmx_helper_get_interface_index_num(ipd_port); in __cvmx_helper_rgmii_link_get() local
271 if (asxx_prt_loop.s.int_loop & (1 << index)) { in __cvmx_helper_rgmii_link_get()
299 int index = cvmx_helper_get_interface_index_num(ipd_port); in __cvmx_helper_rgmii_link_set() local
314 cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface)); in __cvmx_helper_rgmii_link_set()
320 ~(1 << index)); in __cvmx_helper_rgmii_link_set()
338 gmx_tx_ovr_bp.s.bp &= ~(1 << index); in __cvmx_helper_rgmii_link_set()
339 gmx_tx_ovr_bp.s.en |= 1 << index; in __cvmx_helper_rgmii_link_set()
351 interface * 0x800 + index * 0x100 + 0x880); in __cvmx_helper_rgmii_link_set()
359 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), new_gmx_cfg.u64); in __cvmx_helper_rgmii_link_set()
360 cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface)); in __cvmx_helper_rgmii_link_set()
386 cvmx_write_csr(CVMX_GMXX_TXX_CLK(index, interface), 50); in __cvmx_helper_rgmii_link_set()
387 cvmx_write_csr(CVMX_GMXX_TXX_SLOT(index, interface), 0x40); in __cvmx_helper_rgmii_link_set()
388 cvmx_write_csr(CVMX_GMXX_TXX_BURST(index, interface), 0); in __cvmx_helper_rgmii_link_set()
390 cvmx_write_csr(CVMX_GMXX_TXX_CLK(index, interface), 5); in __cvmx_helper_rgmii_link_set()
391 cvmx_write_csr(CVMX_GMXX_TXX_SLOT(index, interface), 0x40); in __cvmx_helper_rgmii_link_set()
392 cvmx_write_csr(CVMX_GMXX_TXX_BURST(index, interface), 0); in __cvmx_helper_rgmii_link_set()
394 cvmx_write_csr(CVMX_GMXX_TXX_CLK(index, interface), 1); in __cvmx_helper_rgmii_link_set()
395 cvmx_write_csr(CVMX_GMXX_TXX_SLOT(index, interface), 0x200); in __cvmx_helper_rgmii_link_set()
396 cvmx_write_csr(CVMX_GMXX_TXX_BURST(index, interface), 0x2000); in __cvmx_helper_rgmii_link_set()
416 if (((index == 0) && (mode.s.p0mii == 1)) in __cvmx_helper_rgmii_link_set()
417 || ((index != 0) && (mode.s.type == 1))) { in __cvmx_helper_rgmii_link_set()
419 (index, interface), 1); in __cvmx_helper_rgmii_link_set()
425 cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface)); in __cvmx_helper_rgmii_link_set()
428 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), new_gmx_cfg.u64); in __cvmx_helper_rgmii_link_set()
433 index)); in __cvmx_helper_rgmii_link_set()
448 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), new_gmx_cfg.u64); in __cvmx_helper_rgmii_link_set()