Lines Matching refs:Adr

73 			  MDIO_SET_PHY_ADDR(eng->phy.Adr) |  in phy_write()
91 MDIO_SET_PHY_ADDR_OLD(eng->phy.Adr) | in phy_write()
110 eng->phy.Adr, eng->run.mdio_base); in phy_write()
113 data, eng->phy.Adr, eng->run.mdio_base); in phy_write()
131 writel(MDIO_RD_CODE | MDIO_SET_PHY_ADDR(eng->phy.Adr) | in phy_read()
153 MDIO_SET_PHY_ADDR_OLD(eng->phy.Adr) | in phy_read()
178 eng->phy.Adr, eng->run.mdio_base); in phy_read()
181 read_value, eng->phy.Adr, eng->run.mdio_base); in phy_read()
192 clr_mask, set_mask, eng->phy.Adr, eng->run.mdio_base); in phy_clrset()
196 adr, clr_mask, set_mask, eng->phy.Adr, in phy_clrset()
208 eng->phy.Adr); in phy_dump()
222 phy_addr_orig = eng->phy.Adr; in phy_scan_id()
223 for (eng->phy.Adr = 0; eng->phy.Adr < 32; eng->phy.Adr++) { in phy_scan_id()
224 PRINTF(option, "[%02d] ", eng->phy.Adr); in phy_scan_id()
228 if ((eng->phy.Adr % 4) == 3) in phy_scan_id()
231 eng->phy.Adr = phy_addr_orig; in phy_scan_id()
256 phy_read(eng, PHY_REG_BMCR), eng->phy.Adr, in phy_basic_setting()
260 phy_read(eng, PHY_REG_BMCR), eng->phy.Adr, in phy_basic_setting()
283 phy_read(eng, PHY_REG_BMCR), eng->phy.Adr, in phy_wait_reset_done()
287 phy_read(eng, PHY_REG_BMCR), eng->phy.Adr, in phy_wait_reset_done()
472 phy_addr_org = eng->phy.Adr; in recov_phy_marvell1()
473 for ( eng->phy.Adr = 16; eng->phy.Adr <= 22; eng->phy.Adr++ ) { in recov_phy_marvell1()
477 … phy_write( eng, 6, eng->phy.PHY_06hA[eng->phy.Adr-16] );//06h[5]P5 loopback, 06h[6]P6 loopback in recov_phy_marvell1()
480 for ( eng->phy.Adr = 21; eng->phy.Adr <= 22; eng->phy.Adr++ ) { in recov_phy_marvell1()
483 eng->phy.Adr = phy_addr_org; in recov_phy_marvell1()
496 phy_addr_org = eng->phy.Adr; in phy_marvell1()
497 for ( eng->phy.Adr = 16; eng->phy.Adr <= 20; eng->phy.Adr++ ) { in phy_marvell1()
498 eng->phy.PHY_06hA[eng->phy.Adr-16] = phy_read( eng, PHY_ANER ); in phy_marvell1()
502 for ( eng->phy.Adr = 21; eng->phy.Adr <= 22; eng->phy.Adr++ ) { in phy_marvell1()
511 eng->phy.PHY_06hA[eng->phy.Adr-16] = phy_read( eng, PHY_ANER ); in phy_marvell1()
512 … if ( eng->phy.Adr == 21 ) phy_write( eng, 6, 0x0020 );//06h[5]P5 loopback, 06h[6]P6 loopback in phy_marvell1()
515 eng->phy.Adr = phy_addr_org; in phy_marvell1()
2140 phy_addr_org = eng->phy.Adr; in phy_find_addr()
2156 for (eng->phy.Adr = 0; eng->phy.Adr < 32; eng->phy.Adr++) { in phy_find_addr()
2166 eng->phy.Adr = eng->arg.phy_addr; in phy_find_addr()
2170 if (phy_addr_org != eng->phy.Adr) { in phy_find_addr()