Lines Matching full:ini
432 struct smc_init_info *ini) in smc_clc_fill_fce_v2x() argument
438 fce_v2x->fce_v2_base.release = ini->release_nr; in smc_clc_fill_fce_v2x()
441 if (ini->is_smcd && ini->release_nr < SMC_RELEASE_1) { in smc_clc_fill_fce_v2x()
446 if (ini->release_nr >= SMC_RELEASE_1) { in smc_clc_fill_fce_v2x()
447 if (!ini->is_smcd) { in smc_clc_fill_fce_v2x()
448 fce_v2x->max_conns = ini->max_conns; in smc_clc_fill_fce_v2x()
449 fce_v2x->max_links = ini->max_links; in smc_clc_fill_fce_v2x()
451 fce_v2x->feature_mask = htons(ini->feature_mask); in smc_clc_fill_fce_v2x()
830 int smc_clc_send_proposal(struct smc_sock *smc, struct smc_init_info *ini) in smc_clc_send_proposal() argument
864 pclc_base->hdr.typev1 = ini->smc_type_v1; in smc_clc_send_proposal()
865 pclc_base->hdr.typev2 = ini->smc_type_v2; in smc_clc_send_proposal()
869 if (ini->smc_type_v1 != SMC_TYPE_N) { in smc_clc_send_proposal()
872 if (ini->smc_type_v2 == SMC_TYPE_N) { in smc_clc_send_proposal()
889 if (smcr_indicated(ini->smc_type_v1)) { in smc_clc_send_proposal()
893 memcpy(pclc_base->lcl.gid, ini->ib_gid, SMC_GID_SIZE); in smc_clc_send_proposal()
894 memcpy(pclc_base->lcl.mac, &ini->ib_dev->mac[ini->ib_port - 1], in smc_clc_send_proposal()
897 if (smcd_indicated(ini->smc_type_v1)) { in smc_clc_send_proposal()
901 if (ini->ism_dev[0]) { in smc_clc_send_proposal()
902 smcd = ini->ism_dev[0]; in smc_clc_send_proposal()
906 htons(smc_ism_get_chid(ini->ism_dev[0])); in smc_clc_send_proposal()
909 if (ini->smc_type_v2 == SMC_TYPE_N) { in smc_clc_send_proposal()
918 if (ini->smc_type_v1 != SMC_TYPE_N) in smc_clc_send_proposal()
936 if (smcd_indicated(ini->smc_type_v2)) { in smc_clc_send_proposal()
950 if (ini->ism_offered_cnt) { in smc_clc_send_proposal()
951 for (i = 1; i <= ini->ism_offered_cnt; i++) { in smc_clc_send_proposal()
952 smcd = ini->ism_dev[i]; in smc_clc_send_proposal()
955 htons(smc_ism_get_chid(ini->ism_dev[i])); in smc_clc_send_proposal()
974 if (smcr_indicated(ini->smc_type_v2)) { in smc_clc_send_proposal()
975 memcpy(v2_ext->roce, ini->smcrv2.ib_gid_v2, SMC_GID_SIZE); in smc_clc_send_proposal()
990 if (ini->smc_type_v1 != SMC_TYPE_N) { in smc_clc_send_proposal()
999 if (ini->smc_type_v2 != SMC_TYPE_N) { in smc_clc_send_proposal()
1003 if (smcd_indicated(ini->smc_type_v2)) { in smc_clc_send_proposal()
1006 if (ini->ism_offered_cnt) { in smc_clc_send_proposal()
1033 u8 *eid, struct smc_init_info *ini, in smcd_clc_prep_confirm_accept() argument
1064 *fce_len = smc_clc_fill_fce_v2x(fce_v2x, ini); in smcd_clc_prep_confirm_accept()
1077 u8 *eid, struct smc_init_info *ini, in smcr_clc_prep_confirm_accept() argument
1121 *fce_len = smc_clc_fill_fce_v2x(fce_v2x, ini); in smcr_clc_prep_confirm_accept()
1127 gle->gid_cnt = ini->smcrv2.gidlist.len; in smcr_clc_prep_confirm_accept()
1141 u8 *eid, struct smc_init_info *ini) in smc_clc_send_confirm_accept() argument
1157 version, eid, ini, &fce_len, in smc_clc_send_confirm_accept()
1161 version, eid, ini, &fce_len, in smc_clc_send_confirm_accept()
1183 vec[i].iov_base = &ini->smcrv2.gidlist.list; in smc_clc_send_confirm_accept()
1197 u8 version, u8 *eid, struct smc_init_info *ini) in smc_clc_send_confirm() argument
1207 version, eid, ini); in smc_clc_send_confirm()
1222 u8 version, u8 *negotiated_eid, struct smc_init_info *ini) in smc_clc_send_accept() argument
1230 version, negotiated_eid, ini); in smc_clc_send_accept()
1239 struct smc_init_info *ini) in smc_clc_srv_v2x_features_validate() argument
1244 ini->max_conns = SMC_CONN_PER_LGR_MAX; in smc_clc_srv_v2x_features_validate()
1245 ini->max_links = SMC_LINKS_ADD_LNK_MAX; in smc_clc_srv_v2x_features_validate()
1246 ini->feature_mask = SMC_FEATURE_MASK; in smc_clc_srv_v2x_features_validate()
1248 if ((!(ini->smcd_version & SMC_V2) && !(ini->smcr_version & SMC_V2)) || in smc_clc_srv_v2x_features_validate()
1249 ini->release_nr < SMC_RELEASE_1) in smc_clc_srv_v2x_features_validate()
1256 if (ini->smcr_version & SMC_V2) { in smc_clc_srv_v2x_features_validate()
1257 ini->max_conns = min_t(u8, pclc_v2_ext->max_conns, in smc_clc_srv_v2x_features_validate()
1259 if (ini->max_conns < SMC_CONN_PER_LGR_MIN) in smc_clc_srv_v2x_features_validate()
1262 ini->max_links = min_t(u8, pclc_v2_ext->max_links, in smc_clc_srv_v2x_features_validate()
1264 if (ini->max_links < SMC_LINKS_ADD_LNK_MIN) in smc_clc_srv_v2x_features_validate()
1272 struct smc_init_info *ini) in smc_clc_clnt_v2x_features_validate() argument
1277 if (ini->release_nr < SMC_RELEASE_1) in smc_clc_clnt_v2x_features_validate()
1280 if (!ini->is_smcd) { in smc_clc_clnt_v2x_features_validate()
1283 ini->max_conns = fce_v2x->max_conns; in smc_clc_clnt_v2x_features_validate()
1288 ini->max_links = fce_v2x->max_links; in smc_clc_clnt_v2x_features_validate()
1291 ini->feature_mask = ntohs(fce_v2x->feature_mask) & SMC_FEATURE_MASK; in smc_clc_clnt_v2x_features_validate()
1297 struct smc_init_info *ini) in smc_clc_v2x_features_confirm_check() argument
1300 smc_get_clc_first_contact_ext(cclc, ini->is_smcd); in smc_clc_v2x_features_confirm_check()
1308 if (ini->release_nr != fce->release) in smc_clc_v2x_features_confirm_check()
1314 if (!ini->is_smcd) { in smc_clc_v2x_features_confirm_check()
1315 if (fce_v2x->max_conns != ini->max_conns) in smc_clc_v2x_features_confirm_check()
1317 if (fce_v2x->max_links != ini->max_links) in smc_clc_v2x_features_confirm_check()
1321 ini->feature_mask = ntohs(fce_v2x->feature_mask); in smc_clc_v2x_features_confirm_check()