| /freebsd-14.2/sys/dev/acpica/ |
| H A D | acpi_battery.c | 119 int batt_stat, devcount, dev_idx, error, i; in acpi_battery_get_battinfo() local 134 devcount = devclass_get_maxunit(batt_dc); in acpi_battery_get_battinfo() 135 if (devcount == 0) in acpi_battery_get_battinfo() 142 bst = malloc(devcount * sizeof(*bst), M_TEMP, M_WAITOK | M_ZERO); in acpi_battery_get_battinfo() 143 bi = malloc(devcount * sizeof(*bi), M_TEMP, M_WAITOK | M_ZERO); in acpi_battery_get_battinfo() 154 for (i = 0; i < devcount; i++) { in acpi_battery_get_battinfo() 250 for (i = 0; i < devcount; i++) { in acpi_battery_get_battinfo()
|
| H A D | acpi_thermal.c | 335 int devcount, error, i; in acpi_tz_startup() local 338 if (devcount == 0) { in acpi_tz_startup() 361 for (i = 0; i < devcount; i++) { in acpi_tz_startup() 967 int devcount, i; in acpi_tz_thread() local 975 devcount = 0; in acpi_tz_thread() 980 if (devclass_get_count(acpi_tz_devclass) != devcount) { in acpi_tz_thread() 985 devclass_get_devices(acpi_tz_devclass, &devs, &devcount); in acpi_tz_thread() 988 for (i = 0; i < devcount; i++) in acpi_tz_thread() 993 for (i = 0; i < devcount; i++) { in acpi_tz_thread() 1003 for (i = 0; i < devcount; i++) { in acpi_tz_thread() [all …]
|
| /freebsd-14.2/sys/dev/mfi/ |
| H A D | mfi_pci.c | 282 int error, devcount, i; in mfi_pci_detach() local 297 if ((error = device_get_children(sc->mfi_dev, &devlist, &devcount)) != 0) { in mfi_pci_detach() 301 for (i = 0; i < devcount; i++) in mfi_pci_detach()
|
| /freebsd-14.2/sys/dev/nvme/ |
| H A D | nvme.c | 186 int dev_idx, devcount; in nvme_notify_new_consumer() local 188 if (devclass_get_devices(devclass_find("nvme"), &devlist, &devcount)) in nvme_notify_new_consumer() 191 for (dev_idx = 0; dev_idx < devcount; dev_idx++) { in nvme_notify_new_consumer()
|
| /freebsd-14.2/sys/dev/dpaa2/ |
| H A D | dpaa2_mc_acpi.c | 273 int devcount, error, i, len; in dpaa2_mc_acpi_find_dpaa2_mac_dev() local 277 error = device_get_children(dev, &devlist, &devcount); in dpaa2_mc_acpi_find_dpaa2_mac_dev() 281 for (i = 0; i < devcount; i++) { in dpaa2_mc_acpi_find_dpaa2_mac_dev()
|
| H A D | dpaa2_mc_fdt.c | 288 int devcount, error, i, len; in dpaa2_mc_fdt_find_dpaa2_mac_dev() local 292 error = device_get_children(dev, &devlist, &devcount); in dpaa2_mc_fdt_find_dpaa2_mac_dev() 296 for (i = 0; i < devcount; i++) { in dpaa2_mc_fdt_find_dpaa2_mac_dev()
|
| /freebsd-14.2/sys/dev/pci/ |
| H A D | pci_iov.c | 442 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() 845 int i, error, devcount; in pci_iov_delete_iov_children() local 857 error = device_get_children(bus, &devlist, &devcount); in pci_iov_delete_iov_children() 862 for (i = 0; i < devcount; i++) { in pci_iov_delete_iov_children() 877 for (i = 0; i < devcount; i++) { in pci_iov_delete_iov_children()
|
| H A D | pci.c | 4190 int devcount, error, i, j, maxslots, oldcount; in pci_rescan_method() local 4195 error = device_get_children(dev, &devlist, &devcount); in pci_rescan_method() 4198 if (devcount != 0) { in pci_rescan_method() 4199 unchanged = malloc(devcount * sizeof(device_t), M_TEMP, in pci_rescan_method() 4230 for (i = 0; i < devcount; i++) { in pci_rescan_method() 4247 for (i = 0; i < devcount; i++) { in pci_rescan_method() 4254 oldcount = devcount; in pci_rescan_method() 4257 error = device_get_children(dev, &devlist, &devcount); in pci_rescan_method() 4263 for (i = 0; i < devcount; i++) { in pci_rescan_method()
|
| /freebsd-14.2/sys/dev/sound/pci/ |
| H A D | hdspe.c | 96 int devcount; in hdspe_intr() local 107 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0) in hdspe_intr() 110 for (i = 0; i < devcount; i++) { in hdspe_intr()
|
| H A D | hdspe-pcm.c | 391 int devcount; in hdspe_running() local 395 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0) in hdspe_running() 398 for (i = 0; i < devcount; i++) { in hdspe_running()
|
| H A D | emu10kx.c | 3409 int devcount, i; in emu_pci_detach() local 3450 if (device_get_children(dev, &childlist, &devcount) == 0) in emu_pci_detach() 3451 for (i = 0; i < devcount - 1; i++) { in emu_pci_detach()
|
| /freebsd-14.2/sys/dev/sound/pci/hda/ |
| H A D | hdacc.c | 757 int devcount, i; in hdacc_pindump() local 759 if (device_get_children(dev, &devlist, &devcount) != 0) in hdacc_pindump() 761 for (i = 0; i < devcount; i++) in hdacc_pindump()
|
| H A D | hdac.c | 1384 int devcount, i, err, val; in sysctl_hdac_pindump() local 1406 if ((err = device_get_children(dev, &devlist, &devcount)) != 0) { in sysctl_hdac_pindump() 1412 for (i = 0; i < devcount; i++) in sysctl_hdac_pindump() 1744 int cad, i, devcount, error; in hdac_detach() local 1746 if ((error = device_get_children(dev, &devlist, &devcount)) != 0) in hdac_detach() 1748 for (i = 0; i < devcount; i++) { in hdac_detach()
|
| /freebsd-14.2/sys/dev/bhnd/ |
| H A D | bhnd_subr.c | 458 bhnd_bus_get_children(device_t bus, device_t **devlist, int *devcount, in bhnd_bus_get_children() argument 464 if ((error = device_get_children(bus, devlist, devcount))) in bhnd_bus_get_children() 468 if ((error = bhnd_sort_devices(*devlist, *devcount, order))) { in bhnd_bus_get_children() 498 bhnd_sort_devices(device_t *devlist, size_t devcount, bhnd_device_order order) in bhnd_sort_devices() argument 514 qsort(devlist, devcount, sizeof(*devlist), compare); in bhnd_sort_devices()
|
| H A D | bhnd.h | 466 size_t devcount, bhnd_device_order order);
|
| /freebsd-14.2/sys/compat/linuxkpi/common/include/linux/ |
| H A D | pci.h | 1225 int devcount, error; in pci_rescan_bus() local 1235 error = device_get_children(parent, &devlist, &devcount); in pci_rescan_bus() 1238 if (devcount != 0) in pci_rescan_bus() 1241 return (devcount); in pci_rescan_bus()
|
| /freebsd-14.2/sys/kern/ |
| H A D | kern_cpu.c | 939 int best, count, diff, bdiff, devcount, error, freq, i, n; in cpufreq_curr_sysctl() local 959 error = devclass_get_devices(devclass_find("cpufreq"), &devs, &devcount); in cpufreq_curr_sysctl() 962 for (n = 0; n < devcount; n++) { in cpufreq_curr_sysctl()
|
| /freebsd-14.2/sys/dev/bhnd/cores/chipc/ |
| H A D | chipc.c | 1133 int devcount; in chipc_should_enable_muxed_sprom() local 1146 if ((error = device_get_children(parent, &devs, &devcount))) { in chipc_should_enable_muxed_sprom() 1154 for (int i = 0; i < devcount; i++) { in chipc_should_enable_muxed_sprom()
|