Lines Matching refs:command

580 			    int tag, struct mtip_cmd *command, int status)  in mtip_completion()  argument
582 struct completion *waiting = command->comp_data; in mtip_completion()
591 int tag, struct mtip_cmd *command, int status) in mtip_null_completion() argument
726 fis = (struct host_to_dev_fis *)cmd->command; in mtip_handle_tfe()
730 fis->command == ATA_CMD_SET_FEATURES) in mtip_handle_tfe()
735 fis->command == ATA_CMD_FPDMA_WRITE)) { in mtip_handle_tfe()
738 fis->command == ATA_CMD_FPDMA_WRITE ? in mtip_handle_tfe()
793 struct mtip_cmd *command; in mtip_workq_sdbfx() local
811 command = mtip_cmd_from_tag(dd, tag); in mtip_workq_sdbfx()
812 if (likely(command->comp_func)) in mtip_workq_sdbfx()
813 command->comp_func(port, tag, command, 0); in mtip_workq_sdbfx()
1001 if (fis->command == ATA_CMD_SEC_ERASE_PREP) { in mtip_pause_ncq()
1005 } else if ((fis->command == ATA_CMD_DOWNLOAD_MICRO) && in mtip_pause_ncq()
1010 } else if ((fis->command == ATA_CMD_SEC_ERASE_UNIT) || in mtip_pause_ncq()
1011 ((fis->command == 0xFC) && in mtip_pause_ncq()
1124 if (fis->command != ATA_CMD_STANDBYNOW1) { in mtip_exec_internal_command()
1148 memcpy(int_cmd->command, fis, fis_len*4); in mtip_exec_internal_command()
1154 command_sg = int_cmd->command + AHCI_CMD_TBL_HDR_SZ; in mtip_exec_internal_command()
1184 fis->command, in mtip_exec_internal_command()
1191 fis->command, timeout); in mtip_exec_internal_command()
1195 fis->command, rv, timeout); in mtip_exec_internal_command()
1202 fis->command); in mtip_exec_internal_command()
1222 if ((fis->command != ATA_CMD_STANDBYNOW1) && in mtip_exec_internal_command()
1235 fis->command); in mtip_exec_internal_command()
1295 switch (fis->command) { in mtip_set_timeout()
1353 fis.command = ATA_CMD_ID_ATA; in mtip_get_identify()
1443 fis.command = ATA_CMD_STANDBYNOW1; in mtip_standby_immediate()
1485 fis.command = ATA_CMD_READ_LOG_EXT; in mtip_read_log_page()
1522 fis.command = ATA_CMD_SMART; in mtip_get_smart_data()
1652 fis.command = 0xfb; in mtip_send_trim()
1758 struct mtip_cmd *command, in fill_command_sg() argument
1764 struct scatterlist *sg = command->sg; in fill_command_sg()
1766 command_sg = command->command + AHCI_CMD_TBL_HDR_SZ; in fill_command_sg()
1790 static int exec_drive_task(struct mtip_port *port, u8 *command) in exec_drive_task() argument
1800 fis.command = command[0]; in exec_drive_task()
1801 fis.features = command[1]; in exec_drive_task()
1802 fis.sect_count = command[2]; in exec_drive_task()
1803 fis.sector = command[3]; in exec_drive_task()
1804 fis.cyl_low = command[4]; in exec_drive_task()
1805 fis.cyl_hi = command[5]; in exec_drive_task()
1806 fis.device = command[6] & ~0x10; /* Clear the dev bit*/ in exec_drive_task()
1812 command[0], in exec_drive_task()
1813 command[1], in exec_drive_task()
1814 command[2], in exec_drive_task()
1815 command[3], in exec_drive_task()
1816 command[4], in exec_drive_task()
1817 command[5], in exec_drive_task()
1818 command[6]); in exec_drive_task()
1832 command[0] = reply->command; /* Status*/ in exec_drive_task()
1833 command[1] = reply->features; /* Error*/ in exec_drive_task()
1834 command[4] = reply->cyl_low; in exec_drive_task()
1835 command[5] = reply->cyl_hi; in exec_drive_task()
1839 command[0], in exec_drive_task()
1840 command[1], in exec_drive_task()
1841 command[4], in exec_drive_task()
1842 command[5]); in exec_drive_task()
1860 static int exec_drive_command(struct mtip_port *port, u8 *command, in exec_drive_command() argument
1867 int rv = 0, xfer_sz = command[3]; in exec_drive_command()
1891 fis.command = command[0]; in exec_drive_command()
1892 fis.features = command[2]; in exec_drive_command()
1893 fis.sect_count = command[3]; in exec_drive_command()
1894 if (fis.command == ATA_CMD_SMART) { in exec_drive_command()
1895 fis.sector = command[1]; in exec_drive_command()
1911 command[0], in exec_drive_command()
1912 command[1], in exec_drive_command()
1913 command[2], in exec_drive_command()
1914 command[3]); in exec_drive_command()
1931 command[0] = reply->command; /* Status*/ in exec_drive_command()
1932 command[1] = reply->features; /* Error*/ in exec_drive_command()
1933 command[2] = reply->sect_count; in exec_drive_command()
1939 command[0], in exec_drive_command()
1940 command[1], in exec_drive_command()
1941 command[2]); in exec_drive_command()
1946 ATA_SECT_SIZE * command[3])) { in exec_drive_command()
1970 static unsigned int implicit_sector(unsigned char command, in implicit_sector() argument
1976 switch (command) { in implicit_sector()
2104 fis.command = req_task->io_ports[7]; in exec_drive_taskfile()
2127 force_single_sector = implicit_sector(fis.command, fis.features); in exec_drive_taskfile()
2148 fis.command, in exec_drive_taskfile()
2157 if ((fis.command == ATA_CMD_SEC_ERASE_UNIT) && outbuf && in exec_drive_taskfile()
2190 req_task->io_ports[7] = reply->command; in exec_drive_taskfile()
2379 struct mtip_cmd *command, int nents, in mtip_hw_submit_io() argument
2389 nents = dma_map_sg(&dd->pdev->dev, command->sg, nents, dma_dir); in mtip_hw_submit_io()
2393 command->scatter_ents = nents; in mtip_hw_submit_io()
2399 command->retries = MTIP_MAX_RETRIES; in mtip_hw_submit_io()
2402 fis = command->command; in mtip_hw_submit_io()
2406 fis->command = ATA_CMD_FPDMA_READ; in mtip_hw_submit_io()
2408 fis->command = ATA_CMD_FPDMA_WRITE; in mtip_hw_submit_io()
2423 fill_command_sg(dd, command, nents); in mtip_hw_submit_io()
2425 if (unlikely(command->unaligned)) in mtip_hw_submit_io()
2429 command->command_header->opts = in mtip_hw_submit_io()
2432 command->command_header->byte_count = 0; in mtip_hw_submit_io()
2438 command->comp_data = dd; in mtip_hw_submit_io()
2439 command->comp_func = mtip_async_complete; in mtip_hw_submit_io()
2440 command->direction = dma_dir; in mtip_hw_submit_io()
3783 if (!cmd->command) in mtip_free_cmd()
3787 cmd->command, cmd->command_dma); in mtip_free_cmd()
3797 cmd->command = dmam_alloc_coherent(&dd->pdev->dev, CMD_DMA_ALLOC_SZ, in mtip_init_cmd()
3799 if (!cmd->command) in mtip_init_cmd()
3802 memset(cmd->command, 0, CMD_DMA_ALLOC_SZ); in mtip_init_cmd()