Lines Matching refs:pMsg

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