Home
last modified time | relevance | path

Searched refs:dsa_port (Results 1 – 25 of 48) sorted by relevance

12

/linux-6.1.9/net/dsa/
Ddsa_priv.h57 const struct dsa_port *dp;
65 const struct dsa_port *dp;
81 const struct dsa_port *dp;
88 const struct dsa_port *dp;
96 const struct dsa_port *dp;
103 const struct dsa_port *dp;
114 const struct dsa_port *dp;
160 struct dsa_port *dp;
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,
[all …]
Dport.c29 static int dsa_port_notify(const struct dsa_port *dp, unsigned long e, void *v) in dsa_port_notify()
34 static void dsa_port_notify_bridge_fdb_flush(const struct dsa_port *dp, u16 vid) in dsa_port_notify_bridge_fdb_flush()
51 static void dsa_port_fast_age(const struct dsa_port *dp) in dsa_port_fast_age()
64 static int dsa_port_vlan_fast_age(const struct dsa_port *dp, u16 vid) in dsa_port_vlan_fast_age()
80 static int dsa_port_msti_fast_age(const struct dsa_port *dp, u16 msti) in dsa_port_msti_fast_age()
98 static bool dsa_port_can_configure_learning(struct dsa_port *dp) in dsa_port_can_configure_learning()
113 bool dsa_port_supports_hwtstamp(struct dsa_port *dp, struct ifreq *ifr) in dsa_port_supports_hwtstamp()
129 int dsa_port_set_state(struct dsa_port *dp, u8 state, bool do_fast_age) in dsa_port_set_state()
162 static void dsa_port_set_state_now(struct dsa_port *dp, u8 state, in dsa_port_set_state_now()
175 int dsa_port_set_mst_state(struct dsa_port *dp, in dsa_port_set_mst_state()
[all …]
Dslave.c33 struct dsa_port *dp = dsa_slave_to_port(dev); in dsa_slave_standalone_event_work()
115 struct dsa_port *dp = dsa_slave_to_port(dev); in dsa_slave_sync_uc()
129 struct dsa_port *dp = dsa_slave_to_port(dev); in dsa_slave_unsync_uc()
143 struct dsa_port *dp = dsa_slave_to_port(dev); in dsa_slave_sync_mc()
157 struct dsa_port *dp = dsa_slave_to_port(dev); in dsa_slave_unsync_mc()
169 struct dsa_port *dp = dsa_slave_to_port(dev); in dsa_slave_sync_ha()
190 struct dsa_port *dp = dsa_slave_to_port(dev); in dsa_slave_unsync_ha()
252 struct dsa_port *dp = dsa_slave_to_port(dev); in dsa_slave_open()
293 struct dsa_port *dp = dsa_slave_to_port(dev); in dsa_slave_close()
310 struct dsa_port *dp = dsa_slave_to_port(dev); in dsa_slave_manage_host_flood()
[all …]
Ddsa2.c130 struct dsa_port *dp; in dsa_tree_lag_find()
142 struct dsa_port *dp; in dsa_tree_bridge_find()
205 struct dsa_port *dp; in dsa_switch_find()
298 static struct dsa_port *dsa_tree_find_port_by_node(struct dsa_switch_tree *dst, in dsa_tree_find_port_by_node()
301 struct dsa_port *dp; in dsa_tree_find_port_by_node()
310 static struct dsa_link *dsa_link_touch(struct dsa_port *dp, in dsa_link_touch()
311 struct dsa_port *link_dp) in dsa_link_touch()
336 static bool dsa_port_setup_routing_table(struct dsa_port *dp) in dsa_port_setup_routing_table()
342 struct dsa_port *link_dp; in dsa_port_setup_routing_table()
366 struct dsa_port *dp; in dsa_tree_setup_routing_table()
[all …]
Dswitch.c20 struct dsa_port *dp; in dsa_switch_fastest_ageing_time()
49 static bool dsa_port_mtu_match(struct dsa_port *dp, in dsa_port_mtu_match()
58 struct dsa_port *dp; in dsa_switch_mtu()
126 static bool dsa_port_host_address_match(struct dsa_port *dp, in dsa_port_host_address_match()
127 const struct dsa_port *targeted_dp) in dsa_port_host_address_match()
129 struct dsa_port *cpu_dp = targeted_dp->cpu_dp; in dsa_port_host_address_match()
152 static int dsa_port_do_mdb_add(struct dsa_port *dp, in dsa_port_do_mdb_add()
197 static int dsa_port_do_mdb_del(struct dsa_port *dp, in dsa_port_do_mdb_del()
236 static int dsa_port_do_fdb_add(struct dsa_port *dp, const unsigned char *addr, in dsa_port_do_fdb_add()
280 static int dsa_port_do_fdb_del(struct dsa_port *dp, const unsigned char *addr, in dsa_port_do_fdb_del()
[all …]
Dmaster.c13 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_get_regs_len()
43 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_get_regs()
79 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_get_ethtool_stats()
98 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_get_ethtool_phy_stats()
122 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_get_sset_count()
145 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_get_strings()
192 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_ioctl()
196 struct dsa_port *dp; in dsa_master_ioctl()
224 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_ethtool_setup()
253 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_master_ethtool_teardown()
[all …]
Dtag_8021q.c75 u16 dsa_tag_8021q_standalone_vid(const struct dsa_port *dp) in dsa_tag_8021q_standalone_vid()
125 static int dsa_port_do_tag_8021q_vlan_add(struct dsa_port *dp, u16 vid, in dsa_port_do_tag_8021q_vlan_add()
162 static int dsa_port_do_tag_8021q_vlan_del(struct dsa_port *dp, u16 vid) in dsa_port_do_tag_8021q_vlan_del()
194 dsa_port_tag_8021q_vlan_match(struct dsa_port *dp, in dsa_port_tag_8021q_vlan_match()
203 struct dsa_port *dp; in dsa_switch_tag_8021q_vlan_add()
235 struct dsa_port *dp; in dsa_switch_tag_8021q_vlan_del()
274 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_tag_8021q_bridge_join()
297 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_tag_8021q_bridge_leave()
322 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_tag_8021q_port_setup()
352 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_tag_8021q_port_teardown()
[all …]
Dtag_ocelot.c12 static void ocelot_xmit_get_vlan_info(struct sk_buff *skb, struct dsa_port *dp, in ocelot_xmit_get_vlan_info()
44 struct dsa_port *dp = dsa_slave_to_port(netdev); in ocelot_xmit_common()
78 struct dsa_port *dp = dsa_slave_to_port(netdev); in ocelot_xmit()
90 struct dsa_port *dp = dsa_slave_to_port(netdev); in seville_xmit()
105 struct dsa_port *dp; in ocelot_rcv()
Ddsa.c219 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_switch_rcv()
274 static bool dsa_port_is_initialized(const struct dsa_port *dp) in dsa_port_is_initialized()
281 struct dsa_port *dp; in dsa_switch_suspend()
303 struct dsa_port *dp; in dsa_switch_resume()
438 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_devlink_port_region_create()
452 struct dsa_port *dsa_port_from_netdev(struct net_device *netdev) in dsa_port_from_netdev()
483 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_fdb_present_in_other_db()
504 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_mdb_present_in_other_db()
Dtag_sja1105.c138 static struct sk_buff *sja1105_defer_xmit(struct dsa_port *dp, in sja1105_defer_xmit()
172 static u16 sja1105_xmit_tpid(struct dsa_port *dp) in sja1105_xmit_tpid()
175 struct dsa_port *other_dp; in sja1105_xmit_tpid()
211 struct dsa_port *dp = dsa_slave_to_port(netdev); in sja1105_imprecise_xmit()
238 static struct sk_buff *sja1105_pvid_tag_control_pkt(struct dsa_port *dp, in sja1105_pvid_tag_control_pkt()
267 struct dsa_port *dp = dsa_slave_to_port(netdev); in sja1105_xmit()
295 struct dsa_port *dp = dsa_slave_to_port(netdev); in sja1110_xmit()
384 struct dsa_port *dp = dsa_slave_to_port(skb->dev); in sja1105_rcv_meta_state_machine()
422 struct dsa_port *dp = dsa_slave_to_port(skb->dev); in sja1105_rcv_meta_state_machine()
589 struct dsa_port *cpu_dp; in sja1110_rcv_meta()
Dtag_ksz.c52 struct dsa_port *dp = dsa_slave_to_port(dev); in ksz8795_xmit()
114 struct dsa_port *dp = dsa_slave_to_port(dev); in ksz9477_xmit()
167 struct dsa_port *dp = dsa_slave_to_port(dev); in ksz9893_xmit()
221 struct dsa_port *dp = dsa_slave_to_port(dev); in lan937x_xmit()
Dtag_lan9303.c48 static int lan9303_xmit_use_arl(struct dsa_port *dp, u8 *dest_addr) in lan9303_xmit_use_arl()
57 struct dsa_port *dp = dsa_slave_to_port(dev); in lan9303_xmit()
Dtag_qca.c15 struct dsa_port *dp = dsa_slave_to_port(dev); in qca_tag_xmit()
37 struct dsa_port *dp = dev->dsa_ptr; in qca_tag_rcv()
Dtag_ocelot_8021q.c20 static struct sk_buff *ocelot_defer_xmit(struct dsa_port *dp, in ocelot_defer_xmit()
62 struct dsa_port *dp = dsa_slave_to_port(netdev); in ocelot_xmit()
Dtag_brcm.c83 struct dsa_port *dp = dsa_slave_to_port(dev); in brcm_tag_xmit_ll()
214 struct dsa_port *dp = dsa_slave_to_port(dev); in brcm_leg_tag_xmit()
Dtag_dsa.c129 struct dsa_port *dp = dsa_slave_to_port(dev); in dsa_xmit_ll()
257 struct dsa_port *cpu_dp = dev->dsa_ptr; in dsa_rcv_ll()
Dtag_trailer.c15 struct dsa_port *dp = dsa_slave_to_port(dev); in trailer_xmit()
Dnetlink.c56 .priv_size = sizeof(struct dsa_port),
Dtag_hellcreek.c21 struct dsa_port *dp = dsa_slave_to_port(dev); in hellcreek_xmit()
Dtag_xrs700x.c14 struct dsa_port *partner, *dp = dsa_slave_to_port(dev); in xrs700x_xmit()
/linux-6.1.9/include/net/
Ddsa.h251 struct dsa_port { struct
281 struct dsa_port *cpu_dp; argument
346 struct dsa_port *dp; argument
347 struct dsa_port *link_dp;
361 const struct dsa_port *dp;
501 static inline struct dsa_port *dsa_to_port(struct dsa_switch *ds, int p) in dsa_to_port()
504 struct dsa_port *dp; in dsa_to_port()
513 static inline bool dsa_port_is_dsa(struct dsa_port *port) in dsa_port_is_dsa()
518 static inline bool dsa_port_is_cpu(struct dsa_port *port) in dsa_port_is_cpu()
523 static inline bool dsa_port_is_user(struct dsa_port *dp) in dsa_port_is_user()
[all …]
/linux-6.1.9/include/linux/dsa/
D8021q.h13 struct dsa_port;
52 u16 dsa_tag_8021q_standalone_vid(const struct dsa_port *dp);
Dsja1105.h44 struct dsa_port *dp;
/linux-6.1.9/drivers/net/ethernet/mediatek/
Dmtk_ppe_offload.c168 struct dsa_port *dp; in mtk_flow_get_dsa_port()
191 int pse_port, dsa_port; in mtk_flow_set_output_device() local
214 dsa_port = mtk_flow_get_dsa_port(&dev); in mtk_flow_set_output_device()
215 if (dsa_port >= 0) in mtk_flow_set_output_device()
216 mtk_foe_entry_set_dsa(eth, foe, dsa_port); in mtk_flow_set_output_device()
/linux-6.1.9/drivers/net/dsa/ocelot/
Dfelix.c49 struct dsa_port *cpu_dp; in felix_cpu_port_for_master()
230 struct dsa_port *cpu_dp; in felix_tag_8021q_vlan_add()
261 struct dsa_port *cpu_dp; in felix_tag_8021q_vlan_del()
289 struct dsa_port *dp; in felix_trap_get_cpu_port()
410 struct dsa_port *dp, *first_cpu_dp = NULL; in felix_tag_npi_setup()
448 struct dsa_port *dp = dsa_to_port(ds, port), *other_dp; in felix_tag_npi_change_master()
495 struct dsa_port *dp; in felix_tag_8021q_setup()
539 struct dsa_port *dp; in felix_tag_8021q_teardown()
788 struct dsa_port *dp = dsa_to_port(ds, port); in felix_fdb_add()
809 struct dsa_port *dp = dsa_to_port(ds, port); in felix_fdb_del()
[all …]

12