Lines Matching refs:cpu_dp
13 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_get_regs_len() local
14 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_regs_len()
15 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_regs_len()
16 int port = cpu_dp->index; in dsa_master_get_regs_len()
43 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_get_regs() local
44 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_regs()
45 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_regs()
48 int port = cpu_dp->index; in dsa_master_get_regs()
79 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_get_ethtool_stats() local
80 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_ethtool_stats()
81 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_ethtool_stats()
82 int port = cpu_dp->index; in dsa_master_get_ethtool_stats()
98 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_get_ethtool_phy_stats() local
99 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_ethtool_phy_stats()
100 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_ethtool_phy_stats()
101 int port = cpu_dp->index; in dsa_master_get_ethtool_phy_stats()
122 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_get_sset_count() local
123 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_sset_count()
124 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_sset_count()
137 count += ds->ops->get_sset_count(ds, cpu_dp->index, sset); in dsa_master_get_sset_count()
145 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_get_strings() local
146 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_strings()
147 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_strings()
148 int port = cpu_dp->index; in dsa_master_get_strings()
192 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_ioctl() local
193 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_ioctl()
224 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_ethtool_setup() local
225 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_ethtool_setup()
235 cpu_dp->orig_ethtool_ops = dev->ethtool_ops; in dsa_master_ethtool_setup()
236 if (cpu_dp->orig_ethtool_ops) in dsa_master_ethtool_setup()
237 memcpy(ops, cpu_dp->orig_ethtool_ops, sizeof(*ops)); in dsa_master_ethtool_setup()
253 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_ethtool_teardown() local
258 dev->ethtool_ops = cpu_dp->orig_ethtool_ops; in dsa_master_ethtool_teardown()
259 cpu_dp->orig_ethtool_ops = NULL; in dsa_master_ethtool_teardown()
292 struct dsa_port *cpu_dp = dev->dsa_ptr; in tagging_show() local
295 dsa_tag_protocol_to_str(cpu_dp->tag_ops)); in tagging_show()
303 struct dsa_port *cpu_dp = dev->dsa_ptr; in tagging_store() local
306 old_tag_ops = cpu_dp->tag_ops; in tagging_store()
318 err = dsa_tree_change_tag_proto(cpu_dp->ds->dst, new_tag_ops, in tagging_store()
356 int dsa_master_setup(struct net_device *dev, struct dsa_port *cpu_dp) in dsa_master_setup() argument
358 const struct dsa_device_ops *tag_ops = cpu_dp->tag_ops; in dsa_master_setup()
359 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_setup()
390 dev->dsa_ptr = cpu_dp; in dsa_master_setup()
431 int dsa_master_lag_setup(struct net_device *lag_dev, struct dsa_port *cpu_dp, in dsa_master_lag_setup() argument
439 err = dsa_master_setup(lag_dev, cpu_dp); in dsa_master_lag_setup()
446 err = dsa_port_lag_join(cpu_dp, lag_dev, uinfo, extack); in dsa_master_lag_setup()
466 struct dsa_port *cpu_dp) in dsa_master_lag_teardown() argument
471 dsa_port_lag_leave(cpu_dp, lag_dev); in dsa_master_lag_teardown()