Lines Matching refs:ds

23 	struct dsa_switch *ds = cpu_dp->ds;  in dsa_master_get_regs_len()  local
38 if (ds->ops->get_regs_len) { in dsa_master_get_regs_len()
39 len = ds->ops->get_regs_len(ds, port); in dsa_master_get_regs_len()
53 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_regs() local
74 if (ds->ops->get_regs_len && ds->ops->get_regs) { in dsa_master_get_regs()
75 len = ds->ops->get_regs_len(ds, port); in dsa_master_get_regs()
79 ds->ops->get_regs(ds, port, cpu_regs, data); in dsa_master_get_regs()
89 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_ethtool_stats() local
98 if (ds->ops->get_ethtool_stats) in dsa_master_get_ethtool_stats()
99 ds->ops->get_ethtool_stats(ds, port, data + count); in dsa_master_get_ethtool_stats()
108 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_ethtool_phy_stats() local
124 if (ds->ops->get_ethtool_phy_stats) in dsa_master_get_ethtool_phy_stats()
125 ds->ops->get_ethtool_phy_stats(ds, port, data + count); in dsa_master_get_ethtool_phy_stats()
132 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_sset_count() local
144 if (ds->ops->get_sset_count) in dsa_master_get_sset_count()
145 count += ds->ops->get_sset_count(ds, cpu_dp->index, sset); in dsa_master_get_sset_count()
155 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_strings() local
180 if (ds->ops->get_strings) { in dsa_master_get_strings()
186 ds->ops->get_strings(ds, port, stringset, ndata); in dsa_master_get_strings()
187 count = ds->ops->get_sset_count(ds, port, stringset); in dsa_master_get_strings()
206 struct dsa_switch *ds = cpu_dp->ds; in __dsa_master_hwtstamp_validate() local
210 dst = ds->dst; in __dsa_master_hwtstamp_validate()
226 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_ethtool_setup() local
232 ops = devm_kzalloc(ds->dev, sizeof(*ops), GFP_KERNEL); in dsa_master_ethtool_setup()
321 err = dsa_tree_change_tag_proto(cpu_dp->ds->dst, new_tag_ops, in tagging_store()
362 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_setup() local
370 consumer_link = device_link_add(ds->dev, dev->dev.parent, in dsa_master_setup()
375 dev_name(ds->dev)); in dsa_master_setup()