Lines Matching defs:target

445  * Default sata pkt timeout. Used when a target driver scsi_pkt time is zero,
736 * determined. For each device of a supported type, a target node is created.
935 * For the ports with a supported device attached, device target nodes
1019 * Free all target nodes - at this point
1059 * target nodes is failed - albeit in that
1106 * At this point there should be no target nodes attached.
1420 * offline a device. It leaves a target device node attached.
1453 * Onlining the device involves creating a new target node.
1454 * If there is an old target node present (belonging to
1530 "sata_hba_ioctl: target port is %d:%d (%d)",
1839 * sata_device contains the address of actual target device, and the
2009 * the format of the name is "target,0".
2014 int target;
2016 target = ddi_prop_get_int(DDI_DEV_T_ANY, dip,
2017 DDI_PROP_DONTPASS, "target", -1);
2018 if (target == -1)
2020 (void) snprintf(name, namelen, "%x,0", target);
2083 * the target disks.
2094 /* register a legacy devid for this target node */
2131 * Probe target, by calling default scsi routine scsi_hba_probe()
2147 * Set property "pm-capable" on the target device node, so that
2148 * the target driver will not try to fetch scsi cycle counters
2236 * Simply returning NULL does not seem to discourage a target driver...
2400 * This is a re-used packet. It will be target driver's
2518 * The sd target driver is checking CMD_DEV_GONE pkt_reason
2712 "sata_scsi_abort: %s at target: 0x%x\n",
2784 * The target reset should cause all HBA active and queued packets to
2799 "sata_scsi_reset: level %d target: 0x%x\n",
2895 "sata_scsi_getcap: target: 0x%x, cap: %s\n",
2998 "sata_scsi_setcap: target: 0x%x, cap: %s\n", ap->a_target, cap);
3203 * be checked by the scsi target driver).
3244 * The sd target driver is checking CMD_DEV_GONE pkt_reason
3400 * ATAPI Inquiry may provide more data to the target driver.
5206 * (alc_len < len) assuming that the target driver works
5253 * Assumption is that the target driver is working correctly.
6037 * (alc_len < len) assuming that the target driver works
6345 * the response and will do a callback to a target driver.
6610 * the response and will do a callback to a target driver.
6934 * the response and will do a callback to a target driver.
8013 * That may have to change, if target driver will complain
8184 * target driver operates correctly - if parameters length is too short,
9381 * target driver is greater than 255 bytes.
9546 * the response and will do a callback to a target driver.
10407 * The assumption is that there are no target and attachment point minor nodes
10645 * Add SATA device for specified HBA instance & port (SCSI target
10648 * A target node is created when there is a supported type device attached,
10653 * Create target nodes for disk, CD/DVD, Tape and ATAPI disk devices
10682 * the target driver.
10737 * Attaching target node failed.
10806 * Attaching target node failed.
10826 * Clean up target node at specific address.
10859 * The target node remained attached.
10878 * Set DEVICE REMOVED state in the target
10881 * the old target node is released, removed and
10887 * Instruct event daemon to try the target
10900 * Create scsi target node for attached device, create node properties and
10920 int target;
10930 target = SATA_TO_SCSI_TARGET(sata_addr->cport,
10937 "sata_create_target_node: no sdinfo for target %x",
10938 target));
10974 "cannot determine nodename for target %d\n",
10975 target);
10978 "target %d nodename: %s\n", target, nname);
10996 "for target %d\n", target));
11001 * Create scsi target node
11014 * Create target node properties: target & lun
11016 rval = ndi_prop_update_int(DDI_DEV_T_NONE, cdip, "target", target);
11019 "updating target prop failed %d", rval));
11025 "updating target prop failed %d", rval));
11067 * the target node may be removed
11076 /* target node was removed - are we sure? */
11088 "cannot create target node for SATA device at port %d",
11094 * Remove a target node.
11108 /* Remove target node */
11113 * then remove the target node (one ndi
11118 * PROBLEM - no device, but target node remained. This
11124 "Failed to remove target node for "
11127 * Set target node state to DEVI_DEVICE_REMOVED. But
11155 "target node not found at port %d", cport);
11158 "target node not found at port %d:%d",
11200 * If target is pmport, sata_reprobe_pmport() will handle it.
11603 * NOTE: Should be only called by sata_probe_port() in case target port is a
12046 * Rumove target node
12060 * The target node remained attached.
12071 * Set DEVICE REMOVED state in the target
12074 * the old target node is released, removed and
12080 * Instruct event daemon to try the target
12261 * SCSI target address is translated into SATA cport/pmport and compared
12263 * Returns 0 if a scsi target refers to an attached device,
12362 "sata_validate_scsi_address: no valid target %x lun %x",
14313 * NOTE: target argument is a value used in ioctls to identify
14316 * way as a scsi target number.
14321 * Returns dev_info_t pointer if target device was found, NULL otherwise.
14328 int target, tgt;
14335 /* Get target id */
14351 target = SATA_TO_SCSI_TARGET(cport, pmport, qual);
14353 /* Retrieve target dip */
14359 DDI_PROP_DONTPASS, "target", -1);
14369 if (tgt == target)
14381 * NOTE: target argument is a value used in ioctls to identify
14384 * way as a scsi target number.
14386 * Returns dev_info_t pointer if target device was found, NULL otherwise.
14393 int target, tgt;
14396 target = SATA_TO_SCSI_TARGET(saddr->cport, saddr->pmport, saddr->qual);
14403 DDI_PROP_DONTPASS, "target", -1);
14413 if (tgt == target)
14430 * If the target node remains because unconfigure operation failed, its state
14433 * the device and remove old target node.
14594 * If a target node exists, try to offline
14595 * a device and remove target node.
14641 * If a target node exists, try to offline
14642 * a device and remove target node.
14877 * offline a device. It leaves a target device node attached.
14906 * The target node devi_state should be marked with
14936 * When port is in the active state, there is a device attached and the target
14938 * If target node does not exist, a new target node is created. In both cases
14949 boolean_t target = B_TRUE;
14996 target = B_FALSE;
15064 if (sata_device->satadev_type != SATA_DTYPE_NONE && target == B_FALSE) {
15094 * For now, configure only disks and other valid target devices.
15198 * No target node - need to create a new target node.
15357 * If a target node exists, try to offline a device and
15358 * to remove a target node.
15365 /* target node exist */
15368 "target node exists.", NULL);
15378 * Set DEVICE REMOVED state in the target
15381 * attached, until the old target node is
15389 * target node cleanup later.
15907 * Use the sata port state and state of the target node to figure out
15911 * pmport and address qualifier, in the same manner as a scsi target number.
16029 * old target node is released and removed.
16092 * NOTE: Port multiplier has no target dip. Devices connected to port
16093 * multiplier have target node attached to the HBA node. The only difference
16094 * between them and the directly-attached device node is a target address.
16109 * return EINVAL for non-existing target, because cfgadm
16411 * Register a legacy cmdk-style devid for the target (disk) device.
16415 * devid compatible with old cmdk (target) driver is to be generated
16416 * for any target device attached to this controller. This will take
16417 * precedence over the devid generated by sd (target) driver.
19041 * of the target node, HBA hotplugging capabilities, state of the port.
19043 * If HBA cannot detect device attachment and there is no target node,
19574 * - target node
19582 "Detaching target node at port %d:%d",
19595 /* Remove target node */
19646 * Try to offline a device and remove target node
19751 * Device cannot be reached anymore, even if the target node may be
19757 * Try to offline a device and remove target node if it still exists
20005 * Make sure that there is no target node for that
20021 "old device target node exists!");
20024 * target node exists - try to unconfigure
20040 * PROBLEM - the target node remained
20269 * Make sure that there is no target node for that
20284 "old device target node exists!");
20287 * target node exists - try to unconfigure
20302 * PROBLEM - the target node remained
20363 * If the target node associated with a sata port device is in
20365 * If the target node cannot be removed, the event flag is left intact,
20380 "Processing port %d device target node cleanup", saddr->cport);
20385 * Check if there is target node for that device and it is in the
20392 * target node exists - check if it is target node of
20398 "old device target node exists!", NULL);
20400 * Unconfigure and remove the target node
20455 * device, but only if there is no lingering (old) target node present.
20491 * Check if there is target node for this device and if it is in the
20499 * target node exists - check if it is target node of
20505 "old device target node exists!", NULL);
20518 * If the target node is not in the 'removed" state, assume
20545 /* Need to create a new target node. */
20602 * a target number.
20634 * Set DEVI_DEVICE_REMOVED state in the SATA device target node.
20653 * to perform the target node cleanup.
20689 * Check if the SATA device target node is in DEVI_DEVICE_REMOVED state,
20690 * i.e. check if the target node state indicates that it belongs to a removed
20693 * Returns B_TRUE if the target node is in DEVI_DEVICE_REMOVED state,