Lines Matching full:ini

746 		   u8 link_idx, struct smc_init_info *ini)  in smcr_link_init()  argument
753 lnk->smcibdev = ini->smcrv2.ib_dev_v2; in smcr_link_init()
754 lnk->ibport = ini->smcrv2.ib_port_v2; in smcr_link_init()
756 lnk->smcibdev = ini->ib_dev; in smcr_link_init()
757 lnk->ibport = ini->ib_port; in smcr_link_init()
783 ini->vlan_id, lnk->gid, &lnk->sgid_index, in smcr_link_init()
785 &ini->smcrv2 : NULL); in smcr_link_init()
827 static int smc_lgr_create(struct smc_sock *smc, struct smc_init_info *ini) in smc_lgr_create() argument
838 if (ini->is_smcd && ini->vlan_id) { in smc_lgr_create()
839 if (smc_ism_get_vlan(ini->ism_dev[ini->ism_selected], in smc_lgr_create()
840 ini->vlan_id)) { in smc_lgr_create()
857 lgr->is_smcd = ini->is_smcd; in smc_lgr_create()
861 lgr->vlan_id = ini->vlan_id; in smc_lgr_create()
876 if (ini->is_smcd) { in smc_lgr_create()
878 smcd = ini->ism_dev[ini->ism_selected]; in smc_lgr_create()
881 ini->ism_peer_gid[ini->ism_selected].gid; in smc_lgr_create()
883 ini->ism_peer_gid[ini->ism_selected].gid_ext; in smc_lgr_create()
884 lgr->smcd = ini->ism_dev[ini->ism_selected]; in smc_lgr_create()
885 lgr_list = &ini->ism_dev[ini->ism_selected]->lgr_list; in smc_lgr_create()
887 lgr->smc_version = ini->smcd_version; in smc_lgr_create()
889 atomic_inc(&ini->ism_dev[ini->ism_selected]->lgr_cnt); in smc_lgr_create()
896 lgr->smc_version = ini->smcr_version; in smc_lgr_create()
897 memcpy(lgr->peer_systemid, ini->peer_systemid, in smc_lgr_create()
900 ibdev = ini->smcrv2.ib_dev_v2; in smc_lgr_create()
901 ibport = ini->smcrv2.ib_port_v2; in smc_lgr_create()
902 lgr->saddr = ini->smcrv2.saddr; in smc_lgr_create()
903 lgr->uses_gateway = ini->smcrv2.uses_gateway; in smc_lgr_create()
904 memcpy(lgr->nexthop_mac, ini->smcrv2.nexthop_mac, in smc_lgr_create()
906 lgr->max_conns = ini->max_conns; in smc_lgr_create()
907 lgr->max_links = ini->max_links; in smc_lgr_create()
909 ibdev = ini->ib_dev; in smc_lgr_create()
910 ibport = ini->ib_port; in smc_lgr_create()
923 rc = smcr_link_init(lgr, lnk, link_idx, ini); in smc_lgr_create()
945 if (ini->is_smcd && ini->vlan_id) in smc_lgr_create()
946 smc_ism_put_vlan(ini->ism_dev[ini->ism_selected], ini->vlan_id); in smc_lgr_create()
1828 int smc_vlan_by_tcpsk(struct socket *clcsock, struct smc_init_info *ini) in smc_vlan_by_tcpsk() argument
1835 ini->vlan_id = 0; in smc_vlan_by_tcpsk()
1847 ini->vlan_id = vlan_dev_vlan_id(ndev); in smc_vlan_by_tcpsk()
1851 priv.data = (void *)&ini->vlan_id; in smc_vlan_by_tcpsk()
1909 int smc_conn_create(struct smc_sock *smc, struct smc_init_info *ini) in smc_conn_create() argument
1919 lgr_list = ini->is_smcd ? &ini->ism_dev[ini->ism_selected]->lgr_list : in smc_conn_create()
1921 lgr_lock = ini->is_smcd ? &ini->ism_dev[ini->ism_selected]->lgr_lock : in smc_conn_create()
1923 ini->first_contact_local = 1; in smc_conn_create()
1925 if (role == SMC_CLNT && ini->first_contact_peer) in smc_conn_create()
1933 if ((ini->is_smcd ? in smc_conn_create()
1934 smcd_lgr_match(lgr, ini->ism_dev[ini->ism_selected], in smc_conn_create()
1935 &ini->ism_peer_gid[ini->ism_selected]) : in smc_conn_create()
1936 smcr_lgr_match(lgr, ini->smcr_version, in smc_conn_create()
1937 ini->peer_systemid, in smc_conn_create()
1938 ini->peer_gid, ini->peer_mac, role, in smc_conn_create()
1939 ini->ib_clcqpn, net)) && in smc_conn_create()
1941 (ini->smcd_version == SMC_V2 || in smc_conn_create()
1942 lgr->vlan_id == ini->vlan_id) && in smc_conn_create()
1943 (role == SMC_CLNT || ini->is_smcd || in smc_conn_create()
1947 ini->first_contact_local = 0; in smc_conn_create()
1961 if (role == SMC_CLNT && !ini->first_contact_peer && in smc_conn_create()
1962 ini->first_contact_local) { in smc_conn_create()
1971 if (ini->first_contact_local) { in smc_conn_create()
1972 rc = smc_lgr_create(smc, ini); in smc_conn_create()
1993 if (ini->is_smcd) { in smc_conn_create()