/linux/net/bridge/ |
A D | br_mrp.c | 60 res = mrp; in br_mrp_find_id() 76 res = mrp; in br_mrp_find_in_id() 290 if (mrp->test_count_miss < mrp->test_max_miss) { in br_mrp_test_work_expired() 445 br_mrp_switchdev_set_in_role(br, mrp, mrp->in_id, mrp->ring_id, in br_mrp_del_impl() 507 if (mrp) in br_mrp_add() 519 mrp = kzalloc(sizeof(*mrp), GFP_KERNEL); in br_mrp_add() 520 if (!mrp) in br_mrp_add() 567 if (!mrp) in br_mrp_port_del() 580 if (!mrp) in br_mrp_del() 627 if (!mrp) in br_mrp_set_port_role() [all …]
|
A D | br_mrp_switchdev.c | 38 .ring_id = mrp->ring_id, in br_mrp_switchdev_add() 39 .prio = mrp->prio, in br_mrp_switchdev_add() 55 .ring_id = mrp->ring_id, in br_mrp_switchdev_del() 72 .ring_id = mrp->ring_id, in br_mrp_switchdev_set_ring_role() 111 .ring_id = mrp->ring_id, in br_mrp_switchdev_send_ring_test() 123 struct br_mrp *mrp, in br_mrp_switchdev_set_ring_state() argument 130 .ring_id = mrp->ring_id, in br_mrp_switchdev_set_ring_state() 148 .in_id = mrp->in_id, in br_mrp_switchdev_set_in_role() 149 .ring_id = mrp->ring_id, in br_mrp_switchdev_set_in_role() 186 .in_id = mrp->in_id, in br_mrp_switchdev_set_in_state() [all …]
|
A 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,
|
A D | br_mrp_netlink.c | 450 struct br_mrp *mrp; in br_mrp_fill_info() local 464 mrp->ring_id)) 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() 495 mrp->test_max_miss)) in br_mrp_fill_info() 498 mrp->test_monitor)) in br_mrp_fill_info() 502 mrp->in_state)) in br_mrp_fill_info() 505 mrp->in_role)) in br_mrp_fill_info() [all …]
|
/linux/fs/xfs/ |
A 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 26 #define mrlock_init(mrp, t,n,s) mrinit(mrp, n) argument 38 mrp->mr_writer = 1; in mrupdate_nested() 52 mrp->mr_writer = 1; in mrtryupdate() 60 mrp->mr_writer = 0; in mrunlock_excl() 62 up_write(&mrp->mr_lock); in mrunlock_excl() 67 up_read(&mrp->mr_lock); in mrunlock_shared() 73 mrp->mr_writer = 0; in mrdemote() [all …]
|
/linux/drivers/net/ethernet/mscc/ |
A D | ocelot_mrp.c | 132 const struct switchdev_obj_mrp *mrp) in ocelot_mrp_add() argument 144 if (mrp->p_port != dev && mrp->s_port != dev) in ocelot_mrp_add() 147 ocelot_port->mrp_ring_id = mrp->ring_id; in ocelot_mrp_add() 154 const struct switchdev_obj_mrp *mrp) in ocelot_mrp_del() argument 161 if (ocelot_port->mrp_ring_id != mrp->ring_id) in ocelot_mrp_del() 171 const struct switchdev_obj_ring_role_mrp *mrp) in ocelot_mrp_add_ring_role() argument 180 if (mrp->ring_role != BR_MRP_RING_ROLE_MRC && !mrp->sw_backup) in ocelot_mrp_add_ring_role() 183 if (ocelot_port->mrp_ring_id != mrp->ring_id) in ocelot_mrp_add_ring_role() 188 if (mrp->ring_role != BR_MRP_RING_ROLE_MRC) in ocelot_mrp_add_ring_role() 219 if (mrp->ring_role != BR_MRP_RING_ROLE_MRC && !mrp->sw_backup) in ocelot_mrp_del_ring_role() [all …]
|
A D | ocelot_net.c | 987 const struct switchdev_obj_mrp *mrp) in ocelot_port_obj_mrp_add() argument 994 return ocelot_mrp_add(ocelot, port, mrp); in ocelot_port_obj_mrp_add() 998 const struct switchdev_obj_mrp *mrp) in ocelot_port_obj_mrp_del() argument 1005 return ocelot_mrp_del(ocelot, port, mrp); in ocelot_port_obj_mrp_del() 1010 const struct switchdev_obj_ring_role_mrp *mrp) in ocelot_port_obj_mrp_add_ring_role() argument 1017 return ocelot_mrp_add_ring_role(ocelot, port, mrp); in ocelot_port_obj_mrp_add_ring_role() 1022 const struct switchdev_obj_ring_role_mrp *mrp) in ocelot_port_obj_mrp_del_ring_role() argument 1029 return ocelot_mrp_del_ring_role(ocelot, port, mrp); in ocelot_port_obj_mrp_del_ring_role()
|
/linux/net/dsa/ |
A D | dsa_priv.h | 108 const struct switchdev_obj_mrp *mrp; member 115 const struct switchdev_obj_ring_role_mrp *mrp; member 254 const struct switchdev_obj_mrp *mrp); 256 const struct switchdev_obj_mrp *mrp); 258 const struct switchdev_obj_ring_role_mrp *mrp); 260 const struct switchdev_obj_ring_role_mrp *mrp);
|
A D | port.c | 904 const struct switchdev_obj_mrp *mrp) in dsa_port_mrp_add() argument 909 .mrp = mrp, in dsa_port_mrp_add() 916 const struct switchdev_obj_mrp *mrp) in dsa_port_mrp_del() argument 921 .mrp = mrp, in dsa_port_mrp_del() 928 const struct switchdev_obj_ring_role_mrp *mrp) in dsa_port_mrp_add_ring_role() argument 933 .mrp = mrp, in dsa_port_mrp_add_ring_role() 940 const struct switchdev_obj_ring_role_mrp *mrp) in dsa_port_mrp_del_ring_role() argument 945 .mrp = mrp, in dsa_port_mrp_del_ring_role()
|
A D | switch.c | 657 return ds->ops->port_mrp_add(ds, info->port, info->mrp); in dsa_switch_mrp_add() 669 return ds->ops->port_mrp_del(ds, info->port, info->mrp); in dsa_switch_mrp_del() 683 info->mrp); in dsa_switch_mrp_add_ring_role() 697 info->mrp); in dsa_switch_mrp_del_ring_role()
|
/linux/include/soc/mscc/ |
A D | ocelot.h | 875 const struct switchdev_obj_mrp *mrp); 877 const struct switchdev_obj_mrp *mrp); 879 const struct switchdev_obj_ring_role_mrp *mrp); 881 const struct switchdev_obj_ring_role_mrp *mrp); 884 const struct switchdev_obj_mrp *mrp) in ocelot_mrp_add() argument 890 const struct switchdev_obj_mrp *mrp) in ocelot_mrp_del() argument 897 const struct switchdev_obj_ring_role_mrp *mrp) in ocelot_mrp_add_ring_role() argument 904 const struct switchdev_obj_ring_role_mrp *mrp) in ocelot_mrp_del_ring_role() argument
|
/linux/net/802/ |
A D | Makefile | 14 obj-$(CONFIG_MRP) += mrp.o
|
/linux/drivers/net/dsa/ocelot/ |
A D | felix.c | 1603 const struct switchdev_obj_mrp *mrp) in felix_mrp_add() argument 1607 return ocelot_mrp_add(ocelot, port, mrp); in felix_mrp_add() 1611 const struct switchdev_obj_mrp *mrp) in felix_mrp_del() argument 1615 return ocelot_mrp_add(ocelot, port, mrp); in felix_mrp_del() 1620 const struct switchdev_obj_ring_role_mrp *mrp) in felix_mrp_add_ring_role() argument 1624 return ocelot_mrp_add_ring_role(ocelot, port, mrp); in felix_mrp_add_ring_role() 1629 const struct switchdev_obj_ring_role_mrp *mrp) in felix_mrp_del_ring_role() argument 1633 return ocelot_mrp_del_ring_role(ocelot, port, mrp); in felix_mrp_del_ring_role()
|
/linux/include/net/ |
A D | dsa.h | 932 const struct switchdev_obj_mrp *mrp); 934 const struct switchdev_obj_mrp *mrp); 936 const struct switchdev_obj_ring_role_mrp *mrp); 938 const struct switchdev_obj_ring_role_mrp *mrp);
|