Lines Matching refs:br
8 br_mrp_switchdev_port_obj(struct net_bridge *br, in br_mrp_switchdev_port_obj() argument
14 err = switchdev_port_obj_add(br->dev, obj, NULL); in br_mrp_switchdev_port_obj()
16 err = switchdev_port_obj_del(br->dev, obj); in br_mrp_switchdev_port_obj()
31 int br_mrp_switchdev_add(struct net_bridge *br, struct br_mrp *mrp) in br_mrp_switchdev_add() argument
34 .obj.orig_dev = br->dev, in br_mrp_switchdev_add()
45 return switchdev_port_obj_add(br->dev, &mrp_obj.obj, NULL); in br_mrp_switchdev_add()
48 int br_mrp_switchdev_del(struct net_bridge *br, struct br_mrp *mrp) in br_mrp_switchdev_del() argument
51 .obj.orig_dev = br->dev, in br_mrp_switchdev_del()
61 return switchdev_port_obj_del(br->dev, &mrp_obj.obj); in br_mrp_switchdev_del()
65 br_mrp_switchdev_set_ring_role(struct net_bridge *br, struct br_mrp *mrp, in br_mrp_switchdev_set_ring_role() argument
69 .obj.orig_dev = br->dev, in br_mrp_switchdev_set_ring_role()
81 support = br_mrp_switchdev_port_obj(br, &mrp_role.obj, in br_mrp_switchdev_set_ring_role()
91 err = switchdev_port_obj_add(br->dev, &mrp_role.obj, NULL); in br_mrp_switchdev_set_ring_role()
93 err = switchdev_port_obj_del(br->dev, &mrp_role.obj); in br_mrp_switchdev_set_ring_role()
102 br_mrp_switchdev_send_ring_test(struct net_bridge *br, struct br_mrp *mrp, in br_mrp_switchdev_send_ring_test() argument
107 .obj.orig_dev = br->dev, in br_mrp_switchdev_send_ring_test()
119 return br_mrp_switchdev_port_obj(br, &test.obj, interval != 0); in br_mrp_switchdev_send_ring_test()
122 int br_mrp_switchdev_set_ring_state(struct net_bridge *br, in br_mrp_switchdev_set_ring_state() argument
127 .obj.orig_dev = br->dev, in br_mrp_switchdev_set_ring_state()
136 return switchdev_port_obj_add(br->dev, &mrp_state.obj, NULL); in br_mrp_switchdev_set_ring_state()
140 br_mrp_switchdev_set_in_role(struct net_bridge *br, struct br_mrp *mrp, in br_mrp_switchdev_set_in_role() argument
145 .obj.orig_dev = br->dev, in br_mrp_switchdev_set_in_role()
159 support = br_mrp_switchdev_port_obj(br, &mrp_role.obj, in br_mrp_switchdev_set_in_role()
169 err = switchdev_port_obj_add(br->dev, &mrp_role.obj, NULL); in br_mrp_switchdev_set_in_role()
171 err = switchdev_port_obj_del(br->dev, &mrp_role.obj); in br_mrp_switchdev_set_in_role()
179 int br_mrp_switchdev_set_in_state(struct net_bridge *br, struct br_mrp *mrp, in br_mrp_switchdev_set_in_state() argument
183 .obj.orig_dev = br->dev, in br_mrp_switchdev_set_in_state()
192 return switchdev_port_obj_add(br->dev, &mrp_state.obj, NULL); in br_mrp_switchdev_set_in_state()
196 br_mrp_switchdev_send_in_test(struct net_bridge *br, struct br_mrp *mrp, in br_mrp_switchdev_send_in_test() argument
200 .obj.orig_dev = br->dev, in br_mrp_switchdev_send_in_test()
211 return br_mrp_switchdev_port_obj(br, &test.obj, interval != 0); in br_mrp_switchdev_send_in_test()