Lines Matching defs:pkt
68 PciVirtIO::read(PacketPtr pkt)
70 const unsigned M5_VAR_USED size(pkt->getSize());
73 if (!getBAR(pkt->getAddr(), bar, offset))
81 vio.readConfig(pkt, offset - OFF_VIO_DEVICE);
85 pkt->makeResponse();
91 pkt->setLE<uint32_t>(vio.deviceFeatures);
97 pkt->setLE<uint32_t>(vio.getGuestFeatures());
103 pkt->setLE<uint32_t>(vio.getQueueAddress());
109 pkt->setLE<uint16_t>(vio.getQueueSize());
115 pkt->setLE<uint16_t>(vio.getQueueSelect());
121 pkt->setLE<uint16_t>(queueNotify);
127 pkt->setLE<uint8_t>(vio.getDeviceStatus());
138 pkt->setLE<uint8_t>(isr_status);
149 PciVirtIO::write(PacketPtr pkt)
151 const unsigned M5_VAR_USED size(pkt->getSize());
154 if (!getBAR(pkt->getAddr(), bar, offset))
162 vio.writeConfig(pkt, offset - OFF_VIO_DEVICE);
166 pkt->makeResponse();
176 vio.setGuestFeatures(pkt->getLE<uint32_t>());
182 vio.setQueueAddress(pkt->getLE<uint32_t>());
192 vio.setQueueSelect(pkt->getLE<uint16_t>());
198 queueNotify = pkt->getLE<uint16_t>();
204 uint8_t status(pkt->getLE<uint8_t>());