Lines Matching refs:ds

15 	struct dsa_switch *ds = cpu_dp->ds;  in dsa_master_get_regs_len()  local
30 if (ds->ops->get_regs_len) { in dsa_master_get_regs_len()
31 len = ds->ops->get_regs_len(ds, port); in dsa_master_get_regs_len()
45 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_regs() local
66 if (ds->ops->get_regs_len && ds->ops->get_regs) { in dsa_master_get_regs()
67 len = ds->ops->get_regs_len(ds, port); in dsa_master_get_regs()
71 ds->ops->get_regs(ds, port, cpu_regs, data); in dsa_master_get_regs()
81 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_ethtool_stats() local
90 if (ds->ops->get_ethtool_stats) in dsa_master_get_ethtool_stats()
91 ds->ops->get_ethtool_stats(ds, port, data + count); in dsa_master_get_ethtool_stats()
100 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_ethtool_phy_stats() local
116 if (ds->ops->get_ethtool_phy_stats) in dsa_master_get_ethtool_phy_stats()
117 ds->ops->get_ethtool_phy_stats(ds, port, data + count); in dsa_master_get_ethtool_phy_stats()
124 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_sset_count() local
136 if (ds->ops->get_sset_count) in dsa_master_get_sset_count()
137 count += ds->ops->get_sset_count(ds, cpu_dp->index, sset); in dsa_master_get_sset_count()
147 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_strings() local
172 if (ds->ops->get_strings) { in dsa_master_get_strings()
178 ds->ops->get_strings(ds, port, stringset, ndata); in dsa_master_get_strings()
179 count = ds->ops->get_sset_count(ds, port, stringset); in dsa_master_get_strings()
193 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_ioctl() local
198 dst = ds->dst; in dsa_master_ioctl()
207 if (dp->ds->ops->port_hwtstamp_get || in dsa_master_ioctl()
208 dp->ds->ops->port_hwtstamp_set) in dsa_master_ioctl()
226 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_ethtool_setup() local
229 ops = devm_kzalloc(ds->dev, sizeof(*ops), GFP_KERNEL); in dsa_master_ethtool_setup()
310 err = dsa_tree_change_tag_proto(cpu_dp->ds->dst, dev, new_tag_ops, in tagging_store()
351 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_setup() local
358 consumer_link = device_link_add(ds->dev, dev->dev.parent, in dsa_master_setup()
363 dev_name(ds->dev)); in dsa_master_setup()