Lines Matching defs:cpu_dp
21 struct dsa_port *cpu_dp = dev->dsa_ptr;
22 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops;
23 struct dsa_switch *ds = cpu_dp->ds;
24 int port = cpu_dp->index;
51 struct dsa_port *cpu_dp = dev->dsa_ptr;
52 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops;
53 struct dsa_switch *ds = cpu_dp->ds;
56 int port = cpu_dp->index;
87 struct dsa_port *cpu_dp = dev->dsa_ptr;
88 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops;
89 struct dsa_switch *ds = cpu_dp->ds;
90 int port = cpu_dp->index;
106 struct dsa_port *cpu_dp = dev->dsa_ptr;
107 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops;
108 struct dsa_switch *ds = cpu_dp->ds;
109 int port = cpu_dp->index;
130 struct dsa_port *cpu_dp = dev->dsa_ptr;
131 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops;
132 struct dsa_switch *ds = cpu_dp->ds;
145 count += ds->ops->get_sset_count(ds, cpu_dp->index, sset);
153 struct dsa_port *cpu_dp = dev->dsa_ptr;
154 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops;
155 struct dsa_switch *ds = cpu_dp->ds;
156 int port = cpu_dp->index;
205 struct dsa_port *cpu_dp = dev->dsa_ptr;
206 struct dsa_switch *ds = cpu_dp->ds;
225 struct dsa_port *cpu_dp = dev->dsa_ptr;
226 struct dsa_switch *ds = cpu_dp->ds;
236 cpu_dp->orig_ethtool_ops = dev->ethtool_ops;
237 if (cpu_dp->orig_ethtool_ops)
238 memcpy(ops, cpu_dp->orig_ethtool_ops, sizeof(*ops));
254 struct dsa_port *cpu_dp = dev->dsa_ptr;
259 dev->ethtool_ops = cpu_dp->orig_ethtool_ops;
260 cpu_dp->orig_ethtool_ops = NULL;
284 struct dsa_port *cpu_dp = dev->dsa_ptr;
287 dsa_tag_protocol_to_str(cpu_dp->tag_ops));
296 struct dsa_port *cpu_dp = dev->dsa_ptr;
308 old_tag_ops = cpu_dp->tag_ops;
321 err = dsa_tree_change_tag_proto(cpu_dp->ds->dst, new_tag_ops,
359 int dsa_master_setup(struct net_device *dev, struct dsa_port *cpu_dp)
361 const struct dsa_device_ops *tag_ops = cpu_dp->tag_ops;
362 struct dsa_switch *ds = cpu_dp->ds;
393 dev->dsa_ptr = cpu_dp;
430 int dsa_master_lag_setup(struct net_device *lag_dev, struct dsa_port *cpu_dp,
438 err = dsa_master_setup(lag_dev, cpu_dp);
445 err = dsa_port_lag_join(cpu_dp, lag_dev, uinfo, extack);
463 struct dsa_port *cpu_dp)
468 dsa_port_lag_leave(cpu_dp, lag_dev);