Lines Matching refs:p
23 struct net_bridge_port *p; in br_is_designated_for_some_port() local
25 list_for_each_entry(p, &br->port_list, list) { in br_is_designated_for_some_port()
26 if (p->state != BR_STATE_DISABLED && in br_is_designated_for_some_port()
27 !memcmp(&p->designated_bridge, &br->bridge_id, 8)) in br_is_designated_for_some_port()
52 struct net_bridge_port *p = (struct net_bridge_port *) arg; in br_message_age_timer_expired() local
53 struct net_bridge *br = p->br; in br_message_age_timer_expired()
54 const bridge_id *id = &p->designated_bridge; in br_message_age_timer_expired()
57 if (p->state == BR_STATE_DISABLED) in br_message_age_timer_expired()
61 (unsigned int) p->port_no, p->dev->name, in br_message_age_timer_expired()
70 if (p->state == BR_STATE_DISABLED) in br_message_age_timer_expired()
74 br_become_designated_port(p); in br_message_age_timer_expired()
85 struct net_bridge_port *p = (struct net_bridge_port *) arg; in br_forward_delay_timer_expired() local
86 struct net_bridge *br = p->br; in br_forward_delay_timer_expired()
89 (unsigned int) p->port_no, p->dev->name); in br_forward_delay_timer_expired()
91 if (p->state == BR_STATE_LISTENING) { in br_forward_delay_timer_expired()
92 br_set_state(p, BR_STATE_LEARNING); in br_forward_delay_timer_expired()
93 mod_timer(&p->forward_delay_timer, in br_forward_delay_timer_expired()
95 } else if (p->state == BR_STATE_LEARNING) { in br_forward_delay_timer_expired()
96 br_set_state(p, BR_STATE_FORWARDING); in br_forward_delay_timer_expired()
102 br_ifinfo_notify(RTM_NEWLINK, p); in br_forward_delay_timer_expired()
134 struct net_bridge_port *p = (struct net_bridge_port *) arg; in br_hold_timer_expired() local
136 br_debug(p->br, "port %u(%s) hold timer expired\n", in br_hold_timer_expired()
137 (unsigned int) p->port_no, p->dev->name); in br_hold_timer_expired()
139 spin_lock(&p->br->lock); in br_hold_timer_expired()
140 if (p->config_pending) in br_hold_timer_expired()
141 br_transmit_config(p); in br_hold_timer_expired()
142 spin_unlock(&p->br->lock); in br_hold_timer_expired()
158 void br_stp_port_timer_init(struct net_bridge_port *p) in br_stp_port_timer_init() argument
160 setup_timer(&p->message_age_timer, br_message_age_timer_expired, in br_stp_port_timer_init()
161 (unsigned long) p); in br_stp_port_timer_init()
163 setup_timer(&p->forward_delay_timer, br_forward_delay_timer_expired, in br_stp_port_timer_init()
164 (unsigned long) p); in br_stp_port_timer_init()
166 setup_timer(&p->hold_timer, br_hold_timer_expired, in br_stp_port_timer_init()
167 (unsigned long) p); in br_stp_port_timer_init()