Lines Matching refs:role
618 enum br_mrp_port_role_type role) in br_mrp_set_port_role() argument
630 switch (role) { in br_mrp_set_port_role()
641 br_mrp_port_switchdev_set_role(p, role); in br_mrp_set_port_role()
672 struct br_mrp_ring_role *role) in br_mrp_set_ring_role() argument
674 struct br_mrp *mrp = br_mrp_find_id(br, role->ring_id); in br_mrp_set_ring_role()
680 mrp->ring_role = role->ring_role; in br_mrp_set_ring_role()
683 support = br_mrp_switchdev_set_ring_role(br, mrp, role->ring_role); in br_mrp_set_ring_role()
758 int br_mrp_set_in_role(struct net_bridge *br, struct br_mrp_in_role *role) in br_mrp_set_in_role() argument
760 struct br_mrp *mrp = br_mrp_find_id(br, role->ring_id); in br_mrp_set_in_role()
767 if (!br_mrp_get_port(br, role->i_ifindex)) in br_mrp_set_in_role()
770 if (role->in_role == BR_MRP_IN_ROLE_DISABLED) { in br_mrp_set_in_role()
792 mrp->in_role = role->in_role; in br_mrp_set_in_role()
799 if (!br_mrp_unique_ifindex(br, role->i_ifindex)) in br_mrp_set_in_role()
809 p = br_mrp_get_port(br, role->i_ifindex); in br_mrp_set_in_role()
816 mrp->in_role = role->in_role; in br_mrp_set_in_role()
817 mrp->in_id = role->in_id; in br_mrp_set_in_role()
820 support = br_mrp_switchdev_set_in_role(br, mrp, role->in_id, in br_mrp_set_in_role()
821 role->ring_id, role->in_role); in br_mrp_set_in_role()