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], kern); 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()485 if (proto_tab[protocol]) in phonet_proto_register()488 rcu_assign_pointer(proto_tab[protocol], pp); in phonet_proto_register()498 BUG_ON(proto_tab[protocol] != pp); in phonet_proto_unregister()499 RCU_INIT_POINTER(proto_tab[protocol], NULL); in phonet_proto_unregister()
85 static const struct can_proto *proto_tab[CAN_NPROTO] __read_mostly; variable123 cp = rcu_dereference(proto_tab[protocol]); in can_get_proto()787 if (proto_tab[proto]) { in can_proto_register()791 RCU_INIT_POINTER(proto_tab[proto], cp); in can_proto_register()811 BUG_ON(proto_tab[proto] != cp); in can_proto_unregister()812 RCU_INIT_POINTER(proto_tab[proto], NULL); in can_proto_unregister()