• 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:pMsg

415 	UInt8  *pMsg = NULL;

432 pMsg = (UInt8 *)pMsgBuff;
434 pMsg += msgLength;
452 pMsg = (UInt8 *)&(qmuxMsg->Length);
454 pMsg += sizeof(qmuxMsg->Length);
459 *pMsg = QCTLV_TYPE_APN;
460 ++pMsg;
462 *(UInt16 *)pMsg = cpu_to_le16(strlen(accessString));
463 pMsg += sizeof(UInt16);
465 strcpy((char *)pMsg, accessString);
467 pMsg += strlen(accessString);
480 *pMsg = 0x1d;
481 ++pMsg;
482 *(UInt16 *)pMsg = 1;
483 pMsg += sizeof(UInt16);
484 *pMsg = 1;
485 ++pMsg;
492 *pMsg = 0x1d;
493 ++pMsg;
494 *(UInt16 *)pMsg = 1;
495 pMsg += sizeof(UInt16);
496 *pMsg = 2;
497 ++pMsg;
512 *pMsg = 0x1b;
513 ++pMsg;
514 *(UInt16 *)pMsg = strlen(userName);
515 pMsg += sizeof(UInt16);
516 strcpy((char *)pMsg, userName);
517 pMsg += strlen(userName);
526 *pMsg = 0x1c;
527 ++pMsg;
528 *(UInt16 *)pMsg = strlen(passWord);
529 pMsg += sizeof(UInt16);
530 strcpy((char *)pMsg, passWord);
531 pMsg += strlen(passWord);
539 *pMsg = 0x1d;
540 ++pMsg;
542 *(UInt16 *)pMsg = 1;
543 pMsg += sizeof(UInt16);
545 *(char *)pMsg = 4;
546 pMsg += sizeof(UInt8);
551 *pMsg = 0x1d;
552 ++pMsg;
554 *(UInt16 *)pMsg = 1;
555 pMsg += sizeof(UInt16);
557 *(char *)pMsg = 6;
558 pMsg += sizeof(UInt8);
567 *pMsg = 0x01;
568 ++pMsg;
570 *(UInt16 *)pMsg = 2;
571 pMsg += sizeof(UInt16);
575 *(char *)pMsg = 0;
576 pMsg += sizeof(UInt8);
577 *(char *)pMsg = 2;
581 *(char *)pMsg = 0;
582 pMsg += sizeof(UInt8);
583 *(char *)pMsg = 2;
586 pMsg += sizeof(UInt8);
591 *pMsg = 0x11;
592 ++pMsg;
594 *(UInt16 *)pMsg = 1;
595 pMsg += sizeof(UInt16);
599 *(char *)pMsg = 2;
603 *(char *)pMsg = 3;
606 pMsg += sizeof(UInt8);
613 qmuxMsg->Length = cpu_to_le16((UInt8 *)pMsg - (UInt8 *)&(qmuxMsg->Length) - sizeof(UInt16));
614 qmi->Length = cpu_to_le16((UInt8 *)pMsg - (UInt8 *)&(qmi->Length));
615 msgLength = (UInt8 *)pMsg - (UInt8 *)qmi;
651 UInt8 *pMsg = NULL;
668 pMsg = (UInt8 *)pMsgBuff;
670 pMsg += msgLength;
687 pMsg = (UInt8 *)&(qmuxMsg->Length);
689 pMsg += sizeof(qmuxMsg->Length);
694 *pMsg = QCTLV_TYPE_APN;
695 ++pMsg;
697 *(UInt16 *)pMsg = strlen(accessString);
698 pMsg += sizeof(UInt16);
700 strcpy((char *)pMsg, accessString);
702 pMsg += strlen(accessString);
715 *pMsg = QCTLV_TYPE_AUTH_TYPE;
716 ++pMsg;
717 *(UInt16 *)pMsg = 1;
718 pMsg += sizeof(UInt16);
719 *pMsg = 1;
720 ++pMsg;
726 *pMsg = QCTLV_TYPE_AUTH_TYPE;
727 ++pMsg;
728 *(UInt16 *)pMsg = 1;
729 pMsg += sizeof(UInt16);
730 *pMsg = 2;
731 ++pMsg;
746 *pMsg = QCTLV_TYPE_USER_NAME;
747 ++pMsg;
748 *(UInt16 *)pMsg = strlen(userName);
749 pMsg += sizeof(UInt16);
750 strcpy((char *)pMsg, userName);
751 pMsg += strlen(userName);
760 *pMsg = QCTLV_TYPE_PASSWORD;
761 ++pMsg;
762 *(UInt16 *)pMsg = strlen(passWord);
763 pMsg += sizeof(UInt16);
764 strcpy((char *)pMsg, passWord);
765 pMsg += strlen(passWord);
773 *pMsg = 0x19;
774 ++pMsg;
776 *(UInt16 *)pMsg = 1;
777 pMsg += sizeof(UInt16);
779 *(char *)pMsg = 4;
780 pMsg += sizeof(UInt8);
785 *pMsg = 0x19;
786 ++pMsg;
788 *(UInt16 *)pMsg = 1;
789 pMsg += sizeof(UInt16);
791 *(char *)pMsg = 6;
792 pMsg += sizeof(UInt8);
794 *pMsg = 0x31;
795 ++pMsg;
797 *(UInt16 *)pMsg = 1;
798 pMsg += sizeof(UInt16);
800 *(char *)pMsg = 2;
801 pMsg += sizeof(UInt8);
808 qmuxMsg->Length = (UInt8 *)pMsg - (UInt8 *)&(qmuxMsg->Length) - sizeof(UInt16);
809 qmi->Length = (UInt8 *)pMsg - (UInt8 *)&(qmi->Length);
810 msgLength = (UInt8 *)pMsg - (UInt8 *)qmi;
893 QMICTL_GET_CLIENT_ID_RESP_MSG* pMsg = (QMICTL_GET_CLIENT_ID_RESP_MSG*)&(pQmi->SDU);
897 if (pMsg->QMIResult == QMI_RESULT_SUCCESS)
899 *fClientID = pMsg->ClientId;
900 *fQMIType = pMsg->QMIType;
928 QMICTL_SET_DATA_FORMAT_RESP_MSG* pMsg = (QMICTL_SET_DATA_FORMAT_RESP_MSG*)&(pQmi->SDU);
932 if (pMsg->QMIResult == QMI_RESULT_SUCCESS)
936 UInt8 *pMsgStart = (UInt8 *) &(pMsg->TLVType);
937 UInt8 *pMsgPtr = (UInt8 *)&(pMsg->QMIError);
941 remaningBytes = pMsg->Length - (pMsgPtr -pMsgStart);
945 if (pMsg->Proto.TLVType == SET_DATA_FORMAT_TLV_TYPE_LINK_PROTO)
947 lc_kdbg("%s: link protocol received.pMsg->Proto.LinkProt=%u\n",__func__,pMsg->Proto.LinkProt);
948 pndis_status->fIPModeEnabled = (pMsg->Proto.LinkProt == SET_DATA_FORMAT_LINK_PROTO_IP);
959 lc_kdbg("%s: failed to set data format.QMIError=%u,QMIResult=%u\n",__func__, pMsg->QMIError, pMsg->QMIResult);
986 QMICTL_SET_INSTANCE_ID_RESP_MSG* pMsg = (QMICTL_SET_INSTANCE_ID_RESP_MSG*)&(pQmi->SDU);
990 if (pMsg->QMIResult == QMI_RESULT_SUCCESS)
992 *fQMI_ID = pMsg->QMI_ID;
994 lc_kdbg("%s: get qmi id,QMI_ID=%u\n",__func__,pMsg->QMI_ID);
1001 __func__,pMsg->QMIResult, pMsg->QMIError);
1028 QMICTL_RELEASE_CLIENT_ID_RESP_MSG* pMsg = (QMICTL_RELEASE_CLIENT_ID_RESP_MSG*)&(pQmi->SDU);
1032 if (pMsg->QMIResult == QMI_RESULT_SUCCESS)
1034 lc_kdbg( "%s: release client id.ClientId=%u,QMIType=%u.\n", __func__,pMsg->ClientId, pMsg->QMIType);
1036 if (*fClientID == pMsg->ClientId && *fQMIType == pMsg->QMIType)
1044 lc_kdbg( "%s: failed to release client id,QMIError=%u,QMIResult=%u.\n",__func__,pMsg->QMIError, pMsg->QMIResult);
1070 QMICTL_GET_VERSION_RESP_MSG* pMsg = (QMICTL_GET_VERSION_RESP_MSG*) &(pQmi->SDU);
1075 msgLen = pMsg->Length;
1076 pMsgStart = (UInt8 *) &(pMsg->TLVType);
1081 if (pMsg->QMIResult != QMI_RESULT_SUCCESS)
1083 lc_kdbg( "%s: failed to get version.QMIError=%u,QMIResult=%u.\n",__func__,pMsg->QMIError, pMsg->QMIResult);
1091 msgLen -= pMsg->TLVLength;
1092 pMsgStart += pMsg->TLVLength;
1095 msgLen -= pMsg->TLV2Length;
1096 pMsgStart += pMsg->TLV2Length;
1098 pVersion = (QMUX_TYPE_VERSION_STRUCT*) &(pMsg->TypeVersion);
1100 for ( i = 0; i < pMsg->NumElements; ++i)