Lines Matching refs:pMsg
752 struct r3964_message *pMsg; in enable_signals() local
765 pMsg = remove_msg(pInfo, pClient); in enable_signals()
766 if (pMsg) { in enable_signals()
767 kfree(pMsg); in enable_signals()
769 "kfree %p", pMsg); in enable_signals()
840 struct r3964_message *pMsg; in add_msg() local
846 pMsg = kmalloc(sizeof(struct r3964_message), in add_msg()
848 TRACE_M("add_msg - kmalloc %p", pMsg); in add_msg()
849 if (pMsg == NULL) { in add_msg()
855 pMsg->msg_id = msg_id; in add_msg()
856 pMsg->arg = arg; in add_msg()
857 pMsg->error_code = error_code; in add_msg()
858 pMsg->block = pBlock; in add_msg()
859 pMsg->next = NULL; in add_msg()
862 pClient->first_msg = pClient->last_msg = pMsg; in add_msg()
864 pClient->last_msg->next = pMsg; in add_msg()
865 pClient->last_msg = pMsg; in add_msg()
897 struct r3964_message *pMsg = NULL; in remove_msg() local
903 pMsg = pClient->first_msg; in remove_msg()
904 pClient->first_msg = pMsg->next; in remove_msg()
910 if (pMsg->block) { in remove_msg()
912 pClient->next_block_to_read = pMsg->block; in remove_msg()
916 return pMsg; in remove_msg()
1005 struct r3964_message *pMsg; in r3964_close() local
1022 pMsg = remove_msg(pInfo, pClient); in r3964_close()
1023 if (pMsg) { in r3964_close()
1024 kfree(pMsg); in r3964_close()
1025 TRACE_M("r3964_close - msg kfree %p", pMsg); in r3964_close()
1059 struct r3964_message *pMsg; in r3964_read() local
1078 pMsg = remove_msg(pInfo, pClient); in r3964_read()
1079 if (pMsg == NULL) { in r3964_read()
1087 (pMsg = remove_msg(pInfo, pClient))); in r3964_read()
1092 if (!pMsg) { in r3964_read()
1098 theMsg.msg_id = pMsg->msg_id; in r3964_read()
1099 theMsg.arg = pMsg->arg; in r3964_read()
1100 theMsg.error_code = pMsg->error_code; in r3964_read()
1103 kfree(pMsg); in r3964_read()
1104 TRACE_M("r3964_read - msg kfree %p", pMsg); in r3964_read()
1224 struct r3964_message *pMsg = NULL; in r3964_poll() local
1234 pMsg = pClient->first_msg; in r3964_poll()
1236 if (pMsg) in r3964_poll()