Searched refs:bridge_num (Results 1 – 6 of 6) sorted by relevance
71 u16 dsa_8021q_bridge_tx_fwd_offload_vid(int bridge_num) in dsa_8021q_bridge_tx_fwd_offload_vid() argument74 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() argument414 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() argument425 u16 tx_vid = dsa_8021q_bridge_tx_fwd_offload_vid(bridge_num); in dsa_tag_8021q_bridge_tx_fwd_unoffload()
295 int bridge_num = dp->bridge_num; in dsa_port_bridge_tx_fwd_unoffload() local299 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() local322 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()
145 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() local155 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() argument174 clear_bit(bridge_num, &dsa_fwd_offloading_bridges); in dsa_bridge_num_put()[all …]
143 tag_dev = dst->last_switch + 1 + dp->bridge_num; in dsa_xmit_ll()
551 void dsa_bridge_num_put(const struct net_device *bridge_dev, int bridge_num);
202 tx_vid = dsa_8021q_bridge_tx_fwd_offload_vid(dp->bridge_num); in sja1105_imprecise_xmit()