Lines Matching refs:cpu_dp
19 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_get_ethtool_stats() local
20 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_ethtool_stats()
21 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_ethtool_stats()
22 int port = cpu_dp->index; in dsa_master_get_ethtool_stats()
38 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_get_ethtool_phy_stats() local
39 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_ethtool_phy_stats()
40 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_ethtool_phy_stats()
41 int port = cpu_dp->index; in dsa_master_get_ethtool_phy_stats()
62 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_get_sset_count() local
63 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_sset_count()
64 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_sset_count()
77 count += ds->ops->get_sset_count(ds, cpu_dp->index, sset); in dsa_master_get_sset_count()
85 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_get_strings() local
86 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_strings()
87 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_strings()
88 int port = cpu_dp->index; in dsa_master_get_strings()
131 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_ethtool_setup() local
132 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_ethtool_setup()
139 cpu_dp->orig_ethtool_ops = dev->ethtool_ops; in dsa_master_ethtool_setup()
140 if (cpu_dp->orig_ethtool_ops) in dsa_master_ethtool_setup()
141 memcpy(ops, cpu_dp->orig_ethtool_ops, sizeof(*ops)); in dsa_master_ethtool_setup()
155 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_ethtool_teardown() local
157 dev->ethtool_ops = cpu_dp->orig_ethtool_ops; in dsa_master_ethtool_teardown()
158 cpu_dp->orig_ethtool_ops = NULL; in dsa_master_ethtool_teardown()
161 int dsa_master_setup(struct net_device *dev, struct dsa_port *cpu_dp) in dsa_master_setup() argument
169 dev->dsa_ptr = cpu_dp; in dsa_master_setup()