Lines Matching refs:nsector
391 s->nsector = 1; in ide_set_signature()
557 s->bus->retry_nsector = s->nsector; in ide_set_retry()
781 n = s->nsector; in ide_sector_read_cb()
787 s->nsector -= n; in ide_sector_read_cb()
801 n = s->nsector; in ide_sector_read()
901 if (s->io_buffer_size > s->nsector * 512) { in ide_dma_cb()
906 n = s->nsector; in ide_dma_cb()
918 s->nsector -= n; in ide_dma_cb()
922 if (s->nsector == 0) { in ide_dma_cb()
929 n = s->nsector; in ide_dma_cb()
997 s->nsector * BDRV_SECTOR_SIZE, BLOCK_ACCT_READ); in ide_sector_start_dma()
1001 s->nsector * BDRV_SECTOR_SIZE, BLOCK_ACCT_WRITE); in ide_sector_start_dma()
1043 n = s->nsector; in ide_sector_write_cb()
1047 s->nsector -= n; in ide_sector_write_cb()
1050 if (s->nsector == 0) { in ide_sector_write_cb()
1054 int n1 = s->nsector; in ide_sector_write_cb()
1084 n = s->nsector; in ide_sector_write()
1173 s->nsector << 9), 0x200 - 2)); in ide_cfata_metadata_read()
1189 s->nsector << 9), 0x200 - 2)); in ide_cfata_metadata_write()
1235 if (!s->nsector) in ide_cmd_lba48_transform()
1236 s->nsector = 256; in ide_cmd_lba48_transform()
1238 if (!s->nsector && !s->hob_nsector) in ide_cmd_lba48_transform()
1239 s->nsector = 65536; in ide_cmd_lba48_transform()
1241 int lo = s->nsector; in ide_cmd_lba48_transform()
1244 s->nsector = (hi << 8) | lo; in ide_cmd_lba48_transform()
1307 bus->ifs[0].hob_nsector = bus->ifs[0].nsector; in ide_ioport_write()
1308 bus->ifs[1].hob_nsector = bus->ifs[1].nsector; in ide_ioport_write()
1309 bus->ifs[0].nsector = val; in ide_ioport_write()
1310 bus->ifs[1].nsector = val; in ide_ioport_write()
1370 s->nsector = 0; in ide_reset()
1481 if (s->drive_kind == IDE_CFATA && s->nsector == 0) { in cmd_set_multiple_mode()
1484 } else if ((s->nsector & 0xff) != 0 && in cmd_set_multiple_mode()
1485 ((s->nsector & 0xff) > MAX_MULT_SECTORS || in cmd_set_multiple_mode()
1486 (s->nsector & (s->nsector - 1)) != 0)) { in cmd_set_multiple_mode()
1489 s->mult_sectors = s->nsector & 0xff; in cmd_set_multiple_mode()
1523 n = MIN(s->nsector, s->req_nb_sectors); in cmd_write_multiple()
1650 s->nsector = 0xff; /* device active or idle */ in cmd_check_power_mode()
1659 s->sectors = s->nsector; in cmd_specify()
1716 uint8_t val = s->nsector & 0x07; in cmd_set_features()
1719 switch (s->nsector >> 3) { in cmd_set_features()
1805 s->nsector = 1; in cmd_packet()
1829 s->nsector = 0; in cmd_cfa_erase_sectors()
1890 s->nsector = 0x50; /* +20 C */ in cmd_ibm_sense_condition()
2253 ret = s->nsector & 0xff; in ide_ioport_read()
2716 s->nsector = s->bus->retry_nsector; in ide_restart_dma()
2981 VMSTATE_UINT32(nsector, IDEState),