Lines Matching refs:mns
554 struct netns_mctp *mns; in mctp_test_route_input_sk_keys() local
575 mns = &sock_net(sock->sk)->mctp; in mctp_test_route_input_sk_keys()
584 spin_lock_irqsave(&mns->keys_lock, flags); in mctp_test_route_input_sk_keys()
586 spin_unlock_irqrestore(&mns->keys_lock, flags); in mctp_test_route_input_sk_keys()
765 struct netns_mctp *mns; in mctp_test_route_input_multiple_nets_key_init() local
777 mns = &sock_net(t->sock->sk)->mctp; in mctp_test_route_input_multiple_nets_key_init()
778 spin_lock_irqsave(&mns->keys_lock, flags); in mctp_test_route_input_multiple_nets_key_init()
780 spin_unlock_irqrestore(&mns->keys_lock, flags); in mctp_test_route_input_multiple_nets_key_init()
982 struct netns_mctp *mns; in mctp_test_route_output_key_create() local
1012 mns = &sock_net(sock->sk)->mctp; in mctp_test_route_output_key_create()
1017 spin_lock_irqsave(&mns->keys_lock, flags); in mctp_test_route_output_key_create()
1018 empty = hlist_empty(&mns->keys); in mctp_test_route_output_key_create()
1019 spin_unlock_irqrestore(&mns->keys_lock, flags); in mctp_test_route_output_key_create()
1027 spin_lock_irqsave(&mns->keys_lock, flags); in mctp_test_route_output_key_create()
1028 if (!hlist_empty(&mns->keys)) { in mctp_test_route_output_key_create()
1029 key = hlist_entry(mns->keys.first, struct mctp_sk_key, hlist); in mctp_test_route_output_key_create()
1030 single = hlist_is_singular_node(&key->hlist, &mns->keys); in mctp_test_route_output_key_create()
1032 spin_unlock_irqrestore(&mns->keys_lock, flags); in mctp_test_route_output_key_create()