Lines Matching refs:clc

642 	struct smc_clc_msg_accept_confirm *clc;  in smc_clc_send_confirm_accept()  local
650 clc = (struct smc_clc_msg_accept_confirm *)clc_v2; in smc_clc_send_confirm_accept()
651 clc->hdr.version = version; /* SMC version */ in smc_clc_send_confirm_accept()
653 clc->hdr.typev2 |= SMC_FIRST_CONTACT_MASK; in smc_clc_send_confirm_accept()
656 memcpy(clc->hdr.eyecatcher, SMCD_EYECATCHER, in smc_clc_send_confirm_accept()
658 clc->hdr.typev1 = SMC_TYPE_D; in smc_clc_send_confirm_accept()
659 clc->d0.gid = conn->lgr->smcd->local_gid; in smc_clc_send_confirm_accept()
660 clc->d0.token = conn->rmb_desc->token; in smc_clc_send_confirm_accept()
661 clc->d0.dmbe_size = conn->rmbe_size_short; in smc_clc_send_confirm_accept()
662 clc->d0.dmbe_idx = 0; in smc_clc_send_confirm_accept()
663 memcpy(&clc->d0.linkid, conn->lgr->id, SMC_LGR_ID_SIZE); in smc_clc_send_confirm_accept()
665 clc->hdr.length = htons(SMCD_CLC_ACCEPT_CONFIRM_LEN); in smc_clc_send_confirm_accept()
685 memcpy(clc->hdr.eyecatcher, SMC_EYECATCHER, in smc_clc_send_confirm_accept()
687 clc->hdr.typev1 = SMC_TYPE_R; in smc_clc_send_confirm_accept()
688 clc->hdr.length = htons(SMCR_CLC_ACCEPT_CONFIRM_LEN); in smc_clc_send_confirm_accept()
689 memcpy(clc->r0.lcl.id_for_peer, local_systemid, in smc_clc_send_confirm_accept()
691 memcpy(&clc->r0.lcl.gid, link->gid, SMC_GID_SIZE); in smc_clc_send_confirm_accept()
692 memcpy(&clc->r0.lcl.mac, &link->smcibdev->mac[link->ibport - 1], in smc_clc_send_confirm_accept()
694 hton24(clc->r0.qpn, link->roce_qp->qp_num); in smc_clc_send_confirm_accept()
695 clc->r0.rmb_rkey = in smc_clc_send_confirm_accept()
697 clc->r0.rmbe_idx = 1; /* for now: 1 RMB = 1 RMBE */ in smc_clc_send_confirm_accept()
698 clc->r0.rmbe_alert_token = htonl(conn->alert_token_local); in smc_clc_send_confirm_accept()
699 switch (clc->hdr.type) { in smc_clc_send_confirm_accept()
701 clc->r0.qp_mtu = link->path_mtu; in smc_clc_send_confirm_accept()
704 clc->r0.qp_mtu = min(link->path_mtu, link->peer_mtu); in smc_clc_send_confirm_accept()
707 clc->r0.rmbe_size = conn->rmbe_size_short; in smc_clc_send_confirm_accept()
708 clc->r0.rmb_dma_addr = cpu_to_be64((u64)sg_dma_address in smc_clc_send_confirm_accept()
710 hton24(clc->r0.psn, link->psn_initial); in smc_clc_send_confirm_accept()
720 vec[i++].iov_len = (clc->hdr.typev1 == SMC_TYPE_D ? in smc_clc_send_confirm_accept()
731 ntohs(clc->hdr.length)); in smc_clc_send_confirm_accept()