Home
last modified time | relevance | path

Searched refs:sdreq (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/net/nfc/
Dllcp_commands.c148 struct nfc_llcp_sdp_tlv *sdreq; in nfc_llcp_build_sdreq_tlv() local
156 sdreq = kzalloc(sizeof(struct nfc_llcp_sdp_tlv), GFP_KERNEL); in nfc_llcp_build_sdreq_tlv()
157 if (sdreq == NULL) in nfc_llcp_build_sdreq_tlv()
160 sdreq->tlv_len = uri_len + 3; in nfc_llcp_build_sdreq_tlv()
163 sdreq->tlv_len--; in nfc_llcp_build_sdreq_tlv()
165 sdreq->tlv = kzalloc(sdreq->tlv_len + 1, GFP_KERNEL); in nfc_llcp_build_sdreq_tlv()
166 if (sdreq->tlv == NULL) { in nfc_llcp_build_sdreq_tlv()
167 kfree(sdreq); in nfc_llcp_build_sdreq_tlv()
171 sdreq->tlv[0] = LLCP_TLV_SDREQ; in nfc_llcp_build_sdreq_tlv()
172 sdreq->tlv[1] = sdreq->tlv_len - 2; in nfc_llcp_build_sdreq_tlv()
[all …]
Dnetlink.c1149 struct nfc_llcp_sdp_tlv *sdreq; in nfc_genl_llc_sdreq() local
1201 sdreq = nfc_llcp_build_sdreq_tlv(tid, uri, uri_len); in nfc_genl_llc_sdreq()
1202 if (sdreq == NULL) { in nfc_genl_llc_sdreq()
1207 tlvs_len += sdreq->tlv_len; in nfc_genl_llc_sdreq()
1209 hlist_add_head(&sdreq->node, &sdreq_list); in nfc_genl_llc_sdreq()