Lines Matching refs:ds
22 struct raw_notifier_head *nh = &dp->ds->dst->nh; in dsa_port_notify()
33 struct dsa_switch *ds = dp->ds; in dsa_port_set_state() local
37 return ds->ops->port_stp_state_set ? 0 : -EOPNOTSUPP; in dsa_port_set_state()
39 if (ds->ops->port_stp_state_set) in dsa_port_set_state()
40 ds->ops->port_stp_state_set(ds, port, state); in dsa_port_set_state()
42 if (ds->ops->port_fast_age) { in dsa_port_set_state()
53 ds->ops->port_fast_age(ds, port); in dsa_port_set_state()
73 struct dsa_switch *ds = dp->ds; in dsa_port_enable() local
77 if (ds->ops->port_enable) { in dsa_port_enable()
78 err = ds->ops->port_enable(ds, port, phy); in dsa_port_enable()
90 struct dsa_switch *ds = dp->ds; in dsa_port_disable() local
95 if (ds->ops->port_disable) in dsa_port_disable()
96 ds->ops->port_disable(ds, port, phy); in dsa_port_disable()
102 .sw_index = dp->ds->index, in dsa_port_bridge_join()
125 .sw_index = dp->ds->index, in dsa_port_bridge_leave()
149 struct dsa_switch *ds = dp->ds; in dsa_port_vlan_filtering() local
155 if (ds->ops->port_vlan_filtering) in dsa_port_vlan_filtering()
156 return ds->ops->port_vlan_filtering(ds, dp->index, in dsa_port_vlan_filtering()
184 .sw_index = dp->ds->index, in dsa_port_fdb_add()
197 .sw_index = dp->ds->index, in dsa_port_fdb_del()
209 struct dsa_switch *ds = dp->ds; in dsa_port_fdb_dump() local
212 if (!ds->ops->port_fdb_dump) in dsa_port_fdb_dump()
215 return ds->ops->port_fdb_dump(ds, port, cb, data); in dsa_port_fdb_dump()
223 .sw_index = dp->ds->index, in dsa_port_mdb_add()
236 .sw_index = dp->ds->index, in dsa_port_mdb_del()
249 .sw_index = dp->ds->index, in dsa_port_vlan_add()
268 .sw_index = dp->ds->index, in dsa_port_vlan_del()
302 struct dsa_switch *ds = dp->ds; in dsa_port_setup_phy_of() local
332 if (ds->ops->adjust_link) in dsa_port_setup_phy_of()
333 ds->ops->adjust_link(ds, port, phydev); in dsa_port_setup_phy_of()
335 dev_dbg(ds->dev, "enabled port's phy: %s", phydev_name(phydev)); in dsa_port_setup_phy_of()
345 struct dsa_switch *ds = dp->ds; in dsa_port_fixed_link_register_of() local
353 dev_err(ds->dev, in dsa_port_fixed_link_register_of()
369 if (ds->ops->adjust_link) in dsa_port_fixed_link_register_of()
370 ds->ops->adjust_link(ds, port, phydev); in dsa_port_fixed_link_register_of()