Home
last modified time | relevance | path

Searched refs:bridge_num (Results 1 – 6 of 6) sorted by relevance

/net/dsa/
Dtag_8021q.c71 u16 dsa_8021q_bridge_tx_fwd_offload_vid(int bridge_num) in dsa_8021q_bridge_tx_fwd_offload_vid() argument
74 return DSA_8021Q_DIR_TX | DSA_8021Q_VBID(bridge_num + 1); in dsa_8021q_bridge_tx_fwd_offload_vid()
412 int bridge_num) in dsa_tag_8021q_bridge_tx_fwd_offload() argument
414 u16 tx_vid = dsa_8021q_bridge_tx_fwd_offload_vid(bridge_num); in dsa_tag_8021q_bridge_tx_fwd_offload()
423 int bridge_num) in dsa_tag_8021q_bridge_tx_fwd_unoffload() argument
425 u16 tx_vid = dsa_8021q_bridge_tx_fwd_offload_vid(bridge_num); in dsa_tag_8021q_bridge_tx_fwd_unoffload()
Dport.c295 int bridge_num = dp->bridge_num; in dsa_port_bridge_tx_fwd_unoffload() local
299 if (!ds->ops->port_bridge_tx_fwd_unoffload || dp->bridge_num == -1) in dsa_port_bridge_tx_fwd_unoffload()
302 dp->bridge_num = -1; in dsa_port_bridge_tx_fwd_unoffload()
304 dsa_bridge_num_put(bridge_dev, bridge_num); in dsa_port_bridge_tx_fwd_unoffload()
310 bridge_num); in dsa_port_bridge_tx_fwd_unoffload()
317 int bridge_num, err; in dsa_port_bridge_tx_fwd_offload() local
322 bridge_num = dsa_bridge_num_get(bridge_dev, in dsa_port_bridge_tx_fwd_offload()
324 if (bridge_num < 0) in dsa_port_bridge_tx_fwd_offload()
327 dp->bridge_num = bridge_num; in dsa_port_bridge_tx_fwd_offload()
331 bridge_num); in dsa_port_bridge_tx_fwd_offload()
Ddsa2.c145 dp->bridge_num != -1) in dsa_bridge_num_find()
146 return dp->bridge_num; in dsa_bridge_num_find()
153 int bridge_num = dsa_bridge_num_find(bridge_dev); in dsa_bridge_num_get() local
155 if (bridge_num < 0) { in dsa_bridge_num_get()
157 bridge_num = find_first_zero_bit(&dsa_fwd_offloading_bridges, in dsa_bridge_num_get()
159 if (bridge_num >= max) in dsa_bridge_num_get()
162 set_bit(bridge_num, &dsa_fwd_offloading_bridges); in dsa_bridge_num_get()
165 return bridge_num; in dsa_bridge_num_get()
168 void dsa_bridge_num_put(const struct net_device *bridge_dev, int bridge_num) in dsa_bridge_num_put() argument
174 clear_bit(bridge_num, &dsa_fwd_offloading_bridges); in dsa_bridge_num_put()
[all …]
Dtag_dsa.c143 tag_dev = dst->last_switch + 1 + dp->bridge_num; in dsa_xmit_ll()
Ddsa_priv.h551 void dsa_bridge_num_put(const struct net_device *bridge_dev, int bridge_num);
Dtag_sja1105.c202 tx_vid = dsa_8021q_bridge_tx_fwd_offload_vid(dp->bridge_num); in sja1105_imprecise_xmit()