Home
last modified time | relevance | path

Searched refs:dsa_to_port (Results 1 – 21 of 21) sorted by relevance

/kernel/linux/linux-5.10/net/dsa/
Dswitch.c23 struct dsa_port *dp = dsa_to_port(ds, i); in dsa_switch_fastest_ageing_time()
135 if (dsa_to_port(ds, i)->bridge_dev == info->br) { in dsa_switch_bridge_leave()
145 err = dsa_port_vlan_filtering(dsa_to_port(ds, info->port), in dsa_switch_bridge_leave()
151 err = dsa_port_vlan_filtering(dsa_to_port(ds, info->port), in dsa_switch_bridge_leave()
Ddsa.c254 const struct dsa_port *dp = dsa_to_port(ds, p); in dsa_is_port_initialized()
268 ret = dsa_slave_suspend(dsa_to_port(ds, i)->slave); in dsa_switch_suspend()
295 ret = dsa_slave_resume(dsa_to_port(ds, i)->slave); in dsa_switch_resume()
432 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_devlink_port_region_create()
Dtag_8021q.c152 struct dsa_port *dp = dsa_to_port(ctx->ds, port); in dsa_8021q_vid_apply()
227 master = dsa_to_port(ctx->ds, port)->cpu_dp->master; in dsa_8021q_setup_port()
Ddsa2.c809 dp = dsa_to_port(ds, reg); in dsa_switch_parse_ports_of()
904 dp = dsa_to_port(ds, i); in dsa_switch_parse_ports()
Dslave.c1505 if (!dsa_to_port(ds, i)->slave) in dsa_slave_change_mtu()
1514 slave_mtu = dsa_to_port(ds, i)->slave->mtu; in dsa_slave_change_mtu()
1520 cpu_dp = dsa_to_port(ds, port)->cpu_dp; in dsa_slave_change_mtu()
1655 const struct dsa_port *dp = dsa_to_port(ds, port); in dsa_port_phylink_mac_change()
Dport.c246 other_bridge = dsa_to_port(ds, i)->bridge_dev; in dsa_port_can_apply_vlan_filtering()
/kernel/linux/linux-5.10/include/net/
Ddsa.h339 static inline struct dsa_port *dsa_to_port(struct dsa_switch *ds, int p) in dsa_to_port() function
353 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_UNUSED; in dsa_is_unused_port()
358 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_CPU; in dsa_is_cpu_port()
363 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_DSA; in dsa_is_dsa_port()
368 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_USER; in dsa_is_user_port()
409 const struct dsa_port *dp = dsa_to_port(ds, port); in dsa_upstream_port()
/kernel/linux/linux-5.10/drivers/net/dsa/microchip/
Dksz_common.c87 const struct dsa_port *dp = dsa_to_port(dev->ds, i); in ksz_mib_read_work()
159 const struct dsa_port *dp = dsa_to_port(ds, port); in ksz_get_ethtool_stats()
Dksz9477.c1625 phydev = dsa_to_port(dev->ds, i)->slave->phydev; in ksz9477_switch_register()
/kernel/linux/linux-5.10/drivers/net/dsa/sja1105/
Dsja1105_devlink.c144 dp = dsa_to_port(ds, port); in sja1105_best_effort_vlan_filtering_set()
Dsja1105_main.c1621 if (dsa_to_port(ds, i)->bridge_dev != br) in sja1105_bridge_member()
1935 if (dsa_to_port(ds, port)->bridge_dev != br) in sja1105_crosschip_bridge_join()
1972 if (dsa_to_port(ds, port)->bridge_dev != br) in sja1105_crosschip_bridge_leave()
3072 slave = dsa_to_port(ds, port)->slave; in sja1105_port_enable()
3116 dsa_enqueue_skb(skb, dsa_to_port(ds, port)->slave); in sja1105_mgmt_xmit()
3550 struct dsa_port *dp = dsa_to_port(ds, port); in sja1105_probe()
/kernel/linux/linux-5.10/drivers/net/dsa/
Dmv88e6060.c144 BIT(dsa_to_port(priv->ds, p)->cpu_dp->index))); in mv88e6060_setup_port()
Dbcm_sf2.c801 netif_carrier_off(dsa_to_port(ds, port)->slave); in bcm_sf2_sw_fixed_state()
873 struct net_device *p = dsa_to_port(ds, port)->cpu_dp->master; in bcm_sf2_sw_get_wol()
897 struct net_device *p = dsa_to_port(ds, port)->cpu_dp->master; in bcm_sf2_sw_set_wol()
899 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in bcm_sf2_sw_set_wol()
Dlantiq_gswip.c747 struct net_device *bridge = dsa_to_port(ds, port)->bridge_dev; in gswip_port_vlan_filtering()
1176 struct net_device *bridge = dsa_to_port(ds, port)->bridge_dev; in gswip_port_vlan_prepare()
1224 struct net_device *bridge = dsa_to_port(ds, port)->bridge_dev; in gswip_port_vlan_add()
1245 struct net_device *bridge = dsa_to_port(ds, port)->bridge_dev; in gswip_port_vlan_del()
1339 struct net_device *bridge = dsa_to_port(ds, port)->bridge_dev; in gswip_port_fdb()
Dbcm_sf2_cfp.c850 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in bcm_sf2_cfp_rule_insert()
1109 struct net_device *p = dsa_to_port(ds, port)->cpu_dp->master; in bcm_sf2_get_rxnfc()
1152 struct net_device *p = dsa_to_port(ds, port)->cpu_dp->master; in bcm_sf2_set_rxnfc()
Dmt7530.c1063 if (dsa_to_port(ds, i)->bridge_dev != bridge) in mt7530_port_bridge_join()
1104 dsa_port_is_vlan_filtering(dsa_to_port(ds, i))) { in mt7530_port_set_vlan_unaware()
1160 if (dsa_to_port(ds, i)->bridge_dev != bridge) in mt7530_port_bridge_leave()
1555 dn = dsa_to_port(ds, MT7530_CPU_PORT)->master->dev.of_node->parent; in mt7530_setup()
1644 ret = of_get_phy_mode(dsa_to_port(ds, 5)->dn, &interface); in mt7530_setup()
2103 dp = dsa_to_port(ds, port); in mt7531_mac_config()
Dlan9303-core.c1111 if (dsa_to_port(ds, 1)->bridge_dev == dsa_to_port(ds, 2)->bridge_dev) { in lan9303_port_bridge_join()
Dqca8k.c1147 if (dsa_to_port(ds, i)->bridge_dev != br) in qca8k_port_bridge_join()
1172 if (dsa_to_port(ds, i)->bridge_dev != br) in qca8k_port_bridge_leave()
/kernel/linux/linux-5.10/drivers/net/dsa/ocelot/
Dfelix.c205 struct dsa_port *dp = dsa_to_port(ds, port); in felix_phylink_mac_config()
833 return dsa_to_port(ds, port)->slave; in felix_port_to_netdev()
/kernel/linux/linux-5.10/drivers/net/dsa/b53/
Db53_common.c536 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_enable_port()
1806 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_br_join()
1830 if (dsa_to_port(ds, i)->bridge_dev != br) in b53_br_join()
1860 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_br_leave()
1868 if (dsa_to_port(ds, i)->bridge_dev != br) in b53_br_leave()
/kernel/linux/linux-5.10/drivers/net/dsa/mv88e6xxx/
Dchip.c1565 if (!dsa_to_port(ds, i)->slave) in mv88e6xxx_port_check_hw_vlan()
1572 if (dsa_to_port(ds, i)->bridge_dev == in mv88e6xxx_port_check_hw_vlan()
1573 dsa_to_port(ds, port)->bridge_dev) in mv88e6xxx_port_check_hw_vlan()
1576 if (!dsa_to_port(ds, i)->bridge_dev) in mv88e6xxx_port_check_hw_vlan()
1581 netdev_name(dsa_to_port(ds, i)->bridge_dev)); in mv88e6xxx_port_check_hw_vlan()