Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/infiniband/hw/i40iw/
Di40iw_utils.c350 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 …]
Di40iw_hw.c124 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 …]
Di40iw_verbs.c248 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 …]
Di40iw_main.c1047 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 …]
Di40iw.h224 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/
Dnes_utils.c565 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 …]
Dnes_verbs.c66 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 …]
Dnes_mgt.c151 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 …]
Dnes_hw.c2969 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 …]
Dnes.c268 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 …]
Dnes_mgt.h76 struct nes_cqp_request *cqp_request; member
Dnes.h573 struct nes_cqp_request *cqp_request);
575 struct nes_cqp_request *cqp_request);
Dnes_hw.h884 void (*cqp_callback)(struct nes_device *nesdev, struct nes_cqp_request *cqp_request);