Home
last modified time | relevance | path

Searched refs:cqp_request (Results 1 – 7 of 7) sorted by relevance

/freebsd/sys/dev/irdma/
H A Dirdma_utils.c403 struct irdma_cqp_request *cqp_request = NULL; in irdma_alloc_and_get_cqp_request() local
408 cqp_request = list_entry(cqp->cqp_avail_reqs.next, in irdma_alloc_and_get_cqp_request()
410 list_del_init(&cqp_request->list); in irdma_alloc_and_get_cqp_request()
413 if (!cqp_request) { in irdma_alloc_and_get_cqp_request()
414 cqp_request = kzalloc(sizeof(*cqp_request), GFP_ATOMIC); in irdma_alloc_and_get_cqp_request()
415 if (cqp_request) { in irdma_alloc_and_get_cqp_request()
416 cqp_request->dynamic = true; in irdma_alloc_and_get_cqp_request()
418 init_waitqueue_head(&cqp_request->waitq); in irdma_alloc_and_get_cqp_request()
421 if (!cqp_request) { in irdma_alloc_and_get_cqp_request()
426 cqp_request->waiting = wait; in irdma_alloc_and_get_cqp_request()
[all …]
H A Dirdma_hw.c194 struct irdma_cqp_request *cqp_request) in irdma_complete_cqp_request() argument
196 WRITE_ONCE(cqp_request->request_done, true); in irdma_complete_cqp_request()
197 if (cqp_request->waiting) in irdma_complete_cqp_request()
198 wake_up(&cqp_request->waitq); in irdma_complete_cqp_request()
199 else if (cqp_request->callback_fcn) in irdma_complete_cqp_request()
200 cqp_request->callback_fcn(cqp_request); in irdma_complete_cqp_request()
201 irdma_put_cqp_request(cqp, cqp_request); in irdma_complete_cqp_request()
2229 struct irdma_cqp_request *cqp_request; in irdma_cqp_ce_handler() local
2244 cqp_request = (struct irdma_cqp_request *) in irdma_cqp_ce_handler()
2247 cqp_request->info.cqp_cmd, in irdma_cqp_ce_handler()
[all …]
H A Dirdma_verbs.c211 struct irdma_cqp_request *cqp_request; in irdma_alloc_push_page() local
217 cqp_request = irdma_alloc_and_get_cqp_request(&iwdev->rf->cqp, true); in irdma_alloc_push_page()
218 if (!cqp_request) in irdma_alloc_push_page()
221 cqp_info = &cqp_request->info; in irdma_alloc_push_page()
230 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()
549 struct irdma_cqp_request *cqp_request; in irdma_cqp_create_qp_cmd() local
[all …]
H A Dirdma_main.h184 void (*callback_fcn)(struct irdma_cqp_request *cqp_request);
546 struct irdma_cqp_request *cqp_request);
548 struct irdma_cqp_request *cqp_request);
561 struct irdma_cqp_request *cqp_request);
613 void (*callback_fcn)(struct irdma_cqp_request *cqp_request),
H A Dirdma_kcompat.c476 struct irdma_cqp_request *cqp_request = in irdma_create_ah_wait() local
477 sc_ah->ah_info.cqp_request; in irdma_create_ah_wait()
487 while (!READ_ONCE(cqp_request->request_done)) { in irdma_create_ah_wait()
507 if (!timeout && !cqp_request->compl_info.op_ret_val) { in irdma_create_ah_wait()
508 irdma_put_cqp_request(&rf->cqp, cqp_request); in irdma_create_ah_wait()
513 ret, cqp_request->compl_info.op_ret_val); in irdma_create_ah_wait()
514 irdma_put_cqp_request(&rf->cqp, cqp_request); in irdma_create_ah_wait()
980 struct irdma_cqp_request *cqp_request; in irdma_create_cq() local
1115 cqp_request = irdma_alloc_and_get_cqp_request(&rf->cqp, true); in irdma_create_cq()
1116 if (!cqp_request) { in irdma_create_cq()
[all …]
H A Dirdma_uda.h46 struct irdma_cqp_request *cqp_request; member
H A Dirdma_cm.h360 struct irdma_cqp_request *cqp_request; member