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

/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)) {
43 rc = proto_tab[proto]->create(net, sock, proto_tab[proto]);
44 module_put(proto_tab[proto]->owner);
69 if (proto_tab[nfc_proto->id])
72 proto_tab[nfc_proto->id] = nfc_proto;
82 proto_tab[nfc_proto->id] = NULL;
/net/phonet/
H A Daf_phonet.c38 static struct phonet_protocol *proto_tab[PHONET_NPROTO] __read_mostly;
48 pp = rcu_dereference(proto_tab[protocol]);
480 if (proto_tab[protocol])
483 rcu_assign_pointer(proto_tab[protocol], pp);
493 BUG_ON(proto_tab[protocol] != pp);
494 RCU_INIT_POINTER(proto_tab[protocol], NULL);
/net/can/
H A Daf_can.c88 static const struct can_proto *proto_tab[CAN_NPROTO] __read_mostly;
124 cp = rcu_dereference(proto_tab[protocol]);
781 if (proto_tab[proto]) {
785 RCU_INIT_POINTER(proto_tab[proto], cp);
805 BUG_ON(proto_tab[proto] != cp);
806 RCU_INIT_POINTER(proto_tab[proto], NULL);

Completed in 128 milliseconds