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

/net/nfc/
H A Daf_nfc.c30 static const struct nfc_protocol *proto_tab[NFC_SOCKPROTO_MAX]; variable in typeref:struct:nfc_protocol
44 if (proto_tab[proto] && try_module_get(proto_tab[proto]->owner)) {
45 rc = proto_tab[proto]->create(net, sock, proto_tab[proto]);
46 module_put(proto_tab[proto]->owner);
71 if (proto_tab[nfc_proto->id])
74 proto_tab[nfc_proto->id] = nfc_proto;
84 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.c87 static const struct can_proto *proto_tab[CAN_NPROTO] __read_mostly;
123 cp = rcu_dereference(proto_tab[protocol]);
759 if (proto_tab[proto]) {
763 RCU_INIT_POINTER(proto_tab[proto], cp);
783 BUG_ON(proto_tab[proto] != cp);
784 RCU_INIT_POINTER(proto_tab[proto], NULL);

Completed in 137 milliseconds