Searched refs:proto_tab (Results 1 – 3 of 3) sorted by relevance
28 static const struct nfc_protocol *proto_tab[NFC_SOCKPROTO_MAX]; variable42 if (proto_tab[proto] && try_module_get(proto_tab[proto]->owner)) { in nfc_sock_create()43 rc = proto_tab[proto]->create(net, sock, proto_tab[proto]); in nfc_sock_create()44 module_put(proto_tab[proto]->owner); in nfc_sock_create()69 if (proto_tab[nfc_proto->id]) in nfc_proto_register()72 proto_tab[nfc_proto->id] = nfc_proto; in nfc_proto_register()82 proto_tab[nfc_proto->id] = NULL; in nfc_proto_unregister()
38 static struct phonet_protocol *proto_tab[PHONET_NPROTO] __read_mostly; variable48 pp = rcu_dereference(proto_tab[protocol]); in phonet_proto_get()484 if (proto_tab[protocol]) in phonet_proto_register()487 rcu_assign_pointer(proto_tab[protocol], pp); in phonet_proto_register()497 BUG_ON(proto_tab[protocol] != pp); in phonet_proto_unregister()498 RCU_INIT_POINTER(proto_tab[protocol], NULL); in phonet_proto_unregister()
88 static const struct can_proto *proto_tab[CAN_NPROTO] __read_mostly; variable124 cp = rcu_dereference(proto_tab[protocol]); in can_get_proto()790 if (proto_tab[proto]) { in can_proto_register()794 RCU_INIT_POINTER(proto_tab[proto], cp); in can_proto_register()814 BUG_ON(proto_tab[proto] != cp); in can_proto_unregister()815 RCU_INIT_POINTER(proto_tab[proto], NULL); in can_proto_unregister()