Lines Matching refs:dev_list
360 struct ibv_device **dev_list; in rdmasniff_create() local
370 dev_list = ibv_get_device_list(&numdev); in rdmasniff_create()
371 if (!dev_list || !numdev) { in rdmasniff_create()
390 if (strlen(dev_list[i]->name) == namelen && in rdmasniff_create()
391 !strncmp(device, dev_list[i]->name, namelen)) { in rdmasniff_create()
398 priv->rdma_device = dev_list[i]; in rdmasniff_create()
405 ibv_free_device_list(dev_list); in rdmasniff_create()
412 struct ibv_device **dev_list; in rdmasniff_findalldevs() local
417 dev_list = ibv_get_device_list(&numdev); in rdmasniff_findalldevs()
418 if (!dev_list || !numdev) { in rdmasniff_findalldevs()
427 if (!add_dev(devlistp, dev_list[i]->name, 0, "RDMA sniffer", err_str)) { in rdmasniff_findalldevs()
434 ibv_free_device_list(dev_list); in rdmasniff_findalldevs()