Lines Matching refs:pMsg

754 	struct r3964_message *pMsg;  in enable_signals()  local
767 pMsg = remove_msg(pInfo, pClient); in enable_signals()
768 if (pMsg) { in enable_signals()
769 kfree(pMsg); in enable_signals()
771 "kfree %p", pMsg); in enable_signals()
842 struct r3964_message *pMsg; in add_msg() local
848 pMsg = kmalloc(sizeof(struct r3964_message), in add_msg()
850 TRACE_M("add_msg - kmalloc %p", pMsg); in add_msg()
851 if (pMsg == NULL) { in add_msg()
857 pMsg->msg_id = msg_id; in add_msg()
858 pMsg->arg = arg; in add_msg()
859 pMsg->error_code = error_code; in add_msg()
860 pMsg->block = pBlock; in add_msg()
861 pMsg->next = NULL; in add_msg()
864 pClient->first_msg = pClient->last_msg = pMsg; in add_msg()
866 pClient->last_msg->next = pMsg; in add_msg()
867 pClient->last_msg = pMsg; in add_msg()
899 struct r3964_message *pMsg = NULL; in remove_msg() local
905 pMsg = pClient->first_msg; in remove_msg()
906 pClient->first_msg = pMsg->next; in remove_msg()
912 if (pMsg->block) { in remove_msg()
914 pClient->next_block_to_read = pMsg->block; in remove_msg()
918 return pMsg; in remove_msg()
1007 struct r3964_message *pMsg; in r3964_close() local
1024 pMsg = remove_msg(pInfo, pClient); in r3964_close()
1025 if (pMsg) { in r3964_close()
1026 kfree(pMsg); in r3964_close()
1027 TRACE_M("r3964_close - msg kfree %p", pMsg); in r3964_close()
1061 struct r3964_message *pMsg; in r3964_read() local
1080 pMsg = remove_msg(pInfo, pClient); in r3964_read()
1081 if (pMsg == NULL) { in r3964_read()
1089 (pMsg = remove_msg(pInfo, pClient))); in r3964_read()
1094 if (!pMsg) { in r3964_read()
1100 theMsg.msg_id = pMsg->msg_id; in r3964_read()
1101 theMsg.arg = pMsg->arg; in r3964_read()
1102 theMsg.error_code = pMsg->error_code; in r3964_read()
1105 kfree(pMsg); in r3964_read()
1106 TRACE_M("r3964_read - msg kfree %p", pMsg); in r3964_read()
1226 struct r3964_message *pMsg = NULL; in r3964_poll() local
1236 pMsg = pClient->first_msg; in r3964_poll()
1238 if (pMsg) in r3964_poll()