Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/net/nfc/
H A Dllcp_commands.c136 struct nfc_llcp_sdp_tlv *sdreq; in nfc_llcp_build_sdreq_tlv() local
144 sdreq = kzalloc(sizeof(struct nfc_llcp_sdp_tlv), GFP_KERNEL); in nfc_llcp_build_sdreq_tlv()
145 if (sdreq == NULL) in nfc_llcp_build_sdreq_tlv()
148 sdreq->tlv_len = uri_len + 3; in nfc_llcp_build_sdreq_tlv()
151 sdreq->tlv_len--; in nfc_llcp_build_sdreq_tlv()
153 sdreq->tlv = kzalloc(sdreq->tlv_len + 1, GFP_KERNEL); in nfc_llcp_build_sdreq_tlv()
154 if (sdreq->tlv == NULL) { in nfc_llcp_build_sdreq_tlv()
155 kfree(sdreq); in nfc_llcp_build_sdreq_tlv()
159 sdreq->tlv[0] = LLCP_TLV_SDREQ; in nfc_llcp_build_sdreq_tlv()
160 sdreq->tlv[1] = sdreq->tlv_len - 2; in nfc_llcp_build_sdreq_tlv()
[all …]
H A Dnetlink.c1139 struct nfc_llcp_sdp_tlv *sdreq; in nfc_genl_llc_sdreq() local
1191 sdreq = nfc_llcp_build_sdreq_tlv(tid, uri, uri_len); in nfc_genl_llc_sdreq()
1192 if (sdreq == NULL) { in nfc_genl_llc_sdreq()
1197 tlvs_len += sdreq->tlv_len; in nfc_genl_llc_sdreq()
1199 hlist_add_head(&sdreq->node, &sdreq_list); in nfc_genl_llc_sdreq()
/OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/
H A Dwl_cfg80211.c18534 wl_sd_qr_t *sdreq; in wl_sd_handle_sd_req() local
18555 sdreq = (wl_sd_qr_t *)MALLOCZ(cfg->osh, tot_len); in wl_sd_handle_sd_req()
18556 if (!sdreq) { in wl_sd_handle_sd_req()
18567 sdreq->protocol = proto; in wl_sd_handle_sd_req()
18570 sdreq->transaction_id = simple_strtoul(buf, NULL, 16); in wl_sd_handle_sd_req()
18571 WL_SD(("transaction_id:%d\n", sdreq->transaction_id)); in wl_sd_handle_sd_req()
18572 buf += sizeof(sdreq->transaction_id); in wl_sd_handle_sd_req()
18576 sdreq->query_len = 0; in wl_sd_handle_sd_req()
18580 if (sdreq->protocol == SVC_RPOTYPE_UPNP) { in wl_sd_handle_sd_req()
18591 memcpy(sdreq->qrbuf, buf, len); in wl_sd_handle_sd_req()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/
H A Dwl_cfg80211.c18336 wl_sd_qr_t *sdreq; in wl_sd_handle_sd_req() local
18357 sdreq = (wl_sd_qr_t *)MALLOCZ(cfg->osh, tot_len); in wl_sd_handle_sd_req()
18358 if (!sdreq) { in wl_sd_handle_sd_req()
18369 sdreq->protocol = proto; in wl_sd_handle_sd_req()
18372 sdreq->transaction_id = simple_strtoul(buf, NULL, 16); in wl_sd_handle_sd_req()
18373 WL_SD(("transaction_id:%d\n", sdreq->transaction_id)); in wl_sd_handle_sd_req()
18374 buf += sizeof(sdreq->transaction_id); in wl_sd_handle_sd_req()
18378 sdreq->query_len = 0; in wl_sd_handle_sd_req()
18382 if (sdreq->protocol == SVC_RPOTYPE_UPNP) { in wl_sd_handle_sd_req()
18393 memcpy(sdreq->qrbuf, buf, len); in wl_sd_handle_sd_req()
[all …]