Searched refs:sdres (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.4/net/nfc/ |
D | llcp_commands.c | 108 struct nfc_llcp_sdp_tlv *sdres; in nfc_llcp_build_sdres_tlv() local 111 sdres = kzalloc(sizeof(struct nfc_llcp_sdp_tlv), GFP_KERNEL); in nfc_llcp_build_sdres_tlv() 112 if (sdres == NULL) in nfc_llcp_build_sdres_tlv() 118 sdres->tlv = nfc_llcp_build_tlv(LLCP_TLV_SDRES, value, 2, in nfc_llcp_build_sdres_tlv() 119 &sdres->tlv_len); in nfc_llcp_build_sdres_tlv() 120 if (sdres->tlv == NULL) { in nfc_llcp_build_sdres_tlv() 121 kfree(sdres); in nfc_llcp_build_sdres_tlv() 125 sdres->tid = tid; in nfc_llcp_build_sdres_tlv() 126 sdres->sap = sap; in nfc_llcp_build_sdres_tlv() 128 INIT_HLIST_NODE(&sdres->node); in nfc_llcp_build_sdres_tlv() [all …]
|
D | netlink.c | 366 struct nfc_llcp_sdp_tlv *sdres; in nfc_genl_llc_send_sdres() local 391 hlist_for_each_entry_safe(sdres, n, sdres_list, node) { in nfc_genl_llc_send_sdres() 392 pr_debug("uri: %s, sap: %d\n", sdres->uri, sdres->sap); in nfc_genl_llc_send_sdres() 400 if (nla_put_u8(msg, NFC_SDP_ATTR_SAP, sdres->sap)) in nfc_genl_llc_send_sdres() 403 if (nla_put_string(msg, NFC_SDP_ATTR_URI, sdres->uri)) in nfc_genl_llc_send_sdres() 408 hlist_del(&sdres->node); in nfc_genl_llc_send_sdres() 410 nfc_llcp_free_sdp_tlv(sdres); in nfc_genl_llc_send_sdres()
|