Home
last modified time | relevance | path

Searched refs:devcount (Results 1 – 18 of 18) 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()
159 * Find the device. Since devcount is in terms of max units, this 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
337 devclass_get_devices(devclass_find("acpi_tz"), &devs, &devcount); in acpi_tz_startup()
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()
986 sc = malloc(sizeof(struct acpi_tz_softc *) * devcount, M_TEMP, in acpi_tz_thread()
988 for (i = 0; i < devcount; i++) in acpi_tz_thread()
[all …]
/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_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()
H A Ddpaa2_mc_acpi.c277 int devcount, error, i, len; in dpaa2_mc_acpi_find_dpaa2_mac_dev() local
281 error = device_get_children(dev, &devlist, &devcount); in dpaa2_mc_acpi_find_dpaa2_mac_dev()
285 for (i = 0; i < devcount; i++) { in dpaa2_mc_acpi_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()
843 int i, error, devcount; in pci_iov_delete_iov_children() local
855 error = device_get_children(bus, &devlist, &devcount); in pci_iov_delete_iov_children()
860 for (i = 0; i < devcount; i++) { in pci_iov_delete_iov_children()
875 for (i = 0; i < devcount; i++) { in pci_iov_delete_iov_children()
H A Dpci.c4184 int devcount, error, i, j, maxslots, oldcount; in pci_rescan_method() local
4189 error = device_get_children(dev, &devlist, &devcount); in pci_rescan_method()
4192 if (devcount != 0) { in pci_rescan_method()
4193 unchanged = malloc(devcount * sizeof(device_t), M_TEMP, in pci_rescan_method()
4224 for (i = 0; i < devcount; i++) { in pci_rescan_method()
4241 for (i = 0; i < devcount; i++) { in pci_rescan_method()
4248 oldcount = devcount; in pci_rescan_method()
4251 error = device_get_children(dev, &devlist, &devcount); in pci_rescan_method()
4257 for (i = 0; i < devcount; i++) { in pci_rescan_method()
/freebsd/sys/dev/sound/pci/
H A Dhdspe.c115 int devcount; in hdspe_intr() local
126 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0) in hdspe_intr()
129 for (i = 0; i < devcount; i++) { in hdspe_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 Dhdsp.c105 int devcount; in hdsp_intr() local
116 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0) in hdsp_intr()
119 for (i = 0; i < devcount; i++) { in hdsp_intr()
H A Dhdspe-pcm.c395 int devcount; in hdspe_running() local
399 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0) in hdspe_running()
402 for (i = 0; i < devcount; i++) { in hdspe_running()
H A Demu10kx.c3356 int devcount, i; in emu_pci_detach() local
3379 if (device_get_children(dev, &childlist, &devcount) == 0) in emu_pci_detach()
3380 for (i = 0; i < devcount - 1; i++) { in emu_pci_detach()
/freebsd/sys/dev/sound/pci/hda/
H A Dhdacc.c757 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 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/compat/linuxkpi/common/include/linux/
H A Dpci.h1225 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/sys/kern/
H A Dkern_cpu.c946 int best, count, diff, bdiff, devcount, error, freq, i, n; in cpufreq_curr_sysctl() local
966 error = devclass_get_devices(devclass_find("cpufreq"), &devs, &devcount); in cpufreq_curr_sysctl()
969 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()
/freebsd/sys/dev/bhnd/
H A Dbhnd.h466 size_t devcount, bhnd_device_order order);