Lines Matching full:ini
789 u8 link_idx, struct smc_init_info *ini) in smcr_link_init() argument
796 lnk->smcibdev = ini->smcrv2.ib_dev_v2; in smcr_link_init()
797 lnk->ibport = ini->smcrv2.ib_port_v2; in smcr_link_init()
799 lnk->smcibdev = ini->ib_dev; in smcr_link_init()
800 lnk->ibport = ini->ib_port; in smcr_link_init()
826 ini->vlan_id, lnk->gid, &lnk->sgid_index, in smcr_link_init()
828 &ini->smcrv2 : NULL); in smcr_link_init()
870 static int smc_lgr_create(struct smc_sock *smc, struct smc_init_info *ini) in smc_lgr_create() argument
881 if (ini->is_smcd && ini->vlan_id) { in smc_lgr_create()
882 if (smc_ism_get_vlan(ini->ism_dev[ini->ism_selected], in smc_lgr_create()
883 ini->vlan_id)) { in smc_lgr_create()
900 lgr->is_smcd = ini->is_smcd; in smc_lgr_create()
904 lgr->vlan_id = ini->vlan_id; in smc_lgr_create()
919 if (ini->is_smcd) { in smc_lgr_create()
921 smcd = ini->ism_dev[ini->ism_selected]; in smc_lgr_create()
924 ini->ism_peer_gid[ini->ism_selected].gid; in smc_lgr_create()
926 ini->ism_peer_gid[ini->ism_selected].gid_ext; in smc_lgr_create()
927 lgr->smcd = ini->ism_dev[ini->ism_selected]; in smc_lgr_create()
928 lgr_list = &ini->ism_dev[ini->ism_selected]->lgr_list; in smc_lgr_create()
930 lgr->smc_version = ini->smcd_version; in smc_lgr_create()
932 atomic_inc(&ini->ism_dev[ini->ism_selected]->lgr_cnt); in smc_lgr_create()
939 lgr->smc_version = ini->smcr_version; in smc_lgr_create()
940 memcpy(lgr->peer_systemid, ini->peer_systemid, in smc_lgr_create()
943 ibdev = ini->smcrv2.ib_dev_v2; in smc_lgr_create()
944 ibport = ini->smcrv2.ib_port_v2; in smc_lgr_create()
945 lgr->saddr = ini->smcrv2.saddr; in smc_lgr_create()
946 lgr->uses_gateway = ini->smcrv2.uses_gateway; in smc_lgr_create()
947 memcpy(lgr->nexthop_mac, ini->smcrv2.nexthop_mac, in smc_lgr_create()
949 lgr->max_conns = ini->max_conns; in smc_lgr_create()
950 lgr->max_links = ini->max_links; in smc_lgr_create()
952 ibdev = ini->ib_dev; in smc_lgr_create()
953 ibport = ini->ib_port; in smc_lgr_create()
966 rc = smcr_link_init(lgr, lnk, link_idx, ini); in smc_lgr_create()
988 if (ini->is_smcd && ini->vlan_id) in smc_lgr_create()
989 smc_ism_put_vlan(ini->ism_dev[ini->ism_selected], ini->vlan_id); in smc_lgr_create()
1874 int smc_vlan_by_tcpsk(struct socket *clcsock, struct smc_init_info *ini) in smc_vlan_by_tcpsk() argument
1881 ini->vlan_id = 0; in smc_vlan_by_tcpsk()
1893 ini->vlan_id = vlan_dev_vlan_id(ndev); in smc_vlan_by_tcpsk()
1897 priv.data = (void *)&ini->vlan_id; in smc_vlan_by_tcpsk()
1955 int smc_conn_create(struct smc_sock *smc, struct smc_init_info *ini) in smc_conn_create() argument
1965 lgr_list = ini->is_smcd ? &ini->ism_dev[ini->ism_selected]->lgr_list : in smc_conn_create()
1967 lgr_lock = ini->is_smcd ? &ini->ism_dev[ini->ism_selected]->lgr_lock : in smc_conn_create()
1969 ini->first_contact_local = 1; in smc_conn_create()
1971 if (role == SMC_CLNT && ini->first_contact_peer) in smc_conn_create()
1979 if ((ini->is_smcd ? in smc_conn_create()
1980 smcd_lgr_match(lgr, ini->ism_dev[ini->ism_selected], in smc_conn_create()
1981 &ini->ism_peer_gid[ini->ism_selected]) : in smc_conn_create()
1982 smcr_lgr_match(lgr, ini->smcr_version, in smc_conn_create()
1983 ini->peer_systemid, in smc_conn_create()
1984 ini->peer_gid, ini->peer_mac, role, in smc_conn_create()
1985 ini->ib_clcqpn, net)) && in smc_conn_create()
1987 (ini->smcd_version == SMC_V2 || in smc_conn_create()
1988 lgr->vlan_id == ini->vlan_id) && in smc_conn_create()
1989 (role == SMC_CLNT || ini->is_smcd || in smc_conn_create()
1993 ini->first_contact_local = 0; in smc_conn_create()
2007 if (role == SMC_CLNT && !ini->first_contact_peer && in smc_conn_create()
2008 ini->first_contact_local) { in smc_conn_create()
2017 if (ini->first_contact_local) { in smc_conn_create()
2018 rc = smc_lgr_create(smc, ini); in smc_conn_create()
2039 if (ini->is_smcd) { in smc_conn_create()