/netbsd/external/bsd/libfido2/dist/examples/ |
H A D | select.c | 58 select_dev(const fido_dev_info_t *devlist, size_t ndevs, fido_dev_t **dev, in select_dev() argument 86 di = fido_dev_info_ptr(devlist, i); in select_dev() 103 di = fido_dev_info_ptr(devlist, i); in select_dev() 127 di = fido_dev_info_ptr(devlist, i); in select_dev() 185 fido_dev_info_t *devlist; in main() local 193 if ((devlist = fido_dev_info_new(64)) == NULL) in main() 196 if ((r = fido_dev_info_manifest(devlist, 64, &ndevs)) != FIDO_OK) in main() 198 if (select_dev(devlist, ndevs, &dev, &idx, 15) != 0) in main() 203 di = fido_dev_info_ptr(devlist, idx); in main() 211 fido_dev_info_free(&devlist, ndevs); in main()
|
H A D | manifest.c | 16 fido_dev_info_t *devlist; in main() local 22 if ((devlist = fido_dev_info_new(64)) == NULL) in main() 25 if ((r = fido_dev_info_manifest(devlist, 64, &ndevs)) != FIDO_OK) in main() 29 const fido_dev_info_t *di = fido_dev_info_ptr(devlist, i); in main() 38 fido_dev_info_free(&devlist, ndevs); in main()
|
/netbsd/external/bsd/libfido2/dist/src/ |
H A D | hid.c | 127 fido_dev_info_t *devlist; in fido_dev_info_free() local 129 if (devlist_p == NULL || (devlist = *devlist_p) == NULL) in fido_dev_info_free() 134 di = &devlist[i]; in fido_dev_info_free() 140 free(devlist); in fido_dev_info_free() 146 fido_dev_info_ptr(const fido_dev_info_t *devlist, size_t i) in fido_dev_info_ptr() argument 148 return (&devlist[i]); in fido_dev_info_ptr()
|
H A D | hid_freebsd.c | 98 fido_hid_manifest(fido_dev_info_t *devlist, size_t ilen, size_t *olen) in fido_hid_manifest() argument 108 if (devlist == NULL || olen == NULL) in fido_hid_manifest() 113 if (copy_info(&devlist[*olen], path) == 0) { in fido_hid_manifest() 114 devlist[*olen].io = (fido_dev_io_t) { in fido_hid_manifest()
|
H A D | hid_netbsd.c | 124 fido_hid_manifest(fido_dev_info_t *devlist, size_t ilen, size_t *olen) in fido_hid_manifest() argument 134 if (devlist == NULL || olen == NULL) in fido_hid_manifest() 139 if (copy_info(&devlist[*olen], path) == 0) { in fido_hid_manifest() 140 devlist[*olen].io = (fido_dev_io_t) { in fido_hid_manifest()
|
H A D | hid_linux.c | 187 fido_hid_manifest(fido_dev_info_t *devlist, size_t ilen, size_t *olen) in fido_hid_manifest() argument 200 if (devlist == NULL) in fido_hid_manifest() 217 if (copy_info(&devlist[*olen], udev, udev_entry) == 0) { in fido_hid_manifest() 218 devlist[*olen].io = (fido_dev_io_t) { in fido_hid_manifest()
|
H A D | hid_hidapi.c | 227 fido_hid_manifest(fido_dev_info_t *devlist, size_t ilen, size_t *olen) in fido_hid_manifest() argument 235 if (devlist == NULL) in fido_hid_manifest() 243 if (copy_info(&devlist[*olen], d) == 0) { in fido_hid_manifest()
|
H A D | hid_openbsd.c | 29 fido_hid_manifest(fido_dev_info_t *devlist, size_t ilen, size_t *olen) in fido_hid_manifest() argument 40 if (devlist == NULL || olen == NULL) in fido_hid_manifest() 66 di = &devlist[*olen]; in fido_hid_manifest()
|
H A D | nfc_linux.c | 413 fido_nfc_manifest(fido_dev_info_t *devlist, size_t ilen, size_t *olen) in fido_nfc_manifest() argument 426 if (devlist == NULL) in fido_nfc_manifest() 443 if (copy_info(&devlist[*olen], udev, udev_entry) == 0) { in fido_nfc_manifest() 444 devlist[*olen].io = (fido_dev_io_t) { in fido_nfc_manifest() 450 devlist[*olen].transport = (fido_dev_transport_t) { in fido_nfc_manifest()
|
H A D | hid_win.c | 338 fido_hid_manifest(fido_dev_info_t *devlist, size_t ilen, size_t *olen) in fido_hid_manifest() argument 350 if (devlist == NULL) in fido_hid_manifest() 363 if (copy_info(&devlist[*olen], devinfo, idx, &ifdata) == 0) { in fido_hid_manifest() 364 devlist[*olen].io = (fido_dev_io_t) { in fido_hid_manifest()
|
H A D | hid_osx.c | 232 fido_hid_manifest(fido_dev_info_t *devlist, size_t ilen, size_t *olen) in fido_hid_manifest() argument 246 if (devlist == NULL) in fido_hid_manifest() 277 if (copy_info(&devlist[*olen], devs[i]) == 0) { in fido_hid_manifest() 278 devlist[*olen].io = (fido_dev_io_t) { in fido_hid_manifest()
|
/netbsd/external/bsd/libpcap/dist/testprogs/ |
H A D | opentest.c | 64 pcap_if_t *devlist; in main() local 126 if (pcap_findalldevs(&devlist, ebuf) == -1) in main() 128 if (devlist == NULL) in main() 130 device = strdup(devlist->name); in main() 131 pcap_freealldevs(devlist); in main()
|
H A D | capturetest.c | 72 pcap_if_t *devlist; in main() local 127 if (pcap_findalldevs(&devlist, ebuf) == -1) in main() 129 if (devlist == NULL) in main() 131 device = strdup(devlist->name); in main() 132 pcap_freealldevs(devlist); in main()
|
H A D | threadsignaltest.c | 186 pcap_if_t *devlist; in main() local 217 if (pcap_findalldevs(&devlist, ebuf) == -1) in main() 219 if (devlist == NULL) in main() 221 device = strdup(devlist->name); in main() 222 pcap_freealldevs(devlist); in main()
|
H A D | valgrindtest.c | 237 pcap_if_t *devlist; in main() local 292 if (pcap_findalldevs(&devlist, ebuf) == -1) in main() 294 if (devlist == NULL) in main() 296 device = strdup(devlist->name); in main() 297 pcap_freealldevs(devlist); in main()
|
H A D | selpolltest.c | 76 pcap_if_t *devlist; in main() local 134 if (pcap_findalldevs(&devlist, ebuf) == -1) in main() 136 if (devlist == NULL) in main() 138 device = strdup(devlist->name); in main() 139 pcap_freealldevs(devlist); in main()
|
/netbsd/sys/dev/ieee1394/ |
H A D | firewire.c | 206 SLIST_INIT(&sc->devlist); in firewireattach() 250 if (devlist->dev == NULL) in firewireattach() 253 SLIST_INSERT_HEAD(&sc->devlist, devlist, link); in firewireattach() 289 while ((devlist = SLIST_FIRST(&sc->devlist)) != NULL) { in firewiredetach() 292 SLIST_REMOVE(&sc->devlist, devlist, firewire_dev_list, link); in firewiredetach() 543 SLIST_FOREACH(devlist, &sc->devlist, link) { in fw_busreset() 2059 SLIST_INSERT_HEAD(&sc->devlist, devlist, link); in fw_attach_dev() 2090 SLIST_FOREACH(devlist, &sc->devlist, link) { in fw_attach_dev() 2103 SLIST_FOREACH(devlist, &sc->devlist, link) in fw_attach_dev() 2107 if (devlist == NULL) in fw_attach_dev() [all …]
|
/netbsd/external/bsd/pam-u2f/dist/pamu2fcfg/ |
H A D | pamu2fcfg.c | 283 fido_dev_info_t *devlist = NULL; in main() local 306 devlist = fido_dev_info_new(64); in main() 307 if (!devlist) { in main() 312 r = fido_dev_info_manifest(devlist, 64, &ndevs); in main() 328 r = fido_dev_info_manifest(devlist, 64, &ndevs); in main() 355 di = fido_dev_info_ptr(devlist, 0); in main() 381 fido_dev_info_free(&devlist, ndevs); in main()
|
/netbsd/external/bsd/libfido2/dist/fuzz/ |
H A D | fuzz_hid.c | 171 fido_dev_info_t *devlist; in manifest() local 176 if ((devlist = fido_dev_info_new(ndevs)) == NULL || in manifest() 177 fido_dev_info_manifest(devlist, ndevs, &nfound) != FIDO_OK) in manifest() 180 const fido_dev_info_t *di = fido_dev_info_ptr(devlist, i); in manifest() 190 fido_dev_info_free(&devlist, ndevs); in manifest()
|
/netbsd/sys/dev/ata/ |
H A D | ata_raid_subr.c | 64 device_t devlist; in ata_raid_disk_vnode_find() local 69 devlist = adv->adv_adi->adi_dev; in ata_raid_disk_vnode_find() 70 if (strcmp(device_xname(devlist), in ata_raid_disk_vnode_find()
|
/netbsd/external/bsd/libfido2/dist/tools/ |
H A D | token.c | 454 fido_dev_info_t *devlist; in token_list() local 500 if ((devlist = fido_dev_info_new(64)) == NULL) in token_list() 502 if ((r = fido_dev_info_manifest(devlist, 64, &ndevs)) != FIDO_OK) in token_list() 506 const fido_dev_info_t *di = fido_dev_info_ptr(devlist, i); in token_list() 515 fido_dev_info_free(&devlist, ndevs); in token_list()
|
/netbsd/crypto/external/bsd/openssh/dist/ |
H A D | sk-usbhid.c | 203 if ((di = fido_dev_info_ptr(devlist, i)) == NULL) in sk_openv() 369 sk_select_by_cred(const fido_dev_info_t *devlist, size_t ndevs, in sk_select_by_cred() argument 376 if ((skv = sk_openv(devlist, ndevs, &skvcnt)) == NULL) { in sk_select_by_cred() 402 sk_select_by_touch(const fido_dev_info_t *devlist, size_t ndevs) in sk_select_by_touch() argument 409 if ((skv = sk_openv(devlist, ndevs, &skvcnt)) == NULL) { in sk_select_by_touch() 453 fido_dev_info_t *devlist; in sk_probe() local 457 if ((devlist = fido_dev_info_new(MAX_FIDO_DEVICES)) == NULL) { in sk_probe() 461 if ((r = fido_dev_info_manifest(devlist, MAX_FIDO_DEVICES, in sk_probe() 465 fido_dev_info_free(&devlist, MAX_FIDO_DEVICES); in sk_probe() 477 sk = sk_select_by_touch(devlist, ndevs); in sk_probe() [all …]
|
/netbsd/external/bsd/tcpdump/dist/ |
H A D | tcpdump.c | 426 pcap_if_t *dev, *devlist; in show_devices_and_exit() local 430 if (pcap_findalldevs(&devlist, ebuf) < 0) in show_devices_and_exit() 440 pcap_freealldevs(devlist); in show_devices_and_exit() 938 pcap_if_t *dev, *devlist; in find_interface_by_number() local 943 if (pcap_findalldevs(&devlist, ebuf) < 0) in find_interface_by_number() 954 pcap_freealldevs(devlist); in find_interface_by_number() 1136 pcap_if_t *devlist; in main() local 1669 if (pcap_findalldevs(&devlist, ebuf) >= 0 && in main() 1670 devlist != NULL) { in main() 1671 device = strdup(devlist->name); in main() [all …]
|
/netbsd/external/bsd/pam-u2f/dist/ |
H A D | util.c | 946 di = fido_dev_info_ptr(devlist, i); in get_authenticators() 1312 fido_dev_info_t *devlist = NULL; in do_authentication() local 1332 devlist = fido_dev_info_new(64); in do_authentication() 1333 if (!devlist) { in do_authentication() 1339 r = fido_dev_info_manifest(devlist, 64, &ndevs); in do_authentication() 1386 if (get_authenticators(cfg, devlist, ndevs, assert, in do_authentication() 1456 fido_dev_info_free(&devlist, ndevs); in do_authentication() 1458 devlist = fido_dev_info_new(64); in do_authentication() 1459 if (!devlist) { in do_authentication() 1465 r = fido_dev_info_manifest(devlist, 64, &ndevs); in do_authentication() [all …]
|
/netbsd/sbin/nvmectl/ |
H A D | Makefile | 7 SRCS+= devlist.c
|