Lines Matching refs:port

33 	int index; /* index of enabled port. If disabled, it's set to -1 */
55 * become a port.
78 static inline bool team_port_enabled(struct team_port *port)
80 return port->index != -1;
83 static inline bool team_port_txable(struct team_port *port)
85 return port->linkup && team_port_enabled(port);
90 struct team_port *port;
94 port = team_port_get_rcu(port_dev);
95 txable = port ? team_port_txable(port) : false;
102 static inline void team_netpoll_send_skb(struct team_port *port,
105 netpoll_send_skb(port->np, skb);
108 static inline void team_netpoll_send_skb(struct team_port *port,
118 struct team_port *port,
121 int (*port_enter)(struct team *team, struct team_port *port);
122 void (*port_leave)(struct team *team, struct team_port *port);
123 void (*port_change_dev_addr)(struct team *team, struct team_port *port);
124 void (*port_enabled)(struct team *team, struct team_port *port);
125 void (*port_disabled)(struct team *team, struct team_port *port);
128 extern int team_modeop_port_enter(struct team *team, struct team_port *port);
130 struct team_port *port);
142 struct team_port *port; /* != NULL if per-port */
194 struct mutex lock; /* used for overall locking, e.g. port lists write */
230 static inline int team_dev_queue_xmit(struct team *team, struct team_port *port,
237 skb->dev = port->dev;
239 team_netpoll_send_skb(port, skb);
254 struct team_port *port;
257 hlist_for_each_entry(port, head, hlist)
258 if (port->index == port_index)
259 return port;
275 struct team_port *port;
278 hlist_for_each_entry_rcu(port, head, hlist)
279 if (port->index == port_index)
280 return port;
285 team_get_first_port_txable_rcu(struct team *team, struct team_port *port)
289 if (likely(team_port_txable(port)))
290 return port;
291 cur = port;
296 if (cur == port)