/openbmc/libcper/sections/ |
H A D | cper-section-cxl-protocol.c | 11 #include <libcper/cper-utils.h> 12 #include <libcper/sections/cper-section-cxl-protocol.h> 23 bitfield_to_ir(cxl_protocol_error->ValidBits, 7, in cper_section_cxl_protocol_to_ir() 29 cxl_protocol_error->CxlAgentType, 2, in cper_section_cxl_protocol_to_ir() 36 if (cxl_protocol_error->CxlAgentType == in cper_section_cxl_protocol_to_ir() 42 cxl_protocol_error->CxlAgentAddress in cper_section_cxl_protocol_to_ir() 47 cxl_protocol_error->CxlAgentAddress in cper_section_cxl_protocol_to_ir() 52 cxl_protocol_error->CxlAgentAddress in cper_section_cxl_protocol_to_ir() 57 cxl_protocol_error->CxlAgentAddress in cper_section_cxl_protocol_to_ir() 59 } else if (cxl_protocol_error->CxlAgentType == in cper_section_cxl_protocol_to_ir() [all …]
|
H A D | cper-section-dmar-iommu.c | 12 #include <libcper/cper-utils.h> 13 #include <libcper/sections/cper-section-dmar-iommu.h> 24 json_object_new_int(iommu_error->Revision)); in cper_section_dmar_iommu_to_ir() 28 json_object_new_uint64(iommu_error->Control)); in cper_section_dmar_iommu_to_ir() 30 json_object_new_uint64(iommu_error->Status)); in cper_section_dmar_iommu_to_ir() 36 char *encoded = base64_encode((UINT8 *)iommu_error->EventLogEntry, 16, in cper_section_dmar_iommu_to_ir() local 38 if (encoded == NULL) { in cper_section_dmar_iommu_to_ir() 44 json_object_new_string_len(encoded, in cper_section_dmar_iommu_to_ir() 46 free(encoded); in cper_section_dmar_iommu_to_ir() 51 encoded = base64_encode((UINT8 *)iommu_error->DeviceTableEntry, 32, in cper_section_dmar_iommu_to_ir() [all …]
|
H A D | cper-section-dmar-vtd.c | 2 * Describes functions for converting VT-d specific DMAr CPER sections from binary and JSON format 12 #include <libcper/cper-utils.h> 13 #include <libcper/sections/cper-section-dmar-vtd.h> 15 //Converts a single VT-d specific DMAr CPER section into JSON IR. 22 //Version, revision and OEM ID, as defined in the VT-d architecture. in cper_section_dmar_vtd_to_ir() 25 oem_id |= (UINT64)vtd_error->OemId[i] << (i * 8); in cper_section_dmar_vtd_to_ir() 28 json_object_new_int(vtd_error->Version)); in cper_section_dmar_vtd_to_ir() 30 json_object_new_int(vtd_error->Revision)); in cper_section_dmar_vtd_to_ir() 36 json_object_new_uint64(vtd_error->Capability)); in cper_section_dmar_vtd_to_ir() 38 json_object_new_uint64(vtd_error->CapabilityEx)); in cper_section_dmar_vtd_to_ir() [all …]
|
H A D | cper-section-pcie.c | 12 #include <libcper/cper-utils.h> 13 #include <libcper/sections/cper-section-pcie.h> 34 pcie_error->ValidFields, 8, PCIE_ERROR_VALID_BITFIELD_NAMES); in cper_section_pcie_to_ir() 39 pcie_error->PortType, 9, PCIE_ERROR_PORT_TYPES_KEYS, in cper_section_pcie_to_ir() 47 json_object_new_int(bcd_to_int(pcie_error->Version & 0xFF))); in cper_section_pcie_to_ir() 50 json_object_new_int(bcd_to_int(pcie_error->Version >> 8))); in cper_section_pcie_to_ir() 57 json_object_new_uint64(pcie_error->CommandStatus & 0xFFFF)); in cper_section_pcie_to_ir() 60 json_object_new_uint64(pcie_error->CommandStatus >> 16)); in cper_section_pcie_to_ir() 65 UINT64 class_id = (pcie_error->DevBridge.ClassCode[0] << 16) + in cper_section_pcie_to_ir() 66 (pcie_error->DevBridge.ClassCode[1] << 8) + in cper_section_pcie_to_ir() [all …]
|
H A D | cper-section-ccix-per.c | 12 #include <libcper/cper-utils.h> 13 #include <libcper/sections/cper-section-ccix-per.h> 23 json_object_new_uint64(ccix_error->Length)); in cper_section_ccix_per_to_ir() 27 ccix_error->ValidBits, 3, CCIX_PER_ERROR_VALID_BITFIELD_NAMES); in cper_section_ccix_per_to_ir() 32 json_object_new_int(ccix_error->CcixSourceId)); in cper_section_ccix_per_to_ir() 34 json_object_new_int(ccix_error->CcixPortId)); in cper_section_ccix_per_to_ir() 40 ccix_error->Length - sizeof(EFI_CCIX_PER_LOG_DATA); in cper_section_ccix_per_to_ir() 44 char *encoded = base64_encode((UINT8 *)cur_pos, in cper_section_ccix_per_to_ir() local 46 if (encoded == NULL) { in cper_section_ccix_per_to_ir() 51 encoded, encoded_len)); in cper_section_ccix_per_to_ir() [all …]
|
H A D | cper-section-cxl-component.c | 11 #include <libcper/cper-utils.h> 12 #include <libcper/sections/cper-section-cxl-component.h> 23 json_object_new_uint64(cxl_error->Length)); in cper_section_cxl_component_to_ir() 27 bitfield_to_ir(cxl_error->ValidBits, 3, in cper_section_cxl_component_to_ir() 35 json_object_new_int(cxl_error->DeviceId.VendorId)); in cper_section_cxl_component_to_ir() 38 json_object_new_int(cxl_error->DeviceId.DeviceId)); in cper_section_cxl_component_to_ir() 41 json_object_new_int(cxl_error->DeviceId.FunctionNumber)); in cper_section_cxl_component_to_ir() 44 json_object_new_int(cxl_error->DeviceId.DeviceNumber)); in cper_section_cxl_component_to_ir() 47 json_object_new_int(cxl_error->DeviceId.BusNumber)); in cper_section_cxl_component_to_ir() 50 json_object_new_int(cxl_error->DeviceId.SegmentNumber)); in cper_section_cxl_component_to_ir() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/libsdl/libsdl-1.2.15/ |
H A D | CVE-2019-7574.patch | 4 # Mon Jun 10 08:50:59 2019 -0700 5 # Branch SDL-1.2 8 CVE-2019-7574: Fix a buffer overread in IMA_ADPCM_decode 13 CVE-2019-7574 16 Signed-off-by: Petr Písař <ppisar@redhat.com> 18 CVE: CVE-2019-7574 19 Upstream-Status: Backport 20 Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> 22 diff -r 388987dff7bf -r a6e3d2f5183e src/audio/SDL_wave.c 23 --- a/src/audio/SDL_wave.c Sat Jun 08 18:02:09 2019 -0700 [all …]
|
H A D | CVE-2019-7577.patch | 4 # Mon Jun 10 08:54:11 2019 -0700 5 # Branch SDL-1.2 8 CVE-2019-7577: Fix a buffer overread in MS_ADPCM_decode 16 CVE-2019-7577 19 Signed-off-by: Petr Písař <ppisar@redhat.com> 24 # Mon Jun 10 08:54:29 2019 -0700 25 # Branch SDL-1.2 28 CVE-2019-7577: Fix a buffer overread in MS_ADPCM_nibble and MS_ADPCM_decode 41 CVE-2019-7577 44 Signed-off-by: Petr Písař <ppisar@redhat.com> [all …]
|
H A D | CVE-2019-7575.patch | 4 # Mon Jun 10 09:25:05 2019 -0700 5 # Branch SDL-1.2 8 CVE-2019-7575: Fix a buffer overwrite in MS_ADPCM_decode 16 CVE-2019-7575 18 Signed-off-by: Petr Písař <ppisar@redhat.com> 20 CVE: CVE-2019-7575 21 Upstream-Status: Backport 22 Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> 24 diff -r fcbecae42795 -r a936f9bd3e38 src/audio/SDL_wave.c 25 --- a/src/audio/SDL_wave.c Mon Jun 10 09:06:23 2019 -0700 [all …]
|
H A D | CVE-2019-7572.patch | 4 # Mon Jun 10 08:57:11 2019 -0700 5 # Branch SDL-1.2 8 CVE-2019-7572: Fix a buffer overwrite in IMA_ADPCM_decode 16 CVE-2019-7572 19 Signed-off-by: Petr Písař <ppisar@redhat.com> 24 # Sat Jun 08 17:57:43 2019 -0700 25 # Branch SDL-1.2 28 CVE-2019-7572: Fix a buffer overread in IMA_ADPCM_nibble 37 CVE-2019-7572 40 Signed-off-by: Petr Písař <ppisar@redhat.com> [all …]
|
/openbmc/linux/drivers/soc/qcom/ |
H A D | qmi_encdec.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. 68 * skip_to_next_elem() - Skip to next element in the structure to be encoded 77 * Return: struct info of the next element that can be encoded. 89 tlv_type = temp_ei->tlv_type; in skip_to_next_elem() 91 } while (tlv_type == temp_ei->tlv_type); in skip_to_next_elem() 98 * qmi_calc_min_msg_len() - Calculate the minimum length of a QMI message 113 while (temp_ei->data_type != QMI_EOTI) { in qmi_calc_min_msg_len() 115 if (temp_ei->data_type == QMI_OPT_FLAG) { in qmi_calc_min_msg_len() 120 if (temp_ei->data_type == QMI_DATA_LEN) { in qmi_calc_min_msg_len() [all …]
|
/openbmc/qemu/crypto/ |
H A D | der.h | 30 /* Simple decoder used to parse DER encoded rsa keys. */ 34 * @value: the starting address of |value| part of 'Tag-Length-Value' pattern. 49 * Decode integer from DER-encoded data. 54 * part of the decoded INTEGER will be returned. Otherwise, -1 is 65 * Decode sequence from DER-encoded data, similar with der_decode_int. 76 * part of the decoded SEQUENCE will be returned. Otherwise, -1 is 88 * Decode OID from DER-encoded data, similar with der_decode_int. 99 * part of the decoded OID will be returned. Otherwise, -1 is 111 * Decode OCTET STRING from DER-encoded data, similar with der_decode_int. 122 * part of the decoded OCTET STRING will be returned. Otherwise, -1 is [all …]
|
/openbmc/qemu/docs/specs/ |
H A D | ppc-spapr-hotplug.rst | 7 "logical"/para-virtual resources like memory, CPUs, and "physical" 8 host-bridges, which are generally managed by the host/hypervisor and provided 14 Dynamic-reconfiguration Connectors 26 the name/index/power-domain/type of each DRC allocated to a guest at 33 for hot plugged resources described under :ref:`guest-host-interface`. 37 of ``ibm,drc-indexes``: 39 ``ibm,drc-names`` 40 ----------------- 42 First 4-bytes: big-endian (BE) encoded integer denoting the number of entries. 44 Each entry: a NULL-terminated ``<name>`` string encoded as a byte array. [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/powerpc/fsl/ |
H A D | pamu.txt | 5 The PAMU is an I/O MMU that provides device-to-memory access control and 10 - compatible : <string> 11 First entry is a version-specific string, such as 12 "fsl,pamu-v1.0". The second is "fsl,pamu". 13 - ranges : <prop-encoded-array> 20 - interrupts : <prop-encoded-array> 25 - #address-cells: <u32> 27 - #size-cells : <u32> 31 - reg : <prop-encoded-array> 35 - fsl,portid-mapping : <u32> [all …]
|
H A D | dcsr.txt | 21 - compatible 24 Definition: Must include "fsl,dcsr" and "simple-bus". 25 The DCSR space exists in the memory-mapped bus. 27 - #address-cells 33 - #size-cells 40 - ranges 42 Value type: <prop-encoded-array> 48 #address-cells = <1>; 49 #size-cells = <1>; 50 compatible = "fsl,dcsr", "simple-bus"; [all …]
|
/openbmc/libbej/src/ |
H A D | bej_common.c | 16 // represent the value in little-endian format. in bejGetNnint() 30 if (val == 0 || val == -1) in bejIntLengthOfValue() 36 uint8_t byteIndex = sizeof(uint64_t) - 1; in bejIntLengthOfValue() 44 byteLength--; in bejIntLengthOfValue() 45 byteIndex--; in bejIntLengthOfValue() 49 // If the value is positive and encoded MSBbit is 1 we need to add 0x00 to in bejIntLengthOfValue() 50 // the encoded value as padding. in bejIntLengthOfValue() 56 // If the value is negative and encoded MSBbit is 0 we need to add 0xFF to in bejIntLengthOfValue() 57 // the encoded value as padding. in bejIntLengthOfValue() 81 // From the size of the encoded value, we need 1 byte for the length field. in bejNnintLengthFieldOfUInt() [all …]
|
H A D | bej_decoder_core.c | 16 * not do anything. If the callback function returns a non-zero value, this will 17 * cause the caller to return with the non-zero status. 35 * @param[in] bytes - valid pointer to a byte stream in little-endian format. 36 * @param[in] numOfBytes - number of bytes belongs to the value. Maximum value 49 uint64_t mask = (uint64_t)1 << (uint8_t)(bitsInVal - 1); in bejGetIntegerValue() 50 return (int64_t)((value ^ mask) - mask); in bejGetIntegerValue() 56 * @param[in] enSegment - a valid pointer to a start of a SFLV bejTuple. 57 * @param[out] offsets - this will hold the local offsets. 63 // [Number of bytes need to represent the sequence number] - uint8_t in bejGetLocalBejSFLVOffsets() 64 // [SequenceNumber] - multi byte in bejGetLocalBejSFLVOffsets() [all …]
|
/openbmc/linux/include/crypto/ |
H A D | sig.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 13 * struct crypto_sig - user-instantiated objects which encapsulate 30 * crypto_alloc_sig() - allocate signature tfm handle 47 return &tfm->base; in crypto_sig_tfm() 51 * crypto_free_sig() - free signature tfm handle 63 * crypto_sig_maxsize() - Get len for output buffer 75 * crypto_sig_sign() - Invoke signing operation 92 * crypto_sig_verify() - Invoke signature verification 110 * crypto_sig_set_pubkey() - Invoke set public key operation 113 * how to decode and interpret the encoded key and parameters [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | check-qjson.c | 10 * See the COPYING.LIB file in the top-level directory. 43 g_string_truncate(json, json->len - 1); in to_json_str() 59 { "single byte utf-8 \\u0020", "single byte utf-8 ", .skip = 1 }, in escaped_string() 60 { "double byte utf-8 \\u00A2", "double byte utf-8 \xc2\xa2" }, in escaped_string() 61 { "triple byte utf-8 \\u20AC", "triple byte utf-8 \xe2\x82\xac" }, in escaped_string() 62 { "quadruple byte utf-8 \\uD834\\uDD1E", /* U+1D11E */ in escaped_string() 63 "quadruple byte utf-8 \xF0\x9D\x84\x9E" }, in escaped_string() 122 cstr = g_strndup(test_cases[i] + 1, strlen(test_cases[i]) - 2); in string_with_quotes() 132 * Most test cases are scraped from Markus Kuhn's UTF-8 decoder in utf8_string() 134 * http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt in utf8_string() [all …]
|
/openbmc/linux/Documentation/powerpc/ |
H A D | associativity.rst | 9 are represented as being members of a sub-grouping domain. This performance 17 Hypervisor indicates the type/form of associativity used via "ibm,architecture-vec-5 property". 18 Bit 0 of byte 5 in the "ibm,architecture-vec-5" property indicates usage of Form 0 or Form 1. 20 bit 2 of byte 5 in the "ibm,architecture-vec-5" property is used. 23 ------ 27 ------ 28 With Form 1 a combination of ibm,associativity-reference-points, and ibm,associativity 34 The “ibm,associativity-reference-points” property contains a list of one or more numbers 43 if they belong to the same higher-level domains. For mismatch at every higher 48 ------- [all …]
|
/openbmc/linux/usr/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 11 space-separated list of directories and files for building the 21 See <file:Documentation/driver-api/early-userspace/early_userspace_support.rst> for more details. 41 (-1 = current user) will be owned by root in the resulting image. 51 (-1 = current group) will be owned by root in the resulting image. 60 Support loading of a gzip encoded initial ramdisk or cpio buffer. 68 Support loading of a bzip2 encoded initial ramdisk or cpio buffer 76 Support loading of a LZMA encoded initial ramdisk or cpio buffer 84 Support loading of a XZ encoded initial ramdisk or cpio buffer. 92 Support loading of a LZO encoded initial ramdisk or cpio buffer [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/phy/ |
H A D | qcom,usb-8x16-phy.txt | 3 - compatible: 6 Definition: Should contain "qcom,usb-8x16-phy". 8 - reg: 10 Value type: <prop-encoded-array> 13 - clocks: 15 Value type: <prop-encoded-array> 16 Definition: See clock-bindings.txt section "consumers". List of 20 - clock-names: 25 - vddcx-supply: 30 - v1p8-supply: [all …]
|
/openbmc/qemu/ui/ |
H A D | vnc-auth-sasl.c | 33 * files that use SASL API need to disable -Wdeprecated-declarations. 36 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 57 if (vs->sasl.conn) { in vnc_sasl_client_cleanup() 58 vs->sasl.runSSF = false; in vnc_sasl_client_cleanup() 59 vs->sasl.wantSSF = false; in vnc_sasl_client_cleanup() 60 vs->sasl.waitWriteSSF = 0; in vnc_sasl_client_cleanup() 61 vs->sasl.encodedLength = vs->sasl.encodedOffset = 0; in vnc_sasl_client_cleanup() 62 vs->sasl.encoded = NULL; in vnc_sasl_client_cleanup() 63 g_free(vs->sasl.username); in vnc_sasl_client_cleanup() 64 g_free(vs->sasl.mechlist); in vnc_sasl_client_cleanup() [all …]
|
/openbmc/linux/lib/xz/ |
H A D | xz_lzma2.h | 5 * Igor Pavlov <https://7-zip.org/> 34 * - Literal: One 8-bit byte 35 * - Match: Repeat a chunk of data at some distance 36 * - Long repeat: Multi-byte match at a recently seen distance 37 * - Short repeat: One-byte repeat at a recently seen distance 40 * either short or long repeated match, and NONLIT means any non-literal. 69 *state -= 3; in lzma_state_literal() 71 *state -= 6; in lzma_state_literal() 99 * - 0x001-0x0FF: Without match byte 100 * - 0x101-0x1FF: With match byte; match bit is 0 [all …]
|
/openbmc/linux/drivers/firmware/efi/libstub/ |
H A D | printk.c | 1 // SPDX-License-Identifier: GPL-2.0 17 * efi_char16_puts() - Write a UCS-2 encoded string to the console 18 * @str: UCS-2 encoded string 35 * The position of the most-significant 0 bit gives us the length of in utf8_to_utf32() 36 * a multi-octet encoding. in utf8_to_utf32() 41 * If the 0 bit is in position 8, this is a valid single-octet in utf8_to_utf32() 42 * encoding. If the 0 bit is in position 7 or positions 1-3, the in utf8_to_utf32() 49 c32 = cx >> clen--; in utf8_to_utf32() 59 * - The character must be in the Unicode range. in utf8_to_utf32() 60 * - It must not be a surrogate. in utf8_to_utf32() [all …]
|