/freebsd-11-stable/contrib/ofed/libibverbs/examples/ |
H A D | device_list.c | 43 struct ibv_device **dev_list; local 46 dev_list = ibv_get_device_list(&num_devices); 47 if (!dev_list) { 57 ibv_get_device_name(dev_list[i]), 58 (unsigned long long) be64toh(ibv_get_device_guid(dev_list[i]))); 61 ibv_free_device_list(dev_list);
|
H A D | asyncwatch.c | 90 struct ibv_device **dev_list; local 123 dev_list = ibv_get_device_list(NULL); 124 if (!dev_list) { 129 for (; dev_list[i]; ++i) { 130 if (!strcmp(ibv_get_device_name(dev_list[i]), ib_devname)) 135 if (!dev_list[i]) { 141 context = ibv_open_device(dev_list[i]); 144 ibv_get_device_name(dev_list[i])); 149 ibv_get_device_name(dev_list[i]), context->async_fd);
|
H A D | devinfo.c | 598 struct ibv_device **dev_list, **orig_dev_list; local 635 dev_list = orig_dev_list = ibv_get_device_list(&num_of_hcas); 636 if (!dev_list) { 644 while (*dev_list) { 645 printf("\t%s\n", ibv_get_device_name(*dev_list)); 646 ++dev_list; 661 dev_list = orig_dev_list = ibv_get_device_list(NULL); 662 if (!dev_list) { 668 while (*dev_list) { 669 if (!strcmp(ibv_get_device_name(*dev_list), ib_devnam [all...] |
H A D | ud_pingpong.c | 554 struct ibv_device **dev_list; local 658 dev_list = ibv_get_device_list(NULL); 659 if (!dev_list) { 665 ib_dev = *dev_list; 672 for (i = 0; dev_list[i]; ++i) 673 if (!strcmp(ibv_get_device_name(dev_list[i]), ib_devname)) 675 ib_dev = dev_list[i]; 856 ibv_free_device_list(dev_list);
|
H A D | uc_pingpong.c | 531 struct ibv_device **dev_list; local 645 dev_list = ibv_get_device_list(NULL); 646 if (!dev_list) { 652 ib_dev = *dev_list; 659 for (i = 0; dev_list[i]; ++i) 660 if (!strcmp(ibv_get_device_name(dev_list[i]), ib_devname)) 662 ib_dev = dev_list[i]; 850 ibv_free_device_list(dev_list);
|
H A D | xsrq_pingpong.c | 105 struct ibv_device **dev_list; local 108 dev_list = ibv_get_device_list(NULL); 109 if (!dev_list) { 115 for (; dev_list[i]; ++i) { 116 if (!strcmp(ibv_get_device_name(dev_list[i]), ib_devname)) 120 if (!dev_list[i]) { 126 ctx.context = ibv_open_device(dev_list[i]); 129 ibv_get_device_name(dev_list[i])); 133 ibv_free_device_list(dev_list);
|
H A D | srq_pingpong.c | 623 struct ibv_device **dev_list; local 760 dev_list = ibv_get_device_list(NULL); 761 if (!dev_list) { 767 ib_dev = *dev_list; 773 for (i = 0; dev_list[i]; ++i) 774 if (!strcmp(ibv_get_device_name(dev_list[i]), ib_devname)) 776 ib_dev = dev_list[i]; 981 ibv_free_device_list(dev_list);
|
H A D | rc_pingpong.c | 686 struct ibv_device **dev_list; local 820 dev_list = ibv_get_device_list(NULL); 821 if (!dev_list) { 827 ib_dev = *dev_list; 834 for (i = 0; dev_list[i]; ++i) 835 if (!strcmp(ibv_get_device_name(dev_list[i]), ib_devname)) 837 ib_dev = dev_list[i]; 1037 ibv_free_device_list(dev_list);
|
/freebsd-11-stable/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_intf.c | 47 static LIST_HEAD(dev_list); 100 list_for_each_entry(priv, &dev_list, dev_list) { 121 list_for_each_entry(priv, &dev_list, dev_list) 206 list_add_tail(&priv->dev_list, &dev_list); 230 list_del(&priv->dev_list);
|
H A D | mlx4.h | 861 struct list_head dev_list; member in struct:mlx4_priv
|
/freebsd-11-stable/contrib/libpcap/ |
H A D | pcap-bt-linux.c | 75 struct hci_dev_list_req *dev_list; local 92 dev_list = malloc(HCI_MAX_DEV * sizeof(*dev_req) + sizeof(*dev_list)); 93 if (!dev_list) 96 HCI_MAX_DEV * sizeof(*dev_req) + sizeof(*dev_list)); 101 dev_list->dev_num = HCI_MAX_DEV; 103 if (ioctl(sock, HCIGETDEVLIST, (void *) dev_list) < 0) 111 dev_req = dev_list->dev_req; 112 for (i = 0; i < dev_list->dev_num; i++, dev_req++) { 134 free(dev_list); [all...] |
H A D | pcap-rdmasniff.c | 360 struct ibv_device **dev_list; local 370 dev_list = ibv_get_device_list(&numdev); 371 if (!dev_list || !numdev) { 390 if (strlen(dev_list[i]->name) == namelen && 391 !strncmp(device, dev_list[i]->name, namelen)) { 398 priv->rdma_device = dev_list[i]; 405 ibv_free_device_list(dev_list); 412 struct ibv_device **dev_list; local 417 dev_list = ibv_get_device_list(&numdev); 418 if (!dev_list || !numde [all...] |
/freebsd-11-stable/contrib/ofed/libibverbs/ |
H A D | init.c | 264 struct ibv_device ***dev_list, 272 new_list = realloc(*dev_list, *list_size * sizeof (struct ibv_device *)); 275 *dev_list = new_list; 278 (*dev_list)[(*num_devices)++] = dev; 263 add_device(struct ibv_device *dev, struct ibv_device ***dev_list, int *num_devices, int *list_size) argument
|
/freebsd-11-stable/sys/ofed/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_main.c | 1089 struct list_head *dev_list; local 1097 dev_list = kmalloc(sizeof *dev_list, GFP_KERNEL); 1098 if (!dev_list) 1101 INIT_LIST_HEAD(dev_list); 1117 list_add_tail(&priv->list, dev_list); 1121 ib_set_client_data(device, &ipoib_client, dev_list); 1128 struct list_head *dev_list = client_data; local 1130 if (!dev_list) 1136 list_for_each_entry_safe(priv, tmp, dev_list, lis 1233 __ipoib_get_net_dev_by_params(struct list_head *dev_list, u8 port, u16 pkey_index, const union ib_gid *gid, const struct sockaddr *addr, struct net_device **net_dev) argument 1261 struct list_head *dev_list = client_data; local [all...] |
/freebsd-11-stable/contrib/ofed/librdmacm/ |
H A D | cma.c | 190 struct ibv_device **dev_list = NULL; local 208 dev_list = ibv_get_device_list(&dev_cnt); 209 if (!dev_list) { 225 for (i = 0; dev_list[i]; i++) 226 cma_dev_array[i].guid = ibv_get_device_guid(dev_list[i]); 231 ibv_free_device_list(dev_list); 235 ibv_free_device_list(dev_list); 244 struct ibv_device **dev_list; local 248 dev_list = ibv_get_device_list(NULL); 249 if (!dev_list) { [all...] |
/freebsd-11-stable/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_main.c | 87 static LIST_HEAD(dev_list); 770 list_add_tail(&priv->dev_list, &dev_list); 787 list_del(&priv->dev_list); 800 list_for_each_entry(priv, &dev_list, dev_list) 813 list_for_each_entry(priv, &dev_list, dev_list)
|
/freebsd-11-stable/stand/kshim/ |
H A D | bsd_kernel.c | 717 pp_dev = mod->devclass_pp[0]->dev_list; 744 mod->devclass_pp[0]->dev_list[dev->dev_unit] = NULL; 1065 if (dc->dev_list[max_unit]) { 1078 NULL : dc->dev_list[unit]);
|
H A D | bsd_kernel.h | 393 device_t dev_list[DEVCLASS_MAXUNIT]; member in struct:devclass
|
/freebsd-11-stable/sys/ofed/drivers/infiniband/core/ |
H A D | ib_cma.c | 123 static LIST_HEAD(dev_list); 230 list_for_each_entry(cma_dev, &dev_list, list) 640 list_for_each_entry(cma_dev, &dev_list, list) { 687 list_for_each_entry(cur_dev, &dev_list, list) { 2332 list_for_each_entry(cma_dev, &dev_list, list) 2689 list_for_each_entry(cur_dev, &dev_list, list) { 4290 list_add_tail(&cma_dev->list, &dev_list);
|
/freebsd-11-stable/sys/dev/mlx5/ |
H A D | driver.h | 606 struct list_head dev_list; member in struct:mlx5_priv
|