/openbmc/libpldm/src/dsp/ |
H A D | pdr.c | 1 /* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */ 23 uint32_t size; member 32 uint32_t size; member 39 pldm_pdr_record *record); 42 static int pldm_pdr_remove_record(pldm_pdr *repo, pldm_pdr_record *record, 47 const pldm_pdr_record *record) in get_next_record_handle() argument 49 if (record == repo->last) { in get_next_record_handle() 52 return record->next->record_handle; in get_next_record_handle() 56 int pldm_pdr_add(pldm_pdr *repo, const uint8_t *data, uint32_t size, in pldm_pdr_add() argument 62 if (!repo || !data || !size) { in pldm_pdr_add() [all …]
|
/openbmc/linux/tools/perf/Documentation/ |
H A D | jitdump-specification.txt | 5 -------------------------------------------------------- 7 -------------------------------------------------------- 9 -------------------------------------------------------- 11 -------------------------------------------------------- 17 …ile is generated by Just-In-time compiler runtimes to save meta-data information about the generat… 21 The format of the file is binary. It is self-describing in terms of endianness and is portable acro… 27 …sequential accesses, i.e., append only mode. The file starts with a fixed size file header describ… 29 …ixed size header describing the type of record and its size. It is, itself, followed by the payloa… 36 Each jitdump file starts with a fixed size header containing the following fields in order: 39 * uint32_t magic : a magic number tagging the file type. The value is 4-byte long and represent… [all …]
|
/openbmc/libpldm/include/libpldm/ |
H A D | pdr.h | 1 /* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */ 19 * opaque structure that acts as a handle to a PDR record 40 * @param[in/out] repo - pointer to opaque pointer acting as a PDR repo handle 48 * @param[in] repo - opaque pointer acting as a PDR repo handle 50 * @return uint32_t - number of records 54 /** @brief Get size of a PDR repository, in bytes 58 * @param[in] repo - opaque pointer acting as a PDR repo handle 60 * @return uint32_t - size in bytes 64 /** @brief Add a PDR record to a PDR repository, or return an error 66 * @param[in/out] repo - opaque pointer acting as a PDR repo handle [all …]
|
H A D | fru.h | 1 /* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */ 42 /** @brief FRU record types 86 uint8_t fru_data_major_version; //!< The major version of the FRU Record 87 uint8_t fru_data_minor_version; //!< The minor version of the FRU Record 88 uint32_t fru_table_maximum_size; //!< The size of the largest FRU Record data 89 uint32_t fru_table_length; //!< The total length of the FRU Record Table 91 //!< Record Data structures 93 uint32_t checksum; //!< The integrity checksum on the FRU Record Table data 98 * Structure representing PLDM get FRU record table request. 107 * Structure representing PLDM get FRU record table response. [all …]
|
/openbmc/linux/fs/pstore/ |
H A D | ram.c | 1 // SPDX-License-Identifier: GPL-2.0-only 34 "size of each dump done on oops/panic"); 38 MODULE_PARM_DESC(console_size, "size of kernel console log"); 42 MODULE_PARM_DESC(ftrace_size, "size of ftrace log"); 46 MODULE_PARM_DESC(pmsg_size, "size of user space message log"); 56 "size of reserved RAM used to store oops/panic logs"); 61 "memory type: 0=write-combined (default), 1=unbuffered, 2=cached"); 63 static int ramoops_max_reason = -1; 71 "if non-zero, the option enables ECC support and specifies " 72 "ECC buffer size in bytes (1 is a special value, means 16 " [all …]
|
H A D | platform.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Persistent Storage - platform driver interface parts. 5 * Copyright (C) 2007-2008 Google, Inc. 32 * We defer making "oops" entries appear in pstore - see 36 static int pstore_update_ms = -1; 39 "(default is -1, which means runtime updates are disabled; " 50 "powerpc-ofw", 51 "powerpc-common", 53 "powerpc-opal", 82 * size, and compresses ASCII text comparatively well. In terms of compression [all …]
|
H A D | zone.c | 1 // SPDX-License-Identifier: GPL-2.0 26 * struct psz_buffer - header of zone to flush to storage 28 * @sig: signature to indicate header (PSZ_SIG xor PSZONE-type value) 42 * struct psz_kmsg_header - kmsg dump-specific header to flush to storage 51 * This is a sub-header for a kmsg dump, trailing after &psz_buffer. 64 * struct pstore_zone - single stored buffer 67 * @type: front-end type for this zone 68 * @name: front-end name for this zone 71 * @buffer_size: bytes in @buffer->data 90 * struct psz_context - all about running state of pstore/zone [all …]
|
/openbmc/linux/lib/pldmfw/ |
H A D | pldmfw.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (C) 2018-2019, Intel Corporation. */ 53 * pldm_check_fw_space - Verify that the firmware image has space left 61 * Returns: zero on success, or -EFAULT if the image does not have enough 68 struct device *dev = data->context->dev; in pldm_check_fw_space() 70 if (data->fw->size < expected_size) { in pldm_check_fw_space() 71 dev_dbg(dev, "Firmware file size smaller than expected. Got %zu bytes, needed %zu bytes\n", in pldm_check_fw_space() 72 data->fw->size, expected_size); in pldm_check_fw_space() 73 return -EFAULT; in pldm_check_fw_space() 80 * pldm_move_fw_offset - Move the current firmware offset forward [all …]
|
H A D | pldmfw_private.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright (C) 2018-2019, Intel Corporation. */ 16 * structures is not guaranteed when reading. For this reason, all multi-byte 18 * Additionally, the standard specifies that multi-byte fields are in 26 /* UUID for PLDM firmware packages: f018878c-cb7d-4943-9800-a02f059aca02 */ 44 __le16 size; /* PackageHeaderSize */ member 56 * The total size of this section is 62 /* Firmware Device ID Record */ 80 * The total size of each record is 93 __le16 size; /* DescriptorSize */ member [all …]
|
/openbmc/linux/fs/freevxfs/ |
H A D | vxfs_olt.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2000-2001 Christoph Hellwig. 9 * Veritas filesystem driver - Object Location Table data structures. 17 * OLT magic number (vxfs_olt->olt_magic). 37 * OLT extent. It is used to fing certain filesystem-wide metadata, e.g. 42 __fs32 olt_size; /* size of this entry */ 49 __fs32 olt_esize; /* size of this extent */ 51 __fs32 olt_nsize; /* size of next extent */ 59 __fs32 olt_type; /* type of this record */ 60 __fs32 olt_size; /* size of this record */ [all …]
|
/openbmc/linux/drivers/firmware/efi/ |
H A D | efi-pstore.c | 1 // SPDX-License-Identifier: GPL-2.0+ 15 MODULE_PARM_DESC(record_size, "size of each pstore UEFI var (in bytes, min/default=1024)"); 35 psi->data = kzalloc(record_size, GFP_KERNEL); in efi_pstore_open() 36 if (!psi->data) in efi_pstore_open() 37 return -ENOMEM; in efi_pstore_open() 45 kfree(psi->data); in efi_pstore_close() 54 static int efi_pstore_read_func(struct pstore_record *record, in efi_pstore_read_func() argument 57 unsigned long wlen, size = record_size; in efi_pstore_read_func() local 66 if (sscanf(name, "dump-type%u-%u-%d-%llu-%c", in efi_pstore_read_func() 67 &record->type, &part, &cnt, &time, &data_type) == 5) { in efi_pstore_read_func() [all …]
|
/openbmc/linux/include/linux/ |
H A D | pstore.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Persistent Storage - pstore.h 24 * pstore record types (see fs/pstore/platform.c for pstore_type_names[]) 35 /* PPC64-specific partition types */ 51 * struct pstore_record - details of a pstore record entry 53 * @type: pstore record type 54 * @id: per-type unique identifier for record 55 * @time: timestamp of the record 56 * @buf: pointer to record contents 57 * @size: size of @buf [all …]
|
/openbmc/linux/drivers/net/wireless/ath/wil6210/ |
H A D | fw.h | 1 /* SPDX-License-Identifier: ISC */ 4 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 27 __le32 size; /* whole record, bytes after head */ member 31 * data_size inferred from the @head.size. For this case, 32 * data_size = @head.size - offsetof(struct wil_fw_record_data, data) 39 /* fill with constant @value, @size bytes starting from @addr */ 43 __le32 size; member 46 /* free-form comment 47 * for informational purpose, data_size is @head.size from record header 50 DECLARE_FLEX_ARRAY(u8, data); /* free-form data [data_size], see above */ [all …]
|
H A D | fw_inc.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2014-2017 Qualcomm Atheros, Inc. 4 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 21 u32 size, const char *msg) in wil_fw_addr_check() argument 23 *ioaddr = wmi_buffer_block(wil, val, size); in wil_fw_addr_check() 32 * wil_fw_verify - verify firmware file validity 37 * Return file size or negative error 39 static int wil_fw_verify(struct wil6210_priv *wil, const u8 *data, size_t size) in wil_fw_verify() argument 47 if (size % 4) { in wil_fw_verify() 48 wil_err_fw(wil, "image size not aligned: %zu\n", size); in wil_fw_verify() [all …]
|
/openbmc/pldm/libpldmresponder/ |
H A D | pdr_utils.cpp | 6 #include <phosphor-logging/lg2.hpp> 21 // 7: uint16_t(FRU Record Set Identifier), uint8_t(FRU Record Type), 37 int rc = pldm_pdr_add(repo, pdrEntry.data, pdrEntry.size, false, in addRecord() 51 auto record = in getFirstRecord() local 52 pldm_pdr_find_record(getPdr(), firstNum, &pdrData, &pdrEntry.size, in getFirstRecord() 54 if (record) in getFirstRecord() 59 return record; in getFirstRecord() 66 auto record = in getNextRecord() local 67 pldm_pdr_get_next_record(getPdr(), currRecord, &pdrData, &pdrEntry.size, in getNextRecord() 69 if (record) in getNextRecord() [all …]
|
H A D | pdr_utils.hpp | 9 #include <phosphor-logging/lg2.hpp> 58 * PDR entry structure that acts as a PDR record structure in the PDR 64 uint32_t size; member 86 * @param[in] path - path of PDR JSON file 88 * @return Json - Json object 108 /** @brief Populate the mapping between D-Bus property stateId and attribute 111 * @param[in] type - type of the D-Bus property 112 * @param[in] dBusValues - json array of D-Bus property values 113 * @param[in] pv - Possible values for the effecter PDR enumeration attribute 115 * @return StatestoDbusVal - Map of D-Bus property stateId to attribute value [all …]
|
/openbmc/u-boot/common/ |
H A D | bootstage.c | 1 // SPDX-License-Identifier: GPL-2.0+ 34 struct bootstage_record record[RECORD_COUNT]; member 46 uint32_t size; /* Total data size (non-zero if valid) */ member 52 struct bootstage_data *data = gd->bootstage; in bootstage_relocate() 59 debug("Relocating %d records\n", data->rec_count); in bootstage_relocate() 60 for (i = 0; i < data->rec_count; i++) in bootstage_relocate() 61 data->record[i].name = strdup(data->record[i].name); in bootstage_relocate() 72 for (rec = data->record, end = rec + data->rec_count; rec < end; in find_id() 74 if (rec->id == id) in find_id() 87 if (!rec && data->rec_count < RECORD_COUNT) { in ensure_id() [all …]
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | nvram_64.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 32 /* If change this size, then change the size of NVNAME_LEN */ 51 .name = "ibm,rtas-log", 54 .index = -1, 60 .name = "lnx,oops-log", 63 .index = -1, 69 "ibm,rtas-log", 71 "lnx,oops-log", 95 * +- oops_buf 96 * | +- oops_data [all …]
|
/openbmc/libcper/tests/ |
H A D | ir-tests.cpp | 2 * Defines tests for validating CPER-JSON IR output from the cper-parse library. 9 #include "test-utils.hpp" 14 #include <libcper/cper-parse.h> 15 #include <libcper/json-schema.h> 16 #include <libcper/generator/cper-generate.h> 17 #include <libcper/sections/cper-section.h> 18 #include <libcper/generator/sections/gen-section.h> 31 //Generate full CPER record for the given type. in cper_create_examples() 38 size_t size; in cper_create_examples() local 39 FILE *record = generate_record_memstream(§ion_name, 1, &buf, &size, in cper_create_examples() local [all …]
|
/openbmc/smbios-mdr/src/ |
H A D | mdrv2.cpp | 8 // http://www.apache.org/licenses/LICENSE-2.0 23 #include <phosphor-logging/elog-errors.hpp> 42 "Read data from flash error - Open MDRV2 table file failure"); in getDirectoryInformation() 54 uint8_t returnedEntries = smbiosDir.dirEntries - dirIndex; in getDirectoryInformation() 63 smbiosDir.dirEntries - dirIndex - returnedEntries); in getDirectoryInformation() 169 // If source variable size is 4 bytes (uint32_t) and destination is Vector type 171 // Example copying data from smbiosDir.dir[idIndex].common.size and 198 appendReversed(responseInfo, smbiosDir.dir[idIndex].common.size); in getDataInformation() 210 "Read data from flash error - Invalid mdr header"); in readDataFromFlash() 216 "Read data from flash error - Invalid data point"); in readDataFromFlash() [all …]
|
/openbmc/u-boot/arch/x86/include/asm/ |
H A D | mrccache.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 18 u32 data_size; /* Size of the 'data' field */ 21 u8 data[0]; /* Variable size, platform/run time dependent */ 33 * mrccache_find_current() - find the latest MRC cache record 35 * This searches the MRC cache region looking for the latest record to use 38 * @entry: Position and size of MRC cache in SPI flash 39 * @return pointer to latest record, or NULL if none 44 * mrccache_update() - update the MRC cache with a new record 46 * This writes a new record to the end of the MRC cache region. If the new 47 * record is the same as the latest record then the write is skipped [all …]
|
/openbmc/linux/tools/firmware/ |
H A D | ihex2fw.c | 1 // SPDX-License-Identifier: GPL-2.0-only 25 #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) 40 if (n >= '0' && n <= '9') return n - '0'; in nybble() 41 else if (n >= 'A' && n <= 'F') return n - ('A' - 10); in nybble() 42 else if (n >= 'a' && n <= 'f') return n - ('a' - 10); in nybble() 53 static int process_ihex(uint8_t *data, ssize_t size); 54 static void file_record(struct ihex_binrec *record); 66 fprintf(stderr, " -w: wide records (16-bit length)\n"); in usage() 67 fprintf(stderr, " -s: sort records by address\n"); in usage() 68 fprintf(stderr, " -j: include records for CS:IP/EIP address\n"); in usage() [all …]
|
/openbmc/linux/tools/perf/ |
H A D | builtin-record.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * builtin-record.c 5 * Builtin record command: Record the profile of a workload 6 * (or a CPU, or a PID) into the perf.data output file - for 11 #include "util/build-id.h" 12 #include <subcmd/parse-options.h> 14 #include "util/parse-events.h" 30 #include "util/record.h" 37 #include "util/parse-branch-options.h" 38 #include "util/parse-regs-options.h" [all …]
|
/openbmc/linux/drivers/acpi/apei/ |
H A D | erst.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * APEI Error Record Serialization Table support 30 #include "apei-internal.h" 68 u64 size; member 89 return -ENODEV; in erst_errno() 91 return -ENOSPC; in erst_errno() 94 return -ENOENT; in erst_errno() 96 return -EINVAL; in erst_errno() 106 *t -= spin_unit; in erst_timedout() 115 return __apei_exec_read_register(entry, &ctx->var1); in erst_exec_load_var1() [all …]
|
/openbmc/u-boot/include/ |
H A D | bloblist.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 4 * (TPL -> SPL -> U-Boot proper.) 7 * and can be updated by SPL, U-Boot, etc. 25 /* Vendor-specific tags are permitted here */ 26 BLOBLISTT_EC_HOSTEVENT, /* Chromium OS EC host-event mask */ 27 BLOBLISTT_SPL_HANDOFF, /* Hand-off info from SPL */ 33 * struct bloblist_hdr - header for the bloblist 35 * This is stored at the start of the bloblist which is always on a 16-byte 37 * same place in memory as SPL and U-Boot execute, but it can be safely moved 41 * pointers inside a bloblist record if desired. This is not encouraged, [all …]
|