Lines Matching refs:port
76 static inline bool team_port_enabled(struct team_port *port) in team_port_enabled() argument
78 return port->index != -1; in team_port_enabled()
81 static inline bool team_port_txable(struct team_port *port) in team_port_txable() argument
83 return port->linkup && team_port_enabled(port); in team_port_txable()
87 static inline void team_netpoll_send_skb(struct team_port *port, in team_netpoll_send_skb() argument
90 struct netpoll *np = port->np; in team_netpoll_send_skb()
96 static inline void team_netpoll_send_skb(struct team_port *port, in team_netpoll_send_skb() argument
106 struct team_port *port,
109 int (*port_enter)(struct team *team, struct team_port *port);
110 void (*port_leave)(struct team *team, struct team_port *port);
111 void (*port_change_dev_addr)(struct team *team, struct team_port *port);
112 void (*port_enabled)(struct team *team, struct team_port *port);
113 void (*port_disabled)(struct team *team, struct team_port *port);
116 extern int team_modeop_port_enter(struct team *team, struct team_port *port);
118 struct team_port *port);
130 struct team_port *port; /* != NULL if per-port */ member
213 static inline int team_dev_queue_xmit(struct team *team, struct team_port *port, in team_dev_queue_xmit() argument
220 skb->dev = port->dev; in team_dev_queue_xmit()
222 team_netpoll_send_skb(port, skb); in team_dev_queue_xmit()
237 struct team_port *port; in team_get_port_by_index() local
240 hlist_for_each_entry(port, head, hlist) in team_get_port_by_index()
241 if (port->index == port_index) in team_get_port_by_index()
242 return port; in team_get_port_by_index()
258 struct team_port *port; in team_get_port_by_index_rcu() local
261 hlist_for_each_entry_rcu(port, head, hlist) in team_get_port_by_index_rcu()
262 if (port->index == port_index) in team_get_port_by_index_rcu()
263 return port; in team_get_port_by_index_rcu()
268 team_get_first_port_txable_rcu(struct team *team, struct team_port *port) in team_get_first_port_txable_rcu() argument
272 if (likely(team_port_txable(port))) in team_get_first_port_txable_rcu()
273 return port; in team_get_first_port_txable_rcu()
274 cur = port; in team_get_first_port_txable_rcu()
279 if (cur == port) in team_get_first_port_txable_rcu()