Lines Matching defs:size
91 uint32_t lba_size = image->size();
100 panic("Bad IDE image size: 0\n");
115 // Set the maximum multisector transfer size
125 // Setup the current multisector transfer size
213 IdeDisk::readCommand(const Addr offset, int size, uint8_t *data)
216 if (size == sizeof(uint16_t)) {
218 } else if (size == sizeof(uint32_t)) {
223 panic("Data read of unsupported size %d.\n", size);
228 assert(size == sizeof(uint8_t));
259 IdeDisk::readControl(const Addr offset, int size, uint8_t *data)
261 assert(size == sizeof(uint8_t));
269 IdeDisk::writeCommand(const Addr offset, int size, const uint8_t *data)
272 if (size == sizeof(uint16_t)) {
274 } else if (size == sizeof(uint32_t)) {
279 panic("Data write of unsupported size %d.\n", size);
285 assert(size == sizeof(uint8_t));
317 IdeDisk::writeControl(const Addr offset, int size, const uint8_t *data)
405 .desc("Number of full page size DMA reads (not PRD).")
418 .desc("Number of full page size DMA writes.")
454 ctrl->dmaRead(pciToDma(dmaReadCG->addr()), dmaReadCG->size(),
456 dmaReadBytes += dmaReadCG->size();
458 if (dmaReadCG->size() == TheISA::PageBytes)
537 ctrl->dmaWrite(pciToDma(dmaWriteCG->addr()), dmaWriteCG->size(),
541 dmaWriteBytes += dmaWriteCG->size();
543 if (dmaWriteCG->size() == TheISA::PageBytes)
633 uint32_t size = 0;
640 size = (uint32_t)image->size() - 1;
641 cmdReg.sec_num = (size & 0xff);
642 cmdReg.cyl_low = ((size & 0xff00) >> 8);
643 cmdReg.cyl_high = ((size & 0xff0000) >> 16);
644 cmdReg.head = ((size & 0xf000000) >> 24);