Home
last modified time | relevance | path

Searched refs:nfc_proto (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/net/nfc/
Daf_nfc.c45 int nfc_proto_register(const struct nfc_protocol *nfc_proto) in nfc_proto_register() argument
49 if (nfc_proto->id < 0 || nfc_proto->id >= NFC_SOCKPROTO_MAX) in nfc_proto_register()
52 rc = proto_register(nfc_proto->proto, 0); in nfc_proto_register()
57 if (proto_tab[nfc_proto->id]) in nfc_proto_register()
60 proto_tab[nfc_proto->id] = nfc_proto; in nfc_proto_register()
64 proto_unregister(nfc_proto->proto); in nfc_proto_register()
70 void nfc_proto_unregister(const struct nfc_protocol *nfc_proto) in nfc_proto_unregister() argument
73 proto_tab[nfc_proto->id] = NULL; in nfc_proto_unregister()
76 proto_unregister(nfc_proto->proto); in nfc_proto_unregister()
Dnfc.h24 const struct nfc_protocol *nfc_proto, int kern);
65 int nfc_proto_register(const struct nfc_protocol *nfc_proto);
66 void nfc_proto_unregister(const struct nfc_protocol *nfc_proto);
Drawsock.c321 const struct nfc_protocol *nfc_proto, int kern) in rawsock_create() argument
338 sk = sk_alloc(net, PF_NFC, GFP_ATOMIC, nfc_proto->proto, kern); in rawsock_create()
343 sk->sk_protocol = nfc_proto->id; in rawsock_create()
Ddigital_technology.c278 u8 nfc_proto; in digital_in_recv_sel_res() local
312 nfc_proto = NFC_PROTO_MIFARE; in digital_in_recv_sel_res()
314 nfc_proto = NFC_PROTO_NFC_DEP; in digital_in_recv_sel_res()
329 rc = digital_target_found(ddev, target, nfc_proto); in digital_in_recv_sel_res()
Dllcp_sock.c1018 const struct nfc_protocol *nfc_proto, int kern) in llcp_sock_create() argument