Lines Matching refs:ds
24 struct dsa_switch *ds = cpu_dp->ds;
41 if (ds->ops->get_regs_len) {
42 len = ds->ops->get_regs_len(ds, port);
56 struct dsa_switch *ds = cpu_dp->ds;
81 if (ds->ops->get_regs_len && ds->ops->get_regs) {
82 len = ds->ops->get_regs_len(ds, port);
86 ds->ops->get_regs(ds, port, cpu_regs, data);
96 struct dsa_switch *ds = cpu_dp->ds;
107 if (ds->ops->get_ethtool_stats)
108 ds->ops->get_ethtool_stats(ds, port, data + count);
117 struct dsa_switch *ds = cpu_dp->ds;
135 if (ds->ops->get_ethtool_phy_stats)
136 ds->ops->get_ethtool_phy_stats(ds, port, data + count);
143 struct dsa_switch *ds = cpu_dp->ds;
157 if (ds->ops->get_sset_count)
158 count += ds->ops->get_sset_count(ds, cpu_dp->index, sset);
168 struct dsa_switch *ds = cpu_dp->ds;
195 if (ds->ops->get_strings) {
201 ds->ops->get_strings(ds, port, stringset, ndata);
202 count = ds->ops->get_sset_count(ds, port, stringset);
221 struct dsa_switch *ds = cpu_dp->ds;
225 dst = ds->dst;
241 struct dsa_switch *ds = cpu_dp->ds;
247 ops = devm_kzalloc(ds->dev, sizeof(*ops), GFP_KERNEL);
336 err = dsa_tree_change_tag_proto(cpu_dp->ds->dst, new_tag_ops,
377 struct dsa_switch *ds = cpu_dp->ds;
385 consumer_link = device_link_add(ds->dev, dev->dev.parent,
390 dev_name(ds->dev));