• Home
  • Raw
  • Download

Lines Matching refs:ibdev

104 	struct smc_ib_device *ibdev;  in smc_pnet_remove_by_pnetid()  local
141 list_for_each_entry(ibdev, &smc_ib_devices.list, list) { in smc_pnet_remove_by_pnetid()
143 if (ibdev->pnetid_by_user[ibport] && in smc_pnet_remove_by_pnetid()
146 ibdev->pnetid[ibport]))) { in smc_pnet_remove_by_pnetid()
150 ibdev->ibdev->name, in smc_pnet_remove_by_pnetid()
152 ibdev->pnetid[ibport]); in smc_pnet_remove_by_pnetid()
153 memset(ibdev->pnetid[ibport], 0, in smc_pnet_remove_by_pnetid()
155 ibdev->pnetid_by_user[ibport] = false; in smc_pnet_remove_by_pnetid()
307 struct smc_ib_device *ibdev; in smc_pnet_find_ib() local
310 list_for_each_entry(ibdev, &smc_ib_devices.list, list) { in smc_pnet_find_ib()
311 if (!strncmp(ibdev->ibdev->name, ib_name, in smc_pnet_find_ib()
312 sizeof(ibdev->ibdev->name)) || in smc_pnet_find_ib()
313 !strncmp(dev_name(ibdev->ibdev->dev.parent), ib_name, in smc_pnet_find_ib()
318 ibdev = NULL; in smc_pnet_find_ib()
321 return ibdev; in smc_pnet_find_ib()
419 "%.16s\n", ib_dev->ibdev->name, in smc_pnet_add_ib()
960 struct smc_ib_device *ibdev; in _smc_pnet_find_roce_by_pnetid() local
965 list_for_each_entry(ibdev, &smc_ib_devices.list, list) { in _smc_pnet_find_roce_by_pnetid()
966 if (ibdev == known_dev) in _smc_pnet_find_roce_by_pnetid()
969 if (!rdma_is_port_valid(ibdev->ibdev, i)) in _smc_pnet_find_roce_by_pnetid()
971 if (smc_pnet_match(ibdev->pnetid[i - 1], pnet_id) && in _smc_pnet_find_roce_by_pnetid()
972 smc_ib_port_active(ibdev, i) && in _smc_pnet_find_roce_by_pnetid()
973 !test_bit(i - 1, ibdev->ports_going_away) && in _smc_pnet_find_roce_by_pnetid()
974 !smc_ib_determine_gid(ibdev, i, ini->vlan_id, in _smc_pnet_find_roce_by_pnetid()
976 ini->ib_dev = ibdev; in _smc_pnet_find_roce_by_pnetid()
1000 struct smc_ib_device *ibdev; in smc_pnet_find_rdma_dev() local
1003 list_for_each_entry(ibdev, &smc_ib_devices.list, list) { in smc_pnet_find_rdma_dev()
1008 if (!rdma_is_port_valid(ibdev->ibdev, i)) in smc_pnet_find_rdma_dev()
1010 if (!ibdev->ibdev->ops.get_netdev) in smc_pnet_find_rdma_dev()
1012 ndev = ibdev->ibdev->ops.get_netdev(ibdev->ibdev, i); in smc_pnet_find_rdma_dev()
1017 smc_ib_port_active(ibdev, i) && in smc_pnet_find_rdma_dev()
1018 !test_bit(i - 1, ibdev->ports_going_away) && in smc_pnet_find_rdma_dev()
1019 !smc_ib_determine_gid(ibdev, i, ini->vlan_id, in smc_pnet_find_rdma_dev()
1021 ini->ib_dev = ibdev; in smc_pnet_find_rdma_dev()
1122 char *ib_name = smcibdev->ibdev->name; in smc_pnetid_by_table_ib()