Lines Matching refs:team
21 static struct ab_priv *ab_priv(struct team *team) in ab_priv() argument
23 return (struct ab_priv *) &team->mode_priv; in ab_priv()
26 static rx_handler_result_t ab_receive(struct team *team, struct team_port *port, in ab_receive() argument
30 active_port = rcu_dereference(ab_priv(team)->active_port); in ab_receive()
36 static bool ab_transmit(struct team *team, struct sk_buff *skb) in ab_transmit() argument
40 active_port = rcu_dereference_bh(ab_priv(team)->active_port); in ab_transmit()
43 if (team_dev_queue_xmit(team, active_port, skb)) in ab_transmit()
52 static void ab_port_leave(struct team *team, struct team_port *port) in ab_port_leave() argument
54 if (ab_priv(team)->active_port == port) { in ab_port_leave()
55 RCU_INIT_POINTER(ab_priv(team)->active_port, NULL); in ab_port_leave()
56 team_option_inst_set_change(ab_priv(team)->ap_opt_inst_info); in ab_port_leave()
60 static int ab_active_port_init(struct team *team, in ab_active_port_init() argument
63 ab_priv(team)->ap_opt_inst_info = info; in ab_active_port_init()
67 static int ab_active_port_get(struct team *team, struct team_gsetter_ctx *ctx) in ab_active_port_get() argument
71 active_port = rcu_dereference_protected(ab_priv(team)->active_port, in ab_active_port_get()
72 lockdep_is_held(&team->lock)); in ab_active_port_get()
80 static int ab_active_port_set(struct team *team, struct team_gsetter_ctx *ctx) in ab_active_port_set() argument
84 list_for_each_entry(port, &team->port_list, list) { in ab_active_port_set()
86 rcu_assign_pointer(ab_priv(team)->active_port, port); in ab_active_port_set()
103 static int ab_init(struct team *team) in ab_init() argument
105 return team_options_register(team, ab_options, ARRAY_SIZE(ab_options)); in ab_init()
108 static void ab_exit(struct team *team) in ab_exit() argument
110 team_options_unregister(team, ab_options, ARRAY_SIZE(ab_options)); in ab_exit()