Home
last modified time | relevance | path

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

/freebsd-9-stable/sys/dev/nvme/
Dnvme.c160 int dev, devcount; in nvme_shutdown() local
162 if (devclass_get_devices(nvme_devclass, &devlist, &devcount)) in nvme_shutdown()
165 for (dev = 0; dev < devcount; dev++) { in nvme_shutdown()
330 int dev_idx, devcount; in nvme_notify_new_consumer() local
332 if (devclass_get_devices(nvme_devclass, &devlist, &devcount)) in nvme_notify_new_consumer()
335 for (dev_idx = 0; dev_idx < devcount; dev_idx++) { in nvme_notify_new_consumer()
/freebsd-9-stable/sys/dev/acpica/
Dacpi_battery.c121 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()
155 for (i = 0; i < devcount; i++) { in acpi_battery_get_battinfo()
248 for (i = 0; i < devcount; i++) { in acpi_battery_get_battinfo()
Dacpi_thermal.c947 int devcount, i; in acpi_tz_thread() local
954 devcount = 0; in acpi_tz_thread()
959 if (devclass_get_count(acpi_tz_devclass) != devcount) { in acpi_tz_thread()
964 devclass_get_devices(acpi_tz_devclass, &devs, &devcount); in acpi_tz_thread()
965 sc = malloc(sizeof(struct acpi_tz_softc *) * devcount, M_TEMP, in acpi_tz_thread()
967 for (i = 0; i < devcount; i++) in acpi_tz_thread()
972 for (i = 0; i < devcount; i++) { in acpi_tz_thread()
982 for (i = 0; i < devcount; i++) { in acpi_tz_thread()
992 if (i == devcount) in acpi_tz_thread()
Dacpi_pci.c243 int devcount, i, func, slot; in acpi_pci_save_handle() local
252 if (device_get_children((device_t)context, &devlist, &devcount) != 0) in acpi_pci_save_handle()
254 for (i = 0; i < devcount; i++) { in acpi_pci_save_handle()
/freebsd-9-stable/sys/dev/mfi/
Dmfi_pci.c280 int error, devcount, i; in mfi_pci_detach() local
295 if ((error = device_get_children(sc->mfi_dev, &devlist, &devcount)) != 0) { in mfi_pci_detach()
299 for (i = 0; i < devcount; i++) in mfi_pci_detach()
/freebsd-9-stable/sys/dev/sound/pci/
Dhdspe.c93 int devcount, status; in hdspe_intr() local
100 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0) in hdspe_intr()
103 for (i = 0; i < devcount; i++) { in hdspe_intr()
Dhdspe-pcm.c195 int i, j, devcount, err; in hdspe_running() local
198 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0) in hdspe_running()
201 for (i = 0; i < devcount; i++) { in hdspe_running()
Demu10kx.c3441 int devcount, i; in emu_pci_detach() local
3482 if (device_get_children(dev, &childlist, &devcount) == 0) in emu_pci_detach()
3483 for (i = 0; i < devcount - 1; i++) { in emu_pci_detach()
/freebsd-9-stable/sys/kern/
Dkern_cpu.c864 int best, count, diff, bdiff, devcount, error, freq, i, n; in cpufreq_curr_sysctl() local
884 error = devclass_get_devices(cpufreq_dc, &devs, &devcount); in cpufreq_curr_sysctl()
887 for (n = 0; n < devcount; n++) { in cpufreq_curr_sysctl()
1027 int cfcount, devcount, error, i, type; in cpufreq_unregister() local
1034 error = device_get_children(device_get_parent(dev), &devs, &devcount); in cpufreq_unregister()
1045 for (i = 0; i < devcount; i++) { in cpufreq_unregister()
/freebsd-9-stable/sys/dev/mmc/
Dmmc.c1229 int err, i, devcount, newcard; in mmc_discover_cards() local
1246 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0) in mmc_discover_cards()
1248 for (i = 0; i < devcount; i++) { in mmc_discover_cards()
1455 int err, i, devcount; in mmc_rescan_cards() local
1457 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0) in mmc_rescan_cards()
1459 for (i = 0; i < devcount; i++) { in mmc_rescan_cards()
1478 int err, i, devcount; in mmc_delete_cards() local
1480 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0) in mmc_delete_cards()
1482 for (i = 0; i < devcount; i++) { in mmc_delete_cards()
/freebsd-9-stable/sys/dev/sound/pci/hda/
Dhdacc.c680 int devcount, i; in hdacc_pindump() local
682 if (device_get_children(dev, &devlist, &devcount) != 0) in hdacc_pindump()
684 for (i = 0; i < devcount; i++) in hdacc_pindump()
Dhdac.c1319 int devcount, i, err, val; in sysctl_hdac_pindump() local
1339 if ((err = device_get_children(dev, &devlist, &devcount)) != 0) in sysctl_hdac_pindump()
1342 for (i = 0; i < devcount; i++) in sysctl_hdac_pindump()
1651 int cad, i, devcount, error; in hdac_detach() local
1653 if ((error = device_get_children(dev, &devlist, &devcount)) != 0) in hdac_detach()
1655 for (i = 0; i < devcount; i++) { in hdac_detach()
/freebsd-9-stable/sys/dev/ata/
Datapi-cam.c895 int devcount; in atapi_cam_event_handler() local
899 if (devclass_get_devices(atapi_cam_devclass, &devlist, &devcount) in atapi_cam_event_handler()
903 while (devlist != NULL && devcount > 0) { in atapi_cam_event_handler()
904 device_t child = devlist[--devcount]; in atapi_cam_event_handler()
/freebsd-9-stable/sys/dev/sound/pcm/
Dsound.c646 d->devcount++; in pcm_chn_add()
688 d->devcount--; in pcm_chn_remove()
1056 d->devcount = 0; in pcm_register()
1318 si->numaudios += d->devcount; in sound_oss_sysinfo()
Dsound.h399 unsigned devcount, playcount, reccount, pvchancount, rvchancount ; member
/freebsd-9-stable/sys/dev/ctau/
Dif_ct.c352 int devcount; in ct_identify() local
361 devclass_get_devices (my_devclass, &devices, &devcount); in ct_identify()
363 if (devcount == 0) { in ct_identify()
374 devcount++; in ct_identify()
386 if (devcount >= NCTAU) in ct_identify()
396 for (k = 0; k < devcount; k++) { in ct_identify()
423 for (k = 0; k < devcount; k++) { in ct_identify()
/freebsd-9-stable/sys/dev/cx/
Dif_cx.c439 int devcount; in cx_identify() local
448 devclass_get_devices (my_devclass, &devices, &devcount); in cx_identify()
450 if (devcount == 0) { in cx_identify()
461 devcount++; in cx_identify()
474 if (devcount >= NCX) in cx_identify()
484 for (k = 0; k < devcount; k++) { in cx_identify()
510 for (k = 0; k < devcount; k++) { in cx_identify()