• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/Micromax/Linux/driver/ndis/src/

Lines Matching refs:qmi

4  * this file only process the qmi data package,so hope for porting to other system easily.

76 * Description: get a qmi client ID
77 * Input: qmiType:the type of qmi,there are QMUX_TYPE_WDS
88 QCQMI* qmi = NULL;
104 qmi = (QCQMI*)pMsgBuff;
105 pReq = (QMICTL_GET_CLIENT_ID_REQ_MSG*)&(qmi->SDU);
107 qmi->IFType = USB_CTL_MSG_TYPE_QMI;
108 qmi->Length = msgLength - sizeof(qmi->IFType);
109 qmi->CtlFlags = QMICTL_CTL_FLAG_CMD;
110 qmi->QMIType = QMUX_TYPE_CTL;
111 qmi->ClientId = 0x00;
129 * Description: relase a qmi client ID
141 QCQMI* qmi = NULL;
154 qmi = (QCQMI*)pMsgBuff;
155 pReq = (QMICTL_RELEASE_CLIENT_ID_REQ_MSG*)&(qmi->SDU);
157 qmi->IFType = USB_CTL_MSG_TYPE_QMI;
158 qmi->Length = msgLength - sizeof(qmi->IFType);
159 qmi->CtlFlags = QMICTL_CTL_FLAG_CMD;
160 qmi->QMIType = QMUX_TYPE_CTL;
161 qmi->ClientId = 0x00;
180 * Description: GET a qmi version info
191 QCQMI* qmi = NULL;
206 qmi = (QCQMI*)pMsgBuff;
207 pReq = (QMICTL_GET_VERSION_REQ_MSG*)&(qmi->SDU);
209 qmi->IFType = USB_CTL_MSG_TYPE_QMI;
210 qmi->Length = msgLength - sizeof(qmi->IFType);
211 qmi->CtlFlags = QMICTL_CTL_FLAG_CMD;
212 qmi->QMIType = QMUX_TYPE_CTL;
213 qmi->ClientId = 0x00;
231 * Description: set a qmi data format
242 QCQMI* qmi = NULL;
259 qmi = (QCQMI*)pMsgBuff;
260 pReq = (QMICTL_SET_DATA_FORMAT_REQ_MSG*)&(qmi->SDU);
262 qmi->IFType = USB_CTL_MSG_TYPE_QMI;
263 qmi->Length = msgLength - sizeof(qmi->IFType);
264 qmi->CtlFlags = QMICTL_CTL_FLAG_CMD;
265 qmi->QMIType = QMUX_TYPE_CTL;
266 qmi->ClientId = 0x00;
287 * Description: set a qmi Instance ID
298 QCQMI* qmi = NULL;
315 qmi = (QCQMI*)pMsgBuff;
316 pSet = (QMICTL_SET_INSTANCE_ID_REQ_MSG*)&(qmi->SDU);
318 qmi->IFType = USB_CTL_MSG_TYPE_QMI;
319 qmi->Length = msgLength - sizeof(qmi->IFType);
320 qmi->CtlFlags = QMICTL_CTL_FLAG_CMD;
321 qmi->QMIType = QMUX_TYPE_CTL;
322 qmi->ClientId = 0x00;
340 * Description: get qmi ip address
351 QCQMI* qmi = NULL;
362 qmi = (QCQMI*)pMsgBuff;
365 qmi->IFType = USB_CTL_MSG_TYPE_QMI;
366 qmi->CtlFlags = QMICTL_CTL_FLAG_CMD;
367 qmi->QMIType = QMUX_TYPE_WDS;
368 qmi->ClientId = fClientID;
369 qmi->Length = msgLength - sizeof(qmi->IFType);
371 pQCQMUX = (QCQMUX*)&(qmi->SDU);
392 * Description: use apn dail to internet through qmi
414 QCQMI* qmi = NULL;
422 qmi = (QCQMI*)pMsgBuff;
426 qmi->IFType = USB_CTL_MSG_TYPE_QMI;
427 qmi->CtlFlags = QMICTL_CTL_FLAG_CMD;
428 qmi->QMIType = QMUX_TYPE_WDS;
429 qmi->ClientId = pndis_status->fClientID;
436 pQCQMUX = (QCQMUX*)&(qmi->SDU);
614 qmi->Length = cpu_to_le16((UInt8 *)pMsg - (UInt8 *)&(qmi->Length));
615 msgLength = (UInt8 *)pMsg - (UInt8 *)qmi;
628 * Description: use apn dail to internet through qmi
650 QCQMI* qmi = NULL;
658 qmi = (QCQMI*)pMsgBuff;
662 qmi->IFType = USB_CTL_MSG_TYPE_QMI;
663 qmi->CtlFlags = QMICTL_CTL_FLAG_CMD;
664 qmi->QMIType = QMUX_TYPE_WDS;
665 qmi->ClientId = fClientID;
672 pQCQMUX = (QCQMUX*)&(qmi->SDU);
809 qmi->Length = (UInt8 *)pMsg - (UInt8 *)&(qmi->Length);
810 msgLength = (UInt8 *)pMsg - (UInt8 *)qmi;
822 * Description: disconnect from qmi internet.
833 QCQMI* qmi = NULL;
846 qmi = (QCQMI*)pMsgBuff;
850 qmi->IFType = USB_CTL_MSG_TYPE_QMI;
851 qmi->CtlFlags = QMICTL_CTL_FLAG_CMD;
852 qmi->QMIType = QMUX_TYPE_WDS;
853 qmi->ClientId = pndis_status->fClientID;
854 qmi->Length = msgLength - sizeof(qmi->IFType);
856 pQCQMUX = (QCQMUX*)&(qmi->SDU);
884 * Input: pQmi:the package message get from qmi server.
920 * Input: pQmi:the package message get from qmi server.
921 * Output: pndis_status : qmi global status parameters.
977 * Input: pQmi:the package message get from qmi server.
978 * Output: fSetInstanceIdFail : if get qmi id return -1,else return 1.
994 lc_kdbg("%s: get qmi id,QMI_ID=%u\n",__func__,pMsg->QMI_ID);
1000 lc_kdbg("%s: failed to get qmi id,QMIResult=%u,QMIError=%u.\n",
1019 * Input: pQmi:the package message get from qmi server.
1062 * Input: pQmi:the package message get from qmi server.
1063 * Output: pndis_status : qmi global status parameters.
1104 lc_kdbg( "%s: get qmi control version,MajorVersion=%u,MinorVersion=%u.\n",
1155 lc_kdbg( "%s: get qmi control version,MajorVersion=%u,MinorVersion=%u.\n",
1194 * Input: pQmi:the data getted from qmi server
1358 * Input: pQMuxMsg:the data getted from qmi server
1433 * Input: buffer:the data getted from qmi server
1441 QCQMI* qmi = (QCQMI*)buffer;
1445 lc_kdbg("qmi buffer is %02x, %04x, %02x, %02x, %02x\n", qmi->IFType, qmi->Length, qmi->CtlFlags, qmi->QMIType, qmi->ClientId);
1447 if (qmi->CtlFlags != QCQMI_CTL_FLAG_SERVICE)
1449 lc_kdbg("%s:Unexpected QMI control flags,IFType=%u,CtlFlags=%u.\n",__func__,qmi->IFType, qmi->CtlFlags);
1453 if (QMUX_TYPE_CTL == qmi->QMIType)
1456 QCQMICTL_MSG_HDR* pCtlMsgHdr = (QCQMICTL_MSG_HDR*)&(qmi->SDU);
1471 QCTL_Procecess_SetInstanceId_Response(qmi,&(pndis_status->fSetInstanceIdFail),&(pndis_status->fQMI_ID));
1479 QCTL_Procecess_GetClient_ID_Response(qmi,&(pndis_status->fClientID),&(pndis_status->fQMIType));
1487 QCTL_Procecess_ReleaseClient_ID_Response(qmi,&(pndis_status->fClientID),&(pndis_status->fQMIType));
1494 QCTL_Procecess_GetVersion_Respons(qmi,pndis_status);
1501 QCTL_Procecess_SetDataFormat_Response(qmi,pndis_status);
1554 pQmux = (QCQMUX*)&(qmi->SDU);
1563 switch (qmi->QMIType)
1568 ret = QCQMI_ProcessQMUXWDSResponse(qmi, pndis_status);
1578 lc_kdbg("processQMIResponse:QMUX_CTL_FLAG_TYPE_RSP-QMUXUnknown,QMIType=%u.\n", qmi->QMIType);
1587 switch (qmi->QMIType)
1592 ret = QCQMI_ProcessQMUXWDSIndication(qmi, pndis_status);
1597 lc_kdbg("processQMIResponse:QMUX_CTL_FLAG_TYPE_IND-QMUXUnknown,QMIType=%u.\n", qmi->QMIType);
1620 * Input: pQmi:the data getted from qmi server