Home
last modified time | relevance | path

Searched refs:cpu_dp (Results 1 – 11 of 11) sorted by relevance

/drivers/net/dsa/ocelot/
Dfelix.c49 struct dsa_port *cpu_dp; in felix_cpu_port_for_master() local
60 cpu_dp = master->dsa_ptr; in felix_cpu_port_for_master()
61 return cpu_dp->index; in felix_cpu_port_for_master()
230 struct dsa_port *cpu_dp; in felix_tag_8021q_vlan_add() local
240 dsa_switch_for_each_cpu_port(cpu_dp, ds) { in felix_tag_8021q_vlan_add()
241 err = felix_tag_8021q_vlan_add_rx(ds, port, cpu_dp->index, vid); in felix_tag_8021q_vlan_add()
253 dsa_switch_for_each_cpu_port(cpu_dp, ds) in felix_tag_8021q_vlan_add()
254 felix_tag_8021q_vlan_del_rx(ds, port, cpu_dp->index, vid); in felix_tag_8021q_vlan_add()
261 struct dsa_port *cpu_dp; in felix_tag_8021q_vlan_del() local
267 dsa_switch_for_each_cpu_port(cpu_dp, ds) { in felix_tag_8021q_vlan_del()
[all …]
/drivers/net/dsa/
Dmt7530.c1069 struct dsa_port *cpu_dp = dp->cpu_dp; in mt7530_port_enable() local
1071 priv->ports[port].pm |= PCR_MATRIX(BIT(cpu_dp->index)); in mt7530_port_enable()
1221 struct dsa_port *cpu_dp = dp->cpu_dp; in mt7530_port_bridge_join() local
1222 u32 port_bitmap = BIT(cpu_dp->index); in mt7530_port_bridge_join()
1300 struct dsa_port *cpu_dp = dp->cpu_dp; in mt7530_port_set_vlan_unaware() local
1302 mt7530_write(priv, MT7530_PCR_P(cpu_dp->index), in mt7530_port_set_vlan_unaware()
1304 mt7530_write(priv, MT7530_PVC_P(cpu_dp->index), PORT_SPEC_TAG in mt7530_port_set_vlan_unaware()
1354 struct dsa_port *cpu_dp = dp->cpu_dp; in mt7530_port_bridge_leave() local
1383 PCR_MATRIX(BIT(cpu_dp->index))); in mt7530_port_bridge_leave()
1384 priv->ports[port].pm = PCR_MATRIX(BIT(cpu_dp->index)); in mt7530_port_bridge_leave()
[all …]
Dmv88e6060.c147 BIT(dsa_to_port(priv->ds, p)->cpu_dp->index))); in mv88e6060_setup_port()
Dbcm_sf2_cfp.c850 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in bcm_sf2_cfp_rule_insert()
Dbcm_sf2.c1018 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in bcm_sf2_sw_set_wol()
/drivers/net/dsa/realtek/
Drtl8365mb.c1915 struct dsa_port *cpu_dp; in rtl8365mb_setup() local
1944 dsa_switch_for_each_cpu_port(cpu_dp, priv->ds) { in rtl8365mb_setup()
1945 cpu->mask |= BIT(cpu_dp->index); in rtl8365mb_setup()
1948 cpu->trap_port = cpu_dp->index; in rtl8365mb_setup()
/drivers/net/dsa/qca/
Dqca8k-common.c642 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in qca8k_port_bridge_join()
675 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in qca8k_port_bridge_leave()
/drivers/net/ethernet/mediatek/
Dmtk_ppe_offload.c174 if (dp->cpu_dp->tag_ops->proto != DSA_TAG_PROTO_MTK) in mtk_flow_get_dsa_port()
/drivers/net/dsa/b53/
Db53_common.c572 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_enable_port()
1850 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_br_join()
1902 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_br_leave()
/drivers/net/dsa/mv88e6xxx/
Dchip.c6405 struct dsa_port *cpu_dp; in mv88e6xxx_change_tag_protocol() local
6430 dsa_switch_for_each_cpu_port(cpu_dp, ds) { in mv88e6xxx_change_tag_protocol()
6431 err = mv88e6xxx_setup_port_mode(chip, cpu_dp->index); in mv88e6xxx_change_tag_protocol()
6445 dsa_switch_for_each_cpu_port_continue_reverse(cpu_dp, ds) in mv88e6xxx_change_tag_protocol()
6446 mv88e6xxx_setup_port_mode(chip, cpu_dp->index); in mv88e6xxx_change_tag_protocol()
/drivers/net/dsa/sja1105/
Dsja1105_main.c598 if (dl->dp->ds != ds || dl->link_dp->cpu_dp == dl->dp->cpu_dp) in sja1105_init_l2_forwarding()