Lines Matching refs:cpu_dp
22 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_conduit_get_regs_len() local
23 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_conduit_get_regs_len()
24 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_regs_len()
25 int port = cpu_dp->index; in dsa_conduit_get_regs_len()
54 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_conduit_get_regs() local
55 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_conduit_get_regs()
56 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_regs()
59 int port = cpu_dp->index; in dsa_conduit_get_regs()
94 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_conduit_get_ethtool_stats() local
95 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_conduit_get_ethtool_stats()
96 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_ethtool_stats()
97 int port = cpu_dp->index; in dsa_conduit_get_ethtool_stats()
115 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_conduit_get_ethtool_phy_stats() local
116 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_conduit_get_ethtool_phy_stats()
117 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_ethtool_phy_stats()
118 int port = cpu_dp->index; in dsa_conduit_get_ethtool_phy_stats()
141 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_conduit_get_sset_count() local
142 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_conduit_get_sset_count()
143 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_sset_count()
158 count += ds->ops->get_sset_count(ds, cpu_dp->index, sset); in dsa_conduit_get_sset_count()
166 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_conduit_get_strings() local
167 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_conduit_get_strings()
168 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_strings()
169 int port = cpu_dp->index; in dsa_conduit_get_strings()
220 struct dsa_port *cpu_dp = dev->dsa_ptr; in __dsa_conduit_hwtstamp_validate() local
221 struct dsa_switch *ds = cpu_dp->ds; in __dsa_conduit_hwtstamp_validate()
240 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_conduit_ethtool_setup() local
241 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_ethtool_setup()
251 cpu_dp->orig_ethtool_ops = dev->ethtool_ops; in dsa_conduit_ethtool_setup()
252 if (cpu_dp->orig_ethtool_ops) in dsa_conduit_ethtool_setup()
253 memcpy(ops, cpu_dp->orig_ethtool_ops, sizeof(*ops)); in dsa_conduit_ethtool_setup()
269 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_conduit_ethtool_teardown() local
274 dev->ethtool_ops = cpu_dp->orig_ethtool_ops; in dsa_conduit_ethtool_teardown()
275 cpu_dp->orig_ethtool_ops = NULL; in dsa_conduit_ethtool_teardown()
299 struct dsa_port *cpu_dp = dev->dsa_ptr; in tagging_show() local
302 dsa_tag_protocol_to_str(cpu_dp->tag_ops)); in tagging_show()
311 struct dsa_port *cpu_dp = dev->dsa_ptr; in tagging_store() local
323 old_tag_ops = cpu_dp->tag_ops; in tagging_store()
336 err = dsa_tree_change_tag_proto(cpu_dp->ds->dst, new_tag_ops, in tagging_store()
374 int dsa_conduit_setup(struct net_device *dev, struct dsa_port *cpu_dp) in dsa_conduit_setup() argument
376 const struct dsa_device_ops *tag_ops = cpu_dp->tag_ops; in dsa_conduit_setup()
377 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_setup()
408 dev->dsa_ptr = cpu_dp; in dsa_conduit_setup()
445 int dsa_conduit_lag_setup(struct net_device *lag_dev, struct dsa_port *cpu_dp, in dsa_conduit_lag_setup() argument
453 err = dsa_conduit_setup(lag_dev, cpu_dp); in dsa_conduit_lag_setup()
460 err = dsa_port_lag_join(cpu_dp, lag_dev, uinfo, extack); in dsa_conduit_lag_setup()
478 struct dsa_port *cpu_dp) in dsa_conduit_lag_teardown() argument
483 dsa_port_lag_leave(cpu_dp, lag_dev); in dsa_conduit_lag_teardown()