Searched refs:ini (Results 1 – 8 of 8) sorted by relevance
/net/smc/ |
D | af_smc.c | 596 static int smc_find_rdma_device(struct smc_sock *smc, struct smc_init_info *ini) in smc_find_rdma_device() argument 602 smc_pnet_find_roce_resource(smc->clcsock->sk, ini); in smc_find_rdma_device() 603 if (!ini->ib_dev) in smc_find_rdma_device() 610 static int smc_find_ism_device(struct smc_sock *smc, struct smc_init_info *ini) in smc_find_ism_device() argument 613 smc_pnet_find_ism_resource(smc->clcsock->sk, ini); in smc_find_ism_device() 614 if (!ini->ism_dev[0]) in smc_find_ism_device() 617 ini->ism_chid[0] = smc_ism_get_chid(ini->ism_dev[0]); in smc_find_ism_device() 622 static bool smc_find_ism_v2_is_unique_chid(u16 chid, struct smc_init_info *ini, in smc_find_ism_v2_is_unique_chid() argument 625 int i = (!ini->ism_dev[0]) ? 1 : 0; in smc_find_ism_v2_is_unique_chid() 628 if (ini->ism_chid[i] == chid) in smc_find_ism_v2_is_unique_chid() [all …]
|
D | smc_core.c | 304 u8 link_idx, struct smc_init_info *ini) in smcr_link_init() argument 309 get_device(&ini->ib_dev->ibdev->dev); in smcr_link_init() 310 atomic_inc(&ini->ib_dev->lnk_cnt); in smcr_link_init() 314 lnk->smcibdev = ini->ib_dev; in smcr_link_init() 315 lnk->ibport = ini->ib_port; in smcr_link_init() 316 lnk->path_mtu = ini->ib_dev->pattr[ini->ib_port - 1].active_mtu; in smcr_link_init() 319 if (!ini->ib_dev->initialized) { in smcr_link_init() 320 rc = (int)smc_ib_setup_per_ibdev(ini->ib_dev); in smcr_link_init() 328 ini->vlan_id, lnk->gid, &lnk->sgid_index); in smcr_link_init() 358 put_device(&ini->ib_dev->ibdev->dev); in smcr_link_init() [all …]
|
D | smc_clc.c | 480 int smc_clc_send_proposal(struct smc_sock *smc, struct smc_init_info *ini) in smc_clc_send_proposal() argument 510 pclc_base->hdr.typev1 = ini->smc_type_v1; in smc_clc_send_proposal() 511 pclc_base->hdr.typev2 = ini->smc_type_v2; in smc_clc_send_proposal() 515 if (ini->smc_type_v1 != SMC_TYPE_N) { in smc_clc_send_proposal() 518 if (ini->smc_type_v2 == SMC_TYPE_N) { in smc_clc_send_proposal() 535 if (smcr_indicated(ini->smc_type_v1)) { in smc_clc_send_proposal() 539 memcpy(pclc_base->lcl.gid, ini->ib_gid, SMC_GID_SIZE); in smc_clc_send_proposal() 540 memcpy(pclc_base->lcl.mac, &ini->ib_dev->mac[ini->ib_port - 1], in smc_clc_send_proposal() 543 if (smcd_indicated(ini->smc_type_v1)) { in smc_clc_send_proposal() 545 if (ini->ism_dev[0]) { in smc_clc_send_proposal() [all …]
|
D | smc_pnet.c | 958 struct smc_init_info *ini, in _smc_pnet_find_roce_by_pnetid() argument 964 ini->ib_dev = NULL; in _smc_pnet_find_roce_by_pnetid() 975 !smc_ib_determine_gid(ibdev, i, ini->vlan_id, in _smc_pnet_find_roce_by_pnetid() 976 ini->ib_gid, NULL)) { in _smc_pnet_find_roce_by_pnetid() 977 ini->ib_dev = ibdev; in _smc_pnet_find_roce_by_pnetid() 978 ini->ib_port = i; in _smc_pnet_find_roce_by_pnetid() 989 struct smc_init_info *ini, in smc_pnet_find_alt_roce() argument 992 _smc_pnet_find_roce_by_pnetid(lgr->pnet_id, ini, known_dev); in smc_pnet_find_alt_roce() 999 struct smc_init_info *ini) in smc_pnet_find_rdma_dev() argument 1020 !smc_ib_determine_gid(ibdev, i, ini->vlan_id, in smc_pnet_find_rdma_dev() [all …]
|
D | smc_pnet.h | 61 void smc_pnet_find_roce_resource(struct sock *sk, struct smc_init_info *ini); 62 void smc_pnet_find_ism_resource(struct sock *sk, struct smc_init_info *ini); 66 struct smc_init_info *ini,
|
D | smc_llc.c | 800 struct smc_init_info *ini, in smc_llc_cli_conf_link() argument 874 struct smc_init_info ini; in smc_llc_cli_add_link() local 880 ini.vlan_id = lgr->vlan_id; in smc_llc_cli_add_link() 881 smc_pnet_find_alt_roce(lgr, &ini, link->smcibdev); in smc_llc_cli_add_link() 884 if (!ini.ib_dev) in smc_llc_cli_add_link() 888 if (!ini.ib_dev) { in smc_llc_cli_add_link() 890 ini.ib_dev = link->smcibdev; in smc_llc_cli_add_link() 891 ini.ib_port = link->ibport; in smc_llc_cli_add_link() 897 rc = smcr_link_init(lgr, lnk_new, lnk_idx, &ini); in smc_llc_cli_add_link() 913 lnk_new->smcibdev->mac[ini.ib_port - 1], in smc_llc_cli_add_link() [all …]
|
D | smc_core.h | 399 int smc_vlan_by_tcpsk(struct socket *clcsock, struct smc_init_info *ini); 402 int smc_conn_create(struct smc_sock *smc, struct smc_init_info *ini); 408 u8 link_idx, struct smc_init_info *ini);
|
D | smc_clc.h | 326 int smc_clc_send_proposal(struct smc_sock *smc, struct smc_init_info *ini);
|