Searched refs:dsa_to_port (Results 1 – 8 of 8) sorted by relevance
/Linux-v4.19/include/net/ |
D | dsa.h | 270 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/ |
D | mv88e6060.c | 180 BIT(dsa_to_port(ds, p)->cpu_dp->index))); in mv88e6060_setup_port()
|
D | qca8k.c | 745 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()
|
D | lan9303-core.c | 1109 if (dsa_to_port(ds, 1)->bridge_dev == dsa_to_port(ds, 2)->bridge_dev) { in lan9303_port_bridge_join()
|
D | mt7530.c | 792 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/ |
D | b53_common.c | 1411 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/ |
D | chip.c | 1172 (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/ |
D | slave.c | 1155 const struct dsa_port *dp = dsa_to_port(ds, port); in dsa_port_phylink_mac_change()
|