Searched refs:cpu_dp (Results 1 – 12 of 12) sorted by relevance
/net/dsa/ |
D | master.c | 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() [all …]
|
D | dsa.c | 372 struct dsa_port *cpu_dp; in dsa_tree_find_first_master() local 374 cpu_dp = dsa_tree_find_first_cpu(dst); in dsa_tree_find_first_master() 375 ethernet = of_parse_phandle(cpu_dp->dn, "ethernet", 0); in dsa_tree_find_first_master() 387 struct dsa_port *cpu_dp, *dp; in dsa_tree_setup_default_cpu() local 389 cpu_dp = dsa_tree_find_first_cpu(dst); in dsa_tree_setup_default_cpu() 390 if (!cpu_dp) { in dsa_tree_setup_default_cpu() 396 if (dp->cpu_dp) in dsa_tree_setup_default_cpu() 400 dp->cpu_dp = cpu_dp; in dsa_tree_setup_default_cpu() 409 struct dsa_port *cpu_dp; in dsa_switch_preferred_default_local_cpu_port() local 414 cpu_dp = ds->ops->preferred_default_local_cpu_port(ds); in dsa_switch_preferred_default_local_cpu_port() [all …]
|
D | tag.h | 35 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_find_slave() local 36 struct dsa_switch_tree *dst = cpu_dp->dst; in dsa_master_find_slave() 112 struct dsa_port *cpu_dp = master->dsa_ptr; in dsa_find_designated_bridge_port_by_vid() local 113 struct dsa_switch_tree *dst = cpu_dp->dst; in dsa_find_designated_bridge_port_by_vid() 134 if (dp->cpu_dp != cpu_dp) in dsa_find_designated_bridge_port_by_vid()
|
D | master.h | 11 int dsa_master_setup(struct net_device *dev, struct dsa_port *cpu_dp); 13 int dsa_master_lag_setup(struct net_device *lag_dev, struct dsa_port *cpu_dp, 17 struct dsa_port *cpu_dp);
|
D | tag.c | 58 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_switch_rcv() local 62 if (unlikely(!cpu_dp)) { in dsa_switch_rcv() 84 nskb = cpu_dp->rcv(skb, dev); in dsa_switch_rcv() 108 if (unlikely(cpu_dp->ds->untag_bridge_pvid)) { in dsa_switch_rcv()
|
D | slave.c | 1784 netdev_err(dev, "CPU port %d: %s\n", dp->cpu_dp->index, in dsa_slave_vlan_rx_add_vid() 2073 struct dsa_port *cpu_dp = dp->cpu_dp; in dsa_slave_change_mtu() local 2109 overhead = dsa_tag_protocol_overhead(cpu_dp->tag_ops); in dsa_slave_change_mtu() 2130 err = dsa_port_mtu_change(cpu_dp, cpu_mtu); in dsa_slave_change_mtu() 2147 dsa_port_mtu_change(cpu_dp, old_master_mtu - overhead); in dsa_slave_change_mtu() 2414 struct dsa_port *cpu_dp = dp->cpu_dp; in dsa_slave_fill_forward_path() local 2418 path->dsa.proto = cpu_dp->tag_ops->proto; in dsa_slave_fill_forward_path() 2539 const struct dsa_port *cpu_dp = dp->cpu_dp; in dsa_slave_setup_tagger() local 2542 slave->needed_headroom = cpu_dp->tag_ops->needed_headroom; in dsa_slave_setup_tagger() 2543 slave->needed_tailroom = cpu_dp->tag_ops->needed_tailroom; in dsa_slave_setup_tagger() [all …]
|
D | switch.c | 135 struct dsa_port *cpu_dp = targeted_dp->cpu_dp; in dsa_port_host_address_match() local 138 return dp->index == dsa_towards_port(dp->ds, cpu_dp->ds->index, in dsa_port_host_address_match() 139 cpu_dp->index); in dsa_port_host_address_match() 668 struct dsa_port *cpu_dp = targeted_dp->cpu_dp; in dsa_port_host_vlan_match() local 671 return dsa_port_is_dsa(dp) || dp == cpu_dp; in dsa_port_host_vlan_match() 877 struct dsa_port *dp, *cpu_dp; in dsa_switch_change_tag_proto() local 889 dsa_switch_for_each_cpu_port(cpu_dp, ds) in dsa_switch_change_tag_proto() 890 dsa_port_set_tag_protocol(cpu_dp, tag_ops); in dsa_switch_change_tag_proto()
|
D | tag_8021q.c | 474 struct dsa_port *cpu_dp = master->dsa_ptr; in dsa_tag_8021q_find_port_by_vbid() local 475 struct dsa_switch_tree *dst = cpu_dp->dst; in dsa_tag_8021q_find_port_by_vbid() 489 if (dp->cpu_dp != cpu_dp) in dsa_tag_8021q_find_port_by_vbid()
|
D | tag_dsa.c | 260 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_rcv_ll() local 267 lag = dsa_lag_by_id(cpu_dp->dst, source_port + 1); in dsa_rcv_ll()
|
D | tag_sja1105.c | 577 struct dsa_port *cpu_dp; in sja1110_rcv_meta() local 581 cpu_dp = master->dsa_ptr; in sja1110_rcv_meta() 582 ds = dsa_switch_find(cpu_dp->dst->index, switch_id); in sja1110_rcv_meta()
|
D | port.h | 19 void dsa_port_set_tag_protocol(struct dsa_port *cpu_dp,
|
D | port.c | 1417 dp->cpu_dp = master->dsa_ptr; in dsa_port_assign_master() 1531 void dsa_port_set_tag_protocol(struct dsa_port *cpu_dp, in dsa_port_set_tag_protocol() argument 1534 cpu_dp->rcv = tag_ops->rcv; in dsa_port_set_tag_protocol() 1535 cpu_dp->tag_ops = tag_ops; in dsa_port_set_tag_protocol()
|