Lines Matching refs:ds
55 static int mv88e6123_61_65_setup_global(struct dsa_switch *ds) in mv88e6123_61_65_setup_global() argument
73 ret = mv88e6xxx_config_prio(ds); in mv88e6123_61_65_setup_global()
81 REG_WRITE(REG_GLOBAL, 0x1a, (dsa_upstream_port(ds) * 0x1110)); in mv88e6123_61_65_setup_global()
86 REG_WRITE(REG_GLOBAL, 0x1c, ds->index & 0x1f); in mv88e6123_61_65_setup_global()
112 if (i != ds->index && i < ds->dst->pd->nr_chips) in mv88e6123_61_65_setup_global()
113 nexthop = ds->pd->rtable[i] & 0x1f; in mv88e6123_61_65_setup_global()
144 static int mv88e6123_61_65_setup_port(struct dsa_switch *ds, int p) in mv88e6123_61_65_setup_port() argument
154 if (dsa_is_cpu_port(ds, p) || ds->dsa_port_mask & (1 << p)) in mv88e6123_61_65_setup_port()
180 if (dsa_is_cpu_port(ds, p)) { in mv88e6123_61_65_setup_port()
181 if (ds->dst->tag_protocol == DSA_TAG_PROTO_EDSA) in mv88e6123_61_65_setup_port()
186 if (ds->dsa_port_mask & (1 << p)) in mv88e6123_61_65_setup_port()
188 if (p == dsa_upstream_port(ds)) in mv88e6123_61_65_setup_port()
236 return mv88e6xxx_setup_port_common(ds, p); in mv88e6123_61_65_setup_port()
239 static int mv88e6123_61_65_setup(struct dsa_switch *ds) in mv88e6123_61_65_setup() argument
241 struct mv88e6xxx_priv_state *ps = ds_to_priv(ds); in mv88e6123_61_65_setup()
245 ret = mv88e6xxx_setup_common(ds); in mv88e6123_61_65_setup()
261 ret = mv88e6xxx_switch_reset(ds, false); in mv88e6123_61_65_setup()
267 ret = mv88e6123_61_65_setup_global(ds); in mv88e6123_61_65_setup()
272 ret = mv88e6123_61_65_setup_port(ds, i); in mv88e6123_61_65_setup()