Lines Matching refs:device

12 	a SCSI device node probe (see device_mgr.c)
25 result: true, if device answered
26 false, if there is no device
53 // there seems to be no device around
69 scsi_device_info *device = worker_req->device;
77 cmd->lun = device->target_lun;
105 SHOW_INFO(3, "device type: %d, qualifier: %d, removable: %d, ANSI version: %d, response data format: %d\n"
114 // time to show standards the device conforms to;
162 scsi_device_info *device;
169 res = scsi_force_get_device(bus, target_id, target_lun, &device);
175 worker_req = scsi_alloc_ccb(device);
189 if (device->target_lun == 0) {
191 // TBD: need better error code like "device not found"
198 // and to check whether there is a device at all
202 // get rid of temporary device - as soon as the device is
204 // structures for one device (the temporary and the official one)
206 scsi_put_forced_device(device);
214 // if a new device is detected on the same connection, all connections
215 // to the old device are disabled;
216 // scenario: you plug in a device, scan the bus, replace the device and then
217 // open it; in this case, the connection seems to be to the old device, but really
220 // solution 1: scan device during each scsi_init_device
223 // solution 2: device drivers must scan devices before first use
229 if (scsi_force_get_device(bus, target_id, target_lun, &device) != B_OK)
231 // the device was already registered, let's tell our child to rescan it
238 scsi_put_forced_device(device);
245 scsi_put_forced_device(device);
285 // if there is no device at lun 0, there's probably no device at all