Lines Matching full:mctp

3  * Management Component Transport Protocol (MCTP) - routing
15 #include <linux/mctp.h>
22 #include <net/mctp.h>
27 #include <trace/events/mctp.h>
58 sk_for_each_rcu(sk, &net->mctp.binds) { in mctp_lookup_bind()
78 * struct net->mctp.keys contains our set of currently-allocated keys for
79 * MCTP tag management. The lookup tuple for these is the peer EID,
80 * local EID and MCTP tag.
145 spin_lock_irqsave(&net->mctp.keys_lock, flags); in mctp_lookup_key()
147 hlist_for_each_entry(key, &net->mctp.keys, hlist) { in mctp_lookup_key()
161 spin_unlock(&net->mctp.keys_lock); in mctp_lookup_key()
164 spin_unlock_irqrestore(&net->mctp.keys_lock, flags); in mctp_lookup_key()
219 spin_lock_irqsave(&net->mctp.keys_lock, flags); in mctp_key_add()
226 hlist_for_each_entry(tmp, &net->mctp.keys, hlist) { in mctp_key_add()
243 hlist_add_head(&key->hlist, &net->mctp.keys); in mctp_key_add()
248 spin_unlock_irqrestore(&net->mctp.keys_lock, flags); in mctp_key_add()
277 spin_lock_irqsave(&net->mctp.keys_lock, flags); in __mctp_key_done_in()
283 spin_unlock_irqrestore(&net->mctp.keys_lock, flags); in __mctp_key_done_in()
630 return READ_ONCE(net->mctp.default_net); in mctp_default_net()
637 WRITE_ONCE(net->mctp.default_net, index); in mctp_default_net_set()
645 struct netns_mctp *mns = &net->mctp; in mctp_reserve_tag()
669 struct netns_mctp *mns = &net->mctp; in mctp_alloc_local_tag()
753 struct netns_mctp *mns = &net->mctp; in mctp_lookup_prealloc_tag()
820 list_for_each_entry_rcu(tmp, &net->mctp.routes, list) { in mctp_route_lookup()
842 list_for_each_entry_rcu(tmp, &net->mctp.routes, list) { in mctp_route_lookup_null()
924 /* we need to copy the extensions, for MCTP flow data */ in mctp_do_fragment_route()
1107 list_for_each_entry(ert, &net->mctp.routes, list) { in mctp_route_add()
1114 list_add_rcu(&rt->list, &net->mctp.routes); in mctp_route_add()
1135 list_for_each_entry_safe(rt, tmp, &net->mctp.routes, list) { in mctp_route_remove()
1166 list_for_each_entry_safe(rt, tmp, &net->mctp.routes, list) { in mctp_route_remove_dev()
1217 /* MCTP drivers must populate halen/haddr */ in mctp_pkttype_receive()
1448 list_for_each_entry_rcu(rt, &net->mctp.routes, list) { in mctp_dump_rtinfo()
1467 struct netns_mctp *ns = &net->mctp; in mctp_routes_net_init()
1483 list_for_each_entry_rcu(rt, &net->mctp.routes, list) in mctp_routes_net_exit()