Lines Matching defs:target

17  * 	Scan LUN 0; if the target responds to LUN 0 (even if there is no
23 * If target is SCSI-3 or up, issue a REPORT LUN, and scan
71 * SCSI_SCAN_NO_RESPONSE: no valid response received from the target, this
74 * SCSI_SCAN_TARGET_PRESENT: target responded, but no device is available
77 * SCSI_SCAN_LUN_PRESENT: target responded, and a device is available on a
203 * @starget: which target to allocate a &scsi_device for
350 * Search for an existing target for this sdev.
366 * scsi_target_reap_ref_release - remove target from visibility
367 * @kref: the reap_ref in the target being released
370 * under this target is visible anymore, so render the target invisible in
371 * sysfs. Note: we have to be in user context here because the target reaps
380 * if we get here and the target is still in a CREATED state that
398 * scsi_alloc_target - allocate a new or find an existing target
399 * @parent: parent of the target (need not be a scsi host)
400 * @channel: target channel number (zero if no channels)
401 * @id: target id number
403 * Return an existing target if one exists, provided it hasn't already
404 * gone into STARGET_DEL state, otherwise allocate a new target.
406 * The target is returned with an incremented reference, so the caller
430 dev_set_name(dev, "target%d:%d:%d", shost->host_no, channel, id);
457 dev_err(dev, "target allocation failed, error %d\n", error);
471 * take the reference, the target must be alive. If we can't, it must
472 * be dying and we need to wait for a new target
482 * Unfortunately, we found a dying target; need to wait until it's
485 * reap_ref above. However, since the target being released, it's
488 * an already invisible target.
493 * for a tick to avoid busy waiting for the target to die.
500 * scsi_target_reap - check to see if target is in use and destroy if not
501 * @starget: target to be checked
503 * This is used after removing a LUN or doing a last put of the target
504 * it checks atomically that nothing is using the target and removes
1024 * @starget: pointer to target device structure
1025 * @lun: LUN of target device
1039 * - SCSI_SCAN_TARGET_PRESENT: target responded, but no device is
1104 * is a target id responding.
1183 * scsi_sequential_lun_scan - sequentially scan a SCSI target
1184 * @starget: pointer to target structure to scan
1270 * @starget: which target
1278 * If BLINK_REPORTLUN2 is set, scan a target that supports more than 8
1307 * Don't attempt if the target doesn't support REPORT LUNS.
1496 uint target, u64 lun)
1499 __scsi_add_device(host, channel, target, lun, NULL);
1565 * The REPORT LUN did not scan the target,
1575 * paired with scsi_alloc_target(): determine if the target has
1584 * scsi_scan_target - scan a target id, possibly including all LUNs on the target.
1587 * @id: target id to scan
1595 * Scan the target id on @parent, @channel, and @id. Scan at least LUN 0,
1596 * and possibly all LUNs on the target id.
1598 * First try a REPORT LUN scan, if that does not scan the target, do a
1599 * sequential scan of LUNs on the target id.
1639 * the FC ID can be the same as a target id
1693 /* target removed before the device could be added */