nlmsg_request 66 drivers/infiniband/core/iwpm_msg.c struct iwpm_nlmsg_request *nlmsg_request = NULL; nlmsg_request 85 drivers/infiniband/core/iwpm_msg.c nlmsg_request = iwpm_get_nlmsg_request(nlh->nlmsg_seq, nl_client, GFP_KERNEL); nlmsg_request 86 drivers/infiniband/core/iwpm_msg.c if (!nlmsg_request) { nlmsg_request 122 drivers/infiniband/core/iwpm_msg.c nlmsg_request->req_buffer = pm_msg; nlmsg_request 123 drivers/infiniband/core/iwpm_msg.c ret = iwpm_wait_complete_req(nlmsg_request); nlmsg_request 128 drivers/infiniband/core/iwpm_msg.c if (nlmsg_request) nlmsg_request 129 drivers/infiniband/core/iwpm_msg.c iwpm_free_nlmsg_request(&nlmsg_request->kref); nlmsg_request 150 drivers/infiniband/core/iwpm_msg.c struct iwpm_nlmsg_request *nlmsg_request = NULL; nlmsg_request 172 drivers/infiniband/core/iwpm_msg.c nlmsg_request = iwpm_get_nlmsg_request(nlh->nlmsg_seq, nl_client, GFP_KERNEL); nlmsg_request 173 drivers/infiniband/core/iwpm_msg.c if (!nlmsg_request) { nlmsg_request 202 drivers/infiniband/core/iwpm_msg.c nlmsg_request->req_buffer = pm_msg; nlmsg_request 211 drivers/infiniband/core/iwpm_msg.c ret = iwpm_wait_complete_req(nlmsg_request); nlmsg_request 217 drivers/infiniband/core/iwpm_msg.c if (nlmsg_request) nlmsg_request 218 drivers/infiniband/core/iwpm_msg.c iwpm_free_nlmsg_request(&nlmsg_request->kref); nlmsg_request 237 drivers/infiniband/core/iwpm_msg.c struct iwpm_nlmsg_request *nlmsg_request = NULL; nlmsg_request 260 drivers/infiniband/core/iwpm_msg.c nlmsg_request = iwpm_get_nlmsg_request(nlh->nlmsg_seq, nlmsg_request 262 drivers/infiniband/core/iwpm_msg.c if (!nlmsg_request) { nlmsg_request 296 drivers/infiniband/core/iwpm_msg.c nlmsg_request->req_buffer = pm_msg; nlmsg_request 304 drivers/infiniband/core/iwpm_msg.c ret = iwpm_wait_complete_req(nlmsg_request); nlmsg_request 310 drivers/infiniband/core/iwpm_msg.c if (nlmsg_request) nlmsg_request 311 drivers/infiniband/core/iwpm_msg.c iwpm_free_nlmsg_request(&nlmsg_request->kref); nlmsg_request 403 drivers/infiniband/core/iwpm_msg.c struct iwpm_nlmsg_request *nlmsg_request = NULL; nlmsg_request 417 drivers/infiniband/core/iwpm_msg.c nlmsg_request = iwpm_find_nlmsg_request(msg_seq); nlmsg_request 418 drivers/infiniband/core/iwpm_msg.c if (!nlmsg_request) { nlmsg_request 423 drivers/infiniband/core/iwpm_msg.c pm_msg = nlmsg_request->req_buffer; nlmsg_request 424 drivers/infiniband/core/iwpm_msg.c nl_client = nlmsg_request->nl_client; nlmsg_request 436 drivers/infiniband/core/iwpm_msg.c nlmsg_request->err_code = IWPM_USER_LIB_INFO_ERR; nlmsg_request 450 drivers/infiniband/core/iwpm_msg.c nlmsg_request->request_done = 1; nlmsg_request 452 drivers/infiniband/core/iwpm_msg.c kref_put(&nlmsg_request->kref, iwpm_free_nlmsg_request); nlmsg_request 454 drivers/infiniband/core/iwpm_msg.c up(&nlmsg_request->sem); nlmsg_request 477 drivers/infiniband/core/iwpm_msg.c struct iwpm_nlmsg_request *nlmsg_request = NULL; nlmsg_request 492 drivers/infiniband/core/iwpm_msg.c nlmsg_request = iwpm_find_nlmsg_request(msg_seq); nlmsg_request 493 drivers/infiniband/core/iwpm_msg.c if (!nlmsg_request) { nlmsg_request 498 drivers/infiniband/core/iwpm_msg.c pm_msg = nlmsg_request->req_buffer; nlmsg_request 505 drivers/infiniband/core/iwpm_msg.c nlmsg_request->err_code = IWPM_USER_LIB_INFO_ERR; nlmsg_request 511 drivers/infiniband/core/iwpm_msg.c nlmsg_request->err_code = IWPM_USER_LIB_INFO_ERR; nlmsg_request 522 drivers/infiniband/core/iwpm_msg.c nlmsg_request->request_done = 1; nlmsg_request 524 drivers/infiniband/core/iwpm_msg.c kref_put(&nlmsg_request->kref, iwpm_free_nlmsg_request); nlmsg_request 526 drivers/infiniband/core/iwpm_msg.c up(&nlmsg_request->sem); nlmsg_request 555 drivers/infiniband/core/iwpm_msg.c struct iwpm_nlmsg_request *nlmsg_request = NULL; nlmsg_request 570 drivers/infiniband/core/iwpm_msg.c nlmsg_request = iwpm_find_nlmsg_request(msg_seq); nlmsg_request 571 drivers/infiniband/core/iwpm_msg.c if (!nlmsg_request) { nlmsg_request 576 drivers/infiniband/core/iwpm_msg.c pm_msg = nlmsg_request->req_buffer; nlmsg_request 590 drivers/infiniband/core/iwpm_msg.c nlmsg_request->err_code = IWPM_REMOTE_QUERY_REJECT; nlmsg_request 595 drivers/infiniband/core/iwpm_msg.c nlmsg_request->err_code = IWPM_USER_LIB_INFO_ERR; nlmsg_request 602 drivers/infiniband/core/iwpm_msg.c nlmsg_request->err_code = IWPM_USER_LIB_INFO_ERR; nlmsg_request 619 drivers/infiniband/core/iwpm_msg.c nlmsg_request->request_done = 1; nlmsg_request 621 drivers/infiniband/core/iwpm_msg.c kref_put(&nlmsg_request->kref, iwpm_free_nlmsg_request); nlmsg_request 623 drivers/infiniband/core/iwpm_msg.c up(&nlmsg_request->sem); nlmsg_request 804 drivers/infiniband/core/iwpm_msg.c struct iwpm_nlmsg_request *nlmsg_request = NULL; nlmsg_request 820 drivers/infiniband/core/iwpm_msg.c nlmsg_request = iwpm_find_nlmsg_request(msg_seq); nlmsg_request 821 drivers/infiniband/core/iwpm_msg.c if (!nlmsg_request) { nlmsg_request 827 drivers/infiniband/core/iwpm_msg.c nlmsg_request->err_code = err_code; nlmsg_request 828 drivers/infiniband/core/iwpm_msg.c nlmsg_request->request_done = 1; nlmsg_request 830 drivers/infiniband/core/iwpm_msg.c kref_put(&nlmsg_request->kref, iwpm_free_nlmsg_request); nlmsg_request 832 drivers/infiniband/core/iwpm_msg.c up(&nlmsg_request->sem); nlmsg_request 344 drivers/infiniband/core/iwpm_util.c struct iwpm_nlmsg_request *nlmsg_request = NULL; nlmsg_request 347 drivers/infiniband/core/iwpm_util.c nlmsg_request = kzalloc(sizeof(struct iwpm_nlmsg_request), gfp); nlmsg_request 348 drivers/infiniband/core/iwpm_util.c if (!nlmsg_request) nlmsg_request 352 drivers/infiniband/core/iwpm_util.c list_add_tail(&nlmsg_request->inprocess_list, &iwpm_nlmsg_req_list); nlmsg_request 355 drivers/infiniband/core/iwpm_util.c kref_init(&nlmsg_request->kref); nlmsg_request 356 drivers/infiniband/core/iwpm_util.c kref_get(&nlmsg_request->kref); nlmsg_request 357 drivers/infiniband/core/iwpm_util.c nlmsg_request->nlmsg_seq = nlmsg_seq; nlmsg_request 358 drivers/infiniband/core/iwpm_util.c nlmsg_request->nl_client = nl_client; nlmsg_request 359 drivers/infiniband/core/iwpm_util.c nlmsg_request->request_done = 0; nlmsg_request 360 drivers/infiniband/core/iwpm_util.c nlmsg_request->err_code = 0; nlmsg_request 361 drivers/infiniband/core/iwpm_util.c sema_init(&nlmsg_request->sem, 1); nlmsg_request 362 drivers/infiniband/core/iwpm_util.c down(&nlmsg_request->sem); nlmsg_request 363 drivers/infiniband/core/iwpm_util.c return nlmsg_request; nlmsg_request 368 drivers/infiniband/core/iwpm_util.c struct iwpm_nlmsg_request *nlmsg_request; nlmsg_request 371 drivers/infiniband/core/iwpm_util.c nlmsg_request = container_of(kref, struct iwpm_nlmsg_request, kref); nlmsg_request 374 drivers/infiniband/core/iwpm_util.c list_del_init(&nlmsg_request->inprocess_list); nlmsg_request 377 drivers/infiniband/core/iwpm_util.c if (!nlmsg_request->request_done) nlmsg_request 379 drivers/infiniband/core/iwpm_util.c __func__, nlmsg_request->nlmsg_seq); nlmsg_request 380 drivers/infiniband/core/iwpm_util.c kfree(nlmsg_request); nlmsg_request 385 drivers/infiniband/core/iwpm_util.c struct iwpm_nlmsg_request *nlmsg_request; nlmsg_request 390 drivers/infiniband/core/iwpm_util.c list_for_each_entry(nlmsg_request, &iwpm_nlmsg_req_list, nlmsg_request 392 drivers/infiniband/core/iwpm_util.c if (nlmsg_request->nlmsg_seq == echo_seq) { nlmsg_request 393 drivers/infiniband/core/iwpm_util.c found_request = nlmsg_request; nlmsg_request 394 drivers/infiniband/core/iwpm_util.c kref_get(&nlmsg_request->kref); nlmsg_request 402 drivers/infiniband/core/iwpm_util.c int iwpm_wait_complete_req(struct iwpm_nlmsg_request *nlmsg_request) nlmsg_request 406 drivers/infiniband/core/iwpm_util.c ret = down_timeout(&nlmsg_request->sem, IWPM_NL_TIMEOUT); nlmsg_request 410 drivers/infiniband/core/iwpm_util.c __func__, (IWPM_NL_TIMEOUT/HZ), nlmsg_request->nlmsg_seq); nlmsg_request 412 drivers/infiniband/core/iwpm_util.c ret = nlmsg_request->err_code; nlmsg_request 414 drivers/infiniband/core/iwpm_util.c kref_put(&nlmsg_request->kref, iwpm_free_nlmsg_request); nlmsg_request 133 drivers/infiniband/core/iwpm_util.h int iwpm_wait_complete_req(struct iwpm_nlmsg_request *nlmsg_request);