• Home
  • Raw
  • Download

Lines Matching refs:cpu_dp

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