Lines Matching refs:ibdev
149 attr = rdma_get_gid_attr(smcibdev->ibdev, ibport, 0); in smc_ib_fill_mac()
194 attr = rdma_get_gid_attr(smcibdev->ibdev, ibport, i); in smc_ib_determine_gid()
225 rc = ib_query_port(smcibdev->ibdev, ibport, in smc_ib_remember_port_attr()
322 lnk->roce_pd = ib_alloc_pd(lnk->smcibdev->ibdev, 0); in smc_ib_create_protection_domain()
444 ib_dma_sync_single_for_cpu(lnk->smcibdev->ibdev, in smc_ib_sync_sg_for_cpu()
464 ib_dma_sync_single_for_device(lnk->smcibdev->ibdev, in smc_ib_sync_sg_for_device()
478 mapped_nents = ib_dma_map_sg(lnk->smcibdev->ibdev, in smc_ib_buf_map_sg()
495 ib_dma_unmap_sg(lnk->smcibdev->ibdev, in smc_ib_buf_unmap_sg()
518 smcibdev->roce_cq_send = ib_create_cq(smcibdev->ibdev, in smc_ib_setup_per_ibdev()
526 smcibdev->roce_cq_recv = ib_create_cq(smcibdev->ibdev, in smc_ib_setup_per_ibdev()
561 static int smc_ib_add_dev(struct ib_device *ibdev) in smc_ib_add_dev() argument
567 if (ibdev->node_type != RDMA_NODE_IB_CA) in smc_ib_add_dev()
574 smcibdev->ibdev = ibdev; in smc_ib_add_dev()
582 ib_set_client_data(ibdev, &smc_ib_client, smcibdev); in smc_ib_add_dev()
583 INIT_IB_EVENT_HANDLER(&smcibdev->event_handler, smcibdev->ibdev, in smc_ib_add_dev()
588 port_cnt = smcibdev->ibdev->phys_port_cnt; in smc_ib_add_dev()
590 smcibdev->ibdev->name, port_cnt); in smc_ib_add_dev()
596 if (smc_pnetid_by_dev_port(ibdev->dev.parent, i, in smc_ib_add_dev()
601 smcibdev->ibdev->name, i + 1, in smc_ib_add_dev()
612 static void smc_ib_remove_dev(struct ib_device *ibdev, void *client_data) in smc_ib_remove_dev() argument
620 smcibdev->ibdev->name); in smc_ib_remove_dev()