Lines Matching defs:device

543 		 * During DDI_RESUME, the hardware state of the device
544 * (power may have been removed from the device) must be
1104 * the underlying device into a quiescent state so that it
1204 /* Support ATAPI device */
1219 * QUEUED commands when the HBA and device support native command
1321 * port status registers and an attached device type via sata_device
1374 * SATA_ADDR_PMULT - check the status of all its device ports.
1406 /* Update port state and device type */
1455 * HBA driver only knows it's an ATAPI device, and don't know
1456 * it's CD/DVD, tape or ATAPI disk because the ATAPI device
1482 "ahci_tran_probe_port: port %s Unknown device found",
1487 /* we don't support any other device types */
1490 "ahci_tran_probe_port: port %s No device found", portstr);
1642 "no device attached: port: %s", portstr);
1668 * SATA HBA driver should remember that a device was reset and it
1672 * This is to prevent a race condition when a device was arbitrarily
1674 * driver sending some commands to a device before the sata framework
1675 * has a chance to restore the device setting (such as cache enable/
2078 * maximum tag allowed by the device and the HBA, and it
2143 * device behind a port multiplier. Otherwise should set it to 0.
2282 * device behind a port multiplier. Otherwise should set it to 0.
2295 /* Set W bit if data is going to the device */
2425 * Reset device to abort commands.
2508 "no device attached: port: %d", port);
2603 * Used to do device reset and reject all the pending packets on a device
2703 * Used to do device reset and reject all the pending packets on a device
2791 * try to reset a single device behind a port multiplier will
2986 * Called by sata framework to reset a port(s) or device.
3037 "port %d:%d reset device", instance, port, pmport);
3043 "port %d reset device", instance, port);
3085 "while no device attached: port: %d", port);
3155 * Moreover, the port with a device attached will be started
3164 * Need to check the link status and device status of the port
3263 * when a device is unplugged or a port is deactivated.
3287 * to get the error data, if yes when the device is removed, the
3332 ahci_selftest(dev_info_t *dip, sata_device_t *device)
3668 * other two cases; device signature probing are attempted only during
3884 * AHCI_ATTACH case, find device signature and then try to start the port.
3901 /* AHCI_ADDR_PORT: We've no idea of the attached device here. */
3906 * attached devices during DDI_ATTACH. In fact, the device can be
4013 * Try to get the device signature if the port is not empty.
4019 /* Return directly if no device connected */
4022 "No device connected to port %d", port);
4112 * initialization, otherwise, when retrieving device signature,
4144 * vendor ID and device ID (0x1002,0x4391).
4200 "too many device capabilities", NULL);
4372 * 1. Cutting off the power of an enclosure. The device lose the power
4554 * Fetch the number of device ports of the port multiplier
4631 /* Firstly assume an unknown device */
4655 /* Is there any device attached? */
4660 "ahci_initialize_pmport: No device is found "
4671 * Till now we can assure a device attached to that HBA port and work
4672 * correctly. Now try to get the device signature. This is an optional
4673 * step. If failed, unknown device is assumed, then SATA module will
4675 * device.
4748 /* Check previous device at that port */
4753 /* PxSStatus tells the presence of device. */
4787 "device link lost/established",
4802 "device link established", port, npmport);
4819 } else { /* No device exists now */
4825 "device link lost", port, npmport);
4827 /* An existing device is lost. */
4878 "parent device removed, ignore event.", NULL);
4929 * AHCI device reset ...; a single device on one of the ports is reset,
4955 "port %d:%d device software resetting (FIS)", port, pmport);
5179 * AHCI port reset ...; the physical communication between the HBA and device
5183 * be re-established with the device through a COMRESET followed by the
5185 * the end of reset, the device, if working properly, will send a D2H
5186 * Register FIS, which contains the device signature. When the HBA receives
5241 /* Enable PxCMD.FRE to read device */
5249 * device. And the HBA resets PxTFD.STS to 7Fh.
5266 * When a COMINIT is received from the device, then the port enters
5268 * PxSSTS.DET to 1h to indicate a device is detected but communication
5312 * is no device present.
5343 "the device hardware has been initialized and "
5443 * start communication, which involves sending COMRESET to device.
5446 * When a COMINIT is received from the device, then the port enters
5448 * PxSSTS.DET to 1h to indicate a device is detected but communication
5490 * is no device present.
5494 "no device attached to port %d:%d",
5500 /* Now we can make sure there is a device connected to the port */
5506 "COMINIT signal from the device not received port %d:%d",
5580 * the device through a COMRESET followed by the normal out-of-band
5582 * device, if working properly, will send a D2H Register FIS, which contains
5583 * the device signature. When the HBA receives this FIS, it updates PxTFD.STS
5688 * read PxSIG register to find the type of device attached to the port.
5690 * The caller should make sure a valid device exists on specified port and
5711 * doesn't need to bother to check port multiplier device.
5719 * ICH7 doesn't support port multiplier device at all.
5728 * it is a device or a port multiplier that attached. we need
5800 /* NOTE: Only support ATAPI device at controller port. */
5815 "ATAPI device is found at port: %d", port);
5829 "Unknown device is found at port: %d", port);
5836 * following initialization on a port after a device is attached:
5839 * Disable device initiated interface power management by SET FEATURE
5873 * Software shall not set PxCMD.ST to '1' unless a functional device is
5895 "no device is attached at port %d", port);
6592 /* Check the device mechanical presence status interrupt bit */
6873 * device will detect an error, and HBA most likely will get
6905 * working on Non-data protocol) from the device back to
6910 * device, So we're trying to copy the content of D2H
6961 * 1) ATAPI device will send a signal to the host when media is inserted or
6962 * removed and avoids polling the device for media changes. The signal
7041 * already been transmitted to the device by checking PxCI register.
7066 * is already sent down to the device.
7084 /* The command is certainly transmitted to the device */
7117 * device is hot plugged/pulled.
7161 /* Port Multiplier sub-device hot-plug handler */
7200 * that link/device events has happened.
7232 * device. On reception of unsolicited COMINIT, the HBA shall generate a
7235 * Serial ATA 1.0a specification. When a COMRESET is sent to the device the
7278 * state of the device. This bit is only valid if both CAP.SMPS and PxCMD.MPSP
7338 * 1. a device is inserted
7339 * 2. a device is disconnected
7381 /* SStatus tells the presence of device. */
7417 "device link lost/established", port);
7429 "device link established", port);
7432 * A new device has been detected. The new device
7448 /* Clear the max queue depth for inserted device */
7459 } else { /* No device exists now */
7464 "device link lost", port);
7475 /* An existing device is lost. */
7507 * IPMS Indicates that the HBA received a FIS from a device that did not
7516 * that has fewer total bytes than the transaction given to the device.
7517 * On device writes, the HBA will run out of data, and on reads, there
7644 * been transmitted to the device and still not completed.
7686 * errors, interface errors, port multiplier errors, device errors,
7699 * the interface, or protocol miscommunication between the device and
7716 * that has fewer total bytes than the transaction given to the device.
7717 * On device writes, the HBA will run out of data, and on reads, there
7726 * device. For data writes, both PIO and DMA, the device will detect
7761 * PxIS.TFES is set whenever the status register is updated by the device
7788 "ahci_intr_fatal_error: port %d no device attached, "
7832 * DEVICE command sent to an ATAPI device.
7903 * When set, a device status has changed as detected by the cold presence
7905 * receiving a device, or a connected port having its device removed.
7935 "port %d device status has changed", port);
7945 "port %d: a device is hot plugged", port);
7955 "port %d: a device is hot unplugged", port);
8395 * and PxTFD.STS.DRQ cleared to '0', it means the device is in a
8398 * COMRESET to the device to put it in an idle state.
8420 * a device was unplugged, it will call the interrupt handler.
8469 * Check whether the device is in a stable status, if yes,
8480 * a COMRESET to the device
8529 /* SStatus tells the presence of device. */
8544 "device is removed", port);
8557 /* 0/1 -> 1 : device may change */
8560 * don't issue software if the previous device is ATAPI.
8591 * 2. Another non-port-multiplier device is attached. Perhaps
8592 * the port multiplier was replaced by another device by
8596 * update the port structure according new device, then report
8597 * and wait SATA framework to probe new device.
8681 * d) or we need reset device/port/controller
9265 * to abort a transfer. And if the transfer was aborted, the device is
9268 * that the device is in a stable status and transfers may be restarted without
9269 * issuing a COMRESET to the device. If PxTFD.STS.BSY or PxTFD.STS.DRQ is set,
9430 * 3. IDENTIFY DEVICE command sent to ATAPI device
9476 * 1. device specific.PxFBS.SDE=1
9542 * non-device specific error
9597 "ahci_events_handler: port %d no device attached, "