Lines Matching refs:qp_params
840 struct ecore_rdma_modify_qp_in_params *qp_params) in get_gid_info() argument
849 memcpy(&qp_params->sgid.bytes[0], in get_gid_info()
851 sizeof(qp_params->sgid.bytes)); in get_gid_info()
852 memcpy(&qp_params->dgid.bytes[0], in get_gid_info()
854 sizeof(qp_params->dgid)); in get_gid_info()
856 qlnxr_get_vlan_id_qp(ha, attr, attr_mask, &qp_params->vlan_id); in get_gid_info()
858 for (i = 0; i < (sizeof(qp_params->sgid.dwords)/sizeof(uint32_t)); i++) { in get_gid_info()
859 qp_params->sgid.dwords[i] = ntohl(qp_params->sgid.dwords[i]); in get_gid_info()
860 qp_params->dgid.dwords[i] = ntohl(qp_params->dgid.dwords[i]); in get_gid_info()
3364 struct ecore_rdma_modify_qp_in_params qp_params = { 0 }; in qlnxr_modify_qp() local
3398 SET_FIELD(qp_params.modify_flags, in qlnxr_modify_qp()
3400 qp_params.new_state = qlnxr_get_state_from_ibqp(attr->qp_state); in qlnxr_modify_qp()
3405 qp_params.sqd_async = true; in qlnxr_modify_qp()
3408 SET_FIELD(qp_params.modify_flags, in qlnxr_modify_qp()
3416 qp_params.pkey = QLNXR_ROCE_PKEY_DEFAULT; in qlnxr_modify_qp()
3425 SET_FIELD(qp_params.modify_flags, in qlnxr_modify_qp()
3427 qp_params.incoming_rdma_read_en = in qlnxr_modify_qp()
3429 qp_params.incoming_rdma_write_en = in qlnxr_modify_qp()
3431 qp_params.incoming_atomic_en = in qlnxr_modify_qp()
3460 SET_FIELD(qp_params.modify_flags, in qlnxr_modify_qp()
3464 qp_params.traffic_class_tos = attr->ah_attr.grh.traffic_class; in qlnxr_modify_qp()
3465 qp_params.flow_label = attr->ah_attr.grh.flow_label; in qlnxr_modify_qp()
3466 qp_params.hop_limit_ttl = attr->ah_attr.grh.hop_limit; in qlnxr_modify_qp()
3470 get_gid_info(ibqp, attr, attr_mask, dev, qp, &qp_params); in qlnxr_modify_qp()
3472 rc = qlnxr_get_dmac(dev, &attr->ah_attr, qp_params.remote_mac_addr); in qlnxr_modify_qp()
3476 qp_params.use_local_mac = true; in qlnxr_modify_qp()
3477 memcpy(qp_params.local_mac_addr, dev->ha->primary_mac, ETH_ALEN); in qlnxr_modify_qp()
3480 qp_params.dgid.dwords[0], qp_params.dgid.dwords[1], in qlnxr_modify_qp()
3481 qp_params.dgid.dwords[2], qp_params.dgid.dwords[3]); in qlnxr_modify_qp()
3483 qp_params.sgid.dwords[0], qp_params.sgid.dwords[1], in qlnxr_modify_qp()
3484 qp_params.sgid.dwords[2], qp_params.sgid.dwords[3]); in qlnxr_modify_qp()
3487 qp_params.remote_mac_addr[0], in qlnxr_modify_qp()
3488 qp_params.remote_mac_addr[1], in qlnxr_modify_qp()
3489 qp_params.remote_mac_addr[2], in qlnxr_modify_qp()
3490 qp_params.remote_mac_addr[3], in qlnxr_modify_qp()
3491 qp_params.remote_mac_addr[4], in qlnxr_modify_qp()
3492 qp_params.remote_mac_addr[5]); in qlnxr_modify_qp()
3494 qp_params.mtu = qp->mtu; in qlnxr_modify_qp()
3497 if (qp_params.mtu == 0) { in qlnxr_modify_qp()
3500 qp_params.mtu = qp->mtu; in qlnxr_modify_qp()
3502 qp_params.mtu = ib_mtu_enum_to_int( in qlnxr_modify_qp()
3508 SET_FIELD(qp_params.modify_flags, \ in qlnxr_modify_qp()
3511 qp_params.ack_timeout = attr->timeout; in qlnxr_modify_qp()
3524 qp_params.ack_timeout = temp; /* FW requires [msec] */ in qlnxr_modify_qp()
3527 qp_params.ack_timeout = 0; /* infinite */ in qlnxr_modify_qp()
3530 SET_FIELD(qp_params.modify_flags,\ in qlnxr_modify_qp()
3532 qp_params.retry_cnt = attr->retry_cnt; in qlnxr_modify_qp()
3536 SET_FIELD(qp_params.modify_flags, in qlnxr_modify_qp()
3539 qp_params.rnr_retry_cnt = attr->rnr_retry; in qlnxr_modify_qp()
3543 SET_FIELD(qp_params.modify_flags, in qlnxr_modify_qp()
3546 qp_params.rq_psn = attr->rq_psn; in qlnxr_modify_qp()
3560 SET_FIELD(qp_params.modify_flags, in qlnxr_modify_qp()
3563 qp_params.max_rd_atomic_req = attr->max_rd_atomic; in qlnxr_modify_qp()
3567 SET_FIELD(qp_params.modify_flags, in qlnxr_modify_qp()
3570 qp_params.min_rnr_nak_timer = attr->min_rnr_timer; in qlnxr_modify_qp()
3574 SET_FIELD(qp_params.modify_flags, in qlnxr_modify_qp()
3577 qp_params.sq_psn = attr->sq_psn; in qlnxr_modify_qp()
3594 SET_FIELD(qp_params.modify_flags, in qlnxr_modify_qp()
3597 qp_params.max_rd_atomic_resp = attr->max_dest_rd_atomic; in qlnxr_modify_qp()
3601 SET_FIELD(qp_params.modify_flags, in qlnxr_modify_qp()
3605 qp_params.dest_qp = attr->dest_qp_num; in qlnxr_modify_qp()
3616 (!udata) && (qp_params.new_state == ECORE_ROCE_QP_STATE_ERR)) in qlnxr_modify_qp()
3620 rc = ecore_rdma_modify_qp(dev->rdma_ctx, qp->ecore_qp, &qp_params); in qlnxr_modify_qp()
3624 rc = qlnxr_update_qp_state(dev, qp, qp_params.new_state); in qlnxr_modify_qp()
3625 qp->state = qp_params.new_state; in qlnxr_modify_qp()
5823 struct ecore_rdma_modify_qp_in_params qp_params = { 0 }; in qlnxr_iw_disconnect_worker() local
5843 qp_params.new_state = ECORE_ROCE_QP_STATE_ERR; in qlnxr_iw_disconnect_worker()
5845 qp_params.new_state = ECORE_ROCE_QP_STATE_SQD; in qlnxr_iw_disconnect_worker()
5852 SET_FIELD(qp_params.modify_flags, in qlnxr_iw_disconnect_worker()
5855 ecore_rdma_modify_qp(dev->rdma_ctx, qp->ecore_qp, &qp_params); in qlnxr_iw_disconnect_worker()