Lines Matching defs:bus
157 scsi_scan_lun(scsi_bus_info *bus, uchar target_id, uchar target_lun)
167 SHOW_FLOW(3, "%d:%d:%d", bus->path_id, target_id, target_lun);
169 res = scsi_force_get_device(bus, target_id, target_lun, &device);
216 // scenario: you plug in a device, scan the bus, replace the device and then
218 // is to the new one; if you scan the bus now, the opened connection is disabled
226 res = scsi_register_device(bus, target_id, target_lun, &new_inquiry_data);
229 if (scsi_force_get_device(bus, target_id, target_lun, &device) != B_OK)
234 if (pnp->get_next_child_node(bus->node, attrs, &childNode) == B_OK) {
252 scsi_scan_bus(scsi_bus_info *bus)
259 uchar res = scsi_inquiry_path(bus, &inquiry);
267 // tell SIM to rescan bus (needed at least by IDE translator)
269 bus->interface->scan_bus(bus->sim_cookie);
271 for (uint target_id = 0; target_id < bus->max_target_count; ++target_id) {
280 for (uint lun = 0; lun < bus->max_lun_count; ++lun) {
283 status_t status = scsi_scan_lun(bus, target_id, lun);