/freebsd-13-stable/sys/dev/acpica/ |
H A D | acpi_battery.c | 121 int batt_stat, devcount, dev_idx, error, i; local 136 devcount = devclass_get_maxunit(batt_dc); 137 if (devcount == 0) 144 bst = malloc(devcount * sizeof(*bst), M_TEMP, M_WAITOK | M_ZERO); 145 bi = malloc(devcount * sizeof(*bi), M_TEMP, M_WAITOK | M_ZERO); 156 for (i = 0; i < devcount; i++) { 161 * Find the device. Since devcount is in terms of max units, this 252 for (i = 0; i < devcount; i++) {
|
H A D | acpi_thermal.c | 332 int devcount, error, i; local 334 devclass_get_devices(acpi_tz_devclass, &devs, &devcount); 335 if (devcount == 0) { 358 for (i = 0; i < devcount; i++) { 953 int devcount, i; local 960 devcount = 0; 965 if (devclass_get_count(acpi_tz_devclass) != devcount) { 970 devclass_get_devices(acpi_tz_devclass, &devs, &devcount); 971 sc = malloc(sizeof(struct acpi_tz_softc *) * devcount, M_TEMP, 973 for (i = 0; i < devcount; [all...] |
/freebsd-13-stable/sys/dev/nvme/ |
H A D | nvme.c | 224 int dev_idx, devcount; local 226 if (devclass_get_devices(nvme_devclass, &devlist, &devcount)) 229 for (dev_idx = 0; dev_idx < devcount; dev_idx++) {
|
/freebsd-13-stable/sys/dev/sound/pci/ |
H A D | hdspe.c | 95 int devcount; local 106 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0) 109 for (i = 0; i < devcount; i++) {
|
H A D | hdspe-pcm.c | 208 int devcount; local 212 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0) 215 for (i = 0; i < devcount; i++) {
|
H A D | emu10kx.c | 3422 int devcount, i; local 3463 if (device_get_children(dev, &childlist, &devcount) == 0) 3464 for (i = 0; i < devcount - 1; i++) {
|
/freebsd-13-stable/sys/dev/mfi/ |
H A D | mfi_pci.c | 285 int error, devcount, i; local 300 if ((error = device_get_children(sc->mfi_dev, &devlist, &devcount)) != 0) { 304 for (i = 0; i < devcount; i++)
|
/freebsd-13-stable/sys/dev/pci/ |
H A D | pci_iov.c | 445 int i, error, devcount, lowest_func, lowest_pos, iov_pos, dev_func; local 452 error = device_get_children(bus, &devlist, &devcount); 458 for (i = 0; i < devcount; i++) { 838 int i, error, devcount; local 850 error = device_get_children(bus, &devlist, &devcount); 855 for (i = 0; i < devcount; i++) { 870 for (i = 0; i < devcount; i++) {
|
H A D | pci.c | 4150 int devcount, error, i, j, maxslots, oldcount; local 4155 error = device_get_children(dev, &devlist, &devcount); 4158 if (devcount != 0) { 4159 unchanged = malloc(devcount * sizeof(device_t), M_TEMP, 4190 for (i = 0; i < devcount; i++) { 4207 for (i = 0; i < devcount; i++) { 4214 oldcount = devcount; 4217 error = device_get_children(dev, &devlist, &devcount); 4223 for (i = 0; i < devcount; i++) {
|
/freebsd-13-stable/sys/dev/hyperv/pcib/ |
H A D | vmbus_pcib.c | 658 int devcount, error, i, j, maxslots, oldcount; local 663 error = device_get_children(dev, &devlist, &devcount); 666 if (devcount != 0) { 667 unchanged = malloc(devcount * sizeof(device_t), M_TEMP, 699 for (i = 0; i < devcount; i++) { 717 for (i = 0; i < devcount; i++) { 724 oldcount = devcount; 727 error = device_get_children(dev, &devlist, &devcount); 733 for (i = 0; i < devcount; i++) {
|
/freebsd-13-stable/sys/dev/sound/pci/hda/ |
H A D | hdacc.c | 752 int devcount, i; local 754 if (device_get_children(dev, &devlist, &devcount) != 0) 756 for (i = 0; i < devcount; i++)
|
H A D | hdac.c | 1369 int devcount, i, err, val; local 1389 if ((err = device_get_children(dev, &devlist, &devcount)) != 0) 1392 for (i = 0; i < devcount; i++) 1721 int cad, i, devcount, error; local 1723 if ((error = device_get_children(dev, &devlist, &devcount)) != 0) 1725 for (i = 0; i < devcount; i++) {
|
/freebsd-13-stable/sys/dev/bhnd/ |
H A D | bhnd_subr.c | 451 * @param[out] devcount The number of devices in @p devlistp 460 bhnd_bus_get_children(device_t bus, device_t **devlist, int *devcount, argument 466 if ((error = device_get_children(bus, devlist, devcount))) 470 if ((error = bhnd_sort_devices(*devlist, *devcount, order))) { 493 * @param devcount The number of devices in @p devs. 500 bhnd_sort_devices(device_t *devlist, size_t devcount, bhnd_device_order order) argument 516 qsort(devlist, devcount, sizeof(*devlist), compare);
|
H A D | bhnd.h | 471 size_t devcount, bhnd_device_order order);
|
/freebsd-13-stable/sys/dev/sound/pcm/ |
H A D | sound.c | 644 d->devcount++; 686 d->devcount--; 1100 d->devcount = 0; 1315 si->numaudios += d->devcount;
|
H A D | sound.h | 394 unsigned devcount, playcount, reccount, pvchancount, rvchancount ; member in struct:snddev_info
|
/freebsd-13-stable/sys/kern/ |
H A D | kern_cpu.c | 940 int best, count, diff, bdiff, devcount, error, freq, i, n; local 960 error = devclass_get_devices(cpufreq_dc, &devs, &devcount); 963 for (n = 0; n < devcount; n++) {
|
/freebsd-13-stable/sys/dev/bhnd/cores/chipc/ |
H A D | chipc.c | 1162 int devcount; local 1175 if ((error = device_get_children(parent, &devs, &devcount))) { 1183 for (int i = 0; i < devcount; i++) {
|