Home
last modified time | relevance | path

Searched refs:mrp (Results 1 – 16 of 16) sorted by relevance

/openbmc/linux/net/bridge/
H A Dbr_mrp.c60 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 …]
H A Dbr_mrp_switchdev.c38 .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 …]
H A Dbr_private_mrp.h82 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,
H A Dbr_mrp_netlink.c450 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 …]
/openbmc/linux/fs/xfs/
H A Dmrlock.h19 #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 …]
/openbmc/qemu/system/
H A Dioport.c167 for (mrp = mrpio->ports; mrp->size; ++mrp) { in find_portio()
168 if (offset >= mrp->offset && offset < mrp->offset + mrp->len && in find_portio()
169 size == mrp->size && in find_portio()
170 (write ? (bool)mrp->write : (bool)mrp->read)) { in find_portio()
171 return mrp; in find_portio()
184 if (mrp) { in portio_read()
188 if (mrp) { in portio_read()
190 if (addr + 1 < mrp->offset + mrp->len) { in portio_read()
206 if (mrp) { in portio_write()
210 if (mrp) { in portio_write()
[all …]
/openbmc/linux/drivers/net/ethernet/mscc/
H A Docelot_mrp.c123 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()
210 if (mrp->ring_role != BR_MRP_RING_ROLE_MRC && !mrp->sw_backup) in ocelot_mrp_del_ring_role()
[all …]
H A Docelot_net.c1123 const struct switchdev_obj_mrp *mrp) in ocelot_port_obj_mrp_add() argument
1130 return ocelot_mrp_add(ocelot, port, mrp); in ocelot_port_obj_mrp_add()
1134 const struct switchdev_obj_mrp *mrp) in ocelot_port_obj_mrp_del() argument
1141 return ocelot_mrp_del(ocelot, port, mrp); in ocelot_port_obj_mrp_del()
1146 const struct switchdev_obj_ring_role_mrp *mrp) in ocelot_port_obj_mrp_add_ring_role() argument
1153 return ocelot_mrp_add_ring_role(ocelot, port, mrp); in ocelot_port_obj_mrp_add_ring_role()
1158 const struct switchdev_obj_ring_role_mrp *mrp) in ocelot_port_obj_mrp_del_ring_role() argument
1165 return ocelot_mrp_del_ring_role(ocelot, port, mrp); in ocelot_port_obj_mrp_del_ring_role()
/openbmc/linux/net/dsa/
H A Dport.h95 const struct switchdev_obj_mrp *mrp);
97 const struct switchdev_obj_mrp *mrp);
99 const struct switchdev_obj_ring_role_mrp *mrp);
101 const struct switchdev_obj_ring_role_mrp *mrp);
H A Dport.c1358 const struct switchdev_obj_mrp *mrp) in dsa_port_mrp_add() argument
1365 return ds->ops->port_mrp_add(ds, dp->index, mrp); in dsa_port_mrp_add()
1369 const struct switchdev_obj_mrp *mrp) in dsa_port_mrp_del() argument
1376 return ds->ops->port_mrp_del(ds, dp->index, mrp); in dsa_port_mrp_del()
1380 const struct switchdev_obj_ring_role_mrp *mrp) in dsa_port_mrp_add_ring_role() argument
1387 return ds->ops->port_mrp_add_ring_role(ds, dp->index, mrp); in dsa_port_mrp_add_ring_role()
1391 const struct switchdev_obj_ring_role_mrp *mrp) in dsa_port_mrp_del_ring_role() argument
1398 return ds->ops->port_mrp_del_ring_role(ds, dp->index, mrp); in dsa_port_mrp_del_ring_role()
/openbmc/linux/net/802/
H A DMakefile14 obj-$(CONFIG_MRP) += mrp.o
/openbmc/linux/include/soc/mscc/
H A Docelot.h1181 const struct switchdev_obj_mrp *mrp);
1183 const struct switchdev_obj_mrp *mrp);
1185 const struct switchdev_obj_ring_role_mrp *mrp);
1187 const struct switchdev_obj_ring_role_mrp *mrp);
1190 const struct switchdev_obj_mrp *mrp) in ocelot_mrp_add() argument
1196 const struct switchdev_obj_mrp *mrp) in ocelot_mrp_del() argument
1203 const struct switchdev_obj_ring_role_mrp *mrp) in ocelot_mrp_add_ring_role() argument
1210 const struct switchdev_obj_ring_role_mrp *mrp) in ocelot_mrp_del_ring_role() argument
/openbmc/linux/drivers/net/dsa/ocelot/
H A Dfelix.c2001 const struct switchdev_obj_mrp *mrp) in felix_mrp_add() argument
2005 return ocelot_mrp_add(ocelot, port, mrp); in felix_mrp_add()
2009 const struct switchdev_obj_mrp *mrp) in felix_mrp_del() argument
2013 return ocelot_mrp_add(ocelot, port, mrp); in felix_mrp_del()
2018 const struct switchdev_obj_ring_role_mrp *mrp) in felix_mrp_add_ring_role() argument
2022 return ocelot_mrp_add_ring_role(ocelot, port, mrp); in felix_mrp_add_ring_role()
2027 const struct switchdev_obj_ring_role_mrp *mrp) in felix_mrp_del_ring_role() argument
2031 return ocelot_mrp_del_ring_role(ocelot, port, mrp); in felix_mrp_del_ring_role()
/openbmc/linux/include/net/
H A Ddsa.h1209 const struct switchdev_obj_mrp *mrp);
1211 const struct switchdev_obj_mrp *mrp);
1213 const struct switchdev_obj_ring_role_mrp *mrp);
1215 const struct switchdev_obj_ring_role_mrp *mrp);
/openbmc/qemu/target/mips/tcg/
H A Dtranslate.h49 bool mrp; member
H A Dtranslate.c5161 CP0_CHECK(ctx->mrp); in gen_mfhc0()
5255 CP0_CHECK(ctx->mrp); in gen_mthc0()
5796 CP0_CHECK(ctx->mrp); in gen_mfc0()
5801 CP0_CHECK(ctx->mrp); in gen_mfc0()
6530 CP0_CHECK(ctx->mrp); in gen_mtc0()
6535 CP0_CHECK(ctx->mrp); in gen_mtc0()
7272 CP0_CHECK(ctx->mrp); in gen_dmfc0()
7277 CP0_CHECK(ctx->mrp); in gen_dmfc0()
7991 CP0_CHECK(ctx->mrp); in gen_dmtc0()
7996 CP0_CHECK(ctx->mrp); in gen_dmtc0()
[all …]