Lines Matching refs:msgLength
86 UInt16 msgLength;
93 msgLength = sizeof(QCQMI_HDR) + sizeof(QMICTL_GET_CLIENT_ID_REQ_MSG);
94 lc_kdbg("%s:msgLength=%d,%d,%d\n",__func__, msgLength,sizeof(QCQMI_HDR),sizeof(QMICTL_GET_CLIENT_ID_REQ_MSG) );
96 if(msgLength>length||pMsgBuff==NULL)
98 lc_kdbg("QCTL_GetClientID : length=%d < msgLength=%d OR pMsgBuff==NULL\n",msgLength,length);
108 qmi->Length = msgLength - sizeof(qmi->IFType);
124 return msgLength;
139 UInt16 msgLength;
145 msgLength = sizeof(QCQMI_HDR) + sizeof(QMICTL_RELEASE_CLIENT_ID_REQ_MSG);
147 if(msgLength>length||pMsgBuff==NULL)
149 lc_kdbg("QCTL_ReleaseClientID : length=%d < msgLength=%d OR pMsgBuff==NULL\n",msgLength,length);
158 qmi->Length = msgLength - sizeof(qmi->IFType);
175 return msgLength;
189 UInt16 msgLength;
196 msgLength = sizeof(QCQMI_HDR) + sizeof(QMICTL_GET_VERSION_REQ_MSG);
198 if (msgLength>length||pMsgBuff==NULL)
200 lc_kdbg("QCTL_GetVersionReq : length=%d < msgLength=%d OR pMsgBuff==NULL\n",msgLength,length);
210 qmi->Length = msgLength - sizeof(qmi->IFType);
226 return msgLength;
240 UInt16 msgLength;
247 msgLength = sizeof(QCQMI_HDR) + sizeof(QMICTL_SET_DATA_FORMAT_REQ_MSG);
249 // pMsgBuff = IOMalloc(msgLength);
251 if (msgLength>length||pMsgBuff==NULL)
253 lc_kdbg("QCTL_SetDataFormatReq : length=%d < msgLength=%d OR pMsgBuff==NULL\n",msgLength,length);
263 qmi->Length = msgLength - sizeof(qmi->IFType);
282 return msgLength;
296 UInt16 msgLength;
304 msgLength = sizeof(QCQMI_HDR) + sizeof(QMICTL_SET_INSTANCE_ID_REQ_MSG);
306 // pMsgBuff = IOMalloc(msgLength);
307 if (msgLength>length||pMsgBuff==NULL)
309 lc_kdbg("%s : length=%d < msgLength=%d OR pMsgBuff==NULL\n",__func__,msgLength,length);
319 qmi->Length = msgLength - sizeof(qmi->IFType);
335 return msgLength;
350 UInt16 msgLength;
356 msgLength = sizeof(QCQMI_HDR) + sizeof(QCQMUX_HDR) + sizeof(QMIWDS_GET_RUNTIME_SETTINGS_REQ_MSG);
357 if (msgLength>length||pMsgBuff==NULL)
359 lc_kdbg("%s : length=%d < msgLength=%d OR pMsgBuff==NULL\n",__func__,msgLength,length);
369 qmi->Length = msgLength - sizeof(qmi->IFType);
386 return msgLength;
413 UInt16 msgLength;
431 msgLength = sizeof(QCQMI_HDR);
434 pMsg += msgLength;
615 msgLength = (UInt8 *)pMsg - (UInt8 *)qmi;
618 printk_hex(pMsgBuff,msgLength);
622 return msgLength;
649 UInt16 msgLength;
667 msgLength = sizeof(QCQMI_HDR);
670 pMsg += msgLength;
810 msgLength = (UInt8 *)pMsg - (UInt8 *)qmi;
813 printk_hex(pMsgBuff,msgLength);
817 return msgLength;
832 UInt16 msgLength;
839 msgLength = sizeof(QCQMI_HDR) + sizeof(QCQMUX_HDR) + sizeof(QMIWDS_STOP_NETWORK_INTERFACE_REQ_MSG);
840 if (msgLength>length||pMsgBuff==NULL)
842 lc_kdbg("%s : length=%d < msgLength=%d OR pMsgBuff==NULL\n",__func__,msgLength,length);
854 qmi->Length = msgLength - sizeof(qmi->IFType);
874 return msgLength;
878 return msgLength;