Lines Matching refs:ide_state
611 IDEState *ide_state = &ad->port.ifs[0]; in ahci_init_d2h() local
622 pr->sig = ((uint32_t)ide_state->hcyl << 24) | in ahci_init_d2h()
623 (ide_state->lcyl << 16) | in ahci_init_d2h()
624 (ide_state->sector << 8) | in ahci_init_d2h()
625 (ide_state->nsector & 0xFF); in ahci_init_d2h()
645 IDEState *ide_state = &d->port.ifs[0]; in ahci_reset_port() local
651 ide_state->ncq_queues = AHCI_MAX_CMDS; in ahci_reset_port()
661 ide_state = &s->dev[port].port.ifs[0]; in ahci_reset_port()
662 if (!ide_state->blk) { in ahci_reset_port()
689 if (ide_state->drive_kind == IDE_CD) { in ahci_reset_port()
691 ide_state->status = SEEK_STAT | WRERR_STAT | READY_STAT; in ahci_reset_port()
694 ide_state->status = SEEK_STAT | WRERR_STAT; in ahci_reset_port()
697 ide_state->error = 1; in ahci_reset_port()
775 IDEState *ide_state; in ahci_write_fis_sdb() local
784 ide_state = &ad->port.ifs[0]; in ahci_write_fis_sdb()
789 sdb_fis->status = ide_state->status & 0x77; in ahci_write_fis_sdb()
790 sdb_fis->error = ide_state->error; in ahci_write_fis_sdb()
993 IDEState *ide_state = &ncq_tfs->drive->port.ifs[0]; in ncq_err() local
995 ide_state->error = ABRT_ERR; in ncq_err()
996 ide_state->status = READY_STAT | ERR_STAT; in ncq_err()
1025 IDEState *ide_state = &ncq_tfs->drive->port.ifs[0]; in ncq_cb() local
1031 BlockErrorAction action = blk_get_error_action(ide_state->blk, in ncq_cb()
1035 ide_state->bus->error_status = IDE_RETRY_HBA; in ncq_cb()
1039 blk_error_action(ide_state->blk, action, is_read, -ret); in ncq_cb()
1041 ide_state->status = READY_STAT | SEEK_STAT; in ncq_cb()
1067 IDEState *ide_state = &ad->port.ifs[0]; in execute_ncq_command() local
1077 dma_acct_start(ide_state->blk, &ncq_tfs->acct, in execute_ncq_command()
1079 ncq_tfs->aiocb = dma_blk_read(ide_state->blk, &ncq_tfs->sglist, in execute_ncq_command()
1087 dma_acct_start(ide_state->blk, &ncq_tfs->acct, in execute_ncq_command()
1089 ncq_tfs->aiocb = dma_blk_write(ide_state->blk, &ncq_tfs->sglist, in execute_ncq_command()
1188 IDEState *ide_state = &s->dev[port].port.ifs[0]; in handle_reg_h2d_fis() local
1237 ide_state->feature = cmd_fis[3]; in handle_reg_h2d_fis()
1238 ide_state->sector = cmd_fis[4]; /* LBA 7:0 */ in handle_reg_h2d_fis()
1239 ide_state->lcyl = cmd_fis[5]; /* LBA 15:8 */ in handle_reg_h2d_fis()
1240 ide_state->hcyl = cmd_fis[6]; /* LBA 23:16 */ in handle_reg_h2d_fis()
1241 ide_state->select = cmd_fis[7]; /* LBA 27:24 (LBA28) */ in handle_reg_h2d_fis()
1242 ide_state->hob_sector = cmd_fis[8]; /* LBA 31:24 */ in handle_reg_h2d_fis()
1243 ide_state->hob_lcyl = cmd_fis[9]; /* LBA 39:32 */ in handle_reg_h2d_fis()
1244 ide_state->hob_hcyl = cmd_fis[10]; /* LBA 47:40 */ in handle_reg_h2d_fis()
1245 ide_state->hob_feature = cmd_fis[11]; in handle_reg_h2d_fis()
1246 ide_state->nsector = (int64_t)((cmd_fis[13] << 8) | cmd_fis[12]); in handle_reg_h2d_fis()
1253 memcpy(ide_state->io_buffer, &cmd_fis[AHCI_COMMAND_TABLE_ACMD], 0x10); in handle_reg_h2d_fis()
1255 char *pretty_fis = ahci_pretty_buffer_fis(ide_state->io_buffer, 0x10); in handle_reg_h2d_fis()
1261 ide_state->error = 0; in handle_reg_h2d_fis()
1272 IDEState *ide_state; in handle_cmd() local
1293 ide_state = &s->dev[port].port.ifs[0]; in handle_cmd()
1294 if (!ide_state->blk) { in handle_cmd()