Searched refs:cqp_request (Results 1 – 8 of 8) sorted by relevance
/linux-3.4.99/drivers/infiniband/hw/nes/ |
D | nes_utils.c | 564 struct nes_cqp_request *cqp_request = NULL; in nes_get_cqp_request() local 569 cqp_request = list_entry(nesdev->cqp_avail_reqs.next, in nes_get_cqp_request() 571 list_del_init(&cqp_request->list); in nes_get_cqp_request() 575 if (cqp_request == NULL) { in nes_get_cqp_request() 576 cqp_request = kzalloc(sizeof(struct nes_cqp_request), GFP_ATOMIC); in nes_get_cqp_request() 577 if (cqp_request) { in nes_get_cqp_request() 578 cqp_request->dynamic = 1; in nes_get_cqp_request() 579 INIT_LIST_HEAD(&cqp_request->list); in nes_get_cqp_request() 583 if (cqp_request) { in nes_get_cqp_request() 584 init_waitqueue_head(&cqp_request->waitq); in nes_get_cqp_request() [all …]
|
D | nes_verbs.c | 63 struct nes_cqp_request *cqp_request; in nes_alloc_mw() local 102 cqp_request = nes_get_cqp_request(nesdev); in nes_alloc_mw() 103 if (cqp_request == NULL) { in nes_alloc_mw() 109 cqp_request->waiting = 1; in nes_alloc_mw() 110 cqp_wqe = &cqp_request->cqp_wqe; in nes_alloc_mw() 121 atomic_set(&cqp_request->refcount, 2); in nes_alloc_mw() 122 nes_post_cqp_request(nesdev, cqp_request); in nes_alloc_mw() 125 ret = wait_event_timeout(cqp_request->waitq, (cqp_request->request_done != 0), in nes_alloc_mw() 129 stag, ret, cqp_request->major_code, cqp_request->minor_code); in nes_alloc_mw() 130 if ((!ret) || (cqp_request->major_code)) { in nes_alloc_mw() [all …]
|
D | nes_mgt.c | 150 static void nes_download_callback(struct nes_device *nesdev, struct nes_cqp_request *cqp_request) in nes_download_callback() argument 152 struct pau_fpdu_info *fpdu_info = cqp_request->cqp_callback_pointer; in nes_download_callback() 333 fpdu_info->cqp_request = nes_get_cqp_request(nesdev); in get_fpdu_info() 334 if (fpdu_info->cqp_request == NULL) { in get_fpdu_info() 400 if (fpdu_info->cqp_request) in get_fpdu_info() 401 nes_put_cqp_request(nesdev, fpdu_info->cqp_request); in get_fpdu_info() 416 struct nes_cqp_request *cqp_request; in forward_fpdus() local 426 cqp_request = fpdu_info->cqp_request; in forward_fpdus() 427 cqp_wqe = &cqp_request->cqp_wqe; in forward_fpdus() 472 cqp_request->cqp_callback_pointer = fpdu_info; in forward_fpdus() [all …]
|
D | nes_hw.c | 3021 struct nes_cqp_request *cqp_request; in nes_cqp_ce_handler() local 3057 cqp_request = (struct nes_cqp_request *)(unsigned long)u64temp; in nes_cqp_ce_handler() 3058 if (cqp_request) { in nes_cqp_ce_handler() 3059 if (cqp_request->waiting) { in nes_cqp_ce_handler() 3061 cqp_request->major_code = (u16)(error_code >> 16); in nes_cqp_ce_handler() 3062 cqp_request->minor_code = (u16)error_code; in nes_cqp_ce_handler() 3064 cqp_request->request_done = 1; in nes_cqp_ce_handler() 3065 wake_up(&cqp_request->waitq); in nes_cqp_ce_handler() 3066 nes_put_cqp_request(nesdev, cqp_request); in nes_cqp_ce_handler() 3068 if (cqp_request->callback) in nes_cqp_ce_handler() [all …]
|
D | nes.c | 269 static void nes_cqp_rem_ref_callback(struct nes_device *nesdev, struct nes_cqp_request *cqp_request) in nes_cqp_rem_ref_callback() argument 272 struct nes_qp *nesqp = cqp_request->cqp_callback_pointer; in nes_cqp_rem_ref_callback() 309 struct nes_cqp_request *cqp_request; in nes_rem_ref() local 325 cqp_request = nes_get_cqp_request(nesdev); in nes_rem_ref() 326 if (cqp_request == NULL) { in nes_rem_ref() 330 cqp_request->waiting = 0; in nes_rem_ref() 331 cqp_request->callback = 1; in nes_rem_ref() 332 cqp_request->cqp_callback = nes_cqp_rem_ref_callback; in nes_rem_ref() 333 cqp_request->cqp_callback_pointer = nesqp; in nes_rem_ref() 334 cqp_wqe = &cqp_request->cqp_wqe; in nes_rem_ref() [all …]
|
D | nes_mgt.h | 76 struct nes_cqp_request *cqp_request; member
|
D | nes.h | 561 struct nes_cqp_request *cqp_request); 563 struct nes_cqp_request *cqp_request);
|
D | nes_hw.h | 886 void (*cqp_callback)(struct nes_device *nesdev, struct nes_cqp_request *cqp_request);
|