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

/linux-4.4.14/net/nfc/
H A Dllcp_commands.c148 struct nfc_llcp_sdp_tlv *sdreq; nfc_llcp_build_sdreq_tlv() local
152 sdreq = kzalloc(sizeof(struct nfc_llcp_sdp_tlv), GFP_KERNEL); nfc_llcp_build_sdreq_tlv()
153 if (sdreq == NULL) nfc_llcp_build_sdreq_tlv()
156 sdreq->tlv_len = uri_len + 3; nfc_llcp_build_sdreq_tlv()
159 sdreq->tlv_len--; nfc_llcp_build_sdreq_tlv()
161 sdreq->tlv = kzalloc(sdreq->tlv_len + 1, GFP_KERNEL); nfc_llcp_build_sdreq_tlv()
162 if (sdreq->tlv == NULL) { nfc_llcp_build_sdreq_tlv()
163 kfree(sdreq); nfc_llcp_build_sdreq_tlv()
167 sdreq->tlv[0] = LLCP_TLV_SDREQ; nfc_llcp_build_sdreq_tlv()
168 sdreq->tlv[1] = sdreq->tlv_len - 2; nfc_llcp_build_sdreq_tlv()
169 sdreq->tlv[2] = tid; nfc_llcp_build_sdreq_tlv()
171 sdreq->tid = tid; nfc_llcp_build_sdreq_tlv()
172 sdreq->uri = sdreq->tlv + 3; nfc_llcp_build_sdreq_tlv()
173 memcpy(sdreq->uri, uri, uri_len); nfc_llcp_build_sdreq_tlv()
175 sdreq->time = jiffies; nfc_llcp_build_sdreq_tlv()
177 INIT_HLIST_NODE(&sdreq->node); nfc_llcp_build_sdreq_tlv()
179 return sdreq; nfc_llcp_build_sdreq_tlv()
568 struct nfc_llcp_sdp_tlv *sdreq; nfc_llcp_send_snl_sdreq() local
582 hlist_for_each_entry_safe(sdreq, n, tlv_list, node) { hlist_for_each_entry_safe()
583 pr_debug("tid %d for %s\n", sdreq->tid, sdreq->uri); hlist_for_each_entry_safe()
585 memcpy(skb_put(skb, sdreq->tlv_len), sdreq->tlv, hlist_for_each_entry_safe()
586 sdreq->tlv_len); hlist_for_each_entry_safe()
588 hlist_del(&sdreq->node); hlist_for_each_entry_safe()
590 hlist_add_head(&sdreq->node, &local->pending_sdreqs); hlist_for_each_entry_safe()
H A Dnetlink.c1103 struct nfc_llcp_sdp_tlv *sdreq; nfc_genl_llc_sdreq() local
1155 sdreq = nfc_llcp_build_sdreq_tlv(tid, uri, uri_len); nfc_genl_llc_sdreq()
1156 if (sdreq == NULL) { nfc_genl_llc_sdreq()
1161 tlvs_len += sdreq->tlv_len; nfc_genl_llc_sdreq()
1163 hlist_add_head(&sdreq->node, &sdreq_list); nfc_genl_llc_sdreq()

Completed in 76 milliseconds