Lines Matching refs:ds
21 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_ethtool_stats() local
30 if (ds->ops->get_ethtool_stats) in dsa_master_get_ethtool_stats()
31 ds->ops->get_ethtool_stats(ds, port, data + count); in dsa_master_get_ethtool_stats()
40 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_ethtool_phy_stats() local
56 if (ds->ops->get_ethtool_phy_stats) in dsa_master_get_ethtool_phy_stats()
57 ds->ops->get_ethtool_phy_stats(ds, port, data + count); in dsa_master_get_ethtool_phy_stats()
64 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_sset_count() local
76 if (ds->ops->get_sset_count) in dsa_master_get_sset_count()
77 count += ds->ops->get_sset_count(ds, cpu_dp->index, sset); in dsa_master_get_sset_count()
87 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_strings() local
113 if (ds->ops->get_strings) { in dsa_master_get_strings()
119 ds->ops->get_strings(ds, port, stringset, ndata); in dsa_master_get_strings()
120 count = ds->ops->get_sset_count(ds, port, stringset); in dsa_master_get_strings()
132 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_ethtool_setup() local
135 ops = devm_kzalloc(ds->dev, sizeof(*ops), GFP_KERNEL); in dsa_master_ethtool_setup()