• Home
  • Raw
  • Download

Lines Matching refs:index

106 	int index = port & 0xf;  in cvmx_helper_rgmii_internal_loopback()  local
114 cvmx_write_csr(CVMX_GMXX_TXX_CLK(index, interface), 1); in cvmx_helper_rgmii_internal_loopback()
115 cvmx_write_csr(CVMX_GMXX_TXX_SLOT(index, interface), 0x200); in cvmx_helper_rgmii_internal_loopback()
116 cvmx_write_csr(CVMX_GMXX_TXX_BURST(index, interface), 0x2000); in cvmx_helper_rgmii_internal_loopback()
117 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64); in cvmx_helper_rgmii_internal_loopback()
119 cvmx_write_csr(CVMX_ASXX_PRT_LOOP(interface), (1 << index) | tmp); in cvmx_helper_rgmii_internal_loopback()
121 cvmx_write_csr(CVMX_ASXX_TX_PRT_EN(interface), (1 << index) | tmp); in cvmx_helper_rgmii_internal_loopback()
123 cvmx_write_csr(CVMX_ASXX_RX_PRT_EN(interface), (1 << index) | tmp); in cvmx_helper_rgmii_internal_loopback()
125 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64); in cvmx_helper_rgmii_internal_loopback()
273 int index = cvmx_helper_get_interface_index_num(ipd_port); in __cvmx_helper_rgmii_link_get() local
277 if (asxx_prt_loop.s.int_loop & (1 << index)) { in __cvmx_helper_rgmii_link_get()
306 int index = cvmx_helper_get_interface_index_num(ipd_port); in __cvmx_helper_rgmii_link_set() local
321 cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface)); in __cvmx_helper_rgmii_link_set()
327 ~(1 << index)); in __cvmx_helper_rgmii_link_set()
345 gmx_tx_ovr_bp.s.bp &= ~(1 << index); in __cvmx_helper_rgmii_link_set()
346 gmx_tx_ovr_bp.s.en |= 1 << index; in __cvmx_helper_rgmii_link_set()
358 interface * 0x800 + index * 0x100 + 0x880); in __cvmx_helper_rgmii_link_set()
366 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), new_gmx_cfg.u64); in __cvmx_helper_rgmii_link_set()
367 cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface)); in __cvmx_helper_rgmii_link_set()
393 cvmx_write_csr(CVMX_GMXX_TXX_CLK(index, interface), 50); in __cvmx_helper_rgmii_link_set()
394 cvmx_write_csr(CVMX_GMXX_TXX_SLOT(index, interface), 0x40); in __cvmx_helper_rgmii_link_set()
395 cvmx_write_csr(CVMX_GMXX_TXX_BURST(index, interface), 0); in __cvmx_helper_rgmii_link_set()
397 cvmx_write_csr(CVMX_GMXX_TXX_CLK(index, interface), 5); in __cvmx_helper_rgmii_link_set()
398 cvmx_write_csr(CVMX_GMXX_TXX_SLOT(index, interface), 0x40); in __cvmx_helper_rgmii_link_set()
399 cvmx_write_csr(CVMX_GMXX_TXX_BURST(index, interface), 0); in __cvmx_helper_rgmii_link_set()
401 cvmx_write_csr(CVMX_GMXX_TXX_CLK(index, interface), 1); in __cvmx_helper_rgmii_link_set()
402 cvmx_write_csr(CVMX_GMXX_TXX_SLOT(index, interface), 0x200); in __cvmx_helper_rgmii_link_set()
403 cvmx_write_csr(CVMX_GMXX_TXX_BURST(index, interface), 0x2000); in __cvmx_helper_rgmii_link_set()
423 if (((index == 0) && (mode.s.p0mii == 1)) in __cvmx_helper_rgmii_link_set()
424 || ((index != 0) && (mode.s.type == 1))) { in __cvmx_helper_rgmii_link_set()
426 (index, interface), 1); in __cvmx_helper_rgmii_link_set()
432 cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface)); in __cvmx_helper_rgmii_link_set()
435 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), new_gmx_cfg.u64); in __cvmx_helper_rgmii_link_set()
440 index)); in __cvmx_helper_rgmii_link_set()
455 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), new_gmx_cfg.u64); in __cvmx_helper_rgmii_link_set()
477 int index = cvmx_helper_get_interface_index_num(ipd_port); in __cvmx_helper_rgmii_configure_loopback() local
483 gmx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface)); in __cvmx_helper_rgmii_configure_loopback()
492 cvmx_write_csr(CVMX_GMXX_TXX_CLK(index, interface), 1); in __cvmx_helper_rgmii_configure_loopback()
493 cvmx_write_csr(CVMX_GMXX_TXX_SLOT(index, interface), 0x200); in __cvmx_helper_rgmii_configure_loopback()
494 cvmx_write_csr(CVMX_GMXX_TXX_BURST(index, interface), 0x2000); in __cvmx_helper_rgmii_configure_loopback()
496 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64); in __cvmx_helper_rgmii_configure_loopback()
501 asxx_prt_loop.s.int_loop |= 1 << index; in __cvmx_helper_rgmii_configure_loopback()
503 asxx_prt_loop.s.int_loop &= ~(1 << index); in __cvmx_helper_rgmii_configure_loopback()
505 asxx_prt_loop.s.ext_loop |= 1 << index; in __cvmx_helper_rgmii_configure_loopback()
507 asxx_prt_loop.s.ext_loop &= ~(1 << index); in __cvmx_helper_rgmii_configure_loopback()
515 (1 << index) | tmp); in __cvmx_helper_rgmii_configure_loopback()
518 (1 << index) | tmp); in __cvmx_helper_rgmii_configure_loopback()
524 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64); in __cvmx_helper_rgmii_configure_loopback()