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

/linux-4.4.14/net/nfc/
H A Daf_nfc.c28 static const struct nfc_protocol *proto_tab[NFC_SOCKPROTO_MAX]; variable in typeref:struct:nfc_protocol
42 if (proto_tab[proto] && try_module_get(proto_tab[proto]->owner)) { nfc_sock_create()
43 rc = proto_tab[proto]->create(net, sock, proto_tab[proto], kern); nfc_sock_create()
44 module_put(proto_tab[proto]->owner); nfc_sock_create()
69 if (proto_tab[nfc_proto->id]) nfc_proto_register()
72 proto_tab[nfc_proto->id] = nfc_proto; nfc_proto_register()
82 proto_tab[nfc_proto->id] = NULL; nfc_proto_unregister()
/linux-4.4.14/net/phonet/
H A Daf_phonet.c38 static struct phonet_protocol *proto_tab[PHONET_NPROTO] __read_mostly;
48 pp = rcu_dereference(proto_tab[protocol]); phonet_proto_get()
485 if (proto_tab[protocol]) phonet_proto_register()
488 rcu_assign_pointer(proto_tab[protocol], pp); phonet_proto_register()
498 BUG_ON(proto_tab[protocol] != pp); phonet_proto_unregister()
499 RCU_INIT_POINTER(proto_tab[protocol], NULL); phonet_proto_unregister()
/linux-4.4.14/net/can/
H A Daf_can.c85 static const struct can_proto *proto_tab[CAN_NPROTO] __read_mostly;
123 cp = rcu_dereference(proto_tab[protocol]); can_get_proto()
787 if (proto_tab[proto]) { can_proto_register()
791 RCU_INIT_POINTER(proto_tab[proto], cp); can_proto_register()
811 BUG_ON(proto_tab[proto] != cp); can_proto_unregister()
812 RCU_INIT_POINTER(proto_tab[proto], NULL); can_proto_unregister()

Completed in 112 milliseconds