Lines Matching refs:pex_idx
23 u32 pex_idx, tmp, next_busno, first_busno, temp_pex_reg, in hws_pex_config() local
44 pex_idx = serdes_type - PEX0; in hws_pex_config()
45 tmp = reg_read(PEX_CAPABILITIES_REG(pex_idx)); in hws_pex_config()
48 reg_write(PEX_CAPABILITIES_REG(pex_idx), tmp); in hws_pex_config()
112 pex_idx = serdes_type - PEX0; in hws_pex_config()
113 tmp = reg_read(PEX_DBG_STATUS_REG(pex_idx)); in hws_pex_config()
118 DEBUG_INIT_D(pex_idx, 1); in hws_pex_config()
125 (pex_idx, PEX_LINK_CAPABILITY_REG))); in hws_pex_config()
131 pex_idx, in hws_pex_config()
141 pex_local_bus_num_set(pex_idx, first_busno); in hws_pex_config()
142 pex_local_dev_num_set(pex_idx, 1); in hws_pex_config()
144 DEBUG_INIT_FULL_D(pex_idx, 1); in hws_pex_config()
148 addr = pex_config_read(pex_idx, first_busno, 0, 0, 0x34) & 0xff; in hws_pex_config()
153 pex_idx, 1); in hws_pex_config()
157 while ((pex_config_read(pex_idx, first_busno, 0, 0, addr) in hws_pex_config()
159 addr = (pex_config_read(pex_idx, first_busno, 0, in hws_pex_config()
164 if ((pex_config_read(pex_idx, first_busno, 0, 0, in hws_pex_config()
167 DEBUG_INIT_D(pex_idx, 1); in hws_pex_config()
172 tmp = reg_read(PEX_LINK_CTRL_STATUS2_REG(pex_idx)); in hws_pex_config()
173 DEBUG_RD_REG(PEX_LINK_CTRL_STATUS2_REG(pex_idx), tmp); in hws_pex_config()
177 reg_write(PEX_LINK_CTRL_STATUS2_REG(pex_idx), tmp); in hws_pex_config()
178 DEBUG_WR_REG(PEX_LINK_CTRL_STATUS2_REG(pex_idx), tmp); in hws_pex_config()
180 tmp = reg_read(PEX_CTRL_REG(pex_idx)); in hws_pex_config()
181 DEBUG_RD_REG(PEX_CTRL_REG(pex_idx), tmp); in hws_pex_config()
183 reg_write(PEX_CTRL_REG(pex_idx), tmp); in hws_pex_config()
184 DEBUG_WR_REG(PEX_CTRL_REG(pex_idx), tmp); in hws_pex_config()
193 DEBUG_INIT_D(pex_idx, 1); in hws_pex_config()
215 pex_idx = serdes_type - PEX0; in hws_pex_config()
217 (pex_idx, PEX_DEVICE_AND_VENDOR_ID)); in hws_pex_config()
221 (pex_idx, PEX_DEVICE_AND_VENDOR_ID), dev_id); in hws_pex_config()