/openbmc/linux/lib/ |
H A D | asn1_encoder.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 * asn1_encode_integer() - encode positive integer to ASN.1 19 * This is a simplified encoder: it only currently does 27 int data_len = end_data - data; in asn1_encode_integer() 33 "BUG: integer encode only supports positive integers")) in asn1_encode_integer() 34 return ERR_PTR(-EINVAL); in asn1_encode_integer() 41 return ERR_PTR(-EINVAL); in asn1_encode_integer() 44 data_len -= 2; in asn1_encode_integer() 52 for (i = sizeof(integer); i > 0 ; i--) { in asn1_encode_integer() 53 int byte = integer >> (8 * (i - 1)); in asn1_encode_integer() [all …]
|
/openbmc/qemu/crypto/ |
H A D | der.h | 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 134 * Decode BIT STRING from DER-encoded data, similar with der_decode_int. [all …]
|
/openbmc/libbej/src/ |
H A D | bej_encoder_core.c | 10 * @brief Encode a unsigned value with nnint format. 17 RETURN_IF_IERROR(output->recvOutput(&nnintLengthByte, sizeof(uint8_t), in bejEncodeNnint() 18 output->handlerContext)); in bejEncodeNnint() 20 return output->recvOutput(&value, nnintLengthByte, output->handlerContext); in bejEncodeNnint() 24 * @brief Encode a BejTupleF type. 29 return output->recvOutput(format, sizeof(struct BejTupleF), in bejEncodeFormat() 30 output->handlerContext); in bejEncodeFormat() 34 * @brief Encode a BejSet or BejArray type. 39 // Encode Sequence number. in bejEncodeBejSetOrArray() 40 RETURN_IF_IERROR(bejEncodeNnint(node->metaData.sequenceNumber, output)); in bejEncodeBejSetOrArray() [all …]
|
H A D | bej_encoder_metadata.c | 19 * Maximum bytes possible for an integer is 8. Therefore to encode the length of 20 * an integer using a nnint, we only need two bytes. [byte1: nnint length, 21 * byte2: integer length [0-8]] 40 * @param[in] name - property name. 55 * @param[in] dictionaries - available dictionaries for encoding. 56 * @param[in] parentDictionary - dictionary used for the parent of this node. 57 * @param[in] nodeName - name of the interested node. Can be NULL if the node 75 if (parentDictionary == dictionaries->annotationDictionary) in bejGetRelatedDictionary() 77 return dictionaries->annotationDictionary; in bejGetRelatedDictionary() 79 return bejIsAnnotation(nodeName) ? dictionaries->annotationDictionary in bejGetRelatedDictionary() [all …]
|
/openbmc/qemu/tests/tcg/aarch64/ |
H A D | pauth-2.c | 13 /* There is only one insn below that is allowed to fault. */ in sigill() 15 assert(test == uc->uc_mcontext.pc); in sigill() 24 uint64_t encode, decode; in do_test() local 27 * With TBI enabled and a 48-bit VA, there are 7 bits of auth, in do_test() 28 * and so a 1/128 chance of encode = pac(value,key,salt) producing in do_test() 30 * Iterate until we find a salt for which encode != value. in do_test() 33 asm volatile("pacda %0, %2" : "=r"(encode) : "0"(value), "r"(salt1)); in do_test() 34 if (encode != value) { in do_test() 40 asm volatile("autda %0, %2" : "=r"(decode) : "0"(encode), "r"(salt1)); in do_test() 52 : "=r"(decode) : "0"(encode), "r"(salt2)); in do_test() [all …]
|
/openbmc/openbmc/poky/meta/recipes-extended/perl/ |
H A D | libxml-sax-perl_1.02.bb | 2 HOMEPAGE = "http://search.cpan.org/dist/XML-SAX/" 8 come from the Java JAXP specification (SAX part), only without the \ 12 LICENSE = "Artistic-1.0 | GPL-1.0-or-later" 13 DEPENDS += "libxml-namespacesupport-perl-native" 14 RDEPENDS:${PN} += "libxml-namespacesupport-perl libxml-sax-base-perl perl-module-file-temp" 18 SRC_URI = "http://search.cpan.org/CPAN/authors/id/G/GR/GRANTM/XML-SAX-${PV}.tar.gz" 23 S = "${WORKDIR}/XML-SAX-${PV}" 25 inherit cpan ptest-perl 28 cp -r ${B}/testfiles ${D}${PTEST_PATH} 29 chown -R root:root ${D}${PTEST_PATH}/testfiles [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/pci/ |
H A D | ralink,rt3883-pci.txt | 7 - compatible: must be "ralink,rt3883-pci" 9 - reg: specifies the physical base address of the controller and 12 - #address-cells: specifies the number of cells needed to encode an 15 - #size-cells: specifies the number of cells used to represent the size 18 - ranges: specifies the translation between child address space and parent 23 - status: indicates the operational status of the device. 28 The main node must have two child nodes which describes the built-in 35 - interrupt-controller: identifies the node as an interrupt controller 37 - #address-cells: specifies the number of cells needed to encode an 38 address. The value must be 0. As such, 'interrupt-map' nodes do not [all …]
|
/openbmc/openbmc/meta-openembedded/meta-perl/recipes-perl/libxml/ |
H A D | libxml-libxml-perl_2.0134.bb | 4 interface and a XML::XPath-like interface to XPath API of libxml2. \ 6 section; unless stated otherwise, you only need to use XML::LibXML; in \ 9 HOMEPAGE = "https://metacpan.org/dist/XML-LibXML" 11 LICENSE = "Artistic-1.0 | GPL-1.0-or-later" 13 libxml-sax-perl-native \ 18 libxml-sax-perl \ 19 libxml-sax-base-perl \ 20 perl-module-encode \ 21 perl-module-data-dumper \ 25 SRC_URI = "${CPAN_MIRROR}/authors/id/S/SH/SHLOMIF/XML-LibXML-${PV}.tar.gz;name=libxml \ [all …]
|
/openbmc/linux/drivers/media/platform/mediatek/jpeg/ |
H A D | mtk_jpeg_core.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 14 #include <media/v4l2-ctrls.h> 15 #include <media/v4l2-device.h> 16 #include <media/v4l2-fh.h> 17 #include <media/videobuf2-v4l2.h> 21 #define MTK_JPEG_NAME "mtk-jpeg" 38 * enum mtk_jpeg_ctx_state - states of the context state machine 50 * struct mtk_jpeg_variant - mtk jpeg driver variant 118 * struct mtk_jpegenc_clk - Structure used to store vcodec clock information 119 * @clks: JPEG encode clock [all …]
|
/openbmc/linux/include/media/ |
H A D | v4l2-cci.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 18 * struct cci_reg_sequence - An individual write from a sequence of CCI writes 20 * @reg: Register address, use CCI_REG#() macros to encode reg width 54 * cci_read() - Read a value from a single CCI register 57 * @reg: Register address to read, use CCI_REG#() macros to encode reg width 67 * cci_write() - Write a value to a single CCI register 70 * @reg: Register address to write, use CCI_REG#() macros to encode reg width 80 * cci_update_bits() - Perform a read/modify/write cycle on 84 * @reg: Register address to update, use CCI_REG#() macros to encode reg width 90 * Note this uses read-modify-write to update the bits, atomicity with regards [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 ------ 24 Form 0 associativity supports only two NUMA distances (LOCAL and REMOTE). 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 [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/gt/ |
H A D | gen8_ppgtt.c | 1 // SPDX-License-Identifier: MIT 41 * For pre-gen12 platforms pat_index is the same as enum in gen8_pte_encode() 42 * i915_cache_level, so the switch-case here is still valid. in gen8_pte_encode() 89 struct drm_i915_private *i915 = ppgtt->vm.i915; in gen8_ppgtt_notify_vgt() 90 struct intel_uncore *uncore = ppgtt->vm.gt->uncore; in gen8_ppgtt_notify_vgt() 95 atomic_inc(px_used(ppgtt->pd)); /* never remove */ in gen8_ppgtt_notify_vgt() 97 atomic_dec(px_used(ppgtt->pd)); in gen8_ppgtt_notify_vgt() 99 mutex_lock(&i915->vgpu.lock); in gen8_ppgtt_notify_vgt() 101 if (i915_vm_is_4lvl(&ppgtt->vm)) { in gen8_ppgtt_notify_vgt() 102 const u64 daddr = px_dma(ppgtt->pd); in gen8_ppgtt_notify_vgt() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/interrupt-controller/ |
H A D | open-pic.txt | 13 - compatible: Specifies the compatibility list for the PIC. The type 14 shall be <string> and the value shall include "open-pic". 16 - reg: Specifies the base physical address(s) and size(s) of this 17 PIC's addressable register space. The type shall be <prop-encoded-array>. 19 - interrupt-controller: The presence of this property identifies the node 22 - #interrupt-cells: Specifies the number of cells needed to encode an 25 - #address-cells: Specifies the number of cells needed to encode an 27 'interrupt-map' nodes do not have to specify a parent unit address. 31 - pic-no-reset: The presence of this property indicates that the PIC 42 - <1st-cell>: The interrupt-number that identifies the interrupt source. [all …]
|
H A D | msi-controller.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/interrupt-controller/msi-controller.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Marc Zyngier <maz@kernel.org> 18 "#msi-cells": 20 The number of cells in an msi-specifier, required if not zero. 22 Typically this will encode information related to sideband data, 23 and will not encode doorbells or payloads as these can be 26 The meaning of the msi-specifier is defined by the device tree [all …]
|
/openbmc/linux/Documentation/userspace-api/media/v4l/ |
H A D | vidioc-g-modulator.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 VIDIOC_G_MODULATOR - VIDIOC_S_MODULATOR - Get or set modulator attributes 52 this is a write-only ioctl, it does not return the actual audio 67 .. flat-table:: struct v4l2_modulator 68 :header-rows: 0 69 :stub-columns: 0 72 * - __u32 73 - ``index`` 74 - Identifies the modulator, set by the application. 75 * - __u8 [all …]
|
/openbmc/linux/Documentation/staging/ |
H A D | lzo.rst | 26 - a distance when copying data from the dictionary (past output buffer) 27 - a length (number of bytes to copy from dictionary) 28 - the number of literals to copy, which is retained in variable "state" 36 seems to be optimized for literal use only, since there is no dictionary yet 45 length = byte & ((1 << #bits) - 1) 47 length = ((1 << #bits) - 1) 49 length += first-non-zero-byte 57 forming a little-endian 16-bit quantity (marked LE16 below). 62 practice, only one instruction needs to know whether 0, less than 4, or more 68 End of stream is declared when a block copy of distance 0 is seen. Only one [all …]
|
/openbmc/linux/include/sound/ |
H A D | hda_regmap.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * HD-audio regmap helpers 32 * snd_hdac_regmap_encode_verb - encode the verb to a pseudo register 42 * snd_hdac_regmap_encode_amp - encode the AMP verb to a pseudo register 57 * snd_hdac_regmap_encode_amp_stereo - encode a pseudo register for stereo AMPs 71 * snd_hdac_regmap_write - Write a verb with caching 88 * snd_hda_regmap_update - Update a verb value with caching 107 * snd_hda_regmap_read - Read a verb with caching 124 * snd_hdac_regmap_get_amp - Read AMP value 125 * @codec: HD-audio codec [all …]
|
/openbmc/libpldm/ |
H A D | README.md | 7 - keeping it light weight 8 - implementation in C 9 - minimal dynamic memory allocations 10 - endian-safe 11 - no OpenBMC specific dependencies 20 encode_foo_req() - encode a foo request 21 decode_foo_resp() - decode a response to foo 27 decode_foo_req() - decode a foo request 28 encode_foo_resp() - encode a response to foo 47 meson setup build && meson compile -C build [all …]
|
/openbmc/openbmc/meta-security/recipes-scanners/buck-security/ |
H A D | buck-security_0.7.bb | 2 DESCRIPTION = "Buck-Security is a security scanner for Debian and Ubuntu Linux. It runs a couple of… 5 LICENSE = "GPL-2.0-only" 6 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" 8 SRC_URI = "http://sourceforge.net/projects/buck-security/files/buck-security/buck-security_${PV}/${… 19 install -d ${D}${bindir}/buck 20 cp -r ${S}/* ${D}${bindir}/buck 21 cp -r ${S}/buck-security ${D}${bindir} 22 …sed -i 's!use lib "checks"!use lib File::Spec->catfile(dirname(File::Spec->rel2abs(__FILE__)), "bu… 23 …sed -i 's!use lib "checks/lib"!use lib File::Spec->catfile(dirname(File::Spec->rel2abs(__FILE__)),… 24 …sed -i 's!use lib "lib"!use lib File::Spec->catfile(dirname(File::Spec->rel2abs(__FILE__)), "buck/… [all …]
|
/openbmc/qemu/tests/functional/qemu_test/ |
H A D | cmd.py | 5 # Original Author (Avocado-based tests): 12 # later. See the COPYING file in the top-level directory. 35 # @success: a non-None string to look for 98 success_message_b = success_message.encode() 102 failure_message_b = failure_message.encode() 106 vm.console_socket.sendall(send_string.encode()) 108 send_string = None # send only once 110 # Only consume console output if waiting for something 192 test.log.debug('Looking for and selecting a qemu-img binary') 194 # If qemu-img has been built, use it, otherwise the system wide one [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/media/ |
H A D | mediatek,vcodec-encoder.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/media/mediatek,vcodec-encoder.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Mediatek Video Encode Accelerator 11 - Yunfei Dong <yunfei.dong@mediatek.com> 14 Mediatek Video Encode is the video encode hardware present in Mediatek 20 - mediatek,mt8173-vcodec-enc-vp8 21 - mediatek,mt8173-vcodec-enc 22 - mediatek,mt8183-vcodec-enc [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/security/tpm/ |
H A D | ibmvtpm.txt | 5 - compatible : property name that conveys the platform architecture 7 - device_type : specifies type of virtual device 8 - interrupts : property specifying the interrupt source number and 10 - ibm,my-drc-index : integer index for the connector between the device 11 and its parent - present only if Dynamic 13 - ibm,#dma-address-cells: specifies the number of cells that are used to 14 encode the physical address field of dma-window 16 - ibm,#dma-size-cells : specifies the number of cells that are used to 17 encode the size field of dma-window properties 18 - ibm,my-dma-window : specifies DMA window associated with this virtual [all …]
|
/openbmc/linux/drivers/media/rc/ |
H A D | ir-jvc-decoder.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* ir-jvc-decoder.c - handle JVC IR Pulse/Space protocol 9 #include "rc-core-priv.h" 13 #define JVC_HEADER_PULSE (16 * JVC_UNIT) /* lack of header -> repeat */ 32 * ir_jvc_decode() - Decode one JVC pulse or space 36 * This function returns -EINVAL if the pulse violates the state machine 40 struct jvc_dec *data = &dev->raw->jvc; in ir_jvc_decode() 44 data->state = STATE_INACTIVE; in ir_jvc_decode() 51 dev_dbg(&dev->dev, "JVC decode started at state %d (%uus %s)\n", in ir_jvc_decode() 52 data->state, ev.duration, TO_STR(ev.pulse)); in ir_jvc_decode() [all …]
|
H A D | ir-sony-decoder.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* ir-sony-decoder.c - handle Sony IR Pulse/Space protocol 9 #include "rc-core-priv.h" 28 * ir_sony_decode() - Decode one Sony pulse or space 32 * This function returns -EINVAL if the pulse violates the state machine 36 struct sony_dec *data = &dev->raw->sony; in ir_sony_decode() 43 data->state = STATE_INACTIVE; in ir_sony_decode() 50 dev_dbg(&dev->dev, "Sony decode started at state %d (%uus %s)\n", in ir_sony_decode() 51 data->state, ev.duration, TO_STR(ev.pulse)); in ir_sony_decode() 53 switch (data->state) { in ir_sony_decode() [all …]
|
/openbmc/libbej/include/libbej/ |
H A D | bej_tree.h | 15 * @brief Holds info needed to encode a parent in the JSON tree. 26 // Size needed to encode Sequence number, Format and Length of the 38 * @brief Holds info needed to encode a leaf type in the JSON tree. 44 // Size needed to encode Sequence number, Format and Length of the 77 // Points to the last child. Technically we only need the firstChild 161 * @param[in] node - pointer to a RedfishPropertyParent struct. 162 * @param[in] name - name of the node. 169 * @param[in] node - pointer to a RedfishPropertyParent struct. 170 * @param[in] name - name of the node. 177 * @param[in] node - pointer to a RedfishPropertyParent struct. [all …]
|