Lines Matching refs:phy_addr
163 u8 phy_addr; member
520 db->phy_addr = 1; in uli526x_init()
526 db->phy_addr = phy_tmp; in uli526x_init()
537 phy_reg_reset = phy->read(db, db->phy_addr, 0); in uli526x_init()
539 phy->write(db, db->phy_addr, 0, phy_reg_reset); in uli526x_init()
546 while (timeout-- && phy->read(db, db->phy_addr, 0) & 0x8000) in uli526x_init()
665 db->phy.write(db, db->phy_addr, 0, 0x8000); in uli526x_stop()
944 cmd->base.phy_address = db->phy_addr; in ULi_ethtool_get_link_ksettings()
1062 if ((phy->read(db, db->phy_addr, 5) & 0x01e0)!=0) in uli526x_timer()
1075 phy->write(db, db->phy_addr, 0, 0x1000); in uli526x_timer()
1518 phy_mode = phy->read(db, db->phy_addr, 1); in uli526x_sense_speed()
1519 phy_mode = phy->read(db, db->phy_addr, 1); in uli526x_sense_speed()
1523 phy_mode = ((phy->read(db, db->phy_addr, 5) & 0x01e0)<<7); in uli526x_sense_speed()
1562 phy_reg = phy->read(db, db->phy_addr, 4) & ~0x01e0; in uli526x_set_phyxcer()
1583 phy->write(db, db->phy_addr, 4, phy_reg); in uli526x_set_phyxcer()
1586 phy->write(db, db->phy_addr, 0, 0x1200); in uli526x_set_phyxcer()
1614 phy_reg = phy->read(db, db->phy_addr, 6); in uli526x_process_mode()
1624 phy->write(db, db->phy_addr, 0, phy_reg); in uli526x_process_mode()
1631 static void phy_writeby_cr9(struct uli526x_board_info *db, u8 phy_addr, in phy_writeby_cr9() argument
1650 phy_write_1bit(db, phy_addr & i ? PHY_DATA_1 : PHY_DATA_0); in phy_writeby_cr9()
1665 static u16 phy_readby_cr9(struct uli526x_board_info *db, u8 phy_addr, u8 offset) in phy_readby_cr9() argument
1684 phy_write_1bit(db, phy_addr & i ? PHY_DATA_1 : PHY_DATA_0); in phy_readby_cr9()
1702 static u16 phy_readby_cr10(struct uli526x_board_info *db, u8 phy_addr, in phy_readby_cr10() argument
1706 u32 cr10_value = phy_addr; in phy_readby_cr10()
1720 static void phy_writeby_cr10(struct uli526x_board_info *db, u8 phy_addr, in phy_writeby_cr10() argument
1724 u32 cr10_value = phy_addr; in phy_writeby_cr10()