Lines Matching refs:pRequest

39     PQCQMIMSG pRequest = (PQCQMIMSG)QMIBuf;  in ComposeQCTLMsg()  local
42 pRequest->QMIHdr.IFType = USB_CTL_MSG_TYPE_QMI; in ComposeQCTLMsg()
43 pRequest->QMIHdr.CtlFlags = 0x00; in ComposeQCTLMsg()
44 pRequest->QMIHdr.QMIType = QMUX_TYPE_CTL; in ComposeQCTLMsg()
45 pRequest->QMIHdr.ClientId= 0x00; in ComposeQCTLMsg()
47 pRequest->CTLMsg.QMICTLMsgHdr.CtlFlags = QMICTL_FLAG_REQUEST; in ComposeQCTLMsg()
48 pRequest->CTLMsg.QMICTLMsgHdr.TransactionId = GetQCTLTransactionId(); in ComposeQCTLMsg()
49 pRequest->CTLMsg.QMICTLMsgHdr.QMICTLType = cpu_to_le16(QMICTLType); in ComposeQCTLMsg()
51pRequest->CTLMsg.QMICTLMsgHdr.Length = cpu_to_le16(customQctlMsgFunction(&pRequest->CTLMsg, arg) -… in ComposeQCTLMsg()
53 pRequest->CTLMsg.QMICTLMsgHdr.Length = cpu_to_le16(0x0000); in ComposeQCTLMsg()
55pRequest->QMIHdr.Length = cpu_to_le16(le16_to_cpu(pRequest->CTLMsg.QMICTLMsgHdr.Length) + sizeof(Q… in ComposeQCTLMsg()
56 Length = le16_to_cpu(pRequest->QMIHdr.Length) + 1; in ComposeQCTLMsg()
58 pRequest = (PQCQMIMSG)malloc(Length); in ComposeQCTLMsg()
59 if (pRequest == NULL) { in ComposeQCTLMsg()
62 memcpy(pRequest, QMIBuf, Length); in ComposeQCTLMsg()
65 return pRequest; in ComposeQCTLMsg()
125 static int QmiWwanSendQMI(PQCQMIMSG pRequest) { in QmiWwanSendQMI() argument
134 if (pRequest->QMIHdr.QMIType != QMUX_TYPE_CTL) { in QmiWwanSendQMI()
135 pRequest->QMIHdr.ClientId = qmiclientId[pRequest->QMIHdr.QMIType]; in QmiWwanSendQMI()
136 if (pRequest->QMIHdr.ClientId == 0) { in QmiWwanSendQMI()
137 dbg_time("QMIType %d has no clientID", pRequest->QMIHdr.QMIType); in QmiWwanSendQMI()
141 if (pRequest->QMIHdr.QMIType == QMUX_TYPE_WDS_IPV6) in QmiWwanSendQMI()
142 pRequest->QMIHdr.QMIType = QMUX_TYPE_WDS; in QmiWwanSendQMI()
150 ssize_t nwrites = le16_to_cpu(pRequest->QMIHdr.Length) + 1; in QmiWwanSendQMI()
151 ret = write(cdc_wdm_fd, pRequest, nwrites); in QmiWwanSendQMI()