Lines Matching refs:record_length
623 uint32_t record_length; in read_erst_record() local
631 memcpy((uint8_t *)&record_length, in read_erst_record()
634 record_length = le32_to_cpu(record_length); in read_erst_record()
635 if (record_length < UEFI_CPER_RECORD_MIN_SIZE) { in read_erst_record()
638 if (record_length > exchange_length - s->record_offset) { in read_erst_record()
643 memcpy(exchange, nvram, record_length); in read_erst_record()
664 uint32_t record_length; in write_erst_record() local
681 memcpy((uint8_t *)&record_length, &exchange[UEFI_CPER_RECORD_LENGTH_OFFSET], in write_erst_record()
683 record_length = le32_to_cpu(record_length); in write_erst_record()
684 if (record_length < UEFI_CPER_RECORD_MIN_SIZE) { in write_erst_record()
687 if (record_length > exchange_length - s->record_offset) { in write_erst_record()
718 memcpy(nvram, exchange, record_length); in write_erst_record()
719 memset(nvram + record_length, 0xFF, exchange_length - record_length); in write_erst_record()