Lines Matching refs:reg_write
22 static int reg_write(struct mv88e6060_priv *priv, int addr, int reg, u16 val) in reg_write() function
63 ret = reg_write(priv, REG_PORT(i), PORT_CONTROL, in mv88e6060_switch_reset()
73 ret = reg_write(priv, REG_GLOBAL, GLOBAL_ATU_CONTROL, in mv88e6060_switch_reset()
105 ret = reg_write(priv, REG_GLOBAL, GLOBAL_CONTROL, in mv88e6060_setup_global()
112 return reg_write(priv, REG_GLOBAL, GLOBAL_ATU_CONTROL, in mv88e6060_setup_global()
126 ret = reg_write(priv, addr, PORT_CONTROL, in mv88e6060_setup_port()
140 ret = reg_write(priv, addr, PORT_VLAN_MAP, in mv88e6060_setup_port()
153 return reg_write(priv, addr, PORT_ASSOC_VECTOR, BIT(p)); in mv88e6060_setup_port()
171 ret = reg_write(priv, REG_GLOBAL, GLOBAL_MAC_01, val); in mv88e6060_setup_addr()
175 ret = reg_write(priv, REG_GLOBAL, GLOBAL_MAC_23, in mv88e6060_setup_addr()
180 return reg_write(priv, REG_GLOBAL, GLOBAL_MAC_45, in mv88e6060_setup_addr()
244 return reg_write(priv, addr, regnum, val); in mv88e6060_phy_write()