Lines Matching refs:p

75 static int br_mrp_port_state_parse(struct net_bridge_port *p,  in br_mrp_port_state_parse()  argument
95 return br_mrp_set_port_state(p, state); in br_mrp_port_state_parse()
104 static int br_mrp_port_role_parse(struct net_bridge_port *p, in br_mrp_port_role_parse() argument
124 return br_mrp_set_port_role(p, role); in br_mrp_port_role_parse()
356 int br_mrp_parse(struct net_bridge *br, struct net_bridge_port *p, in br_mrp_parse() argument
365 if (p) in br_mrp_parse()
366 br = p->br; in br_mrp_parse()
386 err = br_mrp_port_state_parse(p, tb[IFLA_BRIDGE_MRP_PORT_STATE], in br_mrp_parse()
393 err = br_mrp_port_role_parse(p, tb[IFLA_BRIDGE_MRP_PORT_ROLE], in br_mrp_parse()
457 struct net_bridge_port *p; in br_mrp_fill_info() local
467 p = rcu_dereference(mrp->p_port); in br_mrp_fill_info()
468 if (p && nla_put_u32(skb, IFLA_BRIDGE_MRP_INFO_P_IFINDEX, in br_mrp_fill_info()
469 p->dev->ifindex)) in br_mrp_fill_info()
472 p = rcu_dereference(mrp->s_port); in br_mrp_fill_info()
473 if (p && nla_put_u32(skb, IFLA_BRIDGE_MRP_INFO_S_IFINDEX, in br_mrp_fill_info()
474 p->dev->ifindex)) in br_mrp_fill_info()
477 p = rcu_dereference(mrp->i_port); in br_mrp_fill_info()
478 if (p && nla_put_u32(skb, IFLA_BRIDGE_MRP_INFO_I_IFINDEX, in br_mrp_fill_info()
479 p->dev->ifindex)) in br_mrp_fill_info()
531 struct net_bridge_port *p; in br_mrp_ring_port_open() local
534 p = br_port_get_rcu(dev); in br_mrp_ring_port_open()
535 if (!p) { in br_mrp_ring_port_open()
541 p->flags |= BR_MRP_LOST_CONT; in br_mrp_ring_port_open()
543 p->flags &= ~BR_MRP_LOST_CONT; in br_mrp_ring_port_open()
545 br_ifinfo_notify(RTM_NEWLINK, NULL, p); in br_mrp_ring_port_open()
553 struct net_bridge_port *p; in br_mrp_in_port_open() local
556 p = br_port_get_rcu(dev); in br_mrp_in_port_open()
557 if (!p) { in br_mrp_in_port_open()
563 p->flags |= BR_MRP_LOST_IN_CONT; in br_mrp_in_port_open()
565 p->flags &= ~BR_MRP_LOST_IN_CONT; in br_mrp_in_port_open()
567 br_ifinfo_notify(RTM_NEWLINK, NULL, p); in br_mrp_in_port_open()