Searched refs:dev_idx (Results 1 – 8 of 8) sorted by relevance
| /freebsd-12.1/sys/xen/xenbus/ |
| H A D | xenbusb_back.c | 149 u_int dev_idx; in xenbusb_back_enumerate_type() local 161 for (dev_idx = 0; dev_idx < dev_count; dev_idx++) { in xenbusb_back_enumerate_type() 165 dev_num = devs[dev_idx]; in xenbusb_back_enumerate_type()
|
| /freebsd-12.1/sys/dev/acpica/ |
| H A D | acpi_battery.c | 121 int batt_stat, devcount, dev_idx, error, i; in acpi_battery_get_battinfo() local 153 dev_idx = -1; in acpi_battery_get_battinfo() 170 dev_idx = i; in acpi_battery_get_battinfo() 248 if (dev != NULL && dev_idx == -1) { in acpi_battery_get_battinfo() 279 battinfo->cap = bi[dev_idx].cap; in acpi_battery_get_battinfo() 280 battinfo->min = bi[dev_idx].min; in acpi_battery_get_battinfo() 281 battinfo->state = bi[dev_idx].state; in acpi_battery_get_battinfo() 282 battinfo->rate = bst[dev_idx].rate; in acpi_battery_get_battinfo()
|
| /freebsd-12.1/lib/libdevinfo/ |
| H A D | devinfo.c | 173 int dev_idx; in devinfo_init_devices() local 208 for (dev_idx = 0; dev_idx < 10000; dev_idx++) { in devinfo_init_devices() 213 oid[dev_ptr] = dev_idx; in devinfo_init_devices() 220 warn("sysctl hw.bus.devices.%d", dev_idx); in devinfo_init_devices() 259 debug("fetched %d devices", dev_idx); in devinfo_init_devices()
|
| /freebsd-12.1/sys/dev/mlxfw/ |
| H A D | mlxfw_mfa2.c | 144 u16 dev_idx) in mlxfw_mfa2_file_dev_validate() argument 154 pr_debug("Device %d\n", dev_idx); in mlxfw_mfa2_file_dev_validate() 158 pr_err("Device %d is not a valid TLV error\n", dev_idx); in mlxfw_mfa2_file_dev_validate() 169 pr_err("Device %d does not have PSID\n", dev_idx); in mlxfw_mfa2_file_dev_validate() 175 pr_err("Device %d PSID TLV is not valid\n", dev_idx); in mlxfw_mfa2_file_dev_validate() 190 pr_err("Device %d has no components\n", dev_idx); in mlxfw_mfa2_file_dev_validate() 204 dev_idx); in mlxfw_mfa2_file_dev_validate()
|
| /freebsd-12.1/sys/dev/nvme/ |
| H A D | nvme.c | 243 int dev_idx, devcount; in nvme_notify_new_consumer() local 248 for (dev_idx = 0; dev_idx < devcount; dev_idx++) { in nvme_notify_new_consumer() 249 ctrlr = DEVICE2SOFTC(devlist[dev_idx]); in nvme_notify_new_consumer()
|
| /freebsd-12.1/sys/dev/isci/ |
| H A D | isci_controller.c | 816 int dev_idx; in isci_controller_release_queued_ccbs() local 821 for (dev_idx = 0; in isci_controller_release_queued_ccbs() 822 dev_idx < SCI_MAX_REMOTE_DEVICES; in isci_controller_release_queued_ccbs() 823 dev_idx++) { in isci_controller_release_queued_ccbs() 825 dev = controller->remote_device[dev_idx]; in isci_controller_release_queued_ccbs()
|
| /freebsd-12.1/sys/dev/mps/ |
| H A D | mps_mapping.c | 1768 u32 map_idx, dev_idx, start_idx, end_idx; in _mapping_process_dpm_pg0() local 1817 (dev_idx <= end_idx)) { in _mapping_process_dpm_pg0() 1818 mt_entry = &sc->mapping_table[dev_idx]; in _mapping_process_dpm_pg0() 1823 mt_entry->id = dev_idx; in _mapping_process_dpm_pg0() 1840 if (dev_idx < (sc->num_rsvd_entries + in _mapping_process_dpm_pg0() 1866 et_entry->start_index = dev_idx; in _mapping_process_dpm_pg0() 1883 mt_entry = &sc->mapping_table[dev_idx]; in _mapping_process_dpm_pg0() 1884 for (map_idx = dev_idx; map_idx < (dev_idx + num_slots); in _mapping_process_dpm_pg0() 1899 mt_entry->id = dev_idx; in _mapping_process_dpm_pg0() 1913 map_idx = dev_idx; in _mapping_process_dpm_pg0() [all …]
|
| /freebsd-12.1/sys/dev/mpr/ |
| H A D | mpr_mapping.c | 2216 u32 map_idx, dev_idx, start_idx, end_idx; in _mapping_process_dpm_pg0() local 2265 (dev_idx <= end_idx)) { in _mapping_process_dpm_pg0() 2266 mt_entry = &sc->mapping_table[dev_idx]; in _mapping_process_dpm_pg0() 2271 mt_entry->id = dev_idx; in _mapping_process_dpm_pg0() 2288 if (dev_idx < (sc->num_rsvd_entries + in _mapping_process_dpm_pg0() 2314 et_entry->start_index = dev_idx; in _mapping_process_dpm_pg0() 2331 mt_entry = &sc->mapping_table[dev_idx]; in _mapping_process_dpm_pg0() 2332 for (map_idx = dev_idx; map_idx < (dev_idx + num_slots); in _mapping_process_dpm_pg0() 2347 mt_entry->id = dev_idx; in _mapping_process_dpm_pg0() 2361 map_idx = dev_idx; in _mapping_process_dpm_pg0() [all …]
|