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

/linux-4.1.27/net/nfc/
H A Dllcp_commands.c120 struct nfc_llcp_sdp_tlv *sdres; nfc_llcp_build_sdres_tlv() local
123 sdres = kzalloc(sizeof(struct nfc_llcp_sdp_tlv), GFP_KERNEL); nfc_llcp_build_sdres_tlv()
124 if (sdres == NULL) nfc_llcp_build_sdres_tlv()
130 sdres->tlv = nfc_llcp_build_tlv(LLCP_TLV_SDRES, value, 2, nfc_llcp_build_sdres_tlv()
131 &sdres->tlv_len); nfc_llcp_build_sdres_tlv()
132 if (sdres->tlv == NULL) { nfc_llcp_build_sdres_tlv()
133 kfree(sdres); nfc_llcp_build_sdres_tlv()
137 sdres->tid = tid; nfc_llcp_build_sdres_tlv()
138 sdres->sap = sap; nfc_llcp_build_sdres_tlv()
140 INIT_HLIST_NODE(&sdres->node); nfc_llcp_build_sdres_tlv()
142 return sdres; nfc_llcp_build_sdres_tlv()
H A Dnetlink.c373 struct nfc_llcp_sdp_tlv *sdres; nfc_genl_llc_send_sdres() local
398 hlist_for_each_entry_safe(sdres, n, sdres_list, node) { hlist_for_each_entry_safe()
399 pr_debug("uri: %s, sap: %d\n", sdres->uri, sdres->sap); hlist_for_each_entry_safe()
407 if (nla_put_u8(msg, NFC_SDP_ATTR_SAP, sdres->sap)) hlist_for_each_entry_safe()
410 if (nla_put_string(msg, NFC_SDP_ATTR_URI, sdres->uri)) hlist_for_each_entry_safe()
415 hlist_del(&sdres->node); hlist_for_each_entry_safe()
417 nfc_llcp_free_sdp_tlv(sdres); hlist_for_each_entry_safe()

Completed in 131 milliseconds