Lines Matching defs:data

145     // destroy the data buffer
152 // initialize the data buffer and shadow registers
213 IdeDisk::readCommand(const Addr offset, int size, uint8_t *data)
217 *(uint16_t *)data = cmdReg.data;
219 *(uint16_t *)data = cmdReg.data;
221 *((uint16_t *)data + 1) = cmdReg.data;
231 *data = cmdReg.error;
234 *data = cmdReg.sec_count;
237 *data = cmdReg.sec_num;
240 *data = cmdReg.cyl_low;
243 *data = cmdReg.cyl_high;
246 *data = cmdReg.drive;
249 *data = status;
255 DPRINTF(IdeDisk, "Read to disk at offset: %#x data %#x\n", offset, *data);
259 IdeDisk::readControl(const Addr offset, int size, uint8_t *data)
262 *data = status;
265 DPRINTF(IdeDisk, "Read to disk at offset: %#x data %#x\n", offset, *data);
269 IdeDisk::writeCommand(const Addr offset, int size, const uint8_t *data)
273 cmdReg.data = *(const uint16_t *)data;
275 cmdReg.data = *(const uint16_t *)data;
277 cmdReg.data = *((const uint16_t *)data + 1);
290 cmdReg.sec_count = *data;
293 cmdReg.sec_num = *data;
296 cmdReg.cyl_low = *data;
299 cmdReg.cyl_high = *data;
302 cmdReg.drive = *data;
306 cmdReg.command = *data;
312 DPRINTF(IdeDisk, "Write to disk at offset: %#x data %#x\n", offset,
313 (uint32_t)*data);
317 IdeDisk::writeControl(const Addr offset, int size, const uint8_t *data)
322 if (*data & CONTROL_RST_BIT) {
326 } else if (devState == Device_Srst && !(*data & CONTROL_RST_BIT)) {
330 nIENBit = *data & CONTROL_IEN_BIT;
332 DPRINTF(IdeDisk, "Write to disk at offset: %#x data %#x\n", offset,
333 (uint32_t)*data);
443 // clear out the data buffer
474 // write the data to the disk image
527 // clear out the data buffer
576 IdeDisk::readDisk(uint32_t sector, uint8_t *data)
578 uint32_t bytesRead = image->read(data, sector);
586 IdeDisk::writeDisk(uint32_t sector, uint8_t *data)
588 uint32_t bytesWritten = image->write(data, sector);
638 // Supported non-data commands
663 // Supported PIO data-in commands
688 // Supported PIO data-out commands
861 // copy the data into the data buffer
876 // put the first two bytes into the data register
877 memcpy((void *)&cmdReg.data, (void *)dataBuffer,
904 // copy next short into data registers
906 memcpy((void *)&cmdReg.data,
948 // clear the data buffer to get it ready for writes
977 // copy the latest short into the data buffer
979 (void *)&cmdReg.data,
1125 SERIALIZE_SCALAR(cmdReg.data);
1178 UNSERIALIZE_SCALAR(cmdReg.data);