Home
last modified time | relevance | path

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

/Linux-v4.19/include/net/
Ddsa.h270 static inline const struct dsa_port *dsa_to_port(struct dsa_switch *ds, int p) in dsa_to_port() function
277 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_UNUSED; in dsa_is_unused_port()
282 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_CPU; in dsa_is_cpu_port()
287 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_DSA; in dsa_is_dsa_port()
292 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_USER; in dsa_is_user_port()
320 const struct dsa_port *dp = dsa_to_port(ds, port); in dsa_upstream_port()
/Linux-v4.19/drivers/net/dsa/
Dmv88e6060.c180 BIT(dsa_to_port(ds, p)->cpu_dp->index))); in mv88e6060_setup_port()
Dqca8k.c745 if (dsa_to_port(ds, i)->bridge_dev != br) in qca8k_port_bridge_join()
770 if (dsa_to_port(ds, i)->bridge_dev != br) in qca8k_port_bridge_leave()
Dlan9303-core.c1109 if (dsa_to_port(ds, 1)->bridge_dev == dsa_to_port(ds, 2)->bridge_dev) { in lan9303_port_bridge_join()
Dmt7530.c792 if (dsa_to_port(ds, i)->bridge_dev != bridge) in mt7530_port_bridge_join()
895 if (dsa_to_port(ds, i)->bridge_dev != bridge) in mt7530_port_bridge_leave()
/Linux-v4.19/drivers/net/dsa/b53/
Db53_common.c1411 if (dsa_to_port(ds, i)->bridge_dev != br) in b53_br_join()
1447 if (dsa_to_port(ds, i)->bridge_dev != br) in b53_br_leave()
/Linux-v4.19/drivers/net/dsa/mv88e6xxx/
Dchip.c1172 (br && dsa_to_port(chip->ds, i)->bridge_dev == br)) in mv88e6xxx_port_vlan()
1535 if (dsa_to_port(ds, i)->bridge_dev == in mv88e6xxx_port_check_hw_vlan()
1539 if (!dsa_to_port(ds, i)->bridge_dev) in mv88e6xxx_port_check_hw_vlan()
1544 netdev_name(dsa_to_port(ds, i)->bridge_dev)); in mv88e6xxx_port_check_hw_vlan()
/Linux-v4.19/net/dsa/
Dslave.c1155 const struct dsa_port *dp = dsa_to_port(ds, port); in dsa_port_phylink_mac_change()