Lines Matching defs:cpu_dp
13 struct dsa_port *cpu_dp = dev->dsa_ptr;
14 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops;
15 struct dsa_switch *ds = cpu_dp->ds;
16 int port = cpu_dp->index;
43 struct dsa_port *cpu_dp = dev->dsa_ptr;
44 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops;
45 struct dsa_switch *ds = cpu_dp->ds;
48 int port = cpu_dp->index;
79 struct dsa_port *cpu_dp = dev->dsa_ptr;
80 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops;
81 struct dsa_switch *ds = cpu_dp->ds;
82 int port = cpu_dp->index;
98 struct dsa_port *cpu_dp = dev->dsa_ptr;
99 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops;
100 struct dsa_switch *ds = cpu_dp->ds;
101 int port = cpu_dp->index;
122 struct dsa_port *cpu_dp = dev->dsa_ptr;
123 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops;
124 struct dsa_switch *ds = cpu_dp->ds;
137 count += ds->ops->get_sset_count(ds, cpu_dp->index, sset);
145 struct dsa_port *cpu_dp = dev->dsa_ptr;
146 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops;
147 struct dsa_switch *ds = cpu_dp->ds;
148 int port = cpu_dp->index;
192 struct dsa_port *cpu_dp = dev->dsa_ptr;
193 struct dsa_switch *ds = cpu_dp->ds;
225 struct dsa_port *cpu_dp = dev->dsa_ptr;
226 struct dsa_switch *ds = cpu_dp->ds;
233 cpu_dp->orig_ethtool_ops = dev->ethtool_ops;
234 if (cpu_dp->orig_ethtool_ops)
235 memcpy(ops, cpu_dp->orig_ethtool_ops, sizeof(*ops));
251 struct dsa_port *cpu_dp = dev->dsa_ptr;
253 dev->ethtool_ops = cpu_dp->orig_ethtool_ops;
254 cpu_dp->orig_ethtool_ops = NULL;
279 struct dsa_port *cpu_dp = dev->dsa_ptr;
282 dsa_tag_protocol_to_str(cpu_dp->tag_ops));
310 int dsa_master_setup(struct net_device *dev, struct dsa_port *cpu_dp)
312 struct dsa_switch *ds = cpu_dp->ds;
325 ret = dev_set_mtu(dev, ETH_DATA_LEN + cpu_dp->tag_ops->overhead);
337 dev->dsa_ptr = cpu_dp;