Lines Matching refs:pMsg
759 struct r3964_message *pMsg; in enable_signals() local
772 pMsg = remove_msg(pInfo, pClient); in enable_signals()
773 if (pMsg) { in enable_signals()
774 kfree(pMsg); in enable_signals()
776 "kfree %p", pMsg); in enable_signals()
847 struct r3964_message *pMsg; in add_msg() local
853 pMsg = kmalloc(sizeof(struct r3964_message), in add_msg()
855 TRACE_M("add_msg - kmalloc %p", pMsg); in add_msg()
856 if (pMsg == NULL) { in add_msg()
862 pMsg->msg_id = msg_id; in add_msg()
863 pMsg->arg = arg; in add_msg()
864 pMsg->error_code = error_code; in add_msg()
865 pMsg->block = pBlock; in add_msg()
866 pMsg->next = NULL; in add_msg()
869 pClient->first_msg = pClient->last_msg = pMsg; in add_msg()
871 pClient->last_msg->next = pMsg; in add_msg()
872 pClient->last_msg = pMsg; in add_msg()
904 struct r3964_message *pMsg = NULL; in remove_msg() local
910 pMsg = pClient->first_msg; in remove_msg()
911 pClient->first_msg = pMsg->next; in remove_msg()
917 if (pMsg->block) { in remove_msg()
919 pClient->next_block_to_read = pMsg->block; in remove_msg()
923 return pMsg; in remove_msg()
1012 struct r3964_message *pMsg; in r3964_close() local
1029 pMsg = remove_msg(pInfo, pClient); in r3964_close()
1030 if (pMsg) { in r3964_close()
1031 kfree(pMsg); in r3964_close()
1032 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()
1246 struct r3964_message *pMsg = NULL; in r3964_poll() local
1256 pMsg = pClient->first_msg; in r3964_poll()
1258 if (pMsg) in r3964_poll()