Lines Matching refs:nlmsg_request

66 	struct iwpm_nlmsg_request *nlmsg_request = NULL;  in iwpm_register_pid()  local
81 nlmsg_request = iwpm_get_nlmsg_request(nlh->nlmsg_seq, nl_client, GFP_KERNEL); in iwpm_register_pid()
82 if (!nlmsg_request) { in iwpm_register_pid()
118 nlmsg_request->req_buffer = pm_msg; in iwpm_register_pid()
119 ret = iwpm_wait_complete_req(nlmsg_request); in iwpm_register_pid()
124 if (nlmsg_request) in iwpm_register_pid()
125 iwpm_free_nlmsg_request(&nlmsg_request->kref); in iwpm_register_pid()
146 struct iwpm_nlmsg_request *nlmsg_request = NULL; in iwpm_add_mapping() local
164 nlmsg_request = iwpm_get_nlmsg_request(nlh->nlmsg_seq, nl_client, GFP_KERNEL); in iwpm_add_mapping()
165 if (!nlmsg_request) { in iwpm_add_mapping()
194 nlmsg_request->req_buffer = pm_msg; in iwpm_add_mapping()
203 ret = iwpm_wait_complete_req(nlmsg_request); in iwpm_add_mapping()
209 if (nlmsg_request) in iwpm_add_mapping()
210 iwpm_free_nlmsg_request(&nlmsg_request->kref); in iwpm_add_mapping()
229 struct iwpm_nlmsg_request *nlmsg_request = NULL; in iwpm_add_and_query_mapping() local
248 nlmsg_request = iwpm_get_nlmsg_request(nlh->nlmsg_seq, in iwpm_add_and_query_mapping()
250 if (!nlmsg_request) { in iwpm_add_and_query_mapping()
284 nlmsg_request->req_buffer = pm_msg; in iwpm_add_and_query_mapping()
292 ret = iwpm_wait_complete_req(nlmsg_request); in iwpm_add_and_query_mapping()
298 if (nlmsg_request) in iwpm_add_and_query_mapping()
299 iwpm_free_nlmsg_request(&nlmsg_request->kref); in iwpm_add_and_query_mapping()
387 struct iwpm_nlmsg_request *nlmsg_request = NULL; in iwpm_register_pid_cb() local
401 nlmsg_request = iwpm_find_nlmsg_request(msg_seq); in iwpm_register_pid_cb()
402 if (!nlmsg_request) { in iwpm_register_pid_cb()
407 pm_msg = nlmsg_request->req_buffer; in iwpm_register_pid_cb()
408 nl_client = nlmsg_request->nl_client; in iwpm_register_pid_cb()
420 nlmsg_request->err_code = IWPM_USER_LIB_INFO_ERR; in iwpm_register_pid_cb()
433 nlmsg_request->request_done = 1; in iwpm_register_pid_cb()
435 kref_put(&nlmsg_request->kref, iwpm_free_nlmsg_request); in iwpm_register_pid_cb()
437 up(&nlmsg_request->sem); in iwpm_register_pid_cb()
460 struct iwpm_nlmsg_request *nlmsg_request = NULL; in iwpm_add_mapping_cb() local
475 nlmsg_request = iwpm_find_nlmsg_request(msg_seq); in iwpm_add_mapping_cb()
476 if (!nlmsg_request) { in iwpm_add_mapping_cb()
481 pm_msg = nlmsg_request->req_buffer; in iwpm_add_mapping_cb()
488 nlmsg_request->err_code = IWPM_USER_LIB_INFO_ERR; in iwpm_add_mapping_cb()
494 nlmsg_request->err_code = IWPM_USER_LIB_INFO_ERR; in iwpm_add_mapping_cb()
505 nlmsg_request->request_done = 1; in iwpm_add_mapping_cb()
507 kref_put(&nlmsg_request->kref, iwpm_free_nlmsg_request); in iwpm_add_mapping_cb()
509 up(&nlmsg_request->sem); in iwpm_add_mapping_cb()
539 struct iwpm_nlmsg_request *nlmsg_request = NULL; in iwpm_add_and_query_mapping_cb() local
554 nlmsg_request = iwpm_find_nlmsg_request(msg_seq); in iwpm_add_and_query_mapping_cb()
555 if (!nlmsg_request) { in iwpm_add_and_query_mapping_cb()
560 pm_msg = nlmsg_request->req_buffer; in iwpm_add_and_query_mapping_cb()
574 nlmsg_request->err_code = IWPM_REMOTE_QUERY_REJECT; in iwpm_add_and_query_mapping_cb()
579 nlmsg_request->err_code = IWPM_USER_LIB_INFO_ERR; in iwpm_add_and_query_mapping_cb()
586 nlmsg_request->err_code = IWPM_USER_LIB_INFO_ERR; in iwpm_add_and_query_mapping_cb()
603 nlmsg_request->request_done = 1; in iwpm_add_and_query_mapping_cb()
605 kref_put(&nlmsg_request->kref, iwpm_free_nlmsg_request); in iwpm_add_and_query_mapping_cb()
607 up(&nlmsg_request->sem); in iwpm_add_and_query_mapping_cb()
778 struct iwpm_nlmsg_request *nlmsg_request = NULL; in iwpm_mapping_error_cb() local
794 nlmsg_request = iwpm_find_nlmsg_request(msg_seq); in iwpm_mapping_error_cb()
795 if (!nlmsg_request) { in iwpm_mapping_error_cb()
801 nlmsg_request->err_code = err_code; in iwpm_mapping_error_cb()
802 nlmsg_request->request_done = 1; in iwpm_mapping_error_cb()
804 kref_put(&nlmsg_request->kref, iwpm_free_nlmsg_request); in iwpm_mapping_error_cb()
806 up(&nlmsg_request->sem); in iwpm_mapping_error_cb()