Home
last modified time | relevance | path

Searched refs:reg_ofs (Results 1 – 2 of 2) sorted by relevance

/external/u-boot/drivers/net/
Dlpc32xx_eth.c227 int reg_ofs) in mii_reg_read() argument
242 if (reg_ofs > MII_MAX_REG) { in mii_reg_read()
244 __func__, __LINE__, reg_ofs); in mii_reg_read()
249 writel((phy_adr << MADR_PHY_OFFSET) | (reg_ofs << MADR_REG_OFFSET), in mii_reg_read()
275 reg_ofs, data); in mii_reg_read()
287 int reg_ofs, u16 data) in mii_reg_write() argument
301 if (reg_ofs > MII_MAX_REG) { in mii_reg_write()
303 __func__, __LINE__, reg_ofs); in mii_reg_write()
308 writel((phy_adr << MADR_PHY_OFFSET) | (reg_ofs << MADR_REG_OFFSET), in mii_reg_write()
Dmvgbe.c64 int reg_ofs) in smi_reg_read() argument
75 reg_ofs == MV_PHY_ADR_REQUEST) { in smi_reg_read()
86 if (reg_ofs > PHYREG_MASK) { in smi_reg_read()
88 __func__, reg_ofs); in smi_reg_read()
98 | (reg_ofs << MVGBE_SMI_REG_ADDR_OFFS) in smi_reg_read()
123 debug("%s:(adr %d, off %d) value= %04x\n", __func__, phy_adr, reg_ofs, in smi_reg_read()
135 int reg_ofs, u16 data) in smi_reg_write() argument
144 reg_ofs == MV_PHY_ADR_REQUEST) { in smi_reg_write()
154 if (reg_ofs > PHYREG_MASK) { in smi_reg_write()
166 | (reg_ofs << MVGBE_SMI_REG_ADDR_OFFS); in smi_reg_write()