• Home
  • Raw
  • Download

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()
50 struct net_bridge_port *p = (struct net_bridge_port *) arg; in br_message_age_timer_expired() local
51 struct net_bridge *br = p->br; in br_message_age_timer_expired()
52 const bridge_id *id = &p->designated_bridge; in br_message_age_timer_expired()
55 if (p->state == BR_STATE_DISABLED) in br_message_age_timer_expired()
59 (unsigned int) p->port_no, p->dev->name, in br_message_age_timer_expired()
68 if (p->state == BR_STATE_DISABLED) in br_message_age_timer_expired()
72 br_become_designated_port(p); in br_message_age_timer_expired()
83 struct net_bridge_port *p = (struct net_bridge_port *) arg; in br_forward_delay_timer_expired() local
84 struct net_bridge *br = p->br; in br_forward_delay_timer_expired()
87 (unsigned int) p->port_no, p->dev->name); in br_forward_delay_timer_expired()
89 if (p->state == BR_STATE_LISTENING) { in br_forward_delay_timer_expired()
90 p->state = BR_STATE_LEARNING; in br_forward_delay_timer_expired()
91 mod_timer(&p->forward_delay_timer, in br_forward_delay_timer_expired()
93 } else if (p->state == BR_STATE_LEARNING) { in br_forward_delay_timer_expired()
94 p->state = BR_STATE_FORWARDING; in br_forward_delay_timer_expired()
99 br_log_state(p); in br_forward_delay_timer_expired()
100 br_ifinfo_notify(RTM_NEWLINK, p); in br_forward_delay_timer_expired()
131 struct net_bridge_port *p = (struct net_bridge_port *) arg; in br_hold_timer_expired() local
133 br_debug(p->br, "port %u(%s) hold timer expired\n", in br_hold_timer_expired()
134 (unsigned int) p->port_no, p->dev->name); in br_hold_timer_expired()
136 spin_lock(&p->br->lock); in br_hold_timer_expired()
137 if (p->config_pending) in br_hold_timer_expired()
138 br_transmit_config(p); in br_hold_timer_expired()
139 spin_unlock(&p->br->lock); in br_hold_timer_expired()
157 void br_stp_port_timer_init(struct net_bridge_port *p) in br_stp_port_timer_init() argument
159 setup_timer(&p->message_age_timer, br_message_age_timer_expired, in br_stp_port_timer_init()
160 (unsigned long) p); in br_stp_port_timer_init()
162 setup_timer(&p->forward_delay_timer, br_forward_delay_timer_expired, in br_stp_port_timer_init()
163 (unsigned long) p); in br_stp_port_timer_init()
165 setup_timer(&p->hold_timer, br_hold_timer_expired, in br_stp_port_timer_init()
166 (unsigned long) p); in br_stp_port_timer_init()