Home
last modified time | relevance | path

Searched refs:proto_tab (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/net/nfc/
Daf_nfc.c16 static const struct nfc_protocol *proto_tab[NFC_SOCKPROTO_MAX]; variable
30 if (proto_tab[proto] && try_module_get(proto_tab[proto]->owner)) { in nfc_sock_create()
31 rc = proto_tab[proto]->create(net, sock, proto_tab[proto], kern); in nfc_sock_create()
32 module_put(proto_tab[proto]->owner); in nfc_sock_create()
57 if (proto_tab[nfc_proto->id]) in nfc_proto_register()
60 proto_tab[nfc_proto->id] = nfc_proto; in nfc_proto_register()
73 proto_tab[nfc_proto->id] = NULL; in nfc_proto_unregister()
/linux-6.1.9/net/phonet/
Daf_phonet.c25 static const struct phonet_protocol *proto_tab[PHONET_NPROTO] __read_mostly; variable
35 pp = rcu_dereference(proto_tab[protocol]); in phonet_proto_get()
471 if (proto_tab[protocol]) in phonet_proto_register()
474 rcu_assign_pointer(proto_tab[protocol], pp); in phonet_proto_register()
485 BUG_ON(proto_tab[protocol] != pp); in phonet_proto_unregister()
486 RCU_INIT_POINTER(proto_tab[protocol], NULL); in phonet_proto_unregister()
/linux-6.1.9/net/can/
Daf_can.c82 static const struct can_proto __rcu *proto_tab[CAN_NPROTO] __read_mostly; variable
101 cp = rcu_dereference(proto_tab[protocol]); in can_get_proto()
750 if (rcu_access_pointer(proto_tab[proto])) { in can_proto_register()
754 RCU_INIT_POINTER(proto_tab[proto], cp); in can_proto_register()
775 BUG_ON(rcu_access_pointer(proto_tab[proto]) != cp); in can_proto_unregister()
776 RCU_INIT_POINTER(proto_tab[proto], NULL); in can_proto_unregister()