Lines Matching full:ini

942 				 struct smc_init_info *ini,  in smc_llc_cli_conf_link()  argument
1035 struct smc_init_info *ini = NULL; in smc_llc_cli_add_link() local
1042 ini = kzalloc(sizeof(*ini), GFP_KERNEL); in smc_llc_cli_add_link()
1043 if (!ini) { in smc_llc_cli_add_link()
1053 ini->vlan_id = lgr->vlan_id; in smc_llc_cli_add_link()
1055 ini->check_smcrv2 = true; in smc_llc_cli_add_link()
1056 ini->smcrv2.saddr = lgr->saddr; in smc_llc_cli_add_link()
1057 ini->smcrv2.daddr = smc_ib_gid_to_ipv4(llc->sender_gid); in smc_llc_cli_add_link()
1059 smc_pnet_find_alt_roce(lgr, ini, link->smcibdev); in smc_llc_cli_add_link()
1063 if (!ini->ib_dev && !ini->smcrv2.ib_dev_v2) in smc_llc_cli_add_link()
1067 if (lgr->smc_version == SMC_V2 && !ini->smcrv2.ib_dev_v2) { in smc_llc_cli_add_link()
1069 ini->smcrv2.ib_dev_v2 = link->smcibdev; in smc_llc_cli_add_link()
1070 ini->smcrv2.ib_port_v2 = link->ibport; in smc_llc_cli_add_link()
1071 } else if (lgr->smc_version < SMC_V2 && !ini->ib_dev) { in smc_llc_cli_add_link()
1073 ini->ib_dev = link->smcibdev; in smc_llc_cli_add_link()
1074 ini->ib_port = link->ibport; in smc_llc_cli_add_link()
1080 rc = smcr_link_init(lgr, lnk_new, lnk_idx, ini); in smc_llc_cli_add_link()
1109 rc = smc_llc_cli_conf_link(link, ini, lnk_new, lgr_new_t); in smc_llc_cli_add_link()
1118 kfree(ini); in smc_llc_cli_add_link()
1166 struct smc_init_info *ini = NULL; in smc_llc_cli_add_link_invite() local
1180 ini = kzalloc(sizeof(*ini), GFP_KERNEL); in smc_llc_cli_add_link_invite()
1181 if (!ini) in smc_llc_cli_add_link_invite()
1184 ini->vlan_id = lgr->vlan_id; in smc_llc_cli_add_link_invite()
1185 smc_pnet_find_alt_roce(lgr, ini, link->smcibdev); in smc_llc_cli_add_link_invite()
1186 if (!ini->ib_dev) in smc_llc_cli_add_link_invite()
1189 smc_llc_send_add_link(link, ini->ib_dev->mac[ini->ib_port - 1], in smc_llc_cli_add_link_invite()
1190 ini->ib_gid, NULL, SMC_LLC_REQ); in smc_llc_cli_add_link_invite()
1192 kfree(ini); in smc_llc_cli_add_link_invite()
1412 struct smc_init_info *ini = NULL; in smc_llc_srv_add_link() local
1419 ini = kzalloc(sizeof(*ini), GFP_KERNEL); in smc_llc_srv_add_link()
1420 if (!ini) { in smc_llc_srv_add_link()
1431 ini->vlan_id = lgr->vlan_id; in smc_llc_srv_add_link()
1433 ini->check_smcrv2 = true; in smc_llc_srv_add_link()
1434 ini->smcrv2.saddr = lgr->saddr; in smc_llc_srv_add_link()
1439 ini->smcrv2.daddr = smc_ib_gid_to_ipv4(req_add->gid[0]); in smc_llc_srv_add_link()
1442 smc_pnet_find_alt_roce(lgr, ini, link->smcibdev); in smc_llc_srv_add_link()
1443 if (lgr->smc_version == SMC_V2 && !ini->smcrv2.ib_dev_v2) { in smc_llc_srv_add_link()
1445 ini->smcrv2.ib_dev_v2 = link->smcibdev; in smc_llc_srv_add_link()
1446 ini->smcrv2.ib_port_v2 = link->ibport; in smc_llc_srv_add_link()
1447 } else if (lgr->smc_version < SMC_V2 && !ini->ib_dev) { in smc_llc_srv_add_link()
1449 ini->ib_dev = link->smcibdev; in smc_llc_srv_add_link()
1450 ini->ib_port = link->ibport; in smc_llc_srv_add_link()
1458 rc = smcr_link_init(lgr, &lgr->lnk[lnk_idx], lnk_idx, ini); in smc_llc_srv_add_link()
1510 kfree(ini); in smc_llc_srv_add_link()
1518 kfree(ini); in smc_llc_srv_add_link()