/Linux-v4.19/drivers/infiniband/hw/i40iw/ |
D | i40iw_utils.c | 350 struct i40iw_cqp_request *cqp_request = NULL; in i40iw_get_cqp_request() local 355 cqp_request = list_entry(cqp->cqp_avail_reqs.next, in i40iw_get_cqp_request() 357 list_del_init(&cqp_request->list); in i40iw_get_cqp_request() 360 if (!cqp_request) { in i40iw_get_cqp_request() 361 cqp_request = kzalloc(sizeof(*cqp_request), GFP_ATOMIC); in i40iw_get_cqp_request() 362 if (cqp_request) { in i40iw_get_cqp_request() 363 cqp_request->dynamic = true; in i40iw_get_cqp_request() 364 INIT_LIST_HEAD(&cqp_request->list); in i40iw_get_cqp_request() 365 init_waitqueue_head(&cqp_request->waitq); in i40iw_get_cqp_request() 368 if (!cqp_request) { in i40iw_get_cqp_request() [all …]
|
D | i40iw_hw.c | 124 struct i40iw_cqp_request *cqp_request; in i40iw_cqp_ce_handler() local 135 cqp_request = (struct i40iw_cqp_request *)(unsigned long)info.scratch; in i40iw_cqp_ce_handler() 139 if (cqp_request) { in i40iw_cqp_ce_handler() 140 cqp_request->compl_info.maj_err_code = info.maj_err_code; in i40iw_cqp_ce_handler() 141 cqp_request->compl_info.min_err_code = info.min_err_code; in i40iw_cqp_ce_handler() 142 cqp_request->compl_info.op_ret_val = info.op_ret_val; in i40iw_cqp_ce_handler() 143 cqp_request->compl_info.error = info.error; in i40iw_cqp_ce_handler() 145 if (cqp_request->waiting) { in i40iw_cqp_ce_handler() 146 cqp_request->request_done = true; in i40iw_cqp_ce_handler() 147 wake_up(&cqp_request->waitq); in i40iw_cqp_ce_handler() [all …]
|
D | i40iw_verbs.c | 248 struct i40iw_cqp_request *cqp_request; in i40iw_alloc_push_page() local 255 cqp_request = i40iw_get_cqp_request(&iwdev->cqp, true); in i40iw_alloc_push_page() 256 if (!cqp_request) in i40iw_alloc_push_page() 259 atomic_inc(&cqp_request->refcount); in i40iw_alloc_push_page() 261 cqp_info = &cqp_request->info; in i40iw_alloc_push_page() 268 cqp_info->in.u.manage_push_page.scratch = (uintptr_t)cqp_request; in i40iw_alloc_push_page() 270 status = i40iw_handle_cqp_op(iwdev, cqp_request); in i40iw_alloc_push_page() 272 qp->push_idx = cqp_request->compl_info.op_ret_val; in i40iw_alloc_push_page() 275 i40iw_put_cqp_request(&iwdev->cqp, cqp_request); in i40iw_alloc_push_page() 285 struct i40iw_cqp_request *cqp_request; in i40iw_dealloc_push_page() local [all …]
|
D | i40iw_main.c | 1047 struct i40iw_cqp_request *cqp_request; in i40iw_del_macip_entry() local 1051 cqp_request = i40iw_get_cqp_request(iwcqp, true); in i40iw_del_macip_entry() 1052 if (!cqp_request) { in i40iw_del_macip_entry() 1056 cqp_info = &cqp_request->info; in i40iw_del_macip_entry() 1060 cqp_info->in.u.del_local_mac_ipaddr_entry.scratch = (uintptr_t)cqp_request; in i40iw_del_macip_entry() 1063 status = i40iw_handle_cqp_op(iwdev, cqp_request); in i40iw_del_macip_entry() 1080 struct i40iw_cqp_request *cqp_request; in i40iw_add_mac_ipaddr_entry() local 1084 cqp_request = i40iw_get_cqp_request(iwcqp, true); in i40iw_add_mac_ipaddr_entry() 1085 if (!cqp_request) { in i40iw_add_mac_ipaddr_entry() 1090 cqp_info = &cqp_request->info; in i40iw_add_mac_ipaddr_entry() [all …]
|
D | i40iw.h | 224 struct i40iw_cqp_request *cqp_request; member 419 void i40iw_free_cqp_request(struct i40iw_cqp *cqp, struct i40iw_cqp_request *cqp_request); 420 void i40iw_put_cqp_request(struct i40iw_cqp *cqp, struct i40iw_cqp_request *cqp_request); 521 struct i40iw_cqp_request *cqp_request);
|
/Linux-v4.19/drivers/infiniband/hw/nes/ |
D | nes_utils.c | 565 struct nes_cqp_request *cqp_request = NULL; in nes_get_cqp_request() local 570 cqp_request = list_entry(nesdev->cqp_avail_reqs.next, in nes_get_cqp_request() 572 list_del_init(&cqp_request->list); in nes_get_cqp_request() 576 if (cqp_request == NULL) { in nes_get_cqp_request() 577 cqp_request = kzalloc(sizeof(struct nes_cqp_request), GFP_ATOMIC); in nes_get_cqp_request() 578 if (cqp_request) { in nes_get_cqp_request() 579 cqp_request->dynamic = 1; in nes_get_cqp_request() 580 INIT_LIST_HEAD(&cqp_request->list); in nes_get_cqp_request() 584 if (cqp_request) { in nes_get_cqp_request() 585 init_waitqueue_head(&cqp_request->waitq); in nes_get_cqp_request() [all …]
|
D | nes_verbs.c | 66 struct nes_cqp_request *cqp_request; in nes_alloc_mw() local 108 cqp_request = nes_get_cqp_request(nesdev); in nes_alloc_mw() 109 if (cqp_request == NULL) { in nes_alloc_mw() 115 cqp_request->waiting = 1; in nes_alloc_mw() 116 cqp_wqe = &cqp_request->cqp_wqe; in nes_alloc_mw() 127 atomic_set(&cqp_request->refcount, 2); in nes_alloc_mw() 128 nes_post_cqp_request(nesdev, cqp_request); in nes_alloc_mw() 131 ret = wait_event_timeout(cqp_request->waitq, (cqp_request->request_done != 0), in nes_alloc_mw() 135 stag, ret, cqp_request->major_code, cqp_request->minor_code); in nes_alloc_mw() 136 if ((!ret) || (cqp_request->major_code)) { in nes_alloc_mw() [all …]
|
D | nes_mgt.c | 151 static void nes_download_callback(struct nes_device *nesdev, struct nes_cqp_request *cqp_request) in nes_download_callback() argument 153 struct pau_fpdu_info *fpdu_info = cqp_request->cqp_callback_pointer; in nes_download_callback() 329 fpdu_info->cqp_request = nes_get_cqp_request(nesdev); in get_fpdu_info() 330 if (fpdu_info->cqp_request == NULL) { in get_fpdu_info() 395 if (fpdu_info->cqp_request) in get_fpdu_info() 396 nes_put_cqp_request(nesdev, fpdu_info->cqp_request); in get_fpdu_info() 411 struct nes_cqp_request *cqp_request; in forward_fpdus() local 425 cqp_request = fpdu_info->cqp_request; in forward_fpdus() 426 cqp_wqe = &cqp_request->cqp_wqe; in forward_fpdus() 471 cqp_request->cqp_callback_pointer = fpdu_info; in forward_fpdus() [all …]
|
D | nes_hw.c | 2969 struct nes_cqp_request *cqp_request; in nes_cqp_ce_handler() local 3005 cqp_request = (struct nes_cqp_request *)(unsigned long)u64temp; in nes_cqp_ce_handler() 3006 if (cqp_request) { in nes_cqp_ce_handler() 3007 if (cqp_request->waiting) { in nes_cqp_ce_handler() 3009 cqp_request->major_code = (u16)(error_code >> 16); in nes_cqp_ce_handler() 3010 cqp_request->minor_code = (u16)error_code; in nes_cqp_ce_handler() 3012 cqp_request->request_done = 1; in nes_cqp_ce_handler() 3013 wake_up(&cqp_request->waitq); in nes_cqp_ce_handler() 3014 nes_put_cqp_request(nesdev, cqp_request); in nes_cqp_ce_handler() 3016 if (cqp_request->callback) in nes_cqp_ce_handler() [all …]
|
D | nes.c | 268 static void nes_cqp_rem_ref_callback(struct nes_device *nesdev, struct nes_cqp_request *cqp_request) in nes_cqp_rem_ref_callback() argument 271 struct nes_qp *nesqp = cqp_request->cqp_callback_pointer; in nes_cqp_rem_ref_callback() 308 struct nes_cqp_request *cqp_request; in nes_rem_ref() local 324 cqp_request = nes_get_cqp_request(nesdev); in nes_rem_ref() 325 if (cqp_request == NULL) { in nes_rem_ref() 329 cqp_request->waiting = 0; in nes_rem_ref() 330 cqp_request->callback = 1; in nes_rem_ref() 331 cqp_request->cqp_callback = nes_cqp_rem_ref_callback; in nes_rem_ref() 332 cqp_request->cqp_callback_pointer = nesqp; in nes_rem_ref() 333 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 | 573 struct nes_cqp_request *cqp_request); 575 struct nes_cqp_request *cqp_request);
|
D | nes_hw.h | 884 void (*cqp_callback)(struct nes_device *nesdev, struct nes_cqp_request *cqp_request);
|