iwqp 515 drivers/infiniband/hw/i40iw/i40iw.h void i40iw_cm_disconn(struct i40iw_qp *iwqp); iwqp 532 drivers/infiniband/hw/i40iw/i40iw.h void i40iw_hw_modify_qp(struct i40iw_device *iwdev, struct i40iw_qp *iwqp, iwqp 547 drivers/infiniband/hw/i40iw/i40iw.h struct i40iw_qp *iwqp, iwqp 559 drivers/infiniband/hw/i40iw/i40iw.h void i40iw_next_iw_state(struct i40iw_qp *iwqp, iwqp 609 drivers/infiniband/hw/i40iw/i40iw_cm.c struct i40iw_qp *iwqp; iwqp 616 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp = cm_id->provider_data; iwqp 618 drivers/infiniband/hw/i40iw/i40iw_cm.c if (!iwqp || !iwqp->iwdev) iwqp 621 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->cm_id = NULL; iwqp 1158 drivers/infiniband/hw/i40iw/i40iw_cm.c struct i40iw_qp *iwqp; iwqp 1163 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp = (struct i40iw_qp *)close_entry->sqbuf; iwqp 1164 drivers/infiniband/hw/i40iw/i40iw_cm.c if (iwqp) { iwqp 1165 drivers/infiniband/hw/i40iw/i40iw_cm.c spin_lock_irqsave(&iwqp->lock, flags); iwqp 1166 drivers/infiniband/hw/i40iw/i40iw_cm.c if (iwqp->cm_id) { iwqp 1167 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->hw_tcp_state = I40IW_TCP_STATE_CLOSED; iwqp 1168 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->hw_iwarp_state = I40IW_QP_STATE_ERROR; iwqp 1169 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->last_aeq = I40IW_AE_RESET_SENT; iwqp 1170 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->ibqp_state = IB_QPS_ERR; iwqp 1171 drivers/infiniband/hw/i40iw/i40iw_cm.c spin_unlock_irqrestore(&iwqp->lock, flags); iwqp 1172 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_cm_disconn(iwqp); iwqp 1174 drivers/infiniband/hw/i40iw/i40iw_cm.c spin_unlock_irqrestore(&iwqp->lock, flags); iwqp 2282 drivers/infiniband/hw/i40iw/i40iw_cm.c struct i40iw_qp *iwqp; iwqp 2322 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp = cm_node->iwqp; iwqp 2323 drivers/infiniband/hw/i40iw/i40iw_cm.c if (iwqp) { iwqp 2324 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->cm_node = NULL; iwqp 2325 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_rem_ref(&iwqp->ibqp); iwqp 2326 drivers/infiniband/hw/i40iw/i40iw_cm.c cm_node->iwqp = NULL; iwqp 3300 drivers/infiniband/hw/i40iw/i40iw_cm.c struct i40iw_qp *iwqp) iwqp 3346 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->iwdev, iwqp 3364 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->iwdev, iwqp 3377 drivers/infiniband/hw/i40iw/i40iw_cm.c static void i40iw_cm_init_tsa_conn(struct i40iw_qp *iwqp, iwqp 3383 drivers/infiniband/hw/i40iw/i40iw_cm.c struct i40iw_device *iwdev = iwqp->iwdev; iwqp 3384 drivers/infiniband/hw/i40iw/i40iw_cm.c struct i40iw_sc_dev *dev = &iwqp->iwdev->sc_dev; iwqp 3387 drivers/infiniband/hw/i40iw/i40iw_cm.c iwarp_info = &iwqp->iwarp_info; iwqp 3388 drivers/infiniband/hw/i40iw/i40iw_cm.c ctx_info = &iwqp->ctx_info; iwqp 3391 drivers/infiniband/hw/i40iw/i40iw_cm.c ctx_info->send_cq_num = iwqp->iwscq->sc_cq.cq_uk.cq_id; iwqp 3392 drivers/infiniband/hw/i40iw/i40iw_cm.c ctx_info->rcv_cq_num = iwqp->iwrcq->sc_cq.cq_uk.cq_id; iwqp 3404 drivers/infiniband/hw/i40iw/i40iw_cm.c iwarp_info->pd_id = iwqp->iwpd->sc_pd.pd_id; iwqp 3411 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_init_tcp_ctx(cm_node, &tcp_info, iwqp); iwqp 3423 drivers/infiniband/hw/i40iw/i40iw_cm.c dev->iw_priv_qp_ops->qp_setctx(&iwqp->sc_qp, (u64 *)(iwqp->host_ctx.va), ctx_info); iwqp 3435 drivers/infiniband/hw/i40iw/i40iw_cm.c void i40iw_cm_disconn(struct i40iw_qp *iwqp) iwqp 3438 drivers/infiniband/hw/i40iw/i40iw_cm.c struct i40iw_device *iwdev = iwqp->iwdev; iwqp 3447 drivers/infiniband/hw/i40iw/i40iw_cm.c if (!iwdev->qp_table[iwqp->ibqp.qp_num]) { iwqp 3451 drivers/infiniband/hw/i40iw/i40iw_cm.c __func__, iwqp->ibqp.qp_num); iwqp 3455 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_add_ref(&iwqp->ibqp); iwqp 3458 drivers/infiniband/hw/i40iw/i40iw_cm.c work->iwqp = iwqp; iwqp 3468 drivers/infiniband/hw/i40iw/i40iw_cm.c static void i40iw_qp_disconnect(struct i40iw_qp *iwqp) iwqp 3473 drivers/infiniband/hw/i40iw/i40iw_cm.c iwdev = to_iwdev(iwqp->ibqp.device); iwqp 3481 drivers/infiniband/hw/i40iw/i40iw_cm.c if (iwqp->active_conn) { iwqp 3483 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->active_conn = 0; iwqp 3486 drivers/infiniband/hw/i40iw/i40iw_cm.c if (iwqp->ietf_mem.va) { iwqp 3487 drivers/infiniband/hw/i40iw/i40iw_cm.c if (iwqp->lsmm_mr) iwqp 3488 drivers/infiniband/hw/i40iw/i40iw_cm.c iwibdev->ibdev.ops.dereg_mr(iwqp->lsmm_mr, iwqp 3490 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_free_dma_mem(iwdev->sc_dev.hw, &iwqp->ietf_mem); iwqp 3495 drivers/infiniband/hw/i40iw/i40iw_cm.c if (iwqp->cm_node) { iwqp 3497 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_cm_close(iwqp->cm_node); iwqp 3505 drivers/infiniband/hw/i40iw/i40iw_cm.c static void i40iw_cm_disconn_true(struct i40iw_qp *iwqp) iwqp 3509 drivers/infiniband/hw/i40iw/i40iw_cm.c struct i40iw_sc_qp *qp = &iwqp->sc_qp; iwqp 3521 drivers/infiniband/hw/i40iw/i40iw_cm.c if (!iwqp) { iwqp 3526 drivers/infiniband/hw/i40iw/i40iw_cm.c spin_lock_irqsave(&iwqp->lock, flags); iwqp 3527 drivers/infiniband/hw/i40iw/i40iw_cm.c cm_id = iwqp->cm_id; iwqp 3530 drivers/infiniband/hw/i40iw/i40iw_cm.c spin_unlock_irqrestore(&iwqp->lock, flags); iwqp 3534 drivers/infiniband/hw/i40iw/i40iw_cm.c iwdev = to_iwdev(iwqp->ibqp.device); iwqp 3536 drivers/infiniband/hw/i40iw/i40iw_cm.c original_hw_tcp_state = iwqp->hw_tcp_state; iwqp 3537 drivers/infiniband/hw/i40iw/i40iw_cm.c original_ibqp_state = iwqp->ibqp_state; iwqp 3538 drivers/infiniband/hw/i40iw/i40iw_cm.c last_ae = iwqp->last_aeq; iwqp 3543 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->cm_id = NULL; iwqp 3549 drivers/infiniband/hw/i40iw/i40iw_cm.c if (!iwqp->flush_issued) { iwqp 3550 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->flush_issued = 1; iwqp 3567 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->cm_id = NULL; iwqp 3568 drivers/infiniband/hw/i40iw/i40iw_cm.c if (!iwqp->flush_issued) { iwqp 3569 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->flush_issued = 1; iwqp 3574 drivers/infiniband/hw/i40iw/i40iw_cm.c spin_unlock_irqrestore(&iwqp->lock, flags); iwqp 3575 drivers/infiniband/hw/i40iw/i40iw_cm.c if (issue_flush && !iwqp->destroyed) { iwqp 3577 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_flush_wqes(iwdev, iwqp); iwqp 3579 drivers/infiniband/hw/i40iw/i40iw_cm.c if (qp->term_flags && iwqp->ibqp.event_handler) { iwqp 3580 drivers/infiniband/hw/i40iw/i40iw_cm.c ibevent.device = iwqp->ibqp.device; iwqp 3583 drivers/infiniband/hw/i40iw/i40iw_cm.c ibevent.element.qp = &iwqp->ibqp; iwqp 3584 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->ibqp.event_handler(&ibevent, iwqp->ibqp.qp_context); iwqp 3602 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_qp_disconnect(iwqp); iwqp 3603 drivers/infiniband/hw/i40iw/i40iw_cm.c cm_id->provider_data = iwqp; iwqp 3622 drivers/infiniband/hw/i40iw/i40iw_cm.c struct i40iw_qp *iwqp = dwork->iwqp; iwqp 3625 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_cm_disconn_true(iwqp); iwqp 3626 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_rem_ref(&iwqp->ibqp); iwqp 3637 drivers/infiniband/hw/i40iw/i40iw_cm.c struct i40iw_qp *iwqp; iwqp 3657 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp = to_iwqp(ibqp); iwqp 3658 drivers/infiniband/hw/i40iw/i40iw_cm.c iwdev = iwqp->iwdev; iwqp 3688 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->cm_node = (void *)cm_node; iwqp 3689 drivers/infiniband/hw/i40iw/i40iw_cm.c cm_node->iwqp = iwqp; iwqp 3693 drivers/infiniband/hw/i40iw/i40iw_cm.c status = i40iw_allocate_dma_mem(dev->hw, &iwqp->ietf_mem, buf_len, 1); iwqp 3698 drivers/infiniband/hw/i40iw/i40iw_cm.c accept.addr = iwqp->ietf_mem.va; iwqp 3708 drivers/infiniband/hw/i40iw/i40iw_cm.c iwpd = iwqp->iwpd; iwqp 3709 drivers/infiniband/hw/i40iw/i40iw_cm.c tagged_offset = (uintptr_t)iwqp->ietf_mem.va; iwqp 3711 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->ietf_mem.pa, iwqp 3716 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_free_dma_mem(dev->hw, &iwqp->ietf_mem); iwqp 3722 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->lsmm_mr = ibmr; iwqp 3723 drivers/infiniband/hw/i40iw/i40iw_cm.c if (iwqp->page) iwqp 3724 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->sc_qp.qp_uk.sq_base = kmap(iwqp->page); iwqp 3725 drivers/infiniband/hw/i40iw/i40iw_cm.c dev->iw_priv_qp_ops->qp_send_lsmm(&iwqp->sc_qp, iwqp 3726 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->ietf_mem.va, iwqp 3731 drivers/infiniband/hw/i40iw/i40iw_cm.c if (iwqp->page) iwqp 3732 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->sc_qp.qp_uk.sq_base = kmap(iwqp->page); iwqp 3733 drivers/infiniband/hw/i40iw/i40iw_cm.c dev->iw_priv_qp_ops->qp_send_lsmm(&iwqp->sc_qp, NULL, 0, 0); iwqp 3736 drivers/infiniband/hw/i40iw/i40iw_cm.c if (iwqp->page) iwqp 3737 drivers/infiniband/hw/i40iw/i40iw_cm.c kunmap(iwqp->page); iwqp 3739 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->cm_id = cm_id; iwqp 3742 drivers/infiniband/hw/i40iw/i40iw_cm.c cm_id->provider_data = (void *)iwqp; iwqp 3743 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->active_conn = 0; iwqp 3746 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_cm_init_tsa_conn(iwqp, cm_node); iwqp 3748 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_add_ref(&iwqp->ibqp); iwqp 3752 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_modify_qp(&iwqp->ibqp, &attr, IB_QP_STATE, NULL); iwqp 3822 drivers/infiniband/hw/i40iw/i40iw_cm.c struct i40iw_qp *iwqp; iwqp 3835 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp = to_iwqp(ibqp); iwqp 3836 drivers/infiniband/hw/i40iw/i40iw_cm.c if (!iwqp) iwqp 3838 drivers/infiniband/hw/i40iw/i40iw_cm.c iwdev = to_iwdev(iwqp->ibqp.device); iwqp 3850 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->active_conn = 1; iwqp 3851 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->cm_id = NULL; iwqp 3852 drivers/infiniband/hw/i40iw/i40iw_cm.c cm_id->provider_data = iwqp; iwqp 3908 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->cm_node = cm_node; iwqp 3909 drivers/infiniband/hw/i40iw/i40iw_cm.c cm_node->iwqp = iwqp; iwqp 3910 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->cm_id = cm_id; iwqp 3911 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_add_ref(&iwqp->ibqp); iwqp 4080 drivers/infiniband/hw/i40iw/i40iw_cm.c struct i40iw_qp *iwqp; iwqp 4093 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp = (struct i40iw_qp *)cm_id->provider_data; iwqp 4094 drivers/infiniband/hw/i40iw/i40iw_cm.c iwdev = to_iwdev(iwqp->ibqp.device); iwqp 4098 drivers/infiniband/hw/i40iw/i40iw_cm.c if (iwqp->destroyed) { iwqp 4102 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_cm_init_tsa_conn(iwqp, cm_node); iwqp 4104 drivers/infiniband/hw/i40iw/i40iw_cm.c if (iwqp->page) iwqp 4105 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->sc_qp.qp_uk.sq_base = kmap(iwqp->page); iwqp 4106 drivers/infiniband/hw/i40iw/i40iw_cm.c dev->iw_priv_qp_ops->qp_send_rtt(&iwqp->sc_qp, read0); iwqp 4107 drivers/infiniband/hw/i40iw/i40iw_cm.c if (iwqp->page) iwqp 4108 drivers/infiniband/hw/i40iw/i40iw_cm.c kunmap(iwqp->page); iwqp 4113 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_modify_qp(&iwqp->ibqp, &attr, IB_QP_STATE, NULL); iwqp 4127 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->cm_id = NULL; iwqp 4145 drivers/infiniband/hw/i40iw/i40iw_cm.c struct i40iw_qp *iwqp; iwqp 4150 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp = cm_id->provider_data; iwqp 4151 drivers/infiniband/hw/i40iw/i40iw_cm.c if (!iwqp) iwqp 4158 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->cm_id = NULL; iwqp 4351 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_modify_qp(&cm_node->iwqp->ibqp, &attr, IB_QP_STATE, NULL); iwqp 4353 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_cm_disconn(cm_node->iwqp); iwqp 323 drivers/infiniband/hw/i40iw/i40iw_cm.h struct i40iw_qp *iwqp; iwqp 245 drivers/infiniband/hw/i40iw/i40iw_hw.c void i40iw_next_iw_state(struct i40iw_qp *iwqp, iwqp 266 drivers/infiniband/hw/i40iw/i40iw_hw.c if (iwqp->sc_qp.term_flags && (state == I40IW_QP_STATE_ERROR)) iwqp 268 drivers/infiniband/hw/i40iw/i40iw_hw.c iwqp->hw_iwarp_state = state; iwqp 269 drivers/infiniband/hw/i40iw/i40iw_hw.c i40iw_hw_modify_qp(iwqp->iwdev, iwqp, &info, 0); iwqp 284 drivers/infiniband/hw/i40iw/i40iw_hw.c struct i40iw_qp *iwqp = NULL; iwqp 308 drivers/infiniband/hw/i40iw/i40iw_hw.c iwqp = iwdev->qp_table[info->qp_cq_id]; iwqp 309 drivers/infiniband/hw/i40iw/i40iw_hw.c if (!iwqp) { iwqp 316 drivers/infiniband/hw/i40iw/i40iw_hw.c i40iw_add_ref(&iwqp->ibqp); iwqp 318 drivers/infiniband/hw/i40iw/i40iw_hw.c qp = &iwqp->sc_qp; iwqp 319 drivers/infiniband/hw/i40iw/i40iw_hw.c spin_lock_irqsave(&iwqp->lock, flags); iwqp 320 drivers/infiniband/hw/i40iw/i40iw_hw.c iwqp->hw_tcp_state = info->tcp_state; iwqp 321 drivers/infiniband/hw/i40iw/i40iw_hw.c iwqp->hw_iwarp_state = info->iwarp_state; iwqp 322 drivers/infiniband/hw/i40iw/i40iw_hw.c iwqp->last_aeq = info->ae_id; iwqp 323 drivers/infiniband/hw/i40iw/i40iw_hw.c spin_unlock_irqrestore(&iwqp->lock, flags); iwqp 324 drivers/infiniband/hw/i40iw/i40iw_hw.c ctx_info = &iwqp->ctx_info; iwqp 335 drivers/infiniband/hw/i40iw/i40iw_hw.c if (atomic_inc_return(&iwqp->close_timer_started) == 1) { iwqp 336 drivers/infiniband/hw/i40iw/i40iw_hw.c iwqp->hw_tcp_state = I40IW_TCP_STATE_CLOSE_WAIT; iwqp 337 drivers/infiniband/hw/i40iw/i40iw_hw.c if ((iwqp->hw_tcp_state == I40IW_TCP_STATE_CLOSE_WAIT) && iwqp 338 drivers/infiniband/hw/i40iw/i40iw_hw.c (iwqp->ibqp_state == IB_QPS_RTS)) { iwqp 339 drivers/infiniband/hw/i40iw/i40iw_hw.c i40iw_next_iw_state(iwqp, iwqp 341 drivers/infiniband/hw/i40iw/i40iw_hw.c i40iw_cm_disconn(iwqp); iwqp 343 drivers/infiniband/hw/i40iw/i40iw_hw.c iwqp->cm_id->add_ref(iwqp->cm_id); iwqp 344 drivers/infiniband/hw/i40iw/i40iw_hw.c i40iw_schedule_cm_timer(iwqp->cm_node, iwqp 345 drivers/infiniband/hw/i40iw/i40iw_hw.c (struct i40iw_puda_buf *)iwqp, iwqp 353 drivers/infiniband/hw/i40iw/i40iw_hw.c i40iw_cm_disconn(iwqp); iwqp 358 drivers/infiniband/hw/i40iw/i40iw_hw.c i40iw_next_iw_state(iwqp, I40IW_QP_STATE_ERROR, 1, 0, 0); iwqp 359 drivers/infiniband/hw/i40iw/i40iw_hw.c i40iw_cm_disconn(iwqp); iwqp 362 drivers/infiniband/hw/i40iw/i40iw_hw.c if (atomic_read(&iwqp->close_timer_started)) iwqp 364 drivers/infiniband/hw/i40iw/i40iw_hw.c i40iw_cm_disconn(iwqp); iwqp 367 drivers/infiniband/hw/i40iw/i40iw_hw.c i40iw_qp_suspend_resume(dev, &iwqp->sc_qp, false); iwqp 422 drivers/infiniband/hw/i40iw/i40iw_hw.c ret = dev->iw_priv_qp_ops->qp_setctx(&iwqp->sc_qp, iwqp 423 drivers/infiniband/hw/i40iw/i40iw_hw.c iwqp->host_ctx.va, iwqp 430 drivers/infiniband/hw/i40iw/i40iw_hw.c i40iw_rem_ref(&iwqp->ibqp); iwqp 678 drivers/infiniband/hw/i40iw/i40iw_hw.c struct i40iw_qp *iwqp = (struct i40iw_qp *)qp->back_qp; iwqp 695 drivers/infiniband/hw/i40iw/i40iw_hw.c complete(&iwqp->sq_drained); iwqp 696 drivers/infiniband/hw/i40iw/i40iw_hw.c complete(&iwqp->rq_drained); iwqp 702 drivers/infiniband/hw/i40iw/i40iw_hw.c complete(&iwqp->sq_drained); iwqp 705 drivers/infiniband/hw/i40iw/i40iw_hw.c complete(&iwqp->rq_drained); iwqp 710 drivers/infiniband/hw/i40iw/i40iw_hw.c complete(&iwqp->sq_drained); iwqp 711 drivers/infiniband/hw/i40iw/i40iw_hw.c complete(&iwqp->rq_drained); iwqp 835 drivers/infiniband/hw/i40iw/i40iw_hw.c void i40iw_flush_wqes(struct i40iw_device *iwdev, struct i40iw_qp *iwqp) iwqp 840 drivers/infiniband/hw/i40iw/i40iw_hw.c struct i40iw_sc_qp *qp = &iwqp->sc_qp; iwqp 851 drivers/infiniband/hw/i40iw/i40iw_hw.c (void)i40iw_hw_flush_wqes(iwdev, &iwqp->sc_qp, &info, true); iwqp 490 drivers/infiniband/hw/i40iw/i40iw_utils.c struct i40iw_qp *iwqp = (struct i40iw_qp *)qp->back_qp; iwqp 492 drivers/infiniband/hw/i40iw/i40iw_utils.c u32 qp_num = iwqp->ibqp.qp_num; iwqp 494 drivers/infiniband/hw/i40iw/i40iw_utils.c iwdev = iwqp->iwdev; iwqp 496 drivers/infiniband/hw/i40iw/i40iw_utils.c i40iw_rem_pdusecount(iwqp->iwpd, iwdev); iwqp 497 drivers/infiniband/hw/i40iw/i40iw_utils.c i40iw_free_qp_resources(iwdev, iwqp, qp_num); iwqp 626 drivers/infiniband/hw/i40iw/i40iw_utils.c struct i40iw_qp *iwqp = (struct i40iw_qp *)ibqp; iwqp 628 drivers/infiniband/hw/i40iw/i40iw_utils.c atomic_inc(&iwqp->refcount); iwqp 637 drivers/infiniband/hw/i40iw/i40iw_utils.c struct i40iw_qp *iwqp; iwqp 645 drivers/infiniband/hw/i40iw/i40iw_utils.c iwqp = to_iwqp(ibqp); iwqp 646 drivers/infiniband/hw/i40iw/i40iw_utils.c iwdev = iwqp->iwdev; iwqp 648 drivers/infiniband/hw/i40iw/i40iw_utils.c if (!atomic_dec_and_test(&iwqp->refcount)) { iwqp 653 drivers/infiniband/hw/i40iw/i40iw_utils.c qp_num = iwqp->ibqp.qp_num; iwqp 661 drivers/infiniband/hw/i40iw/i40iw_utils.c cqp_request->param = (void *)&iwqp->sc_qp; iwqp 665 drivers/infiniband/hw/i40iw/i40iw_utils.c cqp_info->in.u.qp_destroy.qp = &iwqp->sc_qp; iwqp 672 drivers/infiniband/hw/i40iw/i40iw_utils.c i40iw_rem_pdusecount(iwqp->iwpd, iwdev); iwqp 673 drivers/infiniband/hw/i40iw/i40iw_utils.c i40iw_free_qp_resources(iwdev, iwqp, qp_num); iwqp 892 drivers/infiniband/hw/i40iw/i40iw_utils.c struct i40iw_qp *iwqp; iwqp 894 drivers/infiniband/hw/i40iw/i40iw_utils.c iwqp = (struct i40iw_qp *)qp->back_qp; iwqp 895 drivers/infiniband/hw/i40iw/i40iw_utils.c i40iw_next_iw_state(iwqp, next_state, 0, term, term_len); iwqp 905 drivers/infiniband/hw/i40iw/i40iw_utils.c struct i40iw_qp *iwqp; iwqp 911 drivers/infiniband/hw/i40iw/i40iw_utils.c iwqp = (struct i40iw_qp *)qp->back_qp; iwqp 912 drivers/infiniband/hw/i40iw/i40iw_utils.c spin_lock_irqsave(&iwqp->lock, flags); iwqp 913 drivers/infiniband/hw/i40iw/i40iw_utils.c if (iwqp->hte_added) { iwqp 914 drivers/infiniband/hw/i40iw/i40iw_utils.c iwqp->hte_added = 0; iwqp 919 drivers/infiniband/hw/i40iw/i40iw_utils.c spin_unlock_irqrestore(&iwqp->lock, flags); iwqp 926 drivers/infiniband/hw/i40iw/i40iw_utils.c i40iw_next_iw_state(iwqp, next_iwarp_state, hte, 0, 0); iwqp 927 drivers/infiniband/hw/i40iw/i40iw_utils.c i40iw_cm_disconn(iwqp); iwqp 937 drivers/infiniband/hw/i40iw/i40iw_utils.c struct i40iw_qp *iwqp = from_timer(iwqp, t, terminate_timer); iwqp 938 drivers/infiniband/hw/i40iw/i40iw_utils.c struct i40iw_sc_qp *qp = (struct i40iw_sc_qp *)&iwqp->sc_qp; iwqp 941 drivers/infiniband/hw/i40iw/i40iw_utils.c i40iw_rem_ref(&iwqp->ibqp); iwqp 950 drivers/infiniband/hw/i40iw/i40iw_utils.c struct i40iw_qp *iwqp; iwqp 952 drivers/infiniband/hw/i40iw/i40iw_utils.c iwqp = (struct i40iw_qp *)qp->back_qp; iwqp 953 drivers/infiniband/hw/i40iw/i40iw_utils.c i40iw_add_ref(&iwqp->ibqp); iwqp 954 drivers/infiniband/hw/i40iw/i40iw_utils.c timer_setup(&iwqp->terminate_timer, i40iw_terminate_timeout, 0); iwqp 955 drivers/infiniband/hw/i40iw/i40iw_utils.c iwqp->terminate_timer.expires = jiffies + HZ; iwqp 956 drivers/infiniband/hw/i40iw/i40iw_utils.c add_timer(&iwqp->terminate_timer); iwqp 965 drivers/infiniband/hw/i40iw/i40iw_utils.c struct i40iw_qp *iwqp; iwqp 967 drivers/infiniband/hw/i40iw/i40iw_utils.c iwqp = (struct i40iw_qp *)qp->back_qp; iwqp 968 drivers/infiniband/hw/i40iw/i40iw_utils.c if (del_timer(&iwqp->terminate_timer)) iwqp 969 drivers/infiniband/hw/i40iw/i40iw_utils.c i40iw_rem_ref(&iwqp->ibqp); iwqp 1399 drivers/infiniband/hw/i40iw/i40iw_utils.c struct i40iw_qp *iwqp; iwqp 1424 drivers/infiniband/hw/i40iw/i40iw_utils.c iwqp = cm_node->iwqp; iwqp 1425 drivers/infiniband/hw/i40iw/i40iw_utils.c return &iwqp->sc_qp; iwqp 370 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_qp *iwqp, iwqp 373 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_pbl *iwpbl = &iwqp->iwpbl; iwqp 375 drivers/infiniband/hw/i40iw/i40iw_verbs.c i40iw_ieq_cleanup_qp(iwdev->vsi.ieq, &iwqp->sc_qp); iwqp 376 drivers/infiniband/hw/i40iw/i40iw_verbs.c i40iw_dealloc_push_page(iwdev, &iwqp->sc_qp); iwqp 381 drivers/infiniband/hw/i40iw/i40iw_verbs.c i40iw_free_dma_mem(iwdev->sc_dev.hw, &iwqp->q2_ctx_mem); iwqp 382 drivers/infiniband/hw/i40iw/i40iw_verbs.c i40iw_free_dma_mem(iwdev->sc_dev.hw, &iwqp->kqp.dma_mem); iwqp 383 drivers/infiniband/hw/i40iw/i40iw_verbs.c kfree(iwqp->kqp.wrid_mem); iwqp 384 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->kqp.wrid_mem = NULL; iwqp 385 drivers/infiniband/hw/i40iw/i40iw_verbs.c kfree(iwqp->allocated_buffer); iwqp 393 drivers/infiniband/hw/i40iw/i40iw_verbs.c static void i40iw_clean_cqes(struct i40iw_qp *iwqp, struct i40iw_cq *iwcq) iwqp 397 drivers/infiniband/hw/i40iw/i40iw_verbs.c ukcq->ops.iw_cq_clean(&iwqp->sc_qp.qp_uk, ukcq); iwqp 406 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_qp *iwqp = to_iwqp(ibqp); iwqp 408 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->destroyed = 1; iwqp 410 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (iwqp->ibqp_state >= IB_QPS_INIT && iwqp->ibqp_state < IB_QPS_RTS) iwqp 411 drivers/infiniband/hw/i40iw/i40iw_verbs.c i40iw_next_iw_state(iwqp, I40IW_QP_STATE_ERROR, 0, 0, 0); iwqp 413 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (!iwqp->user_mode) { iwqp 414 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (iwqp->iwscq) { iwqp 415 drivers/infiniband/hw/i40iw/i40iw_verbs.c i40iw_clean_cqes(iwqp, iwqp->iwscq); iwqp 416 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (iwqp->iwrcq != iwqp->iwscq) iwqp 417 drivers/infiniband/hw/i40iw/i40iw_verbs.c i40iw_clean_cqes(iwqp, iwqp->iwrcq); iwqp 421 drivers/infiniband/hw/i40iw/i40iw_verbs.c i40iw_rem_ref(&iwqp->ibqp); iwqp 432 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_qp *iwqp, iwqp 435 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_pbl *iwpbl = &iwqp->iwpbl; iwqp 438 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->page = qpmr->sq_page; iwqp 458 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_qp *iwqp, iwqp 461 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_dma_mem *mem = &iwqp->kqp.dma_mem; iwqp 478 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->kqp.wrid_mem = kzalloc(size, GFP_KERNEL); iwqp 480 drivers/infiniband/hw/i40iw/i40iw_verbs.c ukinfo->sq_wrtrk_array = (struct i40iw_sq_uk_wr_trk_info *)iwqp->kqp.wrid_mem; iwqp 507 drivers/infiniband/hw/i40iw/i40iw_verbs.c ukinfo->qp_id = iwqp->ibqp.qp_num; iwqp 524 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_qp *iwqp; iwqp 572 drivers/infiniband/hw/i40iw/i40iw_verbs.c mem = kzalloc(sizeof(*iwqp), GFP_KERNEL); iwqp 576 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp = (struct i40iw_qp *)mem; iwqp 577 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->allocated_buffer = mem; iwqp 578 drivers/infiniband/hw/i40iw/i40iw_verbs.c qp = &iwqp->sc_qp; iwqp 579 drivers/infiniband/hw/i40iw/i40iw_verbs.c qp->back_qp = (void *)iwqp; iwqp 582 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->ctx_info.iwarp_info = &iwqp->iwarp_info; iwqp 585 drivers/infiniband/hw/i40iw/i40iw_verbs.c &iwqp->q2_ctx_mem, iwqp 593 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_info.q2 = iwqp->q2_ctx_mem.va; iwqp 594 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_info.q2_pa = iwqp->q2_ctx_mem.pa; iwqp 606 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->iwdev = iwdev; iwqp 607 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->iwpd = iwpd; iwqp 608 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->ibqp.qp_num = qp_num; iwqp 609 drivers/infiniband/hw/i40iw/i40iw_verbs.c qp = &iwqp->sc_qp; iwqp 610 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->iwscq = to_iwcq(init_attr->send_cq); iwqp 611 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->iwrcq = to_iwcq(init_attr->recv_cq); iwqp 613 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->host_ctx.va = init_info.host_ctx; iwqp 614 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->host_ctx.pa = init_info.host_ctx_pa; iwqp 615 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->host_ctx.size = I40IW_QP_CTX_SIZE; iwqp 618 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_info.qp_uk_init_info.qp_id = iwqp->ibqp.qp_num; iwqp 619 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->ctx_info.qp_compl_ctx = (uintptr_t)qp; iwqp 633 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->ctx_info.qp_compl_ctx = req.user_compl_ctx; iwqp 634 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->user_mode = 1; iwqp 652 drivers/infiniband/hw/i40iw/i40iw_verbs.c memcpy(&iwqp->iwpbl, iwpbl, sizeof(iwqp->iwpbl)); iwqp 654 drivers/infiniband/hw/i40iw/i40iw_verbs.c err_code = i40iw_setup_virt_qp(iwdev, iwqp, &init_info); iwqp 656 drivers/infiniband/hw/i40iw/i40iw_verbs.c err_code = i40iw_setup_kmode_qp(iwdev, iwqp, &init_info); iwqp 671 drivers/infiniband/hw/i40iw/i40iw_verbs.c ctx_info = &iwqp->ctx_info; iwqp 672 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwarp_info = &iwqp->iwarp_info; iwqp 675 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (!iwqp->user_mode) { iwqp 683 drivers/infiniband/hw/i40iw/i40iw_verbs.c ctx_info->send_cq_num = iwqp->iwscq->sc_cq.cq_uk.cq_id; iwqp 684 drivers/infiniband/hw/i40iw/i40iw_verbs.c ctx_info->rcv_cq_num = iwqp->iwrcq->sc_cq.cq_uk.cq_id; iwqp 692 drivers/infiniband/hw/i40iw/i40iw_verbs.c ret = dev->iw_priv_qp_ops->qp_setctx(&iwqp->sc_qp, iwqp 693 drivers/infiniband/hw/i40iw/i40iw_verbs.c (u64 *)iwqp->host_ctx.va, iwqp 720 drivers/infiniband/hw/i40iw/i40iw_verbs.c i40iw_add_ref(&iwqp->ibqp); iwqp 721 drivers/infiniband/hw/i40iw/i40iw_verbs.c spin_lock_init(&iwqp->lock); iwqp 722 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->sig_all = (init_attr->sq_sig_type == IB_SIGNAL_ALL_WR) ? 1 : 0; iwqp 723 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwdev->qp_table[qp_num] = iwqp; iwqp 724 drivers/infiniband/hw/i40iw/i40iw_verbs.c i40iw_add_pdusecount(iwqp->iwpd); iwqp 735 drivers/infiniband/hw/i40iw/i40iw_verbs.c i40iw_destroy_qp(&iwqp->ibqp, udata); iwqp 740 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_completion(&iwqp->sq_drained); iwqp 741 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_completion(&iwqp->rq_drained); iwqp 743 drivers/infiniband/hw/i40iw/i40iw_verbs.c return &iwqp->ibqp; iwqp 745 drivers/infiniband/hw/i40iw/i40iw_verbs.c i40iw_free_qp_resources(iwdev, iwqp, qp_num); iwqp 761 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_qp *iwqp = to_iwqp(ibqp); iwqp 762 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_sc_qp *qp = &iwqp->sc_qp; iwqp 764 drivers/infiniband/hw/i40iw/i40iw_verbs.c attr->qp_state = iwqp->ibqp_state; iwqp 773 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->event_handler = iwqp->ibqp.event_handler; iwqp 774 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->qp_context = iwqp->ibqp.qp_context; iwqp 775 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->send_cq = iwqp->ibqp.send_cq; iwqp 776 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->recv_cq = iwqp->ibqp.recv_cq; iwqp 777 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->srq = iwqp->ibqp.srq; iwqp 790 drivers/infiniband/hw/i40iw/i40iw_verbs.c void i40iw_hw_modify_qp(struct i40iw_device *iwdev, struct i40iw_qp *iwqp, iwqp 807 drivers/infiniband/hw/i40iw/i40iw_verbs.c cqp_info->in.u.qp_modify.qp = &iwqp->sc_qp; iwqp 814 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (iwqp->iwarp_state == I40IW_QP_STATE_IDLE) iwqp 815 drivers/infiniband/hw/i40iw/i40iw_verbs.c i40iw_send_reset(iwqp->cm_node); iwqp 822 drivers/infiniband/hw/i40iw/i40iw_verbs.c i40iw_gen_ae(iwdev, &iwqp->sc_qp, &ae_info, false); iwqp 840 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_qp *iwqp = to_iwqp(ibqp); iwqp 841 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_device *iwdev = iwqp->iwdev; iwqp 851 drivers/infiniband/hw/i40iw/i40iw_verbs.c ctx_info = &iwqp->ctx_info; iwqp 852 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwarp_info = &iwqp->iwarp_info; iwqp 854 drivers/infiniband/hw/i40iw/i40iw_verbs.c spin_lock_irqsave(&iwqp->lock, flags); iwqp 865 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (iwqp->iwarp_state > (u32)I40IW_QP_STATE_IDLE) { iwqp 869 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (iwqp->iwarp_state == I40IW_QP_STATE_INVALID) { iwqp 875 drivers/infiniband/hw/i40iw/i40iw_verbs.c if ((iwqp->iwarp_state > (u32)I40IW_QP_STATE_RTS) || iwqp 876 drivers/infiniband/hw/i40iw/i40iw_verbs.c (!iwqp->cm_id)) { iwqp 882 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->hw_tcp_state = I40IW_TCP_STATE_ESTABLISHED; iwqp 883 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->hte_added = 1; iwqp 891 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (iwqp->hw_iwarp_state > (u32)I40IW_QP_STATE_RTS) { iwqp 895 drivers/infiniband/hw/i40iw/i40iw_verbs.c if ((iwqp->iwarp_state == (u32)I40IW_QP_STATE_CLOSING) || iwqp 896 drivers/infiniband/hw/i40iw/i40iw_verbs.c (iwqp->iwarp_state < (u32)I40IW_QP_STATE_RTS)) { iwqp 900 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (iwqp->iwarp_state > (u32)I40IW_QP_STATE_CLOSING) { iwqp 908 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (iwqp->iwarp_state >= (u32)I40IW_QP_STATE_TERMINATE) { iwqp 917 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (iwqp->iwarp_state == (u32)I40IW_QP_STATE_ERROR) { iwqp 921 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (iwqp->sc_qp.term_flags) iwqp 922 drivers/infiniband/hw/i40iw/i40iw_verbs.c i40iw_terminate_del_timer(&iwqp->sc_qp); iwqp 924 drivers/infiniband/hw/i40iw/i40iw_verbs.c if ((iwqp->hw_tcp_state > I40IW_TCP_STATE_CLOSED) && iwqp 926 drivers/infiniband/hw/i40iw/i40iw_verbs.c (iwqp->hw_tcp_state != I40IW_TCP_STATE_TIME_WAIT)) iwqp 938 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->ibqp_state = attr->qp_state; iwqp 952 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (iwqp->user_mode) { iwqp 963 drivers/infiniband/hw/i40iw/i40iw_verbs.c ctx_info->send_cq_num = iwqp->iwscq->sc_cq.cq_uk.cq_id; iwqp 964 drivers/infiniband/hw/i40iw/i40iw_verbs.c ctx_info->rcv_cq_num = iwqp->iwrcq->sc_cq.cq_uk.cq_id; iwqp 965 drivers/infiniband/hw/i40iw/i40iw_verbs.c ret = dev->iw_priv_qp_ops->qp_setctx(&iwqp->sc_qp, iwqp 966 drivers/infiniband/hw/i40iw/i40iw_verbs.c (u64 *)iwqp->host_ctx.va, iwqp 975 drivers/infiniband/hw/i40iw/i40iw_verbs.c spin_unlock_irqrestore(&iwqp->lock, flags); iwqp 978 drivers/infiniband/hw/i40iw/i40iw_verbs.c i40iw_hw_modify_qp(iwdev, iwqp, &info, true); iwqp 980 drivers/infiniband/hw/i40iw/i40iw_verbs.c spin_lock_irqsave(&iwqp->lock, flags); iwqp 981 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->iwarp_state = info.next_iwarp_state; iwqp 982 drivers/infiniband/hw/i40iw/i40iw_verbs.c spin_unlock_irqrestore(&iwqp->lock, flags); iwqp 985 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (issue_modify_qp && (iwqp->ibqp_state > IB_QPS_RTS)) { iwqp 987 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (iwqp->cm_id && iwqp->hw_tcp_state) { iwqp 988 drivers/infiniband/hw/i40iw/i40iw_verbs.c spin_lock_irqsave(&iwqp->lock, flags); iwqp 989 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->hw_tcp_state = I40IW_TCP_STATE_CLOSED; iwqp 990 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->last_aeq = I40IW_AE_RESET_SENT; iwqp 991 drivers/infiniband/hw/i40iw/i40iw_verbs.c spin_unlock_irqrestore(&iwqp->lock, flags); iwqp 992 drivers/infiniband/hw/i40iw/i40iw_verbs.c i40iw_cm_disconn(iwqp); iwqp 995 drivers/infiniband/hw/i40iw/i40iw_verbs.c spin_lock_irqsave(&iwqp->lock, flags); iwqp 996 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (iwqp->cm_id) { iwqp 997 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (atomic_inc_return(&iwqp->close_timer_started) == 1) { iwqp 998 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->cm_id->add_ref(iwqp->cm_id); iwqp 999 drivers/infiniband/hw/i40iw/i40iw_verbs.c i40iw_schedule_cm_timer(iwqp->cm_node, iwqp 1000 drivers/infiniband/hw/i40iw/i40iw_verbs.c (struct i40iw_puda_buf *)iwqp, iwqp 1004 drivers/infiniband/hw/i40iw/i40iw_verbs.c spin_unlock_irqrestore(&iwqp->lock, flags); iwqp 1009 drivers/infiniband/hw/i40iw/i40iw_verbs.c spin_unlock_irqrestore(&iwqp->lock, flags); iwqp 1646 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_qp *iwqp = to_iwqp(ibqp); iwqp 1647 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_sc_qp *qp = &iwqp->sc_qp; iwqp 1650 drivers/infiniband/hw/i40iw/i40iw_verbs.c wait_for_completion(&iwqp->sq_drained); iwqp 1659 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_qp *iwqp = to_iwqp(ibqp); iwqp 1660 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_sc_qp *qp = &iwqp->sc_qp; iwqp 1663 drivers/infiniband/hw/i40iw/i40iw_verbs.c wait_for_completion(&iwqp->rq_drained); iwqp 2119 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_qp *iwqp; iwqp 2127 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp = (struct i40iw_qp *)ibqp; iwqp 2128 drivers/infiniband/hw/i40iw/i40iw_verbs.c ukqp = &iwqp->sc_qp.qp_uk; iwqp 2130 drivers/infiniband/hw/i40iw/i40iw_verbs.c spin_lock_irqsave(&iwqp->lock, flags); iwqp 2132 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (iwqp->flush_issued) { iwqp 2141 drivers/infiniband/hw/i40iw/i40iw_verbs.c if ((ib_wr->send_flags & IB_SEND_SIGNALED) || iwqp->sig_all) iwqp 2237 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_sc_dev *dev = &iwqp->iwdev->sc_dev; iwqp 2259 drivers/infiniband/hw/i40iw/i40iw_verbs.c ret = dev->iw_priv_qp_ops->iw_mr_fast_register(&iwqp->sc_qp, &info, true); iwqp 2281 drivers/infiniband/hw/i40iw/i40iw_verbs.c spin_unlock_irqrestore(&iwqp->lock, flags); iwqp 2295 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_qp *iwqp; iwqp 2303 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp = (struct i40iw_qp *)ibqp; iwqp 2304 drivers/infiniband/hw/i40iw/i40iw_verbs.c ukqp = &iwqp->sc_qp.qp_uk; iwqp 2307 drivers/infiniband/hw/i40iw/i40iw_verbs.c spin_lock_irqsave(&iwqp->lock, flags); iwqp 2309 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (iwqp->flush_issued) { iwqp 2332 drivers/infiniband/hw/i40iw/i40iw_verbs.c spin_unlock_irqrestore(&iwqp->lock, flags); iwqp 2352 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_qp *iwqp; iwqp 2405 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp = (struct i40iw_qp *)qp->back_qp; iwqp 2406 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (iwqp->iwarp_state > I40IW_QP_STATE_RTS) { iwqp 2408 drivers/infiniband/hw/i40iw/i40iw_verbs.c complete(&iwqp->sq_drained); iwqp 2410 drivers/infiniband/hw/i40iw/i40iw_verbs.c complete(&iwqp->rq_drained); iwqp 121 drivers/infiniband/hw/i40iw/i40iw_verbs.h struct i40iw_qp *iwqp;