Lines Matching refs:command
577 int tag, struct mtip_cmd *command, int status) in mtip_completion() argument
579 struct completion *waiting = command->comp_data; in mtip_completion()
584 command->comp_func = NULL; in mtip_completion()
585 command->comp_data = NULL; in mtip_completion()
590 int tag, struct mtip_cmd *command, int status) in mtip_null_completion() argument
722 fis = (struct host_to_dev_fis *)cmd->command; in mtip_handle_tfe()
726 fis->command == ATA_CMD_SET_FEATURES) in mtip_handle_tfe()
731 fis->command == ATA_CMD_FPDMA_WRITE)) { in mtip_handle_tfe()
734 fis->command == ATA_CMD_FPDMA_WRITE ? in mtip_handle_tfe()
784 struct mtip_cmd *command; in mtip_workq_sdbfx() local
802 command = mtip_cmd_from_tag(dd, tag); in mtip_workq_sdbfx()
803 if (likely(command->comp_func)) in mtip_workq_sdbfx()
804 command->comp_func(port, tag, command, 0); in mtip_workq_sdbfx()
992 if (fis->command == ATA_CMD_SEC_ERASE_PREP) { in mtip_pause_ncq()
995 } else if ((fis->command == ATA_CMD_DOWNLOAD_MICRO) && in mtip_pause_ncq()
1000 } else if ((fis->command == ATA_CMD_SEC_ERASE_UNIT) || in mtip_pause_ncq()
1001 ((fis->command == 0xFC) && in mtip_pause_ncq()
1121 if (fis->command == ATA_CMD_SEC_ERASE_PREP) in mtip_exec_internal_command()
1127 if (fis->command != ATA_CMD_STANDBYNOW1) { in mtip_exec_internal_command()
1151 memcpy(int_cmd->command, fis, fis_len*4); in mtip_exec_internal_command()
1157 command_sg = int_cmd->command + AHCI_CMD_TBL_HDR_SZ; in mtip_exec_internal_command()
1187 fis->command, in mtip_exec_internal_command()
1194 fis->command, timeout); in mtip_exec_internal_command()
1198 fis->command, rv, timeout); in mtip_exec_internal_command()
1205 fis->command); in mtip_exec_internal_command()
1225 if ((fis->command != ATA_CMD_STANDBYNOW1) && in mtip_exec_internal_command()
1238 fis->command); in mtip_exec_internal_command()
1298 switch (fis->command) { in mtip_set_timeout()
1356 fis.command = ATA_CMD_ID_ATA; in mtip_get_identify()
1446 fis.command = ATA_CMD_STANDBYNOW1; in mtip_standby_immediate()
1488 fis.command = ATA_CMD_READ_LOG_EXT; in mtip_read_log_page()
1525 fis.command = ATA_CMD_SMART; in mtip_get_smart_data()
1655 fis.command = 0xfb; in mtip_send_trim()
1761 struct mtip_cmd *command, in fill_command_sg() argument
1767 struct scatterlist *sg = command->sg; in fill_command_sg()
1769 command_sg = command->command + AHCI_CMD_TBL_HDR_SZ; in fill_command_sg()
1793 static int exec_drive_task(struct mtip_port *port, u8 *command) in exec_drive_task() argument
1803 fis.command = command[0]; in exec_drive_task()
1804 fis.features = command[1]; in exec_drive_task()
1805 fis.sect_count = command[2]; in exec_drive_task()
1806 fis.sector = command[3]; in exec_drive_task()
1807 fis.cyl_low = command[4]; in exec_drive_task()
1808 fis.cyl_hi = command[5]; in exec_drive_task()
1809 fis.device = command[6] & ~0x10; /* Clear the dev bit*/ in exec_drive_task()
1815 command[0], in exec_drive_task()
1816 command[1], in exec_drive_task()
1817 command[2], in exec_drive_task()
1818 command[3], in exec_drive_task()
1819 command[4], in exec_drive_task()
1820 command[5], in exec_drive_task()
1821 command[6]); in exec_drive_task()
1835 command[0] = reply->command; /* Status*/ in exec_drive_task()
1836 command[1] = reply->features; /* Error*/ in exec_drive_task()
1837 command[4] = reply->cyl_low; in exec_drive_task()
1838 command[5] = reply->cyl_hi; in exec_drive_task()
1842 command[0], in exec_drive_task()
1843 command[1], in exec_drive_task()
1844 command[4], in exec_drive_task()
1845 command[5]); in exec_drive_task()
1863 static int exec_drive_command(struct mtip_port *port, u8 *command, in exec_drive_command() argument
1870 int rv = 0, xfer_sz = command[3]; in exec_drive_command()
1894 fis.command = command[0]; in exec_drive_command()
1895 fis.features = command[2]; in exec_drive_command()
1896 fis.sect_count = command[3]; in exec_drive_command()
1897 if (fis.command == ATA_CMD_SMART) { in exec_drive_command()
1898 fis.sector = command[1]; in exec_drive_command()
1914 command[0], in exec_drive_command()
1915 command[1], in exec_drive_command()
1916 command[2], in exec_drive_command()
1917 command[3]); in exec_drive_command()
1934 command[0] = reply->command; /* Status*/ in exec_drive_command()
1935 command[1] = reply->features; /* Error*/ in exec_drive_command()
1936 command[2] = reply->sect_count; in exec_drive_command()
1942 command[0], in exec_drive_command()
1943 command[1], in exec_drive_command()
1944 command[2]); in exec_drive_command()
1949 ATA_SECT_SIZE * command[3])) { in exec_drive_command()
1973 static unsigned int implicit_sector(unsigned char command, in implicit_sector() argument
1979 switch (command) { in implicit_sector()
2107 fis.command = req_task->io_ports[7]; in exec_drive_taskfile()
2130 force_single_sector = implicit_sector(fis.command, fis.features); in exec_drive_taskfile()
2151 fis.command, in exec_drive_taskfile()
2160 if ((fis.command == ATA_CMD_SEC_ERASE_UNIT) && outbuf && in exec_drive_taskfile()
2193 req_task->io_ports[7] = reply->command; in exec_drive_taskfile()
2382 struct mtip_cmd *command, int nents, in mtip_hw_submit_io() argument
2392 nents = dma_map_sg(&dd->pdev->dev, command->sg, nents, dma_dir); in mtip_hw_submit_io()
2396 command->scatter_ents = nents; in mtip_hw_submit_io()
2402 command->retries = MTIP_MAX_RETRIES; in mtip_hw_submit_io()
2405 fis = command->command; in mtip_hw_submit_io()
2409 fis->command = ATA_CMD_FPDMA_READ; in mtip_hw_submit_io()
2411 fis->command = ATA_CMD_FPDMA_WRITE; in mtip_hw_submit_io()
2426 fill_command_sg(dd, command, nents); in mtip_hw_submit_io()
2428 if (unlikely(command->unaligned)) in mtip_hw_submit_io()
2432 command->command_header->opts = in mtip_hw_submit_io()
2435 command->command_header->byte_count = 0; in mtip_hw_submit_io()
2441 command->comp_data = dd; in mtip_hw_submit_io()
2442 command->comp_func = mtip_async_complete; in mtip_hw_submit_io()
2443 command->direction = dma_dir; in mtip_hw_submit_io()
3840 if (!cmd->command) in mtip_free_cmd()
3844 cmd->command, cmd->command_dma); in mtip_free_cmd()
3862 cmd->command = dmam_alloc_coherent(&dd->pdev->dev, CMD_DMA_ALLOC_SZ, in mtip_init_cmd()
3864 if (!cmd->command) in mtip_init_cmd()
3867 memset(cmd->command, 0, CMD_DMA_ALLOC_SZ); in mtip_init_cmd()