Lines Matching refs:mode

270     sata_ioctl_data_t *, int mode);
272 sata_ioctl_data_t *, int mode);
274 sata_ioctl_data_t *, int mode);
276 sata_ioctl_data_t *, int mode);
278 sata_device_t *, sata_ioctl_data_t *, int mode);
1304 sata_hba_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp,
1348 return (ndi_devctl_ioctl(dip, cmd, arg, mode, 0));
1490 if (ddi_model_convert_from(mode & FMODELS) ==
1496 sizeof (ioc32), mode) != 0) {
1509 mode) != 0) {
1612 &sata_device, &ioc, mode);
1618 &sata_device, &ioc, mode);
1624 &sata_device, &ioc, mode);
1630 &sata_device, &ioc, mode);
1636 &sata_device, &ioc, mode);
1848 spkt->satapkt_comp = NULL; /* Synchronous mode, no callback */
3179 * to HBA in arbitrary SYNC mode to execute this packet.
3274 * If pkt is to be executed in polling mode and a command will not be
3276 * command to HBA driver in arbitrary SYNC mode) and we are in the
3989 case SATA_PWRMODE_STANDBY: /* device in standby mode */
3997 case SATA_PWRMODE_IDLE: /* device in idle mode */
4001 case SATA_PWRMODE_ACTIVE: /* device in active or idle mode */
4002 default: /* 0x40, 0x41 active mode */
4121 * return NOT READY when device in STOPPED mode
4131 * For other power mode, return GOOD status
4963 * NOTE: only caching mode sense page is currently implemented.
4980 uint8_t *buf; /* mode sense buffer */
5031 /* Build mode parameter header */
5033 /* 4-byte mode parameter header */
5034 buf[len++] = 0; /* mode data length */
5039 /* 8-byte mode parameter header */
5040 buf[len++] = 0; /* mode data length */
5119 * We should eventually deal with following mode pages:
5124 * protocol-specific port mode (port control).
5187 /* fix total mode data length */
5189 /* 4-byte mode parameter header */
5190 buf[0] = len - 1; /* mode data length */
5256 * by mode select pages. The first error terminates further execution.
5278 uint8_t *buf; /* mode select buffer */
5354 * in SYNCH mode, regardless of scsi_pkt setting.
5355 * Save scsi_pkt setting and indicate SYNCH mode
5364 * len is now the offset to a first mode select page
5537 * This changes the overall mode select completion
6094 * Both the device capabilities and requested operation mode are
6217 * requested operation mode.
6218 * Do not bother with non-dma mode - we are working only with
6363 * Both the device capabilities and requested operation mode are
6486 * requested operation mode.
6487 * Do not bother with non-dma mode- we are working only with
6639 int rval, mode, sector_count, reason;
6642 mode = scsipkt->pkt_cdbp[1] & 0x1f;
6645 "sata_txlt_write_buffer, mode 0x%x\n", mode);
6655 /* Use synchronous mode */
6679 switch (mode) {
7036 * If sata pkt was accepted and executed in asynchronous mode, i.e.
7410 * This request always succedes, so in synchronous mode it always returns
7411 * TRAN_ACCEPT, and in non-synchronous mode it may return TRAN_BUSY if the
8178 * Process mode select caching page 8 (scsi3 format only).
8195 * by mode select pages. The first error terminates further execution.
8352 * Process mode select informational exceptions control page 0x1c
8462 * Process mode select acoustic management control page 0x30
8543 * Process mode select power condition page 0x1a
8690 * Since above commands are executed in a synchronous mode, this function
9741 /* Synchronous mode, no callback - may be changed by the caller */
9804 * But specify it only if drive supports DMA and DMA mode is
9977 /* Use synchronous mode */
10134 * Single threaded test: send packet command in synch mode, process completion
10192 /* Use synchronous mode */
10195 /* Synchronous mode, no callback - may be changed by the caller */
12135 /* Determine current data transfer mode */
12146 /* DMA supported, not no DMA transfer mode is selected !? */
12160 * Initialize write cache mode.
12691 * UDMA mode 4 has to be supported. It is not metioned in
12701 * At least UDMA 4 mode has to be supported. If mode 4 or
12706 /* No required Ultra DMA mode supported */
12709 "mode 4 or higher", sdinfo->satadrv_addr.cport);
12711 "mode 4 or higher required, %d supported", i));
12718 * For Disk devices, if it doesn't support UDMA mode, we would
13008 * and addressing mode (LBA28/LBA48) by examining a disk identify device data.
13010 * NOTE: CHS mode is not supported! If a device does not support LBA,
13029 /* LBA48 mode supported and enabled */
13041 /* LBA28 mode */
13737 /* Synchronous mode, no callback */
13800 * Retrieve capacity (disks only) and addressing mode
13899 * Some devices may not come-up with default DMA mode (UDMA or MWDMA).
13900 * UDMA mode is checked first, followed by MWDMA mode.
13902 * Older SATA spec required that the device supports at least DMA 4 mode and
13903 * UDMA mode is selected. It is not mentioned in SerialATA 2.6, so this
13906 * Returns SATA_SUCCESS if proper DMA mode is selected or no DMA is supported.
13907 * Returns SATA_FAILURE if proper DMA mode could not be selected.
13909 * NOTE: This function should be called only if DMA mode is supported.
13917 int i, mode;
13926 /* Find highest Ultra DMA mode supported */
13927 for (mode = 6; mode >= 0; --mode) {
13928 if (sdinfo->satadrv_id.ai_ultradma & (1 << mode))
13935 * UDMA mode 4 has to be supported. It is not mentioned in
13938 if (mode < 4)
13943 * For disk, we're still going to set DMA mode whatever is
13949 * mode even when it's already done by default
13953 /* Find UDMA mode currently selected */
13959 if (i >= mode)
13967 /* Find highest MultiWord DMA mode supported */
13968 for (mode = 2; mode >= 0; --mode) {
13969 if (sdinfo->satadrv_id.ai_dworddma & (1 << mode))
13974 * For disk, We're still going to set DMA mode whatever is
13980 * mode even when it's already done by default
13984 /* Find highest MultiWord DMA mode selected */
13990 if (i >= mode)
14000 * Set DMA mode via SET FEATURES COMMAND.
14009 "sata_set_dma_mode: could not set DMA mode %d", mode));
14017 /* Synchronous mode, no callback, interrupts */
14029 scmd->satacmd_sec_count_lsb = subcmd | mode;
14050 * Set device caching mode.
14094 /* Synchronous mode, no callback, interrupts */
14179 /* Synchronous mode, no callback, interrupts */
14933 * non-failed mode. Port reset wil also work in such situation.
15796 * switching mode.
16098 sata_device_t *sata_device, sata_ioctl_data_t *ioc, int mode)
16123 mode) != 0)
16130 mode) != 0)
16143 sata_device_t *sata_device, sata_ioctl_data_t *ioc, int mode)
16197 mode) != 0)
16204 ioc->bufsiz, mode) != 0)
16220 sata_device_t *sata_device, sata_ioctl_data_t *ioc, int mode)
16256 mode) != 0)
16262 mode) != 0)
16278 sata_device_t *sata_device, sata_ioctl_data_t *ioc, int mode)
16314 mode) != 0)
16320 mode) != 0)
16335 sata_device_t *sata_device, sata_ioctl_data_t *ioc, int mode)
16371 mode) != 0)
16377 mode) != 0)
16501 * It also arbitrarily tries to select the highest supported DMA mode.
16518 * Returns SATA_FAILURE if device features could not be set or DMA mode
16522 * DMA mode) but the device identify data was fetched successfully.
16556 /* Arbitrarily set UDMA mode */
16560 "%s set UDMA mode\n", finfo));
16583 * we want to use DMA transfer mode whenever possible.
16584 * Some devices require explicit setting of the DMA mode.
16587 /* Set highest supported DMA mode */
16591 "%s set UDMA mode\n", finfo));
16640 /* Try to set read cache mode */
16666 /* Try to set write cache mode */
16730 /* Synchronous mode, no callback */
16834 /* Synchronous mode, no callback */
16909 * Reads (in synchronous mode) the self test log data using Read Log Ext cmd.
16947 /* Synchronous mode, no callback */
17061 /* Synchronous mode, no callback */
17169 /* Synchronous mode, no callback */
17276 /* Synchronous mode, no callback */
17372 /* Synchronous mode, no callback - may be changed by the caller */
18585 * and if in debug mode, log the message.
18839 * and if in debug mode, log the message.
20784 * commands executed in SYNCHRONOUS mode.