Home
last modified time | relevance | path

Searched refs:devlist (Results 1 – 25 of 35) sorted by relevance

12

/freebsd-12.1/usr.sbin/ctld/
H A Dkernel.c176 if (devlist->cur_sb[devlist->level] == NULL) in cctl_start_element()
220 if (devlist->cur_sb[devlist->level] == NULL) in cctl_end_element()
224 sbuf_finish(devlist->cur_sb[devlist->level]); in cctl_end_element()
232 sbuf_delete(devlist->cur_sb[devlist->level]); in cctl_end_element()
233 devlist->cur_sb[devlist->level] = NULL; in cctl_end_element()
292 if (devlist->cur_sb[devlist->level] == NULL) in cctl_start_pelement()
336 if (devlist->cur_sb[devlist->level] == NULL) in cctl_end_pelement()
340 sbuf_finish(devlist->cur_sb[devlist->level]); in cctl_end_pelement()
348 sbuf_delete(devlist->cur_sb[devlist->level]); in cctl_end_pelement()
349 devlist->cur_sb[devlist->level] = NULL; in cctl_end_pelement()
[all …]
/freebsd-12.1/sbin/nvmecontrol/
H A Ddevlist.c51 static cmd_fn_t devlist; variable
55 .fn = devlist,
77 devlist(const struct cmd *f, int argc, char *argv[]) in devlist() function
H A DMakefile6 SRCS+= devlist.c firmware.c format.c identify.c logpage.c ns.c nsid.c
/freebsd-12.1/sys/dev/mii/
H A Dtlphy.c143 device_t *devlist; in tlphy_attach() local
160 device_get_children(sc_mii->mii_dev, &devlist, &devs) == 0) { in tlphy_attach()
162 if (devlist[i] != dev) { in tlphy_attach()
163 other = device_get_softc(devlist[i]); in tlphy_attach()
168 free(devlist, M_TEMP); in tlphy_attach()
H A Dmlphy.c169 device_t *devlist; in mlphy_find_other() local
174 if (device_get_children(msc->ml_mii.mii_dev, &devlist, &devs) != 0) in mlphy_find_other()
177 if (devlist[i] != msc->ml_dev) { in mlphy_find_other()
178 retval = device_get_softc(devlist[i]); in mlphy_find_other()
182 free(devlist, M_TEMP); in mlphy_find_other()
/freebsd-12.1/usr.sbin/ctladm/
H A Dctladm.c3239 if ((u_int)devlist->level >= (sizeof(devlist->cur_sb) / in cctl_start_element()
3244 devlist->cur_sb[devlist->level] = sbuf_new_auto(); in cctl_start_element()
3245 if (devlist->cur_sb[devlist->level] == NULL) in cctl_start_element()
3288 if (devlist->cur_sb[devlist->level] == NULL) in cctl_end_element()
3292 if (sbuf_finish(devlist->cur_sb[devlist->level]) != 0) in cctl_end_element()
3294 str = strdup(sbuf_data(devlist->cur_sb[devlist->level])); in cctl_end_element()
3297 sbuf_len(devlist->cur_sb[devlist->level])); in cctl_end_element()
3304 sbuf_delete(devlist->cur_sb[devlist->level]); in cctl_end_element()
3305 devlist->cur_sb[devlist->level] = NULL; in cctl_end_element()
3353 sbuf_bcat(devlist->cur_sb[devlist->level], str, len); in cctl_char_handler()
[all …]
/freebsd-12.1/sys/dev/cardbus/
H A Dcardbus.c272 device_t *devlist; in cardbus_driver_added() local
278 if (device_get_children(cbdev, &devlist, &numdevs) != 0) in cardbus_driver_added()
286 dev = devlist[i]; in cardbus_driver_added()
293 dev = devlist[i]; in cardbus_driver_added()
306 free(devlist, M_TEMP); in cardbus_driver_added()
/freebsd-12.1/sys/dev/pci/
H A Dpci_iov.c435 device_t *devlist; in pci_iov_set_ari() local
443 error = device_get_children(bus, &devlist, &devcount); in pci_iov_set_ari()
451 dev_func = pci_get_function(devlist[i]); in pci_iov_set_ari()
453 lowest = devlist[i]; in pci_iov_set_ari()
459 free(devlist, M_TEMP); in pci_iov_set_ari()
827 device_t bus, dev, vf, *devlist; in pci_iov_delete() local
838 devlist = NULL; in pci_iov_delete()
852 error = device_get_children(bus, &devlist, &devcount); in pci_iov_delete()
858 vf = devlist[i]; in pci_iov_delete()
873 vf = devlist[i]; in pci_iov_delete()
[all …]
H A Dpci.c328 struct devlist pci_devq;
4117 free(devlist, M_TEMP); in pci_rescan_method()
4146 child = devlist[i]; in pci_rescan_method()
4168 free(devlist, M_TEMP); in pci_rescan_method()
4189 free(devlist, M_TEMP); in pci_rescan_method()
4550 child = devlist[i]; in pci_resume()
4561 child = devlist[i]; in pci_resume()
4572 free(devlist, M_TEMP); in pci_resume()
4600 device_t *devlist; in pci_driver_added() local
4611 child = devlist[i]; in pci_driver_added()
[all …]
/freebsd-12.1/tests/sys/cddl/zfs/tests/cli_root/zpool_clear/
H A Dzpool_clear_004_pos.ksh88 typeset devlist="$VDEV1 $VDEV2 spare $SDEV"
93 log_must $ZPOOL create -f $TESTPOOL1 $devlist
/freebsd-12.1/sys/dev/mfi/
H A Dmfi_pci.c283 device_t *devlist; in mfi_pci_detach() local
297 if ((error = device_get_children(sc->mfi_dev, &devlist, &devcount)) != 0) { in mfi_pci_detach()
302 device_delete_child(sc->mfi_dev, devlist[i]); in mfi_pci_detach()
303 free(devlist, M_TEMP); in mfi_pci_detach()
/freebsd-12.1/sys/dev/sound/pci/
H A Dhdspe.c94 device_t *devlist; in hdspe_intr() local
106 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0) in hdspe_intr()
110 scp = device_get_ivars(devlist[i]); in hdspe_intr()
116 free(devlist, M_TEMP); in hdspe_intr()
H A Dhdspe-pcm.c208 device_t *devlist; in hdspe_running() local
213 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0) in hdspe_running()
217 scp = device_get_ivars(devlist[i]); in hdspe_running()
225 free(devlist, M_TEMP); in hdspe_running()
234 free(devlist, M_TEMP); in hdspe_running()
/freebsd-12.1/sys/dev/nvme/
H A Dnvme.c241 device_t *devlist; in nvme_notify_new_consumer() local
245 if (devclass_get_devices(nvme_devclass, &devlist, &devcount)) in nvme_notify_new_consumer()
249 ctrlr = DEVICE2SOFTC(devlist[dev_idx]); in nvme_notify_new_consumer()
253 free(devlist, M_TEMP); in nvme_notify_new_consumer()
/freebsd-12.1/contrib/tcpdump/
H A Dtcpdump.c435 pcap_if_t *dev, *devlist; in show_devices_and_exit() local
439 if (pcap_findalldevs(&devlist, ebuf) < 0) in show_devices_and_exit()
449 pcap_freealldevs(devlist); in show_devices_and_exit()
966 pcap_if_t *dev, *devlist; in find_interface_by_number() local
971 if (pcap_findalldevs(&devlist, ebuf) < 0) in find_interface_by_number()
982 pcap_freealldevs(devlist); in find_interface_by_number()
1184 pcap_if_t *devlist; in main() local
1717 if (pcap_findalldevs(&devlist, ebuf) >= 0 && in main()
1718 devlist != NULL) { in main()
1719 device = strdup(devlist->name); in main()
[all …]
/freebsd-12.1/usr.sbin/ppp/
H A Dphysical.c202 memcpy(p->cfg.devlist, MODEM_LIST, sizeof MODEM_LIST); in physical_Create()
472 dev = p->cfg.devlist; in physical_ShowStatus()
783 p->cfg.devlist[sizeof p->cfg.devlist - 1] = '\0'; in physical_SetDeviceList()
784 for (f = 0, pos = 0; f < argc && pos < sizeof p->cfg.devlist - 1; f++) { in physical_SetDeviceList()
786 p->cfg.devlist[pos++] = '\0'; in physical_SetDeviceList()
787 strncpy(p->cfg.devlist + pos, argv[f], sizeof p->cfg.devlist - pos - 1); in physical_SetDeviceList()
788 pos += strlen(p->cfg.devlist + pos); in physical_SetDeviceList()
1021 dev = p->cfg.devlist; in physical_Open()
/freebsd-12.1/sys/dev/hyperv/pcib/
H A Dvmbus_pcib.c611 device_t child, *devlist, *unchanged; in pci_rescan() local
617 error = device_get_children(dev, &devlist, &devcount); in pci_rescan()
624 free(devlist, M_TEMP); in pci_rescan()
654 child = devlist[i]; in pci_rescan()
674 device_delete_child(dev, devlist[i]); in pci_rescan()
677 free(devlist, M_TEMP); in pci_rescan()
681 error = device_get_children(dev, &devlist, &devcount); in pci_rescan()
689 if (devlist[i] == unchanged[j]) in pci_rescan()
693 device_probe_and_attach(devlist[i]); in pci_rescan()
698 free(devlist, M_TEMP); in pci_rescan()
/freebsd-12.1/sys/dev/bhnd/
H A Dbhnd_subr.c461 bhnd_bus_get_children(device_t bus, device_t **devlist, int *devcount, in bhnd_bus_get_children() argument
467 if ((error = device_get_children(bus, devlist, devcount))) in bhnd_bus_get_children()
471 if ((error = bhnd_sort_devices(*devlist, *devcount, order))) { in bhnd_bus_get_children()
472 bhnd_bus_free_children(*devlist); in bhnd_bus_get_children()
485 bhnd_bus_free_children(device_t *devlist) in bhnd_bus_free_children() argument
487 free(devlist, M_TEMP); in bhnd_bus_free_children()
501 bhnd_sort_devices(device_t *devlist, size_t devcount, bhnd_device_order order) in bhnd_sort_devices() argument
517 qsort(devlist, devcount, sizeof(*devlist), compare); in bhnd_sort_devices()
/freebsd-12.1/sys/dev/pccbb/
H A Dpccbb.c284 device_t *devlist; in cbb_detach() local
305 error = device_get_children(brdev, &devlist, &numdevs); in cbb_detach()
317 device_delete_child(brdev, devlist[tmp]); in cbb_detach()
318 free(devlist, M_TEMP); in cbb_detach()
414 device_t *devlist; in cbb_driver_added() local
421 tmp = device_get_children(brdev, &devlist, &numdevs); in cbb_driver_added()
427 dev = devlist[tmp]; in cbb_driver_added()
432 free(devlist, M_TEMP); in cbb_driver_added()
/freebsd-12.1/sys/dev/sound/pci/hda/
H A Dhdacc.c729 device_t *devlist; in hdacc_pindump() local
732 if (device_get_children(dev, &devlist, &devcount) != 0) in hdacc_pindump()
735 HDAC_PINDUMP(devlist[i]); in hdacc_pindump()
736 free(devlist, M_TEMP); in hdacc_pindump()
H A Dhdac.c1327 device_t *devlist; in sysctl_hdac_pindump() local
1349 if ((err = device_get_children(dev, &devlist, &devcount)) != 0) in sysctl_hdac_pindump()
1353 HDAC_PINDUMP(devlist[i]); in sysctl_hdac_pindump()
1355 free(devlist, M_TEMP); in sysctl_hdac_pindump()
1660 device_t *devlist; in hdac_detach() local
1663 if ((error = device_get_children(dev, &devlist, &devcount)) != 0) in hdac_detach()
1666 cad = (intptr_t)device_get_ivars(devlist[i]); in hdac_detach()
1667 if ((error = device_delete_child(dev, devlist[i])) != 0) { in hdac_detach()
1668 free(devlist, M_TEMP); in hdac_detach()
1673 free(devlist, M_TEMP); in hdac_detach()
/freebsd-12.1/sys/dev/gpio/
H A Dgpiobus.c468 device_t *devlist; in gpiobus_detach() local
479 if ((err = device_get_children(dev, &devlist, &ndevs)) != 0) in gpiobus_detach()
482 devi = GPIOBUS_IVAR(devlist[i]); in gpiobus_detach()
486 device_delete_child(dev, devlist[i]); in gpiobus_detach()
488 free(devlist, M_TEMP); in gpiobus_detach()
/freebsd-12.1/libexec/rc/rc.d/
H A Dcfumass31 _luns=`ctladm devlist -b block -v | awk '
/freebsd-12.1/sys/dev/acpica/
H A Dacpi.c702 device_t *devlist; in acpi_set_power_children() local
713 child = devlist[i]; in acpi_set_power_children()
719 free(devlist, M_TEMP); in acpi_set_power_children()
831 device_t child, *devlist; in acpi_driver_added() local
835 if (device_get_children(dev, &devlist, &numdevs)) in acpi_driver_added()
838 child = devlist[i]; in acpi_driver_added()
849 free(devlist, M_TEMP); in acpi_driver_added()
3320 device_t *devlist; in acpi_wake_sysctl_walk() local
3327 free(devlist, M_TEMP); in acpi_wake_sysctl_walk()
3331 child = devlist[i]; in acpi_wake_sysctl_walk()
[all …]
/freebsd-12.1/contrib/libpcap/
H A Dpcap.c467 pcap_if_list_t devlist; in pcap_findalldevs() local
473 devlist.beginning = NULL; in pcap_findalldevs()
474 if (pcap_platform_finddevs(&devlist, errbuf) == -1) { in pcap_findalldevs()
479 if (devlist.beginning != NULL) in pcap_findalldevs()
480 pcap_freealldevs(devlist.beginning); in pcap_findalldevs()
490 if (capture_source_types[i].findalldevs_op(&devlist, errbuf) == -1) { in pcap_findalldevs()
495 if (devlist.beginning != NULL) in pcap_findalldevs()
496 pcap_freealldevs(devlist.beginning); in pcap_findalldevs()
505 *alldevsp = devlist.beginning; in pcap_findalldevs()

12