Searched refs:sdres (Results 1 – 2 of 2) sorted by relevance
/linux-4.1.27/net/nfc/ |
D | llcp_commands.c | 120 struct nfc_llcp_sdp_tlv *sdres; in nfc_llcp_build_sdres_tlv() local 123 sdres = kzalloc(sizeof(struct nfc_llcp_sdp_tlv), GFP_KERNEL); in nfc_llcp_build_sdres_tlv() 124 if (sdres == NULL) in nfc_llcp_build_sdres_tlv() 130 sdres->tlv = nfc_llcp_build_tlv(LLCP_TLV_SDRES, value, 2, in nfc_llcp_build_sdres_tlv() 131 &sdres->tlv_len); in nfc_llcp_build_sdres_tlv() 132 if (sdres->tlv == NULL) { in nfc_llcp_build_sdres_tlv() 133 kfree(sdres); in nfc_llcp_build_sdres_tlv() 137 sdres->tid = tid; in nfc_llcp_build_sdres_tlv() 138 sdres->sap = sap; in nfc_llcp_build_sdres_tlv() 140 INIT_HLIST_NODE(&sdres->node); in nfc_llcp_build_sdres_tlv() [all …]
|
D | netlink.c | 373 struct nfc_llcp_sdp_tlv *sdres; in nfc_genl_llc_send_sdres() local 398 hlist_for_each_entry_safe(sdres, n, sdres_list, node) { in nfc_genl_llc_send_sdres() 399 pr_debug("uri: %s, sap: %d\n", sdres->uri, sdres->sap); in nfc_genl_llc_send_sdres() 407 if (nla_put_u8(msg, NFC_SDP_ATTR_SAP, sdres->sap)) in nfc_genl_llc_send_sdres() 410 if (nla_put_string(msg, NFC_SDP_ATTR_URI, sdres->uri)) in nfc_genl_llc_send_sdres() 415 hlist_del(&sdres->node); in nfc_genl_llc_send_sdres() 417 nfc_llcp_free_sdp_tlv(sdres); in nfc_genl_llc_send_sdres()
|