Lines Matching full:ini
479 int smc_clc_send_proposal(struct smc_sock *smc, struct smc_init_info *ini) in smc_clc_send_proposal() argument
509 pclc_base->hdr.typev1 = ini->smc_type_v1; in smc_clc_send_proposal()
510 pclc_base->hdr.typev2 = ini->smc_type_v2; in smc_clc_send_proposal()
514 if (ini->smc_type_v1 != SMC_TYPE_N) { in smc_clc_send_proposal()
517 if (ini->smc_type_v2 == SMC_TYPE_N) { in smc_clc_send_proposal()
534 if (smcr_indicated(ini->smc_type_v1)) { in smc_clc_send_proposal()
538 memcpy(pclc_base->lcl.gid, ini->ib_gid, SMC_GID_SIZE); in smc_clc_send_proposal()
539 memcpy(pclc_base->lcl.mac, &ini->ib_dev->mac[ini->ib_port - 1], in smc_clc_send_proposal()
542 if (smcd_indicated(ini->smc_type_v1)) { in smc_clc_send_proposal()
544 if (ini->ism_dev[0]) { in smc_clc_send_proposal()
545 pclc_smcd->ism.gid = htonll(ini->ism_dev[0]->local_gid); in smc_clc_send_proposal()
547 htons(smc_ism_get_chid(ini->ism_dev[0])); in smc_clc_send_proposal()
550 if (ini->smc_type_v2 == SMC_TYPE_N) { in smc_clc_send_proposal()
558 if (ini->smc_type_v1 != SMC_TYPE_N) in smc_clc_send_proposal()
564 v2_ext->hdr.ism_gid_cnt = ini->ism_offered_cnt; in smc_clc_send_proposal()
571 if (ini->ism_dev[0]) in smc_clc_send_proposal()
572 smc_ism_get_system_eid(ini->ism_dev[0], &eid); in smc_clc_send_proposal()
574 smc_ism_get_system_eid(ini->ism_dev[1], &eid); in smc_clc_send_proposal()
578 if (ini->ism_offered_cnt) { in smc_clc_send_proposal()
579 for (i = 1; i <= ini->ism_offered_cnt; i++) { in smc_clc_send_proposal()
581 htonll(ini->ism_dev[i]->local_gid); in smc_clc_send_proposal()
583 htons(smc_ism_get_chid(ini->ism_dev[i])); in smc_clc_send_proposal()
585 plen += ini->ism_offered_cnt * in smc_clc_send_proposal()
599 if (ini->smc_type_v1 != SMC_TYPE_N) { in smc_clc_send_proposal()
608 if (ini->smc_type_v2 != SMC_TYPE_N) { in smc_clc_send_proposal()
613 if (ini->ism_offered_cnt) { in smc_clc_send_proposal()
615 vec[i++].iov_len = ini->ism_offered_cnt * in smc_clc_send_proposal()