/openbmc/linux/arch/arc/kernel/ |
H A D | unaligned.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2011-2012 Synopsys (www.synopsys.com) 6 * -Adapted (from .26 to .35) 7 * -original contribution by Tim.yao@amlogic.com 17 #define BE 1 18 #define FIRST_BYTE_16 "swap %1, %1\n swape %1, %1\n" 19 #define FIRST_BYTE_32 "swape %1, %1\n" 28 "1: ldb.ab %1, [%2, 1]\n" \ 32 "3: mov %0, 1\n" \ 37 " .long 1b, 3b\n" \ [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | videodev2.h | 1 /* SPDX-License-Identifier: ((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) */ 5 * Copyright (C) 1999-2012 the contributors 23 * 1. Redistributions of source code must retain the above copyright 47 * All kernel-specific stuff were moved to media/v4l2-dev.h, so 66 #include <linux/v4l2-common.h> 67 #include <linux/v4l2-controls.h> 74 #define VIDEO_MAX_PLANES 8 80 /* Four-character-code (FOURCC) */ 82 ((__u32)(a) | ((__u32)(b) << 8) | ((__u32)(c) << 16) | ((__u32)(d) << 24)) 83 #define v4l2_fourcc_be(a, b, c, d) (v4l2_fourcc(a, b, c, d) | (1U << 31)) [all …]
|
H A D | rkisp1-config.h | 1 /* SPDX-License-Identifier: ((GPL-2.0+ WITH Linux-syscall-note) OR MIT) */ 13 #define RKISP1_CIF_ISP_MODULE_DPCC (1U << 0) 15 #define RKISP1_CIF_ISP_MODULE_BLS (1U << 1) 16 /* Sensor De-gamma */ 17 #define RKISP1_CIF_ISP_MODULE_SDG (1U << 2) 19 #define RKISP1_CIF_ISP_MODULE_HST (1U << 3) 21 #define RKISP1_CIF_ISP_MODULE_LSC (1U << 4) 23 #define RKISP1_CIF_ISP_MODULE_AWB_GAIN (1U << 5) 25 #define RKISP1_CIF_ISP_MODULE_FLT (1U << 6) 27 #define RKISP1_CIF_ISP_MODULE_BDM (1U << 7) [all …]
|
/openbmc/qemu/include/standard-headers/drm/ |
H A D | drm_fourcc.h | 38 * further describe the buffer's format - for example tiling or compression. 41 * ---------------- 45 * format and data layout of the buffer, and should be the only way to describe 55 * vendor-namespaced, and as such the relationship between a fourcc code and a 57 * may preserve meaning - such as number of planes - from the fourcc code, 61 * match only a single modifier. A modifier must not be a subset of layouts of 63 * a modifier: a buffer may match a 64-pixel aligned modifier and a 32-pixel 75 * - Kernel and user-space drivers: for drivers it's important that modifiers 79 * - Higher-level programs interfacing with KMS/GBM/EGL/Vulkan/etc: these users 92 * ----------------------- [all …]
|
/openbmc/linux/include/uapi/drm/ |
H A D | drm_fourcc.h | 39 * further describe the buffer's format - for example tiling or compression. 42 * ---------------- 46 * format and data layout of the buffer, and should be the only way to describe 56 * vendor-namespaced, and as such the relationship between a fourcc code and a 58 * may preserve meaning - such as number of planes - from the fourcc code, 62 * match only a single modifier. A modifier must not be a subset of layouts of 64 * a modifier: a buffer may match a 64-pixel aligned modifier and a 32-pixel 76 * - Kernel and user-space drivers: for drivers it's important that modifiers 80 * - Higher-level programs interfacing with KMS/GBM/EGL/Vulkan/etc: these users 93 * ----------------------- [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | iters.c | 1 // SPDX-License-Identifier: GPL-2.0 35 int *v, i = zero; /* obscure initial value of i */ in iter_err_unsafe_c_loop() local 40 while ((v = bpf_iter_num_next(&it))) { in iter_err_unsafe_c_loop() 63 "r4 = 1;" in iter_err_unsafe_asm_loop() 69 "r6 += 1;" in iter_err_unsafe_asm_loop() 97 int *v; in iter_while_loop() local 102 while ((v = bpf_iter_num_next(&it))) { in iter_while_loop() 103 bpf_printk("ITER_BASIC: E1 VAL: v=%d", *v); in iter_while_loop() 115 int *v; in iter_while_loop_auto_cleanup() local 120 while ((v = bpf_iter_num_next(&it))) { in iter_while_loop_auto_cleanup() [all …]
|
/openbmc/linux/arch/arm/crypto/ |
H A D | blake2s-core.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 15 // load the words on-demand. 59 // Execute a quarter-round of BLAKE2s by mixing two columns or two diagonals. 61 // columns/diagonals. s0-s1 are the word offsets to the message words the first 62 // column/diagonal needs, and likewise s2-s3 for the second column/diagonal. 94 // a += b + m[blake2s_sigma[r][2*i + 1]]; 100 // d = ror32(d ^ a, 8); 105 add \c0, \c0, \d0, ror#8 106 add \c1, \c1, \d1, ror#8 113 // Execute one round of BLAKE2s by updating the state matrix v[0..15]. v[0..9] [all …]
|
/openbmc/linux/tools/testing/selftests/arm64/fp/ |
H A D | fpsimd-test.S | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright (C) 2015-2019 ARM Limited. 9 // for x in `seq 1 NR_CPUS`; do fpsimd-test & pids=$pids\ $! ; done 15 #include "asm-offsets.h" 18 #define MAXVL_B (128 / 8) 21 ld1 {v\Vn\().2d}, [x\Xt] 25 st1 {v\Vn\().2d}, [x\Xt] 32 // All clobber x0-x2 58 add w2, w2, #(1 << 22) 59 subs w1, w1, #1 [all …]
|
/openbmc/linux/Documentation/hwmon/ |
H A D | adm1026.rst | 16 - Philip Pokorny <ppokorny@penguincomputing.com> for Penguin Computing 17 - Justin Thiessen <jthiessen@penguincomputing.com> 20 ----------------- 22 * gpio_input: int array (min = 1, max = 17) 23 List of GPIO pins (0-16) to program as inputs 25 * gpio_output: int array (min = 1, max = 17) 26 List of GPIO pins (0-16) to program as outputs 28 * gpio_inverted: int array (min = 1, max = 17) 29 List of GPIO pins (0-16) to program as inverted 31 * gpio_normal: int array (min = 1, max = 17) [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-sun6i-p2wi.c | 2 * P2WI (Push-Pull Two Wire Interface) bus driver. 4 * Author: Boris BREZILLON <boris.brezillon@free-electrons.com> 10 * The P2WI controller looks like an SMBus controller which only supports byte 13 * - it supports only one slave device, and thus drop the address field 14 * - it adds a parity bit every 8bits of data 15 * - only one read access is required to read a byte (instead of a write 17 * - there's no Ack bit after each byte transfer 20 * devices (the only known device to support this interface is the AXP221 50 #define P2WI_CTRL_GLOBAL_INT_ENB BIT(1) 54 #define P2WI_CCR_SDA_OUT_DELAY(v) (((v) & 0x7) << 8) argument [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | st,sta32x.txt | 3 The driver for this device only supports I2C. 7 - compatible: "st,sta32x" 8 - reg: the I2C address of the device for I2C 9 - reset-gpios: a GPIO spec for the reset pin. If specified, it will be 12 - power-down-gpios: a GPIO spec for the power down pin. If specified, 16 - Vdda-supply: regulator spec, providing 3.3V 17 - Vdd3-supply: regulator spec, providing 3.3V 18 - Vcc-supply: regulator spec, providing 5V - 26V 22 - clocks, clock-names: Clock specifier for XTI input clock. 24 and disabled when it is removed. The 'clock-names' must be set to 'xti'. [all …]
|
H A D | st,sta350.txt | 3 The driver for this device only supports I2C. 7 - compatible: "st,sta350" 8 - reg: the I2C address of the device for I2C 9 - reset-gpios: a GPIO spec for the reset pin. If specified, it will be 12 - power-down-gpios: a GPIO spec for the power down pin. If specified, 16 - vdd-dig-supply: regulator spec, providing 3.3V 17 - vdd-pll-supply: regulator spec, providing 3.3V 18 - vcc-supply: regulator spec, providing 5V - 26V 22 - st,output-conf: number, Selects the output configuration: 23 0: 2-channel (full-bridge) power, 2-channel data-out [all …]
|
/openbmc/linux/crypto/ |
H A D | blake2b_generic.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR Apache-2.0) 11 * - CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0 12 * - OpenSSL license : https://www.openssl.org/source/license.html 13 * - Apache 2.0 : https://www.apache.org/licenses/LICENSE-2.0 26 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }, 27 { 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3 }, 28 { 11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4 }, 29 { 7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8 }, 30 { 9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13 }, 31 { 2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9 }, [all …]
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | perf_event_p4.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 16 * perf-MSRs are not shared and every thread has its 17 * own perf-MSRs set) 20 #define ARCH_P4_RESERVED_ESCR (2) /* IQ_ESCR(0,1) not always present */ 21 #define ARCH_P4_MAX_ESCR (ARCH_P4_TOTAL_ESCR - ARCH_P4_RESERVED_ESCR) 25 #define ARCH_P4_CNTRVAL_MASK ((1ULL << ARCH_P4_CNTRVAL_BITS) - 1) 26 #define ARCH_P4_UNFLAGGED_BIT ((1ULL) << (ARCH_P4_CNTRVAL_BITS - 1)) 40 #define P4_ESCR_EVENT(v) ((v) << P4_ESCR_EVENT_SHIFT) argument 41 #define P4_ESCR_EMASK(v) ((v) << P4_ESCR_EVENTMASK_SHIFT) argument 42 #define P4_ESCR_TAG(v) ((v) << P4_ESCR_TAG_SHIFT) argument [all …]
|
/openbmc/linux/include/linux/usb/ |
H A D | pd_vdo.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright 2015-2017 Google, Inc 17 #define VDO_MAX_SIZE (VDO_MAX_OBJECTS + 1) 21 * ---------- 23 * <15> :: VDM type ( 1b == structured, 0b == unstructured ) 26 * <10:8> :: object position (1-7 valid ... used for enter/exit mode only) 27 * <7:6> :: command type (SVDM only?) 37 #define VDO_SVDM_TYPE (1 << 15) 39 #define VDO_OPOS(x) ((x) << 8) 46 #define CMDT_RSP_ACK 1 [all …]
|
/openbmc/openbmc/meta-google/recipes-google/networking/network-sh/ |
H A D | lib.sh | 8 # http://www.apache.org/licenses/LICENSE-2.0 16 [ -n "${network_init-}" ] && return 19 local -n bytes="$1" 23 [[ "$str" =~ ^[[:xdigit:]]{1,2}(:[[:xdigit:]]{1,2}){5}$ ]] || return 37 mac_to_bytes mac_bytes "$1" || return 39 # Return the EUI-64 bytes in the IPv6 format 45 mac_to_bytes mac_bytes "$1" || return 47 # Using EUI-64 conversion rules, create the suffix bytes from MAC bytes 48 # Invert bit-1 of the first byte, and insert 0xfffe in the middle. 53 "${mac_bytes[@]:1:2}" [all …]
|
/openbmc/linux/Documentation/userspace-api/media/v4l/ |
H A D | metafmt-vsp1-hgo.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _v4l2-meta-fmt-vsp1-hgo: 9 Renesas R-Car VSP1 1-D Histogram Data 15 This format describes histogram data generated by the Renesas R-Car VSP1 1-D 20 computes the minimum, maximum and sum of all pixels as well as per-channel 24 three channels (RGB data only) or on the Y channel only (YCbCr only). It can 28 - In *64 bins normal mode*, the HGO operates on the three channels independently 29 to compute three 64-bins histograms. RGB, YCbCr and HSV image formats are 31 - In *64 bins maximum mode*, the HGO operates on the maximum of the (R, G, B) 32 channels to compute a single 64-bins histogram. Only the RGB image format is [all …]
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | nand_ids.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 {"TC58NVG0S3E 1G 3.3V 8-bit", 31 SZ_2K, SZ_128, SZ_128K, 0, 8, 64, NAND_ECC_INFO(1, SZ_512), }, 32 {"TC58NVG2S0F 4G 3.3V 8-bit", 34 SZ_4K, SZ_512, SZ_256K, 0, 8, 224, NAND_ECC_INFO(4, SZ_512) }, 35 {"TC58NVG2S0H 4G 3.3V 8-bit", 37 SZ_4K, SZ_512, SZ_256K, 0, 8, 256, NAND_ECC_INFO(8, SZ_512) }, 38 {"TC58NVG3S0F 8G 3.3V 8-bit", 40 SZ_4K, SZ_1K, SZ_256K, 0, 8, 232, NAND_ECC_INFO(4, SZ_512) }, 41 {"TC58NVG5D2 32G 3.3V 8-bit", [all …]
|
/openbmc/linux/drivers/clk/versatile/ |
H A D | clk-icst.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Copyright (C) 2012-2015 Linus Walleij 17 #include <linux/clk-provider.h> 23 #include "clk-icst.h" 34 #define INTEGRATOR_AP_PCI_25_33_MHZ BIT(8) 37 * struct clk_icst - ICST VCO clock wrapper 59 * vco_get() - get ICST VCO settings from a certain ICST 68 ret = regmap_read(icst->map, icst->vcoreg_off, &val); in vco_get() 73 * The Integrator/AP core clock can only access the low eight in vco_get() 74 * bits of the v PLL divider. Bit 8 is tied low and always zero, in vco_get() [all …]
|
/openbmc/linux/include/dt-bindings/usb/ |
H A D | pd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 #define PDO_TYPE_BATT 1 20 #define PDO_FIXED_DUAL_ROLE (1 << 29) /* Power role swap supported */ 21 #define PDO_FIXED_SUSPEND (1 << 28) /* USB Suspend supported (Source) */ 22 #define PDO_FIXED_HIGHER_CAP (1 << 28) /* Requires more than vSafe5V (Sink) */ 23 #define PDO_FIXED_EXTPOWER (1 << 27) /* Externally powered */ 24 #define PDO_FIXED_USB_COMM (1 << 26) /* USB communications capable */ 25 #define PDO_FIXED_DATA_SWAP (1 << 25) /* Data role swap supported */ 64 #define PDO_APDO_TYPE_SHIFT 28 /* Only valid value currently is 0x0 - PPS */ 70 #define PDO_PPS_APDO_MIN_VOLT_SHIFT 8 /* 100mV units */ [all …]
|
/openbmc/linux/arch/arc/include/asm/ |
H A D | perf_event.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 2014-2015 Synopsys, Inc. (www.synopsys.com) 6 * Copyright (C) 2011-2013 Synopsys, Inc. (www.synopsys.com) 33 #define ARC_REG_PCT_CONFIG_USER (1 << 18) /* count in user mode */ 34 #define ARC_REG_PCT_CONFIG_KERN (1 << 19) /* count in kernel mode */ 36 #define ARC_REG_PCT_CONTROL_CC (1 << 16) /* clear counts */ 37 #define ARC_REG_PCT_CONTROL_SN (1 << 17) /* snapshot */ 41 unsigned int m:8, c:8, r:5, i:1, s:2, v:8; member 43 unsigned int v:8, s:2, i:1, r:5, c:8, m:8; 49 unsigned int c:16, r:8, v:8; member [all …]
|
/openbmc/linux/mm/ |
H A D | vmstat.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 * Copyright (C) 2008-2014 Christoph Lameter 43 atomic_long_set(&zone->vm_numa_event[item], 0); in zero_zone_numa_counters() 45 per_cpu_ptr(zone->per_cpu_zonestats, cpu)->vm_numa_event[item] in zero_zone_numa_counters() 121 ret[i] += this->event[i]; in sum_vm_events() 127 * The result is unavoidably approximate - it can change 150 count_vm_events(i, fold_state->event[i]); in vm_events_fold_cpu() 151 fold_state->event[i] = 0; in vm_events_fold_cpu() 178 pzstats = per_cpu_ptr(zone->per_cpu_zonestats, cpu); in fold_vm_zone_numa_events() 180 zone_numa_events[item] += xchg(&pzstats->vm_numa_event[item], 0); in fold_vm_zone_numa_events() [all …]
|
/openbmc/phosphor-host-ipmid/test/message/ |
H A D | pack.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 26 uint8_t v = 4; in TEST() local 27 p.pack(v); in TEST() 29 ASSERT_EQ(p.size(), sizeof(v)); in TEST() 38 uint16_t v = 0x8604; in TEST() local 39 p.pack(v); in TEST() 41 ASSERT_EQ(p.size(), sizeof(v)); in TEST() 50 uint32_t v = 0x02008604; in TEST() local 51 p.pack(v); in TEST() 53 ASSERT_EQ(p.size(), sizeof(v)); in TEST() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mmc/ |
H A D | marvell,xenon-sdhci.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mmc/marvell,xenon-sdhci.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 mmc-controller.yaml and the properties used by the Xenon implementation. 20 - Ulf Hansson <ulf.hansson@linaro.org> 25 - enum: 26 - marvell,armada-cp110-sdhci 27 - marvell,armada-ap806-sdhci 29 - items: [all …]
|
/openbmc/linux/Documentation/userspace-api/media/cec/ |
H A D | cec-ioc-dqevent.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 CEC_DQEVENT - Dequeue a CEC event 35 non-blocking mode and no event is pending, then it will return -1 and 38 The internal event queues are per-filehandle and per-event type. If 43 two :ref:`CEC_EVENT_STATE_CHANGE <CEC-EVENT-STATE-CHANGE>` events with 51 .. flat-table:: struct cec_event_state_change 52 :header-rows: 0 53 :stub-columns: 0 54 :widths: 1 1 8 56 * - __u16 [all …]
|