Lines Matching refs:UFSHostDevice

48  * that the UFSHostDevice class contains functionality from both the host
58 * the UFSSCSIDevice functions will be presented; then the UFSHostDevice
59 * functions. The UFSHostDevice functions are split in three parts: UFS
77 UFSHostDevice::UFSSCSIDevice::UFSSCSIDevice(const UFSHostDeviceParams* p,
103 &UFSHostDevice::UFSSCSIDevice::readCallback>(this);
106 &UFSHostDevice::UFSSCSIDevice::SSDWriteDone>(this);
123 DPRINTF(UFSHostDevice, "Logic unit %d assumes that %d logic units are"
125 DPRINTF(UFSHostDevice,"The disksize of lun: %d should be %d blocks\n",
136 const unsigned int UFSHostDevice::UFSSCSIDevice::controlPage[3] =
139 const unsigned int UFSHostDevice::UFSSCSIDevice::recoveryPage[3] =
142 const unsigned int UFSHostDevice::UFSSCSIDevice::cachingPage[5] =
147 UFSHostDevice::UFSSCSIDevice::~UFSSCSIDevice() {}
160 struct UFSHostDevice::SCSIReply
161 UFSHostDevice::UFSSCSIDevice::SCSICMDHandle(uint32_t* SCSI_msg)
179 DPRINTF(UFSHostDevice, "SCSI command:%2x\n", SCSI_msg[4]);
221 DPRINTF(UFSHostDevice, "Read6 offset: 0x%8x, for %d blocks\n",
253 DPRINTF(UFSHostDevice, "Read10 offset: 0x%8x, for %d blocks\n",
288 DPRINTF(UFSHostDevice, "Read16 offset: 0x%8x, for %d blocks\n",
409 DPRINTF(UFSHostDevice, "Write6 offset: 0x%8x, for %d blocks\n",
439 DPRINTF(UFSHostDevice, "Write10 offset: 0x%8x, for %d blocks\n",
472 DPRINTF(UFSHostDevice, "Write16 offset: 0x%8x, for %d blocks\n",
524 DPRINTF(UFSHostDevice, "CONTROL page\n");
537 DPRINTF(UFSHostDevice, "RECOVERY page\n");
549 DPRINTF(UFSHostDevice, "CACHE page\n");
570 DPRINTF(UFSHostDevice, "Return ALL the pages!!!\n");
624 DPRINTF(UFSHostDevice, "Read buffer location: 0x%8x\n",
626 DPRINTF(UFSHostDevice, "Number of bytes: 0x%8x\n", read_size);
642 DPRINTF(UFSHostDevice, "Ignoring Maintenance In command\n");
675 UFSHostDevice::UFSSCSIDevice::statusCheck(uint8_t status,
692 UFSHostDevice::UFSSCSIDevice::readFlash(uint8_t* readaddr, uint64_t offset,
706 UFSHostDevice::UFSSCSIDevice::writeFlash(uint8_t* writeaddr, uint64_t offset,
719 UFSHostDevice::UFSHostDevice(const UFSHostDeviceParams* p) :
739 DPRINTF(UFSHostDevice, "The hostcontroller hosts %d Logic units\n",
743 transferDoneCallback = new MakeCallback<UFSHostDevice,
744 &UFSHostDevice::LUNSignal>(this);
745 memReadCallback = new MakeCallback<UFSHostDevice,
746 &UFSHostDevice::readCallback>(this);
767 UFSHostDevice*
770 return new UFSHostDevice(this);
775 UFSHostDevice::regStats()
889 void UFSHostDevice::setValues()
916 UFSHostDevice::getAddrRanges() const
929 UFSHostDevice::read(PacketPtr pkt)
1067 UFSHostDevice::write(PacketPtr pkt)
1231 UFSHostDevice::requestHandler()
1303 DPRINTF(UFSHostDevice, "Doorbell register: 0x%8x select #:"
1330 DPRINTF(UFSHostDevice, "Initial transfer start: 0x%8x\n",
1339 DPRINTF(UFSHostDevice, "Transfer scheduled\n");
1350 UFSHostDevice::taskStart()
1352 DPRINTF(UFSHostDevice, "Task start");
1364 UFSHostDevice::transferStart()
1366 DPRINTF(UFSHostDevice, "Enter transfer event\n");
1374 DPRINTF(UFSHostDevice, "Transfer queue size at end of event: "
1384 UFSHostDevice::commandHandler()
1398 UFSHostDevice::taskHandler(struct UTPUPIUTaskReq* request_in,
1434 UFSHostDevice::transferHandler(struct UTPTransferReqDesc* request_in,
1443 DPRINTF(UFSHostDevice, "SCSI message detected\n");
1464 DPRINTF(UFSHostDevice, "SCSI scheduled\n");
1477 UFSHostDevice::SCSIStart()
1479 DPRINTF(UFSHostDevice, "SCSI message on hold until ready\n");
1483 DPRINTF(UFSHostDevice, "SCSI queue %d has %d elements\n", LUN,
1509 DPRINTF(UFSHostDevice, "Transfer scheduled");
1522 UFSHostDevice::SCSIResume(uint32_t lun_id)
1524 DPRINTF(UFSHostDevice, "SCSIresume\n");
1543 DPRINTF(UFSHostDevice, "Task tag: 0x%8x\n", transfercommand[0]>>24);
1548 DPRINTF(UFSHostDevice, "LUN: %d\n", request_out_datain.LUN);
1584 DPRINTF(UFSHostDevice, "# PRDT entries: %d\n", length);
1620 DPRINTF(UFSHostDevice, "Data DMA size: 0x%8x\n",
1630 DPRINTF(UFSHostDevice, "Data DMA start: 0x%8x\n", SCSI_start);
1631 DPRINTF(UFSHostDevice, "Data DMA size: 0x%8x\n",
1651 DPRINTF(UFSHostDevice, "Total remaining: 0x%8x,accumulated so far"
1656 DPRINTF(UFSHostDevice, "Transfer #: %d\n", count);
1665 DPRINTF(UFSHostDevice, "SCSI resume done\n");
1674 UFSHostDevice::LUNSignal()
1706 UFSHostDevice::transferDone(Addr responseStartAddr, uint32_t req_pos,
1716 DPRINTF(UFSHostDevice, "DMA start: 0x%8x; DMA size: 0x%8x\n",
1730 DPRINTF(UFSHostDevice, "Transfer done start\n");
1745 UFSHostDevice::finalUTP()
1750 DPRINTF(UFSHostDevice, "SCSIInfoQueue size: %d, lun: %d\n",
1773 DPRINTF(UFSHostDevice, "UTP handled\n");
1778 DPRINTF(UFSHostDevice, "activeDoorbells: %d, pendingDoorbells: %d,"
1791 UFSHostDevice::readDone()
1793 DPRINTF(UFSHostDevice, "Read done start\n");
1819 UFSHostDevice::generateInterrupt()
1827 DPRINTF(UFSHostDevice, "Clear doorbell %X\n", UFSHCIMem.TRUTRLDBR);
1833 DPRINTF(UFSHostDevice, "Send interrupt @ transaction: 0x%8x!\n",
1842 UFSHostDevice::clearInterrupt()
1845 DPRINTF(UFSHostDevice, "Clear interrupt: 0x%8x!\n", countInt);
1880 UFSHostDevice::writeDevice(Event* additional_action, bool toDisk, Addr
1884 DPRINTF(UFSHostDevice, "Write transaction Start: 0x%8x; Size: %d\n",
1916 DPRINTF(UFSHostDevice, "Write to disk scheduled\n");
1922 DPRINTF(UFSHostDevice, "Write scheduled\n");
1932 UFSHostDevice::manageWriteTransfer(uint8_t LUN, uint64_t offset, uint32_t
1951 DPRINTF(UFSHostDevice, "Write data DMA start: 0x%8x\n",
1953 DPRINTF(UFSHostDevice, "Write data DMA size: 0x%8x\n",
1968 DPRINTF(UFSHostDevice, "Write not initiated queue: %d\n",
1972 DPRINTF(UFSHostDevice, "Write Location: 0x%8x\n",
1975 DPRINTF(UFSHostDevice, "Write transfer #: 0x%8x\n", count + 1);
1991 UFSHostDevice::writeDone()
2000 DPRINTF(UFSHostDevice, "Write done entered, queue: %d\n",
2030 DPRINTF(UFSHostDevice, "Write done end\n");
2037 UFSHostDevice::UFSSCSIDevice::SSDWriteStart()
2046 DPRINTF(UFSHostDevice, "Write is started; left in queue: %d\n",
2056 UFSHostDevice::UFSSCSIDevice::SSDWriteDone()
2058 DPRINTF(UFSHostDevice, "Write disk, aiming for %d messages, %d so far\n",
2069 DPRINTF(UFSHostDevice, "Write transactions finished\n");
2086 UFSHostDevice::readDevice(bool lastTransfer, Addr start, uint32_t size,
2090 DPRINTF(UFSHostDevice, "Read start: 0x%8x; Size: %d, data[0]: 0x%8x\n",
2121 UFSHostDevice::manageReadTransfer(uint32_t size, uint32_t LUN, uint64_t
2127 DPRINTF(UFSHostDevice, "Data READ size: %d\n", size);
2142 DPRINTF(UFSHostDevice, "Data READ start: 0x%8x; size: %d\n",
2161 DPRINTF(UFSHostDevice, "Transfer %d; Remaining: 0x%8x, Accumulated:"
2186 UFSHostDevice::UFSSCSIDevice::SSDReadStart(uint32_t total_read)
2207 UFSHostDevice::UFSSCSIDevice::SSDReadDone()
2209 DPRINTF(UFSHostDevice, "SSD read done at lun %d, Aiming for %d messages,"
2228 UFSHostDevice::UFSSCSIDevice::readCallback()
2233 * UFSHostDevice::readCallback
2248 UFSHostDevice::readCallback()
2250 DPRINTF(UFSHostDevice, "Read Callback\n");
2257 DPRINTF(UFSHostDevice, "Found LUN %d messages pending for clean: %d\n",
2286 UFSHostDevice::readGarbage()
2288 DPRINTF(UFSHostDevice, "Clean read data, %d\n", SSDReadPending.size());
2298 UFSHostDevice::serialize(CheckpointOut &cp) const
2315 UFSHostDevice::unserialize(CheckpointIn &cp)
2332 UFSHostDevice::drain()
2335 DPRINTF(UFSHostDevice, "UFSDevice is draining...\n");
2338 DPRINTF(UFSHostDevice, "UFSDevice drained\n");
2348 UFSHostDevice::checkDrain()
2354 DPRINTF(UFSHostDevice, "UFSDevice is still draining; with %d active"
2357 DPRINTF(UFSHostDevice, "UFSDevice is done draining\n");