Lines Matching refs:cqp_request
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()
148 i40iw_put_cqp_request(&iwdev->cqp, cqp_request); in i40iw_cqp_ce_handler()
150 if (cqp_request->callback_fcn) in i40iw_cqp_ce_handler()
151 cqp_request->callback_fcn(cqp_request, 1); in i40iw_cqp_ce_handler()
152 i40iw_put_cqp_request(&iwdev->cqp, cqp_request); in i40iw_cqp_ce_handler()
449 struct i40iw_cqp_request *cqp_request; in i40iw_cqp_manage_abvpt_cmd() local
453 cqp_request = i40iw_get_cqp_request(&iwdev->cqp, add_port); in i40iw_cqp_manage_abvpt_cmd()
454 if (!cqp_request) in i40iw_cqp_manage_abvpt_cmd()
457 cqp_info = &cqp_request->info; in i40iw_cqp_manage_abvpt_cmd()
467 cqp_info->in.u.manage_apbvt_entry.scratch = (uintptr_t)cqp_request; in i40iw_cqp_manage_abvpt_cmd()
468 status = i40iw_handle_cqp_op(iwdev, cqp_request); in i40iw_cqp_manage_abvpt_cmd()
532 struct i40iw_cqp_request *cqp_request; in i40iw_manage_arp_cache() local
539 cqp_request = i40iw_get_cqp_request(&iwdev->cqp, false); in i40iw_manage_arp_cache()
540 if (!cqp_request) in i40iw_manage_arp_cache()
543 cqp_info = &cqp_request->info; in i40iw_manage_arp_cache()
551 cqp_info->in.u.add_arp_cache_entry.scratch = (uintptr_t)cqp_request; in i40iw_manage_arp_cache()
555 cqp_info->in.u.del_arp_cache_entry.scratch = (uintptr_t)cqp_request; in i40iw_manage_arp_cache()
561 cqp_info->in.u.add_arp_cache_entry.scratch = (uintptr_t)cqp_request; in i40iw_manage_arp_cache()
563 if (i40iw_handle_cqp_op(iwdev, cqp_request)) in i40iw_manage_arp_cache()
572 static void i40iw_send_syn_cqp_callback(struct i40iw_cqp_request *cqp_request, u32 send_ack) in i40iw_send_syn_cqp_callback() argument
574 i40iw_send_syn(cqp_request->param, send_ack); in i40iw_send_syn_cqp_callback()
599 struct i40iw_cqp_request *cqp_request; in i40iw_manage_qhash() local
602 cqp_request = i40iw_get_cqp_request(iwcqp, wait); in i40iw_manage_qhash()
603 if (!cqp_request) in i40iw_manage_qhash()
605 cqp_info = &cqp_request->info; in i40iw_manage_qhash()
636 cqp_request->callback_fcn = i40iw_send_syn_cqp_callback; in i40iw_manage_qhash()
637 cqp_request->param = (void *)cmnode; in i40iw_manage_qhash()
653 cqp_info->in.u.manage_qhash_table_entry.scratch = (uintptr_t)cqp_request; in i40iw_manage_qhash()
656 status = i40iw_handle_cqp_op(iwdev, cqp_request); in i40iw_manage_qhash()
676 struct i40iw_cqp_request *cqp_request; in i40iw_hw_flush_wqes() local
680 cqp_request = i40iw_get_cqp_request(&iwdev->cqp, wait); in i40iw_hw_flush_wqes()
681 if (!cqp_request) in i40iw_hw_flush_wqes()
684 cqp_info = &cqp_request->info; in i40iw_hw_flush_wqes()
685 hw_info = &cqp_request->info.in.u.qp_flush_wqes.info; in i40iw_hw_flush_wqes()
691 cqp_info->in.u.qp_flush_wqes.scratch = (uintptr_t)cqp_request; in i40iw_hw_flush_wqes()
692 status = i40iw_handle_cqp_op(iwdev, cqp_request); in i40iw_hw_flush_wqes()
699 if (!cqp_request->compl_info.maj_err_code) { in i40iw_hw_flush_wqes()
700 switch (cqp_request->compl_info.min_err_code) { in i40iw_hw_flush_wqes()
732 struct i40iw_cqp_request *cqp_request; in i40iw_gen_ae() local
735 cqp_request = i40iw_get_cqp_request(&iwdev->cqp, wait); in i40iw_gen_ae()
736 if (!cqp_request) in i40iw_gen_ae()
739 cqp_info = &cqp_request->info; in i40iw_gen_ae()
740 ae_info = &cqp_request->info.in.u.gen_ae.info; in i40iw_gen_ae()
746 cqp_info->in.u.gen_ae.scratch = (uintptr_t)cqp_request; in i40iw_gen_ae()
747 if (i40iw_handle_cqp_op(iwdev, cqp_request)) in i40iw_gen_ae()
764 struct i40iw_cqp_request *cqp_request; in i40iw_hw_manage_vf_pble_bp() local
770 cqp_request = i40iw_get_cqp_request(&iwdev->cqp, wait); in i40iw_hw_manage_vf_pble_bp()
771 if (!cqp_request) in i40iw_hw_manage_vf_pble_bp()
774 cqp_info = &cqp_request->info; in i40iw_hw_manage_vf_pble_bp()
775 hw_info = &cqp_request->info.in.u.manage_vf_pble_bp.info; in i40iw_hw_manage_vf_pble_bp()
781 cqp_info->in.u.manage_vf_pble_bp.scratch = (uintptr_t)cqp_request; in i40iw_hw_manage_vf_pble_bp()
782 status = i40iw_handle_cqp_op(iwdev, cqp_request); in i40iw_hw_manage_vf_pble_bp()