• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/iokit/Kernel/

Lines Matching refs:buffer

435 IOReturn IODTNVRAM::readXPRAM(IOByteCount offset, UInt8 *buffer,
440 if ((buffer == 0) || (length == 0) ||
444 bcopy(_nvramImage + _xpramPartitionOffset + offset, buffer, length);
449 IOReturn IODTNVRAM::writeXPRAM(IOByteCount offset, UInt8 *buffer,
454 if ((buffer == 0) || (length == 0) ||
458 bcopy(buffer, _nvramImage + _xpramPartitionOffset + offset, length);
499 IOByteCount offset, UInt8 *buffer,
516 if ((buffer == 0) || (length == 0) ||
520 bcopy(_nvramImage + partitionOffset + offset, buffer, length);
526 IOByteCount offset, UInt8 *buffer,
543 if ((buffer == 0) || (length == 0) ||
547 bcopy(buffer, _nvramImage + partitionOffset + offset, length);
554 UInt32 IODTNVRAM::savePanicInfo(UInt8 *buffer, IOByteCount length)
562 bcopy(buffer, _piImage + 4, length);
746 UInt8 *buffer, *tmpBuffer;
761 buffer = tmpBuffer = IONew(UInt8, _ofPartitionSize);
762 if (buffer == 0) return kIOReturnNoMemory;
763 bzero(buffer, _ofPartitionSize);
790 bcopy(buffer, _ofImage, _ofPartitionSize);
793 IODelete(buffer, UInt8, _ofPartitionSize);
797 buffer = IONew(UInt8, _ofPartitionSize);
798 if (buffer == 0) return kIOReturnNoMemory;
799 bzero(buffer, _ofPartitionSize);
801 owHeader = (OWVariablesHeader *)buffer;
843 bcopy(tmpData, buffer + curOffset, tmpDataLength);
854 owHeader->owChecksum = ~generateOWChecksum(buffer);
856 bcopy(buffer, _ofImage, _ofPartitionSize);
859 IODelete(buffer, UInt8, _ofPartitionSize);
1057 bool IODTNVRAM::convertObjectToProp(UInt8 *buffer, UInt32 *length,
1104 buffer += snprintf((char *)buffer, *length, "%s=", propName);
1109 strlcpy((char *)buffer, "true", *length - propNameLength);
1111 strlcpy((char *)buffer, "false", *length - propNameLength);
1118 strlcpy((char *)buffer, "-1", *length - propNameLength);
1120 snprintf((char *)buffer, *length - propNameLength, "%ld", tmpValue);
1122 snprintf((char *)buffer, *length - propNameLength, "0x%lx", tmpValue);
1127 strlcpy((char *)buffer, tmpString->getCStringNoCopy(), *length - propNameLength);
1131 bcopy(tmpData->getBytesNoCopy(), buffer, propDataLength);
1136 propDataLength = strlen((const char *)buffer);
1144 UInt16 IODTNVRAM::generateOWChecksum(UInt8 *buffer)
1147 UInt16 *tmpBuffer = (UInt16 *)buffer;
1155 bool IODTNVRAM::validateOWChecksum(UInt8 *buffer)
1158 UInt16 *tmpBuffer = (UInt16 *)buffer;