Home
last modified time | relevance | path

Searched refs:devcount (Results 1 – 20 of 20) sorted by relevance

/freebsd/sys/dev/acpica/
H A Dacpi_battery.c119 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 Dacpi_thermal.c335 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/sys/dev/mfi/
H A Dmfi_pci.c282 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/sys/dev/nvme/
H A Dnvme.c185 int dev_idx, devcount; in nvme_notify_new_consumer() local
187 if (devclass_get_devices(devclass_find("nvme"), &devlist, &devcount)) in nvme_notify_new_consumer()
190 for (dev_idx = 0; dev_idx < devcount; dev_idx++) { in nvme_notify_new_consumer()
/freebsd/sys/dev/dpaa2/
H A Ddpaa2_mc_acpi.c273 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 Ddpaa2_mc_fdt.c288 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/sys/dev/pci/
H A Dpci_iov.c442 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()
842 int i, error, devcount; in pci_iov_delete_iov_children() local
854 error = device_get_children(bus, &devlist, &devcount); in pci_iov_delete_iov_children()
859 for (i = 0; i < devcount; i++) { in pci_iov_delete_iov_children()
874 for (i = 0; i < devcount; i++) { in pci_iov_delete_iov_children()
H A Dpci.c4188 int devcount, error, i, j, maxslots, oldcount; in pci_rescan_method() local
4193 error = device_get_children(dev, &devlist, &devcount); in pci_rescan_method()
4196 if (devcount != 0) { in pci_rescan_method()
4197 unchanged = malloc(devcount * sizeof(device_t), M_TEMP, in pci_rescan_method()
4228 for (i = 0; i < devcount; i++) { in pci_rescan_method()
4245 for (i = 0; i < devcount; i++) { in pci_rescan_method()
4252 oldcount = devcount; in pci_rescan_method()
4255 error = device_get_children(dev, &devlist, &devcount); in pci_rescan_method()
4261 for (i = 0; i < devcount; i++) { in pci_rescan_method()
/freebsd/sys/dev/sound/pci/
H A Dhdspe.c114 int devcount; in hdspe_intr() local
125 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0) in hdspe_intr()
128 for (i = 0; i < devcount; i++) { in hdspe_intr()
H A Dhdsp.c104 int devcount; in hdsp_intr() local
115 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0) in hdsp_intr()
118 for (i = 0; i < devcount; i++) { in hdsp_intr()
H A Dhdsp-pcm.c406 int devcount; in hdsp_running() local
413 devcount = 0; in hdsp_running()
415 if (device_get_children(sc->dev, &devlist, &devcount) != 0) in hdsp_running()
418 for (i = 0; running == 0 && i < devcount; i++) { in hdsp_running()
H A Dhdspe-pcm.c393 int devcount; in hdspe_running() local
397 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0) in hdspe_running()
400 for (i = 0; i < devcount; i++) { in hdspe_running()
H A Demu10kx.c3409 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/sys/dev/sound/pci/hda/
H A Dhdacc.c755 int devcount, i; in hdacc_pindump() local
757 if (device_get_children(dev, &devlist, &devcount) != 0) in hdacc_pindump()
759 for (i = 0; i < devcount; i++) in hdacc_pindump()
H A Dhdac.c1384 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/sys/dev/bhnd/
H A Dbhnd_subr.c457 bhnd_bus_get_children(device_t bus, device_t **devlist, int *devcount, in bhnd_bus_get_children() argument
463 if ((error = device_get_children(bus, devlist, devcount))) in bhnd_bus_get_children()
467 if ((error = bhnd_sort_devices(*devlist, *devcount, order))) { in bhnd_bus_get_children()
497 bhnd_sort_devices(device_t *devlist, size_t devcount, bhnd_device_order order) in bhnd_sort_devices() argument
513 qsort(devlist, devcount, sizeof(*devlist), compare); in bhnd_sort_devices()
H A Dbhnd.h466 size_t devcount, bhnd_device_order order);
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dpci.h1229 int devcount, error; in pci_rescan_bus() local
1239 error = device_get_children(parent, &devlist, &devcount); in pci_rescan_bus()
1242 if (devcount != 0) in pci_rescan_bus()
1245 return (devcount); in pci_rescan_bus()
/freebsd/sys/kern/
H A Dkern_cpu.c938 int best, count, diff, bdiff, devcount, error, freq, i, n; in cpufreq_curr_sysctl() local
958 error = devclass_get_devices(devclass_find("cpufreq"), &devs, &devcount); in cpufreq_curr_sysctl()
961 for (n = 0; n < devcount; n++) { in cpufreq_curr_sysctl()
/freebsd/sys/dev/bhnd/cores/chipc/
H A Dchipc.c1100 int devcount; in chipc_should_enable_muxed_sprom() local
1113 if ((error = device_get_children(parent, &devs, &devcount))) { in chipc_should_enable_muxed_sprom()
1121 for (int i = 0; i < devcount; i++) { in chipc_should_enable_muxed_sprom()