Searched refs:cpu_dp (Results 1 – 10 of 10) sorted by relevance
/net/dsa/ |
D | master.c | 13 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_get_regs_len() local 14 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_regs_len() 15 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_regs_len() 16 int port = cpu_dp->index; in dsa_master_get_regs_len() 43 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_get_regs() local 44 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_regs() 45 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_regs() 48 int port = cpu_dp->index; in dsa_master_get_regs() 79 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_get_ethtool_stats() local 80 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_ethtool_stats() [all …]
|
D | dsa2.c | 394 struct dsa_port *cpu_dp; in dsa_tree_find_first_master() local 396 cpu_dp = dsa_tree_find_first_cpu(dst); in dsa_tree_find_first_master() 397 ethernet = of_parse_phandle(cpu_dp->dn, "ethernet", 0); in dsa_tree_find_first_master() 409 struct dsa_port *cpu_dp, *dp; in dsa_tree_setup_default_cpu() local 411 cpu_dp = dsa_tree_find_first_cpu(dst); in dsa_tree_setup_default_cpu() 412 if (!cpu_dp) { in dsa_tree_setup_default_cpu() 418 if (dp->cpu_dp) in dsa_tree_setup_default_cpu() 422 dp->cpu_dp = cpu_dp; in dsa_tree_setup_default_cpu() 435 struct dsa_port *cpu_dp, *dp; in dsa_tree_setup_cpu_ports() local 437 list_for_each_entry(cpu_dp, &dst->ports, list) { in dsa_tree_setup_cpu_ports() [all …]
|
D | dsa_priv.h | 186 int dsa_master_setup(struct net_device *dev, struct dsa_port *cpu_dp); 188 int dsa_master_lag_setup(struct net_device *lag_dev, struct dsa_port *cpu_dp, 192 struct dsa_port *cpu_dp); 197 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_find_slave() local 198 struct dsa_switch_tree *dst = cpu_dp->dst; in dsa_master_find_slave() 214 void dsa_port_set_tag_protocol(struct dsa_port *cpu_dp, 410 struct dsa_port *cpu_dp = master->dsa_ptr; in dsa_find_designated_bridge_port_by_vid() local 411 struct dsa_switch_tree *dst = cpu_dp->dst; in dsa_find_designated_bridge_port_by_vid() 432 if (dp->cpu_dp != cpu_dp) in dsa_find_designated_bridge_port_by_vid()
|
D | slave.c | 1638 netdev_err(dev, "CPU port %d: %s\n", dp->cpu_dp->index, in dsa_slave_vlan_rx_add_vid() 1848 struct dsa_port *cpu_dp = dp->cpu_dp; in dsa_slave_change_mtu() local 1884 overhead = dsa_tag_protocol_overhead(cpu_dp->tag_ops); in dsa_slave_change_mtu() 1905 err = dsa_port_mtu_change(cpu_dp, cpu_mtu); in dsa_slave_change_mtu() 1922 dsa_port_mtu_change(cpu_dp, old_master_mtu - overhead); in dsa_slave_change_mtu() 2193 struct dsa_port *cpu_dp = dp->cpu_dp; in dsa_slave_fill_forward_path() local 2197 path->dsa.proto = cpu_dp->tag_ops->proto; in dsa_slave_fill_forward_path() 2319 const struct dsa_port *cpu_dp = dp->cpu_dp; in dsa_slave_setup_tagger() local 2322 slave->needed_headroom = cpu_dp->tag_ops->needed_headroom; in dsa_slave_setup_tagger() 2323 slave->needed_tailroom = cpu_dp->tag_ops->needed_tailroom; in dsa_slave_setup_tagger() [all …]
|
D | switch.c | 129 struct dsa_port *cpu_dp = targeted_dp->cpu_dp; in dsa_port_host_address_match() local 132 return dp->index == dsa_towards_port(dp->ds, cpu_dp->ds->index, in dsa_port_host_address_match() 133 cpu_dp->index); in dsa_port_host_address_match() 624 struct dsa_port *cpu_dp = targeted_dp->cpu_dp; in dsa_port_host_vlan_match() local 627 return dsa_port_is_dsa(dp) || dp == cpu_dp; in dsa_port_host_vlan_match() 819 struct dsa_port *dp, *cpu_dp; in dsa_switch_change_tag_proto() local 831 dsa_switch_for_each_cpu_port(cpu_dp, ds) in dsa_switch_change_tag_proto() 832 dsa_port_set_tag_protocol(cpu_dp, tag_ops); in dsa_switch_change_tag_proto()
|
D | tag_8021q.c | 457 struct dsa_port *cpu_dp = master->dsa_ptr; in dsa_tag_8021q_find_port_by_vbid() local 458 struct dsa_switch_tree *dst = cpu_dp->dst; in dsa_tag_8021q_find_port_by_vbid() 472 if (dp->cpu_dp != cpu_dp) in dsa_tag_8021q_find_port_by_vbid()
|
D | dsa.c | 219 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_switch_rcv() local 223 if (unlikely(!cpu_dp)) { in dsa_switch_rcv() 232 nskb = cpu_dp->rcv(skb, dev); in dsa_switch_rcv() 254 if (unlikely(cpu_dp->ds->untag_bridge_pvid)) { in dsa_switch_rcv()
|
D | tag_dsa.c | 257 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_rcv_ll() local 264 lag = dsa_lag_by_id(cpu_dp->dst, source_port + 1); in dsa_rcv_ll()
|
D | tag_sja1105.c | 572 struct dsa_port *cpu_dp; in sja1110_rcv_meta() local 576 cpu_dp = master->dsa_ptr; in sja1110_rcv_meta() 577 ds = dsa_switch_find(cpu_dp->dst->index, switch_id); in sja1110_rcv_meta()
|
D | port.c | 1411 dp->cpu_dp = master->dsa_ptr; in dsa_port_assign_master() 1525 void dsa_port_set_tag_protocol(struct dsa_port *cpu_dp, in dsa_port_set_tag_protocol() argument 1528 cpu_dp->rcv = tag_ops->rcv; in dsa_port_set_tag_protocol() 1529 cpu_dp->tag_ops = tag_ops; in dsa_port_set_tag_protocol()
|