/linux-6.1.9/net/bridge/ |
D | br_mrp.c | 55 struct br_mrp *mrp; in br_mrp_find_id() local 57 hlist_for_each_entry_rcu(mrp, &br->mrp_list, list, in br_mrp_find_id() 59 if (mrp->ring_id == ring_id) { in br_mrp_find_id() 60 res = mrp; in br_mrp_find_id() 71 struct br_mrp *mrp; in br_mrp_find_in_id() local 73 hlist_for_each_entry_rcu(mrp, &br->mrp_list, list, in br_mrp_find_in_id() 75 if (mrp->in_id == in_id) { in br_mrp_find_in_id() 76 res = mrp; in br_mrp_find_in_id() 86 struct br_mrp *mrp; in br_mrp_unique_ifindex() local 88 hlist_for_each_entry_rcu(mrp, &br->mrp_list, list, in br_mrp_unique_ifindex() [all …]
|
D | br_mrp_switchdev.c | 31 int br_mrp_switchdev_add(struct net_bridge *br, struct br_mrp *mrp) in br_mrp_switchdev_add() argument 36 .p_port = rtnl_dereference(mrp->p_port)->dev, in br_mrp_switchdev_add() 37 .s_port = rtnl_dereference(mrp->s_port)->dev, in br_mrp_switchdev_add() 38 .ring_id = mrp->ring_id, in br_mrp_switchdev_add() 39 .prio = mrp->prio, 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 55 .ring_id = mrp->ring_id, 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 72 .ring_id = mrp->ring_id, 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 [all …]
|
D | br_private_mrp.h | 82 int br_mrp_switchdev_add(struct net_bridge *br, struct br_mrp *mrp); 83 int br_mrp_switchdev_del(struct net_bridge *br, struct br_mrp *mrp); 85 br_mrp_switchdev_set_ring_role(struct net_bridge *br, struct br_mrp *mrp, 87 int br_mrp_switchdev_set_ring_state(struct net_bridge *br, struct br_mrp *mrp, 90 br_mrp_switchdev_send_ring_test(struct net_bridge *br, struct br_mrp *mrp, 97 br_mrp_switchdev_set_in_role(struct net_bridge *br, struct br_mrp *mrp, 100 int br_mrp_switchdev_set_in_state(struct net_bridge *br, struct br_mrp *mrp, 103 br_mrp_switchdev_send_in_test(struct net_bridge *br, struct br_mrp *mrp,
|
D | br_mrp_netlink.c | 450 struct br_mrp *mrp; in br_mrp_fill_info() local 456 hlist_for_each_entry_rcu(mrp, &br->mrp_list, list) { in br_mrp_fill_info() 464 mrp->ring_id)) in br_mrp_fill_info() 467 p = rcu_dereference(mrp->p_port); in br_mrp_fill_info() 472 p = rcu_dereference(mrp->s_port); in br_mrp_fill_info() 477 p = rcu_dereference(mrp->i_port); in br_mrp_fill_info() 483 mrp->prio)) in br_mrp_fill_info() 486 mrp->ring_state)) in br_mrp_fill_info() 489 mrp->ring_role)) in br_mrp_fill_info() 492 mrp->test_interval)) in br_mrp_fill_info() [all …]
|
/linux-6.1.9/fs/xfs/ |
D | mrlock.h | 19 #define mrinit(mrp, name) \ argument 20 do { (mrp)->mr_writer = 0; init_rwsem(&(mrp)->mr_lock); } while (0) 22 #define mrinit(mrp, name) \ argument 23 do { init_rwsem(&(mrp)->mr_lock); } while (0) 26 #define mrlock_init(mrp, t,n,s) mrinit(mrp, n) argument 27 #define mrfree(mrp) do { } while (0) argument 29 static inline void mraccess_nested(mrlock_t *mrp, int subclass) in mraccess_nested() argument 31 down_read_nested(&mrp->mr_lock, subclass); in mraccess_nested() 34 static inline void mrupdate_nested(mrlock_t *mrp, int subclass) in mrupdate_nested() argument 36 down_write_nested(&mrp->mr_lock, subclass); in mrupdate_nested() [all …]
|
/linux-6.1.9/drivers/net/ethernet/mscc/ |
D | ocelot_mrp.c | 123 const struct switchdev_obj_mrp *mrp) in ocelot_mrp_add() argument 135 if (mrp->p_port != dev && mrp->s_port != dev) in ocelot_mrp_add() 138 ocelot_port->mrp_ring_id = mrp->ring_id; in ocelot_mrp_add() 145 const struct switchdev_obj_mrp *mrp) in ocelot_mrp_del() argument 152 if (ocelot_port->mrp_ring_id != mrp->ring_id) in ocelot_mrp_del() 162 const struct switchdev_obj_ring_role_mrp *mrp) in ocelot_mrp_add_ring_role() argument 171 if (mrp->ring_role != BR_MRP_RING_ROLE_MRC && !mrp->sw_backup) in ocelot_mrp_add_ring_role() 174 if (ocelot_port->mrp_ring_id != mrp->ring_id) in ocelot_mrp_add_ring_role() 179 if (mrp->ring_role != BR_MRP_RING_ROLE_MRC) in ocelot_mrp_add_ring_role() 202 const struct switchdev_obj_ring_role_mrp *mrp) in ocelot_mrp_del_ring_role() argument [all …]
|
D | ocelot_net.c | 1133 const struct switchdev_obj_mrp *mrp) in ocelot_port_obj_mrp_add() argument 1140 return ocelot_mrp_add(ocelot, port, mrp); in ocelot_port_obj_mrp_add() 1144 const struct switchdev_obj_mrp *mrp) in ocelot_port_obj_mrp_del() argument 1151 return ocelot_mrp_del(ocelot, port, mrp); in ocelot_port_obj_mrp_del() 1156 const struct switchdev_obj_ring_role_mrp *mrp) in ocelot_port_obj_mrp_add_ring_role() argument 1163 return ocelot_mrp_add_ring_role(ocelot, port, mrp); in ocelot_port_obj_mrp_add_ring_role() 1168 const struct switchdev_obj_ring_role_mrp *mrp) in ocelot_port_obj_mrp_del_ring_role() argument 1175 return ocelot_mrp_del_ring_role(ocelot, port, mrp); in ocelot_port_obj_mrp_del_ring_role()
|
/linux-6.1.9/net/802/ |
D | Makefile | 14 obj-$(CONFIG_MRP) += mrp.o
|
/linux-6.1.9/net/dsa/ |
D | dsa_priv.h | 290 const struct switchdev_obj_mrp *mrp); 292 const struct switchdev_obj_mrp *mrp); 294 const struct switchdev_obj_ring_role_mrp *mrp); 296 const struct switchdev_obj_ring_role_mrp *mrp);
|
D | port.c | 1352 const struct switchdev_obj_mrp *mrp) in dsa_port_mrp_add() argument 1359 return ds->ops->port_mrp_add(ds, dp->index, mrp); in dsa_port_mrp_add() 1363 const struct switchdev_obj_mrp *mrp) in dsa_port_mrp_del() argument 1370 return ds->ops->port_mrp_del(ds, dp->index, mrp); in dsa_port_mrp_del() 1374 const struct switchdev_obj_ring_role_mrp *mrp) in dsa_port_mrp_add_ring_role() argument 1381 return ds->ops->port_mrp_add_ring_role(ds, dp->index, mrp); in dsa_port_mrp_add_ring_role() 1385 const struct switchdev_obj_ring_role_mrp *mrp) in dsa_port_mrp_del_ring_role() argument 1392 return ds->ops->port_mrp_del_ring_role(ds, dp->index, mrp); in dsa_port_mrp_del_ring_role()
|
/linux-6.1.9/include/soc/mscc/ |
D | ocelot.h | 1303 const struct switchdev_obj_mrp *mrp); 1305 const struct switchdev_obj_mrp *mrp); 1307 const struct switchdev_obj_ring_role_mrp *mrp); 1309 const struct switchdev_obj_ring_role_mrp *mrp); 1312 const struct switchdev_obj_mrp *mrp) in ocelot_mrp_add() argument 1318 const struct switchdev_obj_mrp *mrp) in ocelot_mrp_del() argument 1325 const struct switchdev_obj_ring_role_mrp *mrp) in ocelot_mrp_add_ring_role() argument 1332 const struct switchdev_obj_ring_role_mrp *mrp) in ocelot_mrp_del_ring_role() argument
|
/linux-6.1.9/drivers/net/dsa/ocelot/ |
D | felix.c | 1964 const struct switchdev_obj_mrp *mrp) in felix_mrp_add() argument 1968 return ocelot_mrp_add(ocelot, port, mrp); in felix_mrp_add() 1972 const struct switchdev_obj_mrp *mrp) in felix_mrp_del() argument 1976 return ocelot_mrp_add(ocelot, port, mrp); in felix_mrp_del() 1981 const struct switchdev_obj_ring_role_mrp *mrp) in felix_mrp_add_ring_role() argument 1985 return ocelot_mrp_add_ring_role(ocelot, port, mrp); in felix_mrp_add_ring_role() 1990 const struct switchdev_obj_ring_role_mrp *mrp) in felix_mrp_del_ring_role() argument 1994 return ocelot_mrp_del_ring_role(ocelot, port, mrp); in felix_mrp_del_ring_role()
|
/linux-6.1.9/include/net/ |
D | dsa.h | 1200 const struct switchdev_obj_mrp *mrp); 1202 const struct switchdev_obj_mrp *mrp); 1204 const struct switchdev_obj_ring_role_mrp *mrp); 1206 const struct switchdev_obj_ring_role_mrp *mrp);
|