Lines Matching refs:phy_addr

161 	u8 phy_addr;  member
519 db->phy_addr = 1; in uli526x_init()
525 db->phy_addr = phy_tmp; in uli526x_init()
536 phy_reg_reset = phy->read(db, db->phy_addr, 0); in uli526x_init()
538 phy->write(db, db->phy_addr, 0, phy_reg_reset); in uli526x_init()
545 while (timeout-- && phy->read(db, db->phy_addr, 0) & 0x8000) in uli526x_init()
664 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()
1061 if ((phy->read(db, db->phy_addr, 5) & 0x01e0)!=0) in uli526x_timer()
1074 phy->write(db, db->phy_addr, 0, 0x1000); in uli526x_timer()
1481 phy_mode = phy->read(db, db->phy_addr, 1); in uli526x_sense_speed()
1482 phy_mode = phy->read(db, db->phy_addr, 1); in uli526x_sense_speed()
1486 phy_mode = ((phy->read(db, db->phy_addr, 5) & 0x01e0)<<7); in uli526x_sense_speed()
1525 phy_reg = phy->read(db, db->phy_addr, 4) & ~0x01e0; in uli526x_set_phyxcer()
1546 phy->write(db, db->phy_addr, 4, phy_reg); in uli526x_set_phyxcer()
1549 phy->write(db, db->phy_addr, 0, 0x1200); in uli526x_set_phyxcer()
1577 phy_reg = phy->read(db, db->phy_addr, 6); in uli526x_process_mode()
1587 phy->write(db, db->phy_addr, 0, phy_reg); in uli526x_process_mode()
1594 static void phy_writeby_cr9(struct uli526x_board_info *db, u8 phy_addr, in phy_writeby_cr9() argument
1613 phy_write_1bit(db, phy_addr & i ? PHY_DATA_1 : PHY_DATA_0); in phy_writeby_cr9()
1628 static u16 phy_readby_cr9(struct uli526x_board_info *db, u8 phy_addr, u8 offset) in phy_readby_cr9() argument
1647 phy_write_1bit(db, phy_addr & i ? PHY_DATA_1 : PHY_DATA_0); in phy_readby_cr9()
1665 static u16 phy_readby_cr10(struct uli526x_board_info *db, u8 phy_addr, in phy_readby_cr10() argument
1669 u32 cr10_value = phy_addr; in phy_readby_cr10()
1683 static void phy_writeby_cr10(struct uli526x_board_info *db, u8 phy_addr, in phy_writeby_cr10() argument
1687 u32 cr10_value = phy_addr; in phy_writeby_cr10()