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()
1062 struct r3964_message *pMsg; in r3964_read() local
1072 pMsg = remove_msg(pInfo, pClient); in r3964_read()
1073 if (pMsg == NULL) { in r3964_read()
1081 (pMsg = remove_msg(pInfo, pClient))); in r3964_read()
1086 if (!pMsg) { in r3964_read()
1092 theMsg.msg_id = pMsg->msg_id; in r3964_read()
1093 theMsg.arg = pMsg->arg; in r3964_read()
1094 theMsg.error_code = pMsg->error_code; in r3964_read()
1097 kfree(pMsg); in r3964_read()
1098 TRACE_M("r3964_read - msg kfree %p", pMsg); in r3964_read()
1222 struct r3964_message *pMsg = NULL; in r3964_poll() local
1232 pMsg = pClient->first_msg; in r3964_poll()
1234 if (pMsg) in r3964_poll()