Lines Matching refs:pMsg
758 struct r3964_message *pMsg;
771 pMsg = remove_msg(pInfo, pClient);
772 if (pMsg) {
773 kfree(pMsg);
775 "kfree %p", pMsg);
846 struct r3964_message *pMsg;
852 pMsg = kmalloc(sizeof(struct r3964_message),
854 TRACE_M("add_msg - kmalloc %p", pMsg);
855 if (pMsg == NULL) {
861 pMsg->msg_id = msg_id;
862 pMsg->arg = arg;
863 pMsg->error_code = error_code;
864 pMsg->block = pBlock;
865 pMsg->next = NULL;
868 pClient->first_msg = pClient->last_msg = pMsg;
870 pClient->last_msg->next = pMsg;
871 pClient->last_msg = pMsg;
903 struct r3964_message *pMsg = NULL;
909 pMsg = pClient->first_msg;
910 pClient->first_msg = pMsg->next;
916 if (pMsg->block) {
918 pClient->next_block_to_read = pMsg->block;
922 return pMsg;
1011 struct r3964_message *pMsg;
1028 pMsg = remove_msg(pInfo, pClient);
1029 if (pMsg) {
1030 kfree(pMsg);
1031 TRACE_M("r3964_close - msg kfree %p", pMsg);
1066 struct r3964_message *pMsg;
1085 pMsg = remove_msg(pInfo, pClient);
1086 if (pMsg == NULL) {
1094 (pMsg = remove_msg(pInfo, pClient)));
1099 if (!pMsg) {
1105 theMsg.msg_id = pMsg->msg_id;
1106 theMsg.arg = pMsg->arg;
1107 theMsg.error_code = pMsg->error_code;
1110 kfree(pMsg);
1111 TRACE_M("r3964_read - msg kfree %p", pMsg);
1243 struct r3964_message *pMsg = NULL;
1253 pMsg = pClient->first_msg;
1255 if (pMsg)