Lines Matching refs:datacast
766 } datacast; in PciRead() local
767 datacast.l32 = 0; in PciRead()
777 if (read(fd, &datacast, size) != static_cast<ssize_t>(size)) { in PciRead()
785 sat_assert(&(datacast.l8) == reinterpret_cast<uint8*>(&datacast)); in PciRead()
786 return datacast.l8; in PciRead()
788 sat_assert(&(datacast.l16) == reinterpret_cast<uint16*>(&datacast)); in PciRead()
789 return datacast.l16; in PciRead()
791 return datacast.l32; in PciRead()
803 } datacast; in PciWrite() local
804 datacast.l32 = 0; in PciWrite()
813 sat_assert(&(datacast.l8) == reinterpret_cast<uint8*>(&datacast)); in PciWrite()
814 datacast.l8 = value; in PciWrite()
816 sat_assert(&(datacast.l16) == reinterpret_cast<uint16*>(&datacast)); in PciWrite()
817 datacast.l16 = value; in PciWrite()
819 datacast.l32 = value; in PciWrite()
826 if (write(fd, &datacast, size) != static_cast<ssize_t>(size)) { in PciWrite()
827 logprintf(0, "Process Error: Can't write %x to %x\n", datacast.l32, offset); in PciWrite()