Lines Matching refs:TLVLength
81 Length -= (le16_to_cpu((pTLVHdr->TLVLength)) + sizeof(QMI_TLV_HDR)); in GetTLV()
82 …pTLVHdr = (PQMI_TLV_HDR)(((UCHAR *)pTLVHdr) + le16_to_cpu(pTLVHdr->TLVLength) + sizeof(QMI_TLV_HDR… in GetTLV()
130 pMUXMsg->SetEventReportReq.TLVLength = 0x04;
140 pMUXMsg->EventReportReq.TLVLength = 0x0001; // 1
163 pPinState->TLVLength = 0x01;
167 pUimState->TLVLength = 0x01;
180 USHORT TLVLength = 0; in WdsStartNwInterfaceReq() local
197 pTechPref = (PQMIWDS_TECHNOLOGY_PREFERECE)(pTLV + TLVLength); in WdsStartNwInterfaceReq()
199 pTechPref->TLVLength = cpu_to_le16(0x01); in WdsStartNwInterfaceReq()
204 TLVLength +=(le16_to_cpu(pTechPref->TLVLength) + sizeof(QCQMICTL_TLV_HDR)); in WdsStartNwInterfaceReq()
208 pApnName = (PQMIWDS_APNNAME)(pTLV + TLVLength); in WdsStartNwInterfaceReq()
210 pApnName->TLVLength = cpu_to_le16(strlen(profile->apn)); in WdsStartNwInterfaceReq()
212 TLVLength +=(le16_to_cpu(pApnName->TLVLength) + sizeof(QCQMICTL_TLV_HDR)); in WdsStartNwInterfaceReq()
217 pUserName = (PQMIWDS_USERNAME)(pTLV + TLVLength); in WdsStartNwInterfaceReq()
219 pUserName->TLVLength = cpu_to_le16(strlen(profile_user)); in WdsStartNwInterfaceReq()
221 TLVLength += (le16_to_cpu(pUserName->TLVLength) + sizeof(QCQMICTL_TLV_HDR)); in WdsStartNwInterfaceReq()
226 pPasswd = (PQMIWDS_PASSWD)(pTLV + TLVLength); in WdsStartNwInterfaceReq()
228 pPasswd->TLVLength = cpu_to_le16(strlen(profile_password)); in WdsStartNwInterfaceReq()
230 TLVLength += (le16_to_cpu(pPasswd->TLVLength) + sizeof(QCQMICTL_TLV_HDR)); in WdsStartNwInterfaceReq()
235 pAuthPref = (PQMIWDS_AUTH_PREFERENCE)(pTLV + TLVLength); in WdsStartNwInterfaceReq()
237 pAuthPref->TLVLength = cpu_to_le16(0x01); in WdsStartNwInterfaceReq()
239 TLVLength += (le16_to_cpu(pAuthPref->TLVLength) + sizeof(QCQMICTL_TLV_HDR)); in WdsStartNwInterfaceReq()
243 pIpFamily = (PQMIWDS_IP_FAMILY_TLV)(pTLV + TLVLength); in WdsStartNwInterfaceReq()
245 pIpFamily->TLVLength = cpu_to_le16(0x01); in WdsStartNwInterfaceReq()
247 TLVLength += (le16_to_cpu(pIpFamily->TLVLength) + sizeof(QCQMICTL_TLV_HDR)); in WdsStartNwInterfaceReq()
251 PQMIWDS_PROFILE_IDENTIFIER pProfileIndex = (PQMIWDS_PROFILE_IDENTIFIER)(pTLV + TLVLength); in WdsStartNwInterfaceReq()
252 pProfileIndex->TLVLength = cpu_to_le16(0x01); in WdsStartNwInterfaceReq()
259 TLVLength += (le16_to_cpu(pProfileIndex->TLVLength) + sizeof(QCQMICTL_TLV_HDR)); in WdsStartNwInterfaceReq()
262 return sizeof(QMIWDS_START_NETWORK_INTERFACE_REQ_MSG) + TLVLength; in WdsStartNwInterfaceReq()
267 pMUXMsg->StopNwInterfaceReq.TLVLength = cpu_to_le16(0x04); in WdsStopNwInterfaceReq()
277 pMUXMsg->SetClientIpFamilyPrefReq.TLVLength = cpu_to_le16(0x01); in WdsSetClientIPFamilyPref()
284 pMUXMsg->SetAutoConnectReq.TLVLength = cpu_to_le16(0x01); in WdsSetAutoConnect()
302 pMUXMsg->BindMuxDataPortReq.TLVLength = cpu_to_le16(0x08); in WdsSetQMUXBindMuxDataPort()
326 pWdsAdminQosTlv->TLVLength = cpu_to_le16(0x0001); in WdaSetDataFormat()
331 linkProto->TLVLength = cpu_to_le16(4); in WdaSetDataFormat()
336 dlTlp->TLVLength = cpu_to_le16(4); in WdaSetDataFormat()
347 pMUXMsg->SetDataFormatReq.QosDataFormatTlv.TLVLength = cpu_to_le16(0x0001); in WdaSetDataFormat()
352 pMUXMsg->SetDataFormatReq.UnderlyingLinkLayerProtocolTlv.TLVLength = cpu_to_le16(4); in WdaSetDataFormat()
357 pMUXMsg->SetDataFormatReq.UplinkDataAggregationProtocolTlv.TLVLength = cpu_to_le16(4); in WdaSetDataFormat()
362 pMUXMsg->SetDataFormatReq.DownlinkDataAggregationProtocolTlv.TLVLength = cpu_to_le16(4); in WdaSetDataFormat()
367 pMUXMsg->SetDataFormatReq.DownlinkDataAggregationMaxDatagramsTlv.TLVLength = cpu_to_le16(4); in WdaSetDataFormat()
372 pMUXMsg->SetDataFormatReq.DownlinkDataAggregationMaxSizeTlv.TLVLength = cpu_to_le16(4); in WdaSetDataFormat()
377 pMUXMsg->SetDataFormatReq.epTlv.TLVLength = cpu_to_le16(8); in WdaSetDataFormat()
388 pMUXMsg->SetDataFormatReq.DlMinimumPassingTlv.TLVLength = cpu_to_le16(4); in WdaSetDataFormat()
393 pMUXMsg->SetDataFormatReq.UplinkDataAggregationMaxDatagramsTlv.TLVLength = cpu_to_le16(4); in WdaSetDataFormat()
398 pMUXMsg->SetDataFormatReq.UplinkDataAggregationMaxSizeTlv.TLVLength = cpu_to_le16(4); in WdaSetDataFormat()
412 pMUXMsg->UIMVerifyPinReq.TLVLength = cpu_to_le16(2 + strlen((const char *)arg)); in DmsUIMVerifyPinReqSend()
419 pMUXMsg->UIMUIMVerifyPinReq.TLVLength = cpu_to_le16(0x02); in UimVerifyPinReqSend()
435 pMUXMsg->UIMUIMReadTransparentReq.TLVLength = cpu_to_le16(0x02); in UimReadTransparentIMSIReqSend()
463 pReadTransparent->TLVLength = cpu_to_le16(0x04); in UimReadTransparentIMSIReqSend()
477 pMUXMsg->GetProfileSettingsReq.TLVLength = cpu_to_le16(0x02); in WdsGetProfileSettingsReqSend()
484 USHORT TLVLength = 0; in WdsModifyProfileSettingsReq() local
491 pMUXMsg->ModifyProfileSettingsReq.TLVLength = cpu_to_le16(0x02); in WdsModifyProfileSettingsReq()
497 pPdpType = (PQMIWDS_PDPTYPE)(pTLV + TLVLength); in WdsModifyProfileSettingsReq()
499 pPdpType->TLVLength = cpu_to_le16(0x01); in WdsModifyProfileSettingsReq()
510 TLVLength +=(le16_to_cpu(pPdpType->TLVLength) + sizeof(QCQMICTL_TLV_HDR)); in WdsModifyProfileSettingsReq()
514 PQMIWDS_APNNAME pApnName = (PQMIWDS_APNNAME)(pTLV + TLVLength); in WdsModifyProfileSettingsReq()
516 pApnName->TLVLength = cpu_to_le16(strlen(profile->apn)); in WdsModifyProfileSettingsReq()
518 TLVLength +=(le16_to_cpu(pApnName->TLVLength) + sizeof(QCQMICTL_TLV_HDR)); in WdsModifyProfileSettingsReq()
523 PQMIWDS_USERNAME pUserName = (PQMIWDS_USERNAME)(pTLV + TLVLength); in WdsModifyProfileSettingsReq()
525 pUserName->TLVLength = cpu_to_le16(strlen(profile->user)); in WdsModifyProfileSettingsReq()
527 TLVLength += (le16_to_cpu(pUserName->TLVLength) + sizeof(QCQMICTL_TLV_HDR)); in WdsModifyProfileSettingsReq()
532 PQMIWDS_PASSWD pPasswd = (PQMIWDS_PASSWD)(pTLV + TLVLength); in WdsModifyProfileSettingsReq()
534 pPasswd->TLVLength = cpu_to_le16(strlen(profile->password)); in WdsModifyProfileSettingsReq()
536 TLVLength +=(le16_to_cpu(pPasswd->TLVLength) + sizeof(QCQMICTL_TLV_HDR)); in WdsModifyProfileSettingsReq()
541 PQMIWDS_AUTH_PREFERENCE pAuthPref = (PQMIWDS_AUTH_PREFERENCE)(pTLV + TLVLength); in WdsModifyProfileSettingsReq()
543 pAuthPref->TLVLength = cpu_to_le16(0x01); in WdsModifyProfileSettingsReq()
545 TLVLength += (le16_to_cpu(pAuthPref->TLVLength) + sizeof(QCQMICTL_TLV_HDR)); in WdsModifyProfileSettingsReq()
548 return sizeof(QMIWDS_MODIFY_PROFILE_SETTINGS_REQ_MSG) + TLVLength; in WdsModifyProfileSettingsReq()
556 pMUXMsg->GetRuntimeSettingsReq.TLVLength = cpu_to_le16(0x04); in WdsGetRuntimeSettingReq()
1570 remainingLen -= (le16_to_cpu(pServiceStatusInfo->TLVLength) + 3); in requestRegistrationState2()
1571 …PSERVICE_STATUS_INFO)((PCHAR)&pServiceStatusInfo->TLVLength + le16_to_cpu(pServiceStatusInfo->TLVL… in requestRegistrationState2()
1745 if ((le16_to_cpu(pPktSrvc->TLVLength) == 2) && (pPktSrvc->ReconfigReqd == 0x01)) in requestQueryDataCall()
2001 apn = strndup((const char *)(&pApnName->ApnName), le16_to_cpu(pApnName->TLVLength)); in requestGetProfile()
2003 user = strndup((const char *)(&pUserName->UserName), le16_to_cpu(pUserName->TLVLength)); in requestGetProfile()
2005 password = strndup((const char *)(&pPassWd->Passwd), le16_to_cpu(pPassWd->TLVLength)); in requestGetProfile()
2042 if (ptlv && ptlv->TLVLength) in requestGetSignalInfo()
2052 if (ptlv && ptlv->TLVLength) in requestGetSignalInfo()
2062 if (ptlv && ptlv->TLVLength) in requestGetSignalInfo()
2071 if (ptlv && ptlv->TLVLength) in requestGetSignalInfo()
2081 if (ptlv && ptlv->TLVLength) in requestGetSignalInfo()
2091 if (ptlv && ptlv->TLVLength) in requestGetSignalInfo()
2101 if (ptlv && ptlv->TLVLength) in requestGetSignalInfo()
2111 if (ptlv && ptlv->TLVLength) in requestGetSignalInfo()
2136 if (revId && le16_to_cpu(revId->TLVLength)) in requestBaseBandVersion()
2138 …har *DeviceRevisionID = strndup((const char *)(&revId->RevisionID), le16_to_cpu(revId->TLVLength)); in requestBaseBandVersion()
2152 pMUXMsg->SetOperatingModeReq.TLVLength = cpu_to_le16(1); in DmsSetOperatingModeReq()
2178 pMUXMsg->SetLoopBackReq.loopback_state.TLVLength = cpu_to_le16(1); in WdaSetLoopBackReq()
2181 pMUXMsg->SetLoopBackReq.replication_factor.TLVLength = cpu_to_le16(4); in WdaSetLoopBackReq()