Lines Matching refs:cqp

360 struct i40iw_cqp_request *i40iw_get_cqp_request(struct i40iw_cqp *cqp, bool wait)  in i40iw_get_cqp_request()  argument
365 spin_lock_irqsave(&cqp->req_lock, flags); in i40iw_get_cqp_request()
366 if (!list_empty(&cqp->cqp_avail_reqs)) { in i40iw_get_cqp_request()
367 cqp_request = list_entry(cqp->cqp_avail_reqs.next, in i40iw_get_cqp_request()
371 spin_unlock_irqrestore(&cqp->req_lock, flags); in i40iw_get_cqp_request()
399 void i40iw_free_cqp_request(struct i40iw_cqp *cqp, struct i40iw_cqp_request *cqp_request) in i40iw_free_cqp_request() argument
401 struct i40iw_device *iwdev = container_of(cqp, struct i40iw_device, cqp); in i40iw_free_cqp_request()
411 spin_lock_irqsave(&cqp->req_lock, flags); in i40iw_free_cqp_request()
412 list_add_tail(&cqp_request->list, &cqp->cqp_avail_reqs); in i40iw_free_cqp_request()
413 spin_unlock_irqrestore(&cqp->req_lock, flags); in i40iw_free_cqp_request()
423 void i40iw_put_cqp_request(struct i40iw_cqp *cqp, in i40iw_put_cqp_request() argument
427 i40iw_free_cqp_request(cqp, cqp_request); in i40iw_put_cqp_request()
435 static void i40iw_free_pending_cqp_request(struct i40iw_cqp *cqp, in i40iw_free_pending_cqp_request() argument
438 struct i40iw_device *iwdev = container_of(cqp, struct i40iw_device, cqp); in i40iw_free_pending_cqp_request()
445 i40iw_put_cqp_request(cqp, cqp_request); in i40iw_free_pending_cqp_request()
458 struct i40iw_cqp *cqp = &iwdev->cqp; in i40iw_cleanup_pending_cqp_op() local
463 pending_work = I40IW_RING_WORK_AVAILABLE(cqp->sc_cqp.sq_ring); in i40iw_cleanup_pending_cqp_op()
464 wqe_idx = I40IW_RING_GETCURRENT_TAIL(cqp->sc_cqp.sq_ring); in i40iw_cleanup_pending_cqp_op()
466 cqp_request = (struct i40iw_cqp_request *)(unsigned long)cqp->scratch_array[wqe_idx]; in i40iw_cleanup_pending_cqp_op()
468 i40iw_free_pending_cqp_request(cqp, cqp_request); in i40iw_cleanup_pending_cqp_op()
469 wqe_idx = (wqe_idx + 1) % I40IW_RING_GETSIZE(cqp->sc_cqp.sq_ring); in i40iw_cleanup_pending_cqp_op()
476 i40iw_free_pending_cqp_request(cqp, cqp_request); in i40iw_cleanup_pending_cqp_op()
489 struct i40iw_cqp *iwcqp = &iwdev->cqp; in i40iw_wait_event()
541 i40iw_free_cqp_request(&iwdev->cqp, cqp_request); in i40iw_handle_cqp_op()
548 i40iw_free_cqp_request(&iwdev->cqp, cqp_request); in i40iw_handle_cqp_op()
798 cqp_request = i40iw_get_cqp_request(&iwdev->cqp, true); in i40iw_cqp_sds_cmd()
824 struct i40iw_sc_cqp *cqp = dev->cqp; in i40iw_qp_suspend_resume() local
828 cqp_request = i40iw_get_cqp_request(&iwdev->cqp, false); in i40iw_qp_suspend_resume()
834 cqp_info->in.u.suspend_resume.cqp = cqp; in i40iw_qp_suspend_resume()
977 ccq_cqe_info.cqp = NULL; in i40iw_cqp_manage_hmc_fcn_worker()
986 i40iw_put_cqp_request(&iwdev->cqp, cqp_request); in i40iw_cqp_manage_hmc_fcn_worker()
1031 cqp_request = i40iw_get_cqp_request(&iwdev->cqp, false); in i40iw_cqp_manage_hmc_fcn_cmd()
1064 cqp_request = i40iw_get_cqp_request(&iwdev->cqp, true); in i40iw_cqp_query_fpm_values_cmd()
1069 cqp_info->in.u.query_fpm_values.cqp = dev->cqp; in i40iw_cqp_query_fpm_values_cmd()
1097 cqp_request = i40iw_get_cqp_request(&iwdev->cqp, true); in i40iw_cqp_commit_fpm_values_cmd()
1102 cqp_info->in.u.commit_fpm_values.cqp = dev->cqp; in i40iw_cqp_commit_fpm_values_cmd()
1151 struct i40iw_cqp *iwcqp = &iwdev->cqp; in i40iw_cqp_cq_create_cmd()
1181 struct i40iw_cqp *iwcqp = &iwdev->cqp; in i40iw_cqp_qp_create_cmd()
1229 struct i40iw_cqp *iwcqp = &iwdev->cqp; in i40iw_cqp_qp_destroy_cmd()