Home
last modified time | relevance | path

Searched refs:ibdev (Results 1 – 8 of 8) sorted by relevance

/net/smc/
Dsmc_pnet.c105 struct smc_ib_device *ibdev; in smc_pnet_remove_by_pnetid() local
143 list_for_each_entry(ibdev, &smc_ib_devices.list, list) { in smc_pnet_remove_by_pnetid()
145 if (ibdev->pnetid_by_user[ibport] && in smc_pnet_remove_by_pnetid()
148 ibdev->pnetid[ibport]))) { in smc_pnet_remove_by_pnetid()
152 ibdev->ibdev->name, in smc_pnet_remove_by_pnetid()
154 ibdev->pnetid[ibport]); in smc_pnet_remove_by_pnetid()
155 memset(ibdev->pnetid[ibport], 0, in smc_pnet_remove_by_pnetid()
157 ibdev->pnetid_by_user[ibport] = false; in smc_pnet_remove_by_pnetid()
309 struct smc_ib_device *ibdev; in smc_pnet_find_ib() local
312 list_for_each_entry(ibdev, &smc_ib_devices.list, list) { in smc_pnet_find_ib()
[all …]
Dsmc_ib.c160 attr = rdma_get_gid_attr(smcibdev->ibdev, ibport, 0); in smc_ib_fill_mac()
278 attr = rdma_get_gid_attr(smcibdev->ibdev, ibport, i); in smc_ib_determine_gid()
310 attr = rdma_get_gid_attr(smcibdev->ibdev, ibport, i); in smc_ib_check_link_gid()
359 rc = ib_query_port(smcibdev->ibdev, ibport, in smc_ib_remember_port_attr()
457 lnk->roce_pd = ib_alloc_pd(lnk->smcibdev->ibdev, 0); in smc_ib_create_protection_domain()
492 struct ib_device *ibdev, in smc_nl_handle_dev_port() argument
570 if (smcibdev->ibdev->dev.parent) { in smc_nl_handle_smcr_dev()
572 pci_dev = to_pci_dev(smcibdev->ibdev->dev.parent); in smc_nl_handle_smcr_dev()
577 snprintf(smc_ibname, sizeof(smc_ibname), "%s", smcibdev->ibdev->name); in smc_nl_handle_smcr_dev()
581 if (!rdma_is_port_valid(smcibdev->ibdev, i)) in smc_nl_handle_smcr_dev()
[all …]
Dsmc_wr.c639 struct ib_device *ibdev; in smc_wr_free_link() local
643 ibdev = lnk->smcibdev->ibdev; in smc_wr_free_link()
654 ib_dma_unmap_single(ibdev, lnk->wr_rx_dma_addr, in smc_wr_free_link()
660 ib_dma_unmap_single(ibdev, lnk->wr_rx_v2_dma_addr, in smc_wr_free_link()
666 ib_dma_unmap_single(ibdev, lnk->wr_tx_dma_addr, in smc_wr_free_link()
672 ib_dma_unmap_single(ibdev, lnk->wr_tx_v2_dma_addr, in smc_wr_free_link()
852 struct ib_device *ibdev = lnk->smcibdev->ibdev; in smc_wr_create_link() local
858 ibdev, lnk->wr_rx_bufs, SMC_WR_BUF_SIZE * lnk->wr_rx_cnt, in smc_wr_create_link()
860 if (ib_dma_mapping_error(ibdev, lnk->wr_rx_dma_addr)) { in smc_wr_create_link()
866 lnk->wr_rx_v2_dma_addr = ib_dma_map_single(ibdev, in smc_wr_create_link()
[all …]
Dsmc_ib.h37 struct ib_device *ibdev; member
74 if (smcibdev && smcibdev->ibdev) in smc_ib_net()
75 return read_pnet(&smcibdev->ibdev->coredev.rdma_net); in smc_ib_net()
Dsmc_diag.c156 memcpy(linfo.lnk[0].ibname, link->smcibdev->ibdev->name, in __smc_diag_dump()
157 sizeof(link->smcibdev->ibdev->name)); in __smc_diag_dump()
Dsmc_core.c734 smcibdev->ibdev->name); in smcr_copy_dev_info_to_link()
752 get_device(&lnk->smcibdev->ibdev->dev); in smcr_link_init()
809 put_device(&lnk->smcibdev->ibdev->dev); in smcr_link_init()
880 struct smc_ib_device *ibdev; in smc_lgr_create() local
888 ibdev = ini->smcrv2.ib_dev_v2; in smc_lgr_create()
895 ibdev = ini->ib_dev; in smc_lgr_create()
898 memcpy(lgr->pnet_id, ibdev->pnetid[ibport - 1], in smc_lgr_create()
1254 put_device(&lnk->smcibdev->ibdev->dev); in __smcr_link_clear()
1661 !rdma_dev_access_netns(smcibdev->ibdev, lgr->net)) in smcr_port_add()
1836 if (!rdma_dev_access_netns(lnk->smcibdev->ibdev, net)) in smcr_lgr_match()
Dsmc_llc.c2166 link->smcibdev->ibdev->name, link->ibport); in smc_llc_link_active()
2185 link->smcibdev->ibdev->name, link->ibport); in smc_llc_link_clear()
/net/devlink/
Dleftover.c1316 struct ib_device *ibdev = devlink_port->type_dev; in devlink_nl_port_fill() local
1318 if (ibdev && in devlink_nl_port_fill()
1320 ibdev->name)) in devlink_nl_port_fill()
10084 struct ib_device *ibdev) in devlink_port_type_ib_set() argument
10086 __devlink_port_type_set(devlink_port, DEVLINK_PORT_TYPE_IB, ibdev); in devlink_port_type_ib_set()