Lines Matching refs:drive

182 static void nv_sgp_drive_connect(nv_ctl_t *nvc, int drive);
183 static void nv_sgp_drive_disconnect(nv_ctl_t *nvc, int drive);
184 static void nv_sgp_drive_active(nv_ctl_t *nvc, int drive);
185 static void nv_sgp_locate(nv_ctl_t *nvc, int drive, int value);
186 static void nv_sgp_error(nv_ctl_t *nvc, int drive, int value);
1048 int drive;
1089 drive = led.led_number;
1095 nv_sgp_error(nvc, drive, TR_ERROR_DISABLE);
1097 nv_sgp_locate(nvc, drive, TR_LOCATE_DISABLE);
1108 nv_sgp_error(nvc, drive, TR_ERROR_ENABLE);
1110 nv_sgp_locate(nvc, drive, TR_LOCATE_ENABLE);
1539 * any other commands already on the drive.
2051 * depth of the drive. if it does it's an error.
2224 NVLOG(NVDBG_RESET, nvp->nvp_ctlp, nvp, "drive is a disk", NULL);
2231 "drive is an optical device", NULL);
2798 * better to derive the true size from the drive itself, but the sata
2877 * nvp_queue_depth represents the actual drive queue depth, not the
3454 * before the drive is ready to do a DMA transfer. At this point,
4204 * select the drive
4209 * make certain the drive selected
4428 * start the drive in motion
4433 * the drive starts processing the transaction when the cmd register
4435 * parallelize and save some time. In the event that the drive is ready
4520 * This next one sets the drive in motion
4541 * this next one sets the drive in motion
4551 * wait for the drive to assert DRQ to send the first chunk
4554 * drive responds too slowly or if the wait loop granularity
4555 * is too large. It's even worse if the drive is defective and
4560 SATA_STATUS_DF, SATA_STATUS_BSY, /* drive failed */
4614 /* select the drive */
4617 /* make certain the drive selected */
4621 "nv_start_pkt_pio: drive select failed", NULL);
4651 SATA_STATUS_DF, SATA_STATUS_BSY, /* drive failed */
4849 * this is the condition which signals the drive is
5173 * check for drive errors
5442 * If the drive was previously present and configured
6050 * drive, and/or a drive may have been added or removed.
6052 * any state needed on the drive.
6241 * if the drive has been reset, ignore any transient events. If it's
6307 /* select the drive */
6310 /* make certain the drive selected */
6314 "nv_start_rqsense_pio: drive select failed", NULL);
6338 SATA_STATUS_DF, SATA_STATUS_BSY, /* drive failed */
6715 * NVIDIA recommends reading the supported drive count even
6721 "SGPIO reported undocumented drive count - %d",
6847 /* for each drive */
6850 /* get the current state of the LEDs for the drive */
6899 * if there is drive activity again within the
6940 * Set the flag used to indicate that the drive is attached to the HBA.
6944 nv_sgp_drive_connect(nv_ctl_t *nvc, int drive)
6953 cmn->nvs_connected |= (1 << drive);
6959 * Clears the flag used to indicate that the drive is no longer attached
6961 * Activity LED off. The flag that indicates that the drive is in use is
6965 nv_sgp_drive_disconnect(nv_ctl_t *nvc, int drive)
6974 cmn->nvs_connected &= ~(1 << drive);
6975 cmn->nvs_activity &= ~(1 << drive);
6981 * Sets the flag used to indicate that the drive has been accessed and the
6986 nv_sgp_drive_active(nv_ctl_t *nvc, int drive)
6994 DTRACE_PROBE1(sgpio__active, int, drive);
6997 cmn->nvs_activity |= (1 << drive);
7004 * Turns the Locate/OK2RM LED off or on for a particular drive. State is
7008 nv_sgp_locate(nv_ctl_t *nvc, int drive, int value)
7018 if ((drive < 0) || (drive >= SGPIO_DRV_CNT_VALUE))
7021 DTRACE_PROBE2(sgpio__locate, int, drive, int, value);
7025 leds = SGPIO0_TR_DRV(cb->sgpio0_tr, drive);
7030 cb->sgpio0_tr &= SGPIO0_TR_DRV_CLR(drive);
7031 cb->sgpio0_tr |= SGPIO0_TR_DRV_SET(leds, drive);
7045 * Turns the Error/Failure LED off or on for a particular drive. State is
7049 nv_sgp_error(nv_ctl_t *nvc, int drive, int value)
7059 if ((drive < 0) || (drive >= SGPIO_DRV_CNT_VALUE))
7062 DTRACE_PROBE2(sgpio__error, int, drive, int, value);
7066 leds = SGPIO0_TR_DRV(cb->sgpio0_tr, drive);
7071 cb->sgpio0_tr &= SGPIO0_TR_DRV_CLR(drive);
7072 cb->sgpio0_tr |= SGPIO0_TR_DRV_SET(leds, drive);
7087 int drive, i;
7109 drive = SGP_CTLR_PORT_TO_DRV(nvc->nvc_ctlr_num, 0);
7110 led_state &= SGPIO0_TR_DRV_CLR(drive);
7111 led_state |= SGPIO0_TR_DRV_SET(drv_leds, drive);
7114 drive = SGP_CTLR_PORT_TO_DRV(nvc->nvc_ctlr_num, 1);
7115 led_state &= SGPIO0_TR_DRV_CLR(drive);
7116 led_state |= SGPIO0_TR_DRV_SET(drv_leds, drive);