Lines Matching refs:tlv_ptr

360 	uint8_t *tlv_ptr;  in nan_ndp_initiator_req_tlv()  local
416 tlv_ptr = (uint8_t *)&ch_tlv[1]; in nan_ndp_initiator_req_tlv()
418 WMITLV_SET_HDR(tlv_ptr, WMITLV_TAG_ARRAY_BYTE, ndp_cfg_len); in nan_ndp_initiator_req_tlv()
419 qdf_mem_copy(&tlv_ptr[WMI_TLV_HDR_SIZE], in nan_ndp_initiator_req_tlv()
421 tlv_ptr = tlv_ptr + WMI_TLV_HDR_SIZE + ndp_cfg_len; in nan_ndp_initiator_req_tlv()
423 WMITLV_SET_HDR(tlv_ptr, WMITLV_TAG_ARRAY_BYTE, ndp_app_info_len); in nan_ndp_initiator_req_tlv()
424 qdf_mem_copy(&tlv_ptr[WMI_TLV_HDR_SIZE], in nan_ndp_initiator_req_tlv()
426 tlv_ptr = tlv_ptr + WMI_TLV_HDR_SIZE + ndp_app_info_len; in nan_ndp_initiator_req_tlv()
428 WMITLV_SET_HDR(tlv_ptr, WMITLV_TAG_ARRAY_BYTE, pmk_len); in nan_ndp_initiator_req_tlv()
429 qdf_mem_copy(&tlv_ptr[WMI_TLV_HDR_SIZE], ndp_req->pmk.pmk, in nan_ndp_initiator_req_tlv()
431 tlv_ptr = tlv_ptr + WMI_TLV_HDR_SIZE + pmk_len; in nan_ndp_initiator_req_tlv()
433 WMITLV_SET_HDR(tlv_ptr, WMITLV_TAG_ARRAY_BYTE, passphrase_len); in nan_ndp_initiator_req_tlv()
434 qdf_mem_copy(&tlv_ptr[WMI_TLV_HDR_SIZE], ndp_req->passphrase.passphrase, in nan_ndp_initiator_req_tlv()
436 tlv_ptr = tlv_ptr + WMI_TLV_HDR_SIZE + passphrase_len; in nan_ndp_initiator_req_tlv()
438 WMITLV_SET_HDR(tlv_ptr, WMITLV_TAG_ARRAY_BYTE, service_name_len); in nan_ndp_initiator_req_tlv()
439 qdf_mem_copy(&tlv_ptr[WMI_TLV_HDR_SIZE], in nan_ndp_initiator_req_tlv()
442 tlv_ptr = tlv_ptr + WMI_TLV_HDR_SIZE + service_name_len; in nan_ndp_initiator_req_tlv()
445 tcp_ip_param = (wmi_ndp_transport_ip_param *)tlv_ptr; in nan_ndp_initiator_req_tlv()
486 uint8_t *tlv_ptr; in nan_ndp_responder_req_tlv() local
541 tlv_ptr = (uint8_t *)&cmd[1]; in nan_ndp_responder_req_tlv()
542 WMITLV_SET_HDR(tlv_ptr, WMITLV_TAG_ARRAY_BYTE, ndp_cfg_len); in nan_ndp_responder_req_tlv()
543 qdf_mem_copy(&tlv_ptr[WMI_TLV_HDR_SIZE], in nan_ndp_responder_req_tlv()
546 tlv_ptr = tlv_ptr + WMI_TLV_HDR_SIZE + ndp_cfg_len; in nan_ndp_responder_req_tlv()
547 WMITLV_SET_HDR(tlv_ptr, WMITLV_TAG_ARRAY_BYTE, ndp_app_info_len); in nan_ndp_responder_req_tlv()
548 qdf_mem_copy(&tlv_ptr[WMI_TLV_HDR_SIZE], in nan_ndp_responder_req_tlv()
552 tlv_ptr = tlv_ptr + WMI_TLV_HDR_SIZE + ndp_app_info_len; in nan_ndp_responder_req_tlv()
553 WMITLV_SET_HDR(tlv_ptr, WMITLV_TAG_ARRAY_BYTE, pmk_len); in nan_ndp_responder_req_tlv()
554 qdf_mem_copy(&tlv_ptr[WMI_TLV_HDR_SIZE], req->pmk.pmk, in nan_ndp_responder_req_tlv()
557 tlv_ptr = tlv_ptr + WMI_TLV_HDR_SIZE + pmk_len; in nan_ndp_responder_req_tlv()
558 WMITLV_SET_HDR(tlv_ptr, WMITLV_TAG_ARRAY_BYTE, passphrase_len); in nan_ndp_responder_req_tlv()
559 qdf_mem_copy(&tlv_ptr[WMI_TLV_HDR_SIZE], in nan_ndp_responder_req_tlv()
562 tlv_ptr = tlv_ptr + WMI_TLV_HDR_SIZE + passphrase_len; in nan_ndp_responder_req_tlv()
564 WMITLV_SET_HDR(tlv_ptr, WMITLV_TAG_ARRAY_BYTE, service_name_len); in nan_ndp_responder_req_tlv()
565 qdf_mem_copy(&tlv_ptr[WMI_TLV_HDR_SIZE], in nan_ndp_responder_req_tlv()
569 tlv_ptr = tlv_ptr + WMI_TLV_HDR_SIZE + service_name_len; in nan_ndp_responder_req_tlv()
573 tcp_ip_param = (wmi_ndp_transport_ip_param *)tlv_ptr; in nan_ndp_responder_req_tlv()