/freebsd-10.2-release/contrib/ofed/libibverbs/examples/ |
H A D | device_list.c | 44 struct ibv_device **dev_list; local 47 dev_list = ibv_get_device_list(&num_devices); 48 if (!dev_list) { 58 ibv_get_device_name(dev_list[i]), 59 (unsigned long long) ntohll(ibv_get_device_guid(dev_list[i]))); 62 ibv_free_device_list(dev_list);
|
H A D | asyncwatch.c | 79 struct ibv_device **dev_list; local 86 dev_list = ibv_get_device_list(NULL); 87 if (!dev_list) { 92 if (!*dev_list) { 97 context = ibv_open_device(*dev_list); 100 ibv_get_device_name(*dev_list)); 105 ibv_get_device_name(*dev_list), context->async_fd);
|
H A D | devinfo.c | 348 struct ibv_device **dev_list, **orig_dev_list; local 385 dev_list = orig_dev_list = ibv_get_device_list(&num_of_hcas); 386 if (!dev_list) { 394 while (*dev_list) { 395 printf("\t%s\n", ibv_get_device_name(*dev_list)); 396 ++dev_list; 411 dev_list = orig_dev_list = ibv_get_device_list(NULL); 412 if (!dev_list) { 418 while (*dev_list) { 419 if (!strcmp(ibv_get_device_name(*dev_list), ib_devnam [all...] |
H A D | rc_pingpong.c | 508 struct ibv_device **dev_list; local 621 dev_list = ibv_get_device_list(NULL); 622 if (!dev_list) { 628 ib_dev = *dev_list; 635 for (i = 0; dev_list[i]; ++i) 636 if (!strcmp(ibv_get_device_name(dev_list[i]), ib_devname)) 638 ib_dev = dev_list[i]; 823 ibv_free_device_list(dev_list);
|
H A D | uc_pingpong.c | 493 struct ibv_device **dev_list; local 606 dev_list = ibv_get_device_list(NULL); 607 if (!dev_list) { 613 ib_dev = *dev_list; 620 for (i = 0; dev_list[i]; ++i) 621 if (!strcmp(ibv_get_device_name(dev_list[i]), ib_devname)) 623 ib_dev = dev_list[i]; 805 ibv_free_device_list(dev_list);
|
H A D | ud_pingpong.c | 501 struct ibv_device **dev_list; local 604 dev_list = ibv_get_device_list(NULL); 605 if (!dev_list) { 611 ib_dev = *dev_list; 618 for (i = 0; dev_list[i]; ++i) 619 if (!strcmp(ibv_get_device_name(dev_list[i]), ib_devname)) 621 ib_dev = dev_list[i]; 799 ibv_free_device_list(dev_list);
|
H A D | srq_pingpong.c | 574 struct ibv_device **dev_list; local 706 dev_list = ibv_get_device_list(NULL); 707 if (!dev_list) { 713 ib_dev = *dev_list; 720 for (i = 0; dev_list[i]; ++i) 721 if (!strcmp(ibv_get_device_name(dev_list[i]), ib_devname)) 723 ib_dev = dev_list[i]; 921 ibv_free_device_list(dev_list);
|
/freebsd-10.2-release/sys/ofed/drivers/net/mlx4/ |
H A D | intf.c | 46 static LIST_HEAD(dev_list); 94 list_for_each_entry(priv, &dev_list, dev_list) 109 list_for_each_entry(priv, &dev_list, dev_list) 141 list_add_tail(&priv->dev_list, &dev_list); 164 list_del_init(&priv->dev_list);
|
H A D | mlx4.h | 817 struct list_head dev_list; member in struct:mlx4_priv
|
H A D | main.c | 3191 INIT_LIST_HEAD(&priv->dev_list);
|
/freebsd-10.2-release/contrib/libpcap/ |
H A D | pcap-bt-linux.c | 77 struct hci_dev_list_req *dev_list; local 93 dev_list = malloc(HCI_MAX_DEV * sizeof(*dev_req) + sizeof(*dev_list)); 94 if (!dev_list) 97 HCI_MAX_DEV * sizeof(*dev_req) + sizeof(*dev_list)); 102 dev_list->dev_num = HCI_MAX_DEV; 104 if (ioctl(sock, HCIGETDEVLIST, (void *) dev_list) < 0) 113 dev_req = dev_list->dev_req; 114 for (i = 0; i < dev_list->dev_num; i++, dev_req++) { 130 free(dev_list); [all...] |
/freebsd-10.2-release/contrib/ofed/libibverbs/src/ |
H A D | init.c | 483 struct ibv_device ***dev_list, 491 new_list = realloc(*dev_list, *list_size * sizeof (struct ibv_device *)); 494 *dev_list = new_list; 497 (*dev_list)[(*num_devices)++] = dev; 482 add_device(struct ibv_device *dev, struct ibv_device ***dev_list, int *num_devices, int *list_size) argument
|
/freebsd-10.2-release/sys/ofed/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_main.c | 1025 struct list_head *dev_list; local 1033 dev_list = kmalloc(sizeof *dev_list, GFP_KERNEL); 1034 if (!dev_list) 1037 INIT_LIST_HEAD(dev_list); 1053 list_add_tail(&priv->list, dev_list); 1057 ib_set_client_data(device, &ipoib_client, dev_list); 1064 struct list_head *dev_list; local 1069 dev_list = ib_get_client_data(device, &ipoib_client); 1071 list_for_each_entry_safe(priv, tmp, dev_list, lis [all...] |
/freebsd-10.2-release/contrib/ofed/librdmacm/src/ |
H A D | cma.c | 211 struct ibv_device **dev_list = NULL; local 226 dev_list = ibv_get_device_list(&dev_cnt); 227 if (!dev_list) { 239 for (i = 0; dev_list[i];) { 242 cma_dev->guid = ibv_get_device_guid(dev_list[i]); 243 cma_dev->verbs = ibv_open_device(dev_list[i]); 264 ibv_free_device_list(dev_list); 272 ibv_free_device_list(dev_list);
|
/freebsd-10.2-release/sys/boot/usb/ |
H A D | bsd_kernel.c | 496 pp_dev = mod->devclass_pp[0]->dev_list; 523 mod->devclass_pp[0]->dev_list[dev->dev_unit] = NULL; 845 if (dc->dev_list[max_unit]) { 858 NULL : dc->dev_list[unit]);
|
H A D | bsd_kernel.h | 324 device_t dev_list[DEVCLASS_MAXUNIT]; member in struct:devclass
|
/freebsd-10.2-release/sys/ofed/drivers/infiniband/core/ |
H A D | local_sa.c | 99 static LIST_HEAD(dev_list); 734 list_for_each_entry(dev, &dev_list, list) 1212 list_add_tail(&dev->list, &dev_list);
|
H A D | cma.c | 91 static LIST_HEAD(dev_list); 373 list_for_each_entry(cma_dev, &dev_list, list) { 383 list_for_each_entry(cma_dev, &dev_list, list) { 1544 list_for_each_entry(cma_dev, &dev_list, list) 1924 if (list_empty(&dev_list)) { 1928 list_for_each_entry(cma_dev, &dev_list, list) 1935 cma_dev = list_entry(dev_list.next, struct cma_device, list); 3264 list_for_each_entry(cma_dev, &dev_list, list) 3297 list_add_tail(&cma_dev->list, &dev_list);
|