Lines Matching defs:command

495  *	atapi_cmd_type - Determine ATAPI command type from SCSI opcode
498 * Determine ATAPI command type from @opcode.
565 * @tf: command to examine and configure
598 tf->command = cmd;
690 tf->command = ATA_CMD_FPDMA_WRITE;
692 tf->command = ATA_CMD_FPDMA_READ;
1156 * 0 on success, -EACCES if command is aborted by the drive.
1171 tf.command = ATA_CMD_READ_NATIVE_MAX_EXT;
1174 tf.command = ATA_CMD_READ_NATIVE_MAX;
1206 * 0 on success, -EACCES if command is aborted or denied (due to
1223 tf.command = ATA_CMD_SET_MAX_EXT;
1230 tf.command = ATA_CMD_SET_MAX;
1285 /* If device aborted the command or HPA isn't going to
1293 /* we can continue if device aborted the command */
1323 /* if device aborted the command, skip HPA resizing */
1470 * ata_exec_internal_sg - execute libata internal command
1471 * @dev: Device to which the command is sent
1472 * @tf: Taskfile registers for the command and the result
1473 * @cdb: CDB for packet command
1474 * @dma_dir: Data transfer direction of the command
1475 * @sgl: sg list for the data buffer of the command
1479 * Executes libata internal command with timeout. @tf contains
1480 * command on entry and result on return. Timeout and error
1482 * is taken after a command times out. It's caller's duty to
1498 u8 command = tf->command;
1512 /* no internal command while frozen */
1571 timeout = ata_internal_cmd_timeout(dev, command);
1604 command);
1616 if (qc->result_tf.command & (ATA_ERR | ATA_DF))
1624 } else if (qc->tf.command == ATA_CMD_REQ_SENSE_DATA) {
1625 qc->result_tf.command |= ATA_SENSE;
1643 ata_internal_cmd_timed_out(dev, command);
1649 * ata_exec_internal - execute libata internal command
1650 * @dev: Device to which the command is sent
1651 * @tf: Taskfile registers for the command and the result
1652 * @cdb: CDB for packet command
1653 * @dma_dir: Data transfer direction of the command
1654 * @buf: Data buffer of the command
1806 tf.command = ATA_CMD_ID_ATA;
1809 tf.command = ATA_CMD_ID_ATAPI;
1916 * anything other than the original IDENTIFY command.
1926 * we now must reissue the IDENTIFY command.
1980 * Read log page using READ_LOG_EXT command.
1999 * Return error without actually issuing the command on controllers
2009 tf.command = ATA_CMD_READ_LOG_DMA_EXT;
2013 tf.command = ATA_CMD_READ_LOG_EXT;
2648 /* issue SET feature command to turn this on */
3255 /* Old CFA may refuse this command, which is just fine */
4005 * the device successfully executed the DSM TRIM command. TRIM
4227 * ata_dev_set_xfermode - Issue SET FEATURES - XFER MODE command
4228 * @dev: Device to which command will be sent
4230 * Issue SET FEATURES - XFER MODE command to device @dev
4252 tf.command = ATA_CMD_SET_FEATURES;
4256 /* If we are using IORDY we must send the mode setting command */
4265 /* On some disks, this command causes spin-up, so we need longer timeout */
4274 * @dev: Device to which command will be sent
4278 * Issue SET FEATURES - SATA FEATURES command to device @dev
4297 tf.command = ATA_CMD_SET_FEATURES;
4314 * ata_dev_init_params - Issue INIT DEV PARAMS command
4315 * @dev: Device to which command will be sent
4339 tf.command = ATA_CMD_INIT_DEV_PARAMS;
4362 * supplied PACKET command.
4389 * @qc: ATA command in question
4391 * Non-NCQ commands cannot run with any other command, NCQ or
4394 * whether a new command @qc can be issued.
4425 * ata_sg_init - Associate command with scatter-gather table.
4448 * ata_sg_clean - Unmap DMA memory associated with command
4451 * Unmap all mapped DMA memory associated with this command.
4474 * ata_sg_setup - DMA-map the scatter-gather table associated with a command.
4535 * ata_qc_new_init - Request an available ATA command, and initialize it
4536 * @dev: Device from whom we request an available command structure
4548 /* no command while frozen */
4610 /* command should be marked inactive atomically with qc completion */
4626 * from completing the command twice later, before the error handler
4658 * ata_qc_complete - Complete an active ATA command
4661 * Indicate to the mid and upper layers that an ATA command has
4731 switch (qc->tf.command) {
4794 * @qc: command to issue to device
4796 * Prepare an ATA command to submission to device.
4799 * writing the taskfile to hardware, starting the command.
4810 /* Make sure only one non-NCQ command is outstanding. The
4834 * non-zero sg if the command is a data command.