• Home
  • Raw
  • Download

Lines Matching refs:ds

19 static int reg_read(struct dsa_switch *ds, int addr, int reg)  in reg_read()  argument
21 return mdiobus_read(ds->master_mii_bus, addr, reg); in reg_read()
28 __ret = reg_read(ds, addr, reg); \
35 static int reg_write(struct dsa_switch *ds, int addr, int reg, u16 val) in reg_write() argument
37 return mdiobus_write(ds->master_mii_bus, addr, reg, val); in reg_write()
44 __ret = reg_write(ds, addr, reg, val); \
63 static int mv88e6060_switch_reset(struct dsa_switch *ds) in mv88e6060_switch_reset() argument
102 static int mv88e6060_setup_global(struct dsa_switch *ds) in mv88e6060_setup_global() argument
121 static int mv88e6060_setup_port(struct dsa_switch *ds, int p) in mv88e6060_setup_port() argument
131 REG_WRITE(addr, 0x04, (p == ds->cpu_port) ? 0x4103 : 0x0003); in mv88e6060_setup_port()
141 ((p == ds->cpu_port) ? in mv88e6060_setup_port()
142 ds->valid_port_mask : in mv88e6060_setup_port()
143 (1 << ds->cpu_port))); in mv88e6060_setup_port()
156 static int mv88e6060_setup(struct dsa_switch *ds) in mv88e6060_setup() argument
161 ret = mv88e6060_switch_reset(ds); in mv88e6060_setup()
167 ret = mv88e6060_setup_global(ds); in mv88e6060_setup()
172 ret = mv88e6060_setup_port(ds, i); in mv88e6060_setup()
180 static int mv88e6060_set_addr(struct dsa_switch *ds, u8 *addr) in mv88e6060_set_addr() argument
196 static int mv88e6060_phy_read(struct dsa_switch *ds, int port, int regnum) in mv88e6060_phy_read() argument
204 return reg_read(ds, addr, regnum); in mv88e6060_phy_read()
208 mv88e6060_phy_write(struct dsa_switch *ds, int port, int regnum, u16 val) in mv88e6060_phy_write() argument
216 return reg_write(ds, addr, regnum, val); in mv88e6060_phy_write()
219 static void mv88e6060_poll_link(struct dsa_switch *ds) in mv88e6060_poll_link() argument
231 dev = ds->ports[i]; in mv88e6060_poll_link()
237 port_status = reg_read(ds, REG_PORT(i), 0x00); in mv88e6060_poll_link()