Searched refs:cqp_request (Results 1 – 8 of 8) sorted by relevance
/freebsd/sys/dev/irdma/ |
H A D | irdma_utils.c | 354 struct irdma_cqp_request *cqp_request = NULL; in irdma_alloc_and_get_cqp_request() local 359 cqp_request = list_entry(cqp->cqp_avail_reqs.next, in irdma_alloc_and_get_cqp_request() 361 list_del_init(&cqp_request->list); in irdma_alloc_and_get_cqp_request() 364 if (!cqp_request) { in irdma_alloc_and_get_cqp_request() 365 cqp_request = kzalloc(sizeof(*cqp_request), GFP_ATOMIC); in irdma_alloc_and_get_cqp_request() 366 if (cqp_request) { in irdma_alloc_and_get_cqp_request() 367 cqp_request->dynamic = true; in irdma_alloc_and_get_cqp_request() 369 init_waitqueue_head(&cqp_request->waitq); in irdma_alloc_and_get_cqp_request() 372 if (!cqp_request) { in irdma_alloc_and_get_cqp_request() 377 cqp_request->waiting = wait; in irdma_alloc_and_get_cqp_request() [all …]
|
H A D | irdma_hw.c | 193 struct irdma_cqp_request *cqp_request) in irdma_complete_cqp_request() argument 195 WRITE_ONCE(cqp_request->request_done, true); in irdma_complete_cqp_request() 196 if (cqp_request->waiting) in irdma_complete_cqp_request() 197 wake_up(&cqp_request->waitq); in irdma_complete_cqp_request() 198 else if (cqp_request->callback_fcn) in irdma_complete_cqp_request() 199 cqp_request->callback_fcn(cqp_request); in irdma_complete_cqp_request() 200 irdma_put_cqp_request(cqp, cqp_request); in irdma_complete_cqp_request() 2206 struct irdma_cqp_request *cqp_request; in irdma_cqp_ce_handler() local 2221 cqp_request = (struct irdma_cqp_request *) in irdma_cqp_ce_handler() 2224 cqp_request->info.cqp_cmd, in irdma_cqp_ce_handler() [all …]
|
H A D | irdma_verbs.c | 212 struct irdma_cqp_request *cqp_request; in irdma_alloc_push_page() local 218 cqp_request = irdma_alloc_and_get_cqp_request(&iwdev->rf->cqp, true); in irdma_alloc_push_page() 219 if (!cqp_request) in irdma_alloc_push_page() 222 cqp_info = &cqp_request->info; in irdma_alloc_push_page() 231 cqp_info->in.u.manage_push_page.scratch = (uintptr_t)cqp_request; in irdma_alloc_push_page() 233 status = irdma_handle_cqp_op(iwdev->rf, cqp_request); in irdma_alloc_push_page() 234 if (!status && cqp_request->compl_info.op_ret_val < in irdma_alloc_push_page() 236 qp->push_idx = cqp_request->compl_info.op_ret_val; in irdma_alloc_push_page() 240 irdma_put_cqp_request(&iwdev->rf->cqp, cqp_request); in irdma_alloc_push_page() 541 struct irdma_cqp_request *cqp_request; in irdma_cqp_create_qp_cmd() local [all …]
|
H A D | irdma_main.h | 183 void (*callback_fcn)(struct irdma_cqp_request *cqp_request); 533 struct irdma_cqp_request *cqp_request); 535 struct irdma_cqp_request *cqp_request); 548 struct irdma_cqp_request *cqp_request); 596 void (*callback_fcn)(struct irdma_cqp_request *cqp_request),
|
H A D | irdma_kcompat.c | 475 struct irdma_cqp_request *cqp_request = in irdma_create_ah_wait() local 476 sc_ah->ah_info.cqp_request; in irdma_create_ah_wait() 481 } while (!READ_ONCE(cqp_request->request_done) && --cnt); in irdma_create_ah_wait() 483 if (cnt && !cqp_request->compl_info.op_ret_val) { in irdma_create_ah_wait() 484 irdma_put_cqp_request(&rf->cqp, cqp_request); in irdma_create_ah_wait() 489 ret, cqp_request->compl_info.op_ret_val); in irdma_create_ah_wait() 490 irdma_put_cqp_request(&rf->cqp, cqp_request); in irdma_create_ah_wait() 943 struct irdma_cqp_request *cqp_request; in irdma_create_cq() local 1086 cqp_request = irdma_alloc_and_get_cqp_request(&rf->cqp, true); in irdma_create_cq() 1087 if (!cqp_request) { in irdma_create_cq() [all …]
|
H A D | irdma_uda.h | 46 struct irdma_cqp_request *cqp_request; member
|
H A D | irdma_cm.h | 360 struct irdma_cqp_request *cqp_request; member
|
H A D | irdma_cm.c | 1689 struct irdma_cqp_request *cqp_request = cm_info->cqp_request; in irdma_manage_qhash_wait() local 1693 if (!cqp_request) in irdma_manage_qhash_wait() 1698 } while (!READ_ONCE(cqp_request->request_done) && --cnt); in irdma_manage_qhash_wait() 1700 ret_val = cqp_request->compl_info.op_ret_val; in irdma_manage_qhash_wait() 1701 irdma_put_cqp_request(&rf->cqp, cqp_request); in irdma_manage_qhash_wait()
|