Home
last modified time | relevance | path

Searched refs:ib_dev (Results 1 – 6 of 6) sorted by relevance

/net/smc/
Dsmc_pnet.c245 static bool smc_pnet_apply_ib(struct smc_ib_device *ib_dev, u8 ib_port, in smc_pnet_apply_ib() argument
251 if (!smc_pnet_is_pnetid_set(ib_dev->pnetid[ib_port - 1])) { in smc_pnet_apply_ib()
252 memcpy(ib_dev->pnetid[ib_port - 1], pnet_name, in smc_pnet_apply_ib()
254 ib_dev->pnetid_by_user[ib_port - 1] = true; in smc_pnet_apply_ib()
406 struct smc_ib_device *ib_dev; in smc_pnet_add_ib() local
413 ib_dev = smc_pnet_find_ib(ib_name); in smc_pnet_add_ib()
414 if (ib_dev) { in smc_pnet_add_ib()
415 ibdev_applied = smc_pnet_apply_ib(ib_dev, ib_port, pnet_name); in smc_pnet_add_ib()
419 "%.16s\n", ib_dev->ibdev->name, in smc_pnet_add_ib()
421 ib_dev->pnetid[ib_port - 1]); in smc_pnet_add_ib()
[all …]
Dsmc_core.c696 get_device(&ini->ib_dev->ibdev->dev); in smcr_link_init()
697 atomic_inc(&ini->ib_dev->lnk_cnt); in smcr_link_init()
701 lnk->smcibdev = ini->ib_dev; in smcr_link_init()
705 lnk->path_mtu = ini->ib_dev->pattr[ini->ib_port - 1].active_mtu; in smcr_link_init()
709 if (!ini->ib_dev->initialized) { in smcr_link_init()
710 rc = (int)smc_ib_setup_per_ibdev(ini->ib_dev); in smcr_link_init()
749 put_device(&ini->ib_dev->ibdev->dev); in smcr_link_init()
752 if (!atomic_dec_return(&ini->ib_dev->lnk_cnt)) in smcr_link_init()
753 wake_up(&ini->ib_dev->lnks_deleted); in smcr_link_init()
820 memcpy(lgr->pnet_id, ini->ib_dev->pnetid[ini->ib_port - 1], in smc_lgr_create()
Dsmc_llc.c884 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()
948 if (!ini.ib_dev) in smc_llc_cli_add_link_invite()
951 smc_llc_send_add_link(link, ini.ib_dev->mac[ini.ib_port - 1], in smc_llc_cli_add_link_invite()
1168 if (!ini.ib_dev) { in smc_llc_srv_add_link()
1170 ini.ib_dev = link->smcibdev; in smc_llc_srv_add_link()
Dsmc_core.h315 struct smc_ib_device *ib_dev; member
Dsmc_clc.c540 memcpy(pclc_base->lcl.mac, &ini->ib_dev->mac[ini->ib_port - 1], in smc_clc_send_proposal()
Daf_smc.c768 if (!ini->ib_dev) in smc_find_rdma_device()