Lines Matching refs:cmd

144         val = pr->cmd;  in ahci_port_read()
275 bool cmd_start = pr->cmd & PORT_CMD_START; in ahci_cond_start_engines()
276 bool cmd_on = pr->cmd & PORT_CMD_LIST_ON; in ahci_cond_start_engines()
277 bool fis_start = pr->cmd & PORT_CMD_FIS_RX; in ahci_cond_start_engines()
278 bool fis_on = pr->cmd & PORT_CMD_FIS_ON; in ahci_cond_start_engines()
282 pr->cmd &= ~PORT_CMD_START; in ahci_cond_start_engines()
293 pr->cmd &= ~PORT_CMD_FIS_RX; in ahci_cond_start_engines()
334 if ((pr->cmd & PORT_CMD_START) && !(val & PORT_CMD_START)) { in ahci_port_write()
345 pr->cmd = (pr->cmd & PORT_CMD_RO_MASK) | in ahci_port_write()
355 if ((pr->cmd & PORT_CMD_FIS_ON) && in ahci_port_write()
600 if ((pr->cmd & PORT_CMD_START) && pr->cmd_issue) { in check_cmd()
739 pr->cmd |= PORT_CMD_FIS_ON; in ahci_map_fis_address()
743 pr->cmd &= ~PORT_CMD_FIS_ON; in ahci_map_fis_address()
753 ad->port_regs.cmd &= ~PORT_CMD_FIS_ON; in ahci_unmap_fis_address()
766 pr->cmd |= PORT_CMD_LIST_ON; in ahci_map_clb_address()
770 pr->cmd &= ~PORT_CMD_LIST_ON; in ahci_map_clb_address()
780 ad->port_regs.cmd &= ~PORT_CMD_LIST_ON; in ahci_unmap_clb_address()
794 !(pr->cmd & PORT_CMD_FIS_RX)) { in ahci_write_fis_sdb()
834 if (!ad->res_fis || !(pr->cmd & PORT_CMD_FIS_RX)) { in ahci_write_fis_pio()
878 if (!ad->res_fis || !(pr->cmd & PORT_CMD_FIS_RX)) { in ahci_write_fis_d2h()
937 AHCICmdHdr *cmd, int64_t limit, uint64_t offset) in ahci_populate_sglist() argument
939 uint16_t opts = le16_to_cpu(cmd->opts); in ahci_populate_sglist()
940 uint16_t prdtl = le16_to_cpu(cmd->prdtl); in ahci_populate_sglist()
941 uint64_t cfis_addr = le64_to_cpu(cmd->tbl_addr); in ahci_populate_sglist()
1053 bool is_read = ncq_tfs->cmd == READ_FPDMA_QUEUED; in ncq_cb()
1093 g_assert(is_ncq(ncq_tfs->cmd)); in execute_ncq_command()
1096 switch (ncq_tfs->cmd) { in execute_ncq_command()
1119 ncq_tfs->tag, ncq_tfs->cmd); in execute_ncq_command()
1164 ncq_tfs->cmd = ncq_fis->command; in process_ncq_command()
1231 AHCICmdHdr *cmd = get_cmd_header(s, port, slot); in handle_reg_h2d_fis() local
1233 uint16_t opts = le16_to_cpu(cmd->opts); in handle_reg_h2d_fis()
1327 cmd->status = 0; in handle_reg_h2d_fis()
1345 AHCICmdHdr *cmd; in handle_cmd() local
1359 cmd = get_cmd_header(s, port, slot); in handle_cmd()
1361 s->dev[port].cur_cmd = cmd; in handle_cmd()
1370 tbl_addr = le64_to_cpu(cmd->tbl_addr); in handle_cmd()
1682 pr->cmd = PORT_CMD_SPIN_UP | PORT_CMD_POWER_ON; in ahci_reset()
1694 VMSTATE_UINT8(cmd, NCQTransferState),
1716 VMSTATE_UINT32(port_regs.cmd, AHCIDevice),
1745 if (!(pr->cmd & PORT_CMD_START) && (pr->cmd & PORT_CMD_LIST_ON)) { in ahci_state_post_load()
1750 if (!(pr->cmd & PORT_CMD_FIS_RX) && (pr->cmd & PORT_CMD_FIS_ON)) { in ahci_state_post_load()
1758 pr->cmd &= ~(PORT_CMD_LIST_ON | PORT_CMD_FIS_ON); in ahci_state_post_load()
1773 if (!is_ncq(ncq_tfs->cmd)) { in ahci_state_post_load()