Searched refs:dev_idx (Results 1 – 10 of 10) sorted by relevance
/freebsd/sys/xen/xenbus/ |
H A D | xenbusb_back.c | 146 u_int dev_idx; in xenbusb_back_enumerate_type() local 158 for (dev_idx = 0; dev_idx < dev_count; dev_idx++) { in xenbusb_back_enumerate_type() 162 dev_num = devs[dev_idx]; in xenbusb_back_enumerate_type()
|
/freebsd/sys/dev/acpica/ |
H A D | acpi_battery.c | 119 int batt_stat, devcount, dev_idx, error, i; in acpi_battery_get_battinfo() local 151 dev_idx = -1; in acpi_battery_get_battinfo() 168 dev_idx = i; in acpi_battery_get_battinfo() 243 if (dev != NULL && dev_idx == -1) { in acpi_battery_get_battinfo() 281 battinfo->cap = bi[dev_idx].cap; in acpi_battery_get_battinfo() 282 battinfo->min = bi[dev_idx].min; in acpi_battery_get_battinfo() 283 battinfo->state = bi[dev_idx].state; in acpi_battery_get_battinfo() 284 battinfo->rate = bst[dev_idx].rate; in acpi_battery_get_battinfo()
|
/freebsd/lib/libdevinfo/ |
H A D | devinfo.c | 172 int dev_idx; in devinfo_init_devices() local 207 for (dev_idx = 0; dev_idx < 10000; dev_idx++) { in devinfo_init_devices() 212 oid[dev_ptr] = dev_idx; in devinfo_init_devices() 219 warn("sysctl hw.bus.devices.%d", dev_idx); in devinfo_init_devices() 262 debug("fetched %d devices", dev_idx); in devinfo_init_devices()
|
/freebsd/sys/dev/nvme/ |
H A D | nvme.c | 185 int dev_idx, devcount; in nvme_notify_new_consumer() local 190 for (dev_idx = 0; dev_idx < devcount; dev_idx++) { in nvme_notify_new_consumer() 191 ctrlr = DEVICE2SOFTC(devlist[dev_idx]); in nvme_notify_new_consumer()
|
/freebsd/sys/dev/mlxfw/ |
H A D | mlxfw_mfa2.c | 142 u16 dev_idx) in mlxfw_mfa2_file_dev_validate() argument 152 pr_debug("Device %d\n", dev_idx); in mlxfw_mfa2_file_dev_validate() 156 pr_err("Device %d is not a valid TLV error\n", dev_idx); in mlxfw_mfa2_file_dev_validate() 167 pr_err("Device %d does not have PSID\n", dev_idx); in mlxfw_mfa2_file_dev_validate() 173 pr_err("Device %d PSID TLV is not valid\n", dev_idx); in mlxfw_mfa2_file_dev_validate() 188 pr_err("Device %d has no components\n", dev_idx); in mlxfw_mfa2_file_dev_validate() 202 dev_idx); in mlxfw_mfa2_file_dev_validate()
|
/freebsd/sys/dev/isci/ |
H A D | isci_controller.c | 797 int dev_idx; in isci_controller_release_queued_ccbs() local 802 for (dev_idx = 0; in isci_controller_release_queued_ccbs() 803 dev_idx < SCI_MAX_REMOTE_DEVICES; in isci_controller_release_queued_ccbs() 804 dev_idx++) { in isci_controller_release_queued_ccbs() 806 dev = controller->remote_device[dev_idx]; in isci_controller_release_queued_ccbs()
|
/freebsd/sys/dev/mps/ |
H A D | mps_mapping.c | 1766 u32 map_idx, dev_idx, start_idx, end_idx; in _mapping_process_dpm_pg0() local 1805 dev_idx = le16toh(dpm_entry->DeviceIndex); in _mapping_process_dpm_pg0() 1814 if (sc->ir_firmware && (dev_idx >= start_idx) && in _mapping_process_dpm_pg0() 1815 (dev_idx <= end_idx)) { in _mapping_process_dpm_pg0() 1816 mt_entry = &sc->mapping_table[dev_idx]; in _mapping_process_dpm_pg0() 1821 mt_entry->id = dev_idx; in _mapping_process_dpm_pg0() 1837 if (dev_idx < (sc->num_rsvd_entries + in _mapping_process_dpm_pg0() 1863 et_entry->start_index = dev_idx; in _mapping_process_dpm_pg0() 1880 mt_entry = &sc->mapping_table[dev_idx]; in _mapping_process_dpm_pg0() 1881 for (map_idx = dev_idx; map_idx < (dev_idx + num_slots); in _mapping_process_dpm_pg0() [all …]
|
/freebsd/sys/dev/mpr/ |
H A D | mpr_mapping.c | 2215 u32 map_idx, dev_idx, start_idx, end_idx; in _mapping_process_dpm_pg0() local 2254 dev_idx = le16toh(dpm_entry->DeviceIndex); in _mapping_process_dpm_pg0() 2263 if (sc->ir_firmware && (dev_idx >= start_idx) && in _mapping_process_dpm_pg0() 2264 (dev_idx <= end_idx)) { in _mapping_process_dpm_pg0() 2265 mt_entry = &sc->mapping_table[dev_idx]; in _mapping_process_dpm_pg0() 2270 mt_entry->id = dev_idx; in _mapping_process_dpm_pg0() 2286 if (dev_idx < (sc->num_rsvd_entries + in _mapping_process_dpm_pg0() 2312 et_entry->start_index = dev_idx; in _mapping_process_dpm_pg0() 2329 mt_entry = &sc->mapping_table[dev_idx]; in _mapping_process_dpm_pg0() 2330 for (map_idx = dev_idx; map_idx < (dev_idx + num_slots); in _mapping_process_dpm_pg0() [all …]
|
/freebsd/contrib/libfido2/src/ |
H A D | nfc_linux.c | 197 sa.dev_idx = ctx->dev; in nfc_target_connect()
|
/freebsd/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_devx.c | 1033 s32 dev_idx; in UVERBS_HANDLER() local 1044 dev_idx = bfregn_to_uar_index(dev, &c->bfregi, user_idx, true); in UVERBS_HANDLER() 1045 if (dev_idx < 0) in UVERBS_HANDLER() 1046 return dev_idx; in UVERBS_HANDLER() 1049 &dev_idx, sizeof(dev_idx))) in UVERBS_HANDLER()
|