| /freebsd-13.1/sys/dev/acpica/ |
| H A D | acpi_battery.c | 121 int batt_stat, devcount, dev_idx, error, i; in acpi_battery_get_battinfo() local 136 devcount = devclass_get_maxunit(batt_dc); in acpi_battery_get_battinfo() 137 if (devcount == 0) in acpi_battery_get_battinfo() 144 bst = malloc(devcount * sizeof(*bst), M_TEMP, M_WAITOK | M_ZERO); in acpi_battery_get_battinfo() 145 bi = malloc(devcount * sizeof(*bi), M_TEMP, M_WAITOK | M_ZERO); in acpi_battery_get_battinfo() 156 for (i = 0; i < devcount; i++) { in acpi_battery_get_battinfo() 252 for (i = 0; i < devcount; i++) { in acpi_battery_get_battinfo()
|
| H A D | acpi_thermal.c | 332 int devcount, error, i; in acpi_tz_startup() local 334 devclass_get_devices(acpi_tz_devclass, &devs, &devcount); in acpi_tz_startup() 335 if (devcount == 0) { in acpi_tz_startup() 358 for (i = 0; i < devcount; i++) { in acpi_tz_startup() 953 int devcount, i; in acpi_tz_thread() local 960 devcount = 0; in acpi_tz_thread() 965 if (devclass_get_count(acpi_tz_devclass) != devcount) { in acpi_tz_thread() 973 for (i = 0; i < devcount; i++) in acpi_tz_thread() 978 for (i = 0; i < devcount; i++) { in acpi_tz_thread() 988 for (i = 0; i < devcount; i++) { in acpi_tz_thread() [all …]
|
| /freebsd-13.1/sys/dev/mfi/ |
| H A D | mfi_pci.c | 285 int error, devcount, i; in mfi_pci_detach() local 300 if ((error = device_get_children(sc->mfi_dev, &devlist, &devcount)) != 0) { in mfi_pci_detach() 304 for (i = 0; i < devcount; i++) in mfi_pci_detach()
|
| /freebsd-13.1/sys/dev/nvme/ |
| H A D | nvme.c | 221 int dev_idx, devcount; in nvme_notify_new_consumer() local 223 if (devclass_get_devices(nvme_devclass, &devlist, &devcount)) in nvme_notify_new_consumer() 226 for (dev_idx = 0; dev_idx < devcount; dev_idx++) { in nvme_notify_new_consumer()
|
| /freebsd-13.1/sys/dev/sound/pci/ |
| H A D | hdspe.c | 95 int devcount; in hdspe_intr() local 106 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0) in hdspe_intr() 109 for (i = 0; i < devcount; i++) { in hdspe_intr()
|
| H A D | hdspe-pcm.c | 208 int devcount; in hdspe_running() local 212 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0) in hdspe_running() 215 for (i = 0; i < devcount; i++) { in hdspe_running()
|
| H A D | emu10kx.c | 3422 int devcount, i; in emu_pci_detach() local 3463 if (device_get_children(dev, &childlist, &devcount) == 0) in emu_pci_detach() 3464 for (i = 0; i < devcount - 1; i++) { in emu_pci_detach()
|
| /freebsd-13.1/sys/dev/pci/ |
| H A D | pci_iov.c | 444 int i, error, devcount, lowest_func, lowest_pos, iov_pos, dev_func; in pci_iov_set_ari() local 451 error = device_get_children(bus, &devlist, &devcount); in pci_iov_set_ari() 457 for (i = 0; i < devcount; i++) { in pci_iov_set_ari() 837 int i, error, devcount; in pci_iov_delete_iov_children() local 849 error = device_get_children(bus, &devlist, &devcount); in pci_iov_delete_iov_children() 854 for (i = 0; i < devcount; i++) { in pci_iov_delete_iov_children() 869 for (i = 0; i < devcount; i++) { in pci_iov_delete_iov_children()
|
| H A D | pci.c | 4195 int devcount, error, i, j, maxslots, oldcount; in pci_rescan_method() local 4200 error = device_get_children(dev, &devlist, &devcount); in pci_rescan_method() 4203 if (devcount != 0) { in pci_rescan_method() 4204 unchanged = malloc(devcount * sizeof(device_t), M_TEMP, in pci_rescan_method() 4235 for (i = 0; i < devcount; i++) { in pci_rescan_method() 4252 for (i = 0; i < devcount; i++) { in pci_rescan_method() 4259 oldcount = devcount; in pci_rescan_method() 4262 error = device_get_children(dev, &devlist, &devcount); in pci_rescan_method() 4268 for (i = 0; i < devcount; i++) { in pci_rescan_method()
|
| /freebsd-13.1/sys/dev/hyperv/pcib/ |
| H A D | vmbus_pcib.c | 658 int devcount, error, i, j, maxslots, oldcount; in pci_rescan() local 663 error = device_get_children(dev, &devlist, &devcount); in pci_rescan() 666 if (devcount != 0) { in pci_rescan() 667 unchanged = malloc(devcount * sizeof(device_t), M_TEMP, in pci_rescan() 699 for (i = 0; i < devcount; i++) { in pci_rescan() 717 for (i = 0; i < devcount; i++) { in pci_rescan() 724 oldcount = devcount; in pci_rescan() 727 error = device_get_children(dev, &devlist, &devcount); in pci_rescan() 733 for (i = 0; i < devcount; i++) { in pci_rescan()
|
| /freebsd-13.1/sys/dev/sound/pci/hda/ |
| H A D | hdacc.c | 754 int devcount, i; in hdacc_pindump() local 756 if (device_get_children(dev, &devlist, &devcount) != 0) in hdacc_pindump() 758 for (i = 0; i < devcount; i++) in hdacc_pindump()
|
| H A D | hdac.c | 1373 int devcount, i, err, val; in sysctl_hdac_pindump() local 1393 if ((err = device_get_children(dev, &devlist, &devcount)) != 0) in sysctl_hdac_pindump() 1396 for (i = 0; i < devcount; i++) in sysctl_hdac_pindump() 1725 int cad, i, devcount, error; in hdac_detach() local 1727 if ((error = device_get_children(dev, &devlist, &devcount)) != 0) in hdac_detach() 1729 for (i = 0; i < devcount; i++) { in hdac_detach()
|
| /freebsd-13.1/sys/dev/bhnd/ |
| H A D | bhnd_subr.c | 460 bhnd_bus_get_children(device_t bus, device_t **devlist, int *devcount, in bhnd_bus_get_children() argument 466 if ((error = device_get_children(bus, devlist, devcount))) in bhnd_bus_get_children() 470 if ((error = bhnd_sort_devices(*devlist, *devcount, order))) { in bhnd_bus_get_children() 500 bhnd_sort_devices(device_t *devlist, size_t devcount, bhnd_device_order order) in bhnd_sort_devices() argument 516 qsort(devlist, devcount, sizeof(*devlist), compare); in bhnd_sort_devices()
|
| H A D | bhnd.h | 471 size_t devcount, bhnd_device_order order);
|
| /freebsd-13.1/sys/dev/sound/pcm/ |
| H A D | sound.c | 644 d->devcount++; in pcm_chn_add() 686 d->devcount--; in pcm_chn_remove() 1123 d->devcount = 0; in pcm_register() 1338 si->numaudios += d->devcount; in sound_oss_sysinfo()
|
| H A D | sound.h | 394 unsigned devcount, playcount, reccount, pvchancount, rvchancount ; member
|
| /freebsd-13.1/sys/kern/ |
| H A D | kern_cpu.c | 940 int best, count, diff, bdiff, devcount, error, freq, i, n; in cpufreq_curr_sysctl() local 960 error = devclass_get_devices(cpufreq_dc, &devs, &devcount); in cpufreq_curr_sysctl() 963 for (n = 0; n < devcount; n++) { in cpufreq_curr_sysctl()
|
| /freebsd-13.1/sys/dev/bhnd/cores/chipc/ |
| H A D | chipc.c | 1159 int devcount; in chipc_should_enable_muxed_sprom() local 1172 if ((error = device_get_children(parent, &devs, &devcount))) { in chipc_should_enable_muxed_sprom() 1180 for (int i = 0; i < devcount; i++) { in chipc_should_enable_muxed_sprom()
|