| /linux/drivers/gpu/drm/bridge/ |
| H A D | sil-sii8620.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 9 * Copyright (C) 2013-2014 Silicon Image, Inc. 15 /* Vendor ID Low byte, default value: 0x01 */ 18 /* Vendor ID High byte, default value: 0x00 */ 21 /* Device ID Low byte, default value: 0x60 */ 24 /* Device ID High byte, default value: 0x86 */ 27 /* Device Revision, default value: 0x10 */ 30 /* OTP DBYTE510, default value: 0x00 */ 33 /* System Control #1, default value: 0x00 */ 35 #define BIT_SYS_CTRL1_OTPVMUTEOVR_SET BIT(7) [all …]
|
| /linux/arch/mips/include/asm/octeon/ |
| H A D | cvmx-fau.h | 7 * Copyright (c) 2003-2008 Cavium Networks 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 57 * bit will be set. Otherwise the value of the register before 62 int64_t value:63; member 67 * bit will be set. Otherwise the value of the register before 72 int32_t value:31; member 77 * bit will be set. Otherwise the value of the register before 82 int16_t value:15; member 87 * bit will be set. Otherwise the value of the register before [all …]
|
| H A D | cvmx-scratch.h | 7 * Copyright (c) 2003-2008 Cavium Networks 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 31 * Scratch memory is byte addressable - all addresses are byte addresses. 40 * compile without warnings for both 32bit and 64bit. 42 #define CVMX_SCRATCH_BASE (-32768l) /* 0xffffffffffff8000 */ 45 * Reads an 8 bit value from the processor local scratchpad memory. 49 * Returns value read 57 * Reads a 16 bit value from the processor local scratchpad memory. 61 * Returns value read [all …]
|
| /linux/sound/soc/ti/ |
| H A D | omap-mcbsp-priv.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * OMAP Multi-Channel Buffered Serial Port 12 #include <linux/platform_data/asoc-ti-mcbsp.h> 51 /* OMAP1-OMAP2420 registers */ 73 /************************** McBSP SPCR1 bit definitions ***********************/ 74 #define RRST BIT(0) 75 #define RRDY BIT(1) 76 #define RFULL BIT(2) 77 #define RSYNC_ERR BIT(3) 78 #define RINTM(value) (((value) & 0x3) << 4) /* bits 4:5 */ argument [all …]
|
| /linux/drivers/phy/tegra/ |
| H A D | xusb-tegra186.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2016-2022, NVIDIA CORPORATION. All rights reserved. 21 #define HS_CURR_LEVEL_PADX_SHIFT(x) ((x) ? (11 + (x - 1) * 6) : 0) 23 #define HS_TERM_RANGE_ADJ_PADX_SHIFT(x) ((x) ? (5 + (x - 1) * 4) : 7) 50 #define USB2_PORT_WAKE_INTERRUPT_ENABLE(x) BIT(x) 51 #define USB2_PORT_WAKEUP_EVENT(x) BIT((x) + 7) 52 #define SS_PORT_WAKE_INTERRUPT_ENABLE(x) BIT((x) + 14) 53 #define SS_PORT_WAKEUP_EVENT(x) BIT((x) + 21) 54 #define USB2_HSIC_PORT_WAKE_INTERRUPT_ENABLE(x) BIT((x) + 28) 55 #define USB2_HSIC_PORT_WAKEUP_EVENT(x) BIT((x) + 30) [all …]
|
| H A D | xusb-tegra210.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2014-2020, NVIDIA CORPORATION. All rights reserved. 27 ((x) ? (11 + ((x) - 1) * 6) : 0) 58 #define USB2_PORT_WAKE_INTERRUPT_ENABLE(x) BIT((x)) 59 #define USB2_PORT_WAKEUP_EVENT(x) BIT((x) + 7) 60 #define SS_PORT_WAKE_INTERRUPT_ENABLE(x) BIT((x) + 14) 61 #define SS_PORT_WAKEUP_EVENT(x) BIT((x) + 21) 62 #define USB2_HSIC_PORT_WAKE_INTERRUPT_ENABLE(x) BIT((x) + 28) 63 #define USB2_HSIC_PORT_WAKEUP_EVENT(x) BIT((x) + 30) 218 #define XUSB_PADCTL_UPHY_MISC_PAD_CTL1_AUX_RX_TERM_EN BIT(18) [all …]
|
| /linux/drivers/net/wireless/realtek/rtw88/ |
| H A D | fw.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 2 /* Copyright(c) 2018-2019 Realtek Corporation 32 #define RTW_DEFAULT_CQM_THOLD -70 99 #define RTW_C2H_RA_RPT_SGI BIT(7) 145 FW_FEATURE_SIG = BIT(0), 146 FW_FEATURE_LPS_C2H = BIT(1), 147 FW_FEATURE_LCLK = BIT(2), 148 FW_FEATURE_PG = BIT(3), 149 FW_FEATURE_TX_WAKE = BIT(4), 150 FW_FEATURE_BCN_FILTER = BIT(5), [all …]
|
| /linux/arch/arm/mach-sa1100/include/mach/ |
| H A D | bitfield.h | 10 * Purpose Definition of macros to operate on bit fields. 29 * The macro "Fld" encodes a bit field, given its size and its shift value 30 * with respect to bit 0. 33 * A more intuitive way to encode bit fields would have been to use their 34 * mask. However, extracting size and shift value information from a bit 35 * field's mask is cumbersome and might break the assembler (255-character 36 * line-size limit). 39 * Size Size of the bit field, in number of bits. 40 * Shft Shift value of the bit field with respect to bit 0. 43 * Fld Encoded bit field. [all …]
|
| /linux/arch/mips/kernel/ |
| H A D | unaligned.c | 18 * only the performance is affected. Much worse is that such code is non- 30 * option in your user programs - I discourage the use of the software 31 * emulation strongly - use the following code in your userland stuff: 92 #include <asm/unaligned-emul.h> 97 #include "access-helper.h" 115 unsigned long origpc, orig31, value; in emulate_load_store_insn() local 121 orig31 = regs->regs[31]; in emulate_load_store_insn() 133 * can assume therefore that the code is MIPS-aware and in emulate_load_store_insn() 173 LoadW(addr, value, res); in emulate_load_store_insn() 177 regs->regs[insn.mxu_lx_format.rd] = value; in emulate_load_store_insn() [all …]
|
| /linux/drivers/mmc/host/ |
| H A D | sunplus-mmc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Author: Li-hao Kuo <lhjeff911@gmail.com> 11 #include <linux/dma-mapping.h> 18 #include <linux/mmc/slot-gpio.h> 44 #define SPMMC_HW_DMA_RST BIT(9) 45 #define SPMMC_DMAIDLE BIT(10) 65 #define SPMMC_SDINT_SDCMPEN BIT(0) 66 #define SPMMC_SDINT_SDCMP BIT(1) 67 #define SPMMC_SDINT_SDCMPCLR BIT(2) 68 #define SPMMC_SDINT_SDIOEN BIT(3) [all …]
|
| /linux/include/uapi/linux/ |
| H A D | swab.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 72 __u32 l = val & ((1ULL << 32) - 1); in __fswab64() 98 * __swab16 - return a byteswapped 16-bit value 99 * @x: value to byteswap 111 * __swab32 - return a byteswapped 32-bit value 112 * @x: value to byteswap 124 * __swab64 - return a byteswapped 64-bit value 125 * @x: value to byteswap 146 * __swahw32 - return a word-swapped 32-bit value 147 * @x: value to wordswap [all …]
|
| /linux/sound/soc/bcm/ |
| H A D | cygnus-ssp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright (C) 2014-2015 Broadcom Corporation 14 #include <sound/soc-dai.h> 16 #include "cygnus-ssp.h" 25 #define PLAYBACK_STREAM_MASK BIT(0) 26 #define CAPTURE_STREAM_MASK BIT(1) 241 return &cygaud->portinf in cygnus_dai_get_portinfo() 246 u32 value, fci_id; audio_ssp_init_portregs() local 329 u32 value; audio_ssp_in_enable() local 351 u32 value; audio_ssp_in_disable() local 376 u32 value; audio_ssp_out_enable() local 420 u32 value; audio_ssp_out_disable() local 536 u32 value; cygnus_ssp_set_clocks() local 616 u32 value; cygnus_ssp_hw_params() local 709 u32 value; cygnus_ssp_set_sysclk() local 964 u32 value; cygnus_set_dai_tdm_slot() local [all...] |
| /linux/drivers/net/phy/ |
| H A D | dp83tc811.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/ 27 #define DP83811_HW_RESET BIT(15) 28 #define DP83811_SW_RESET BIT(14) 31 #define DP83811_RX_ERR_HF_INT_EN BIT(0) 32 #define DP83811_MS_TRAINING_INT_EN BIT(1) 33 #define DP83811_ANEG_COMPLETE_INT_EN BIT(2) 34 #define DP83811_ESD_EVENT_INT_EN BIT(3) 35 #define DP83811_WOL_INT_EN BIT(4) 36 #define DP83811_LINK_STAT_INT_EN BIT(5) [all …]
|
| /linux/drivers/iio/magnetometer/ |
| H A D | st_magn_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2012-2013 STMicroelectronics Inc. 23 /* DEFAULT VALUE FOR SENSORS */ 63 return &mdata->mount_matrix; in st_magn_get_mount_matrix() 73 BIT(IIO_CHAN_INFO_RAW) | BIT(IIO_CHAN_INFO_SCALE), 78 BIT(IIO_CHAN_INFO_RAW) | BIT(IIO_CHAN_INFO_SCALE), 83 BIT(IIO_CHAN_INFO_RAW) | BIT(IIO_CHAN_INFO_SCALE), 92 BIT(IIO_CHAN_INFO_RAW) | BIT(IIO_CHAN_INFO_SCALE), 97 BIT(IIO_CHAN_INFO_RAW) | BIT(IIO_CHAN_INFO_SCALE), 102 BIT(IIO_CHAN_INFO_RAW) | BIT(IIO_CHAN_INFO_SCALE), [all …]
|
| /linux/drivers/phy/freescale/ |
| H A D | phy-fsl-imx8mq-usb.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /* Copyright 2017-2026 NXP. */ 19 #define PHY_CTRL0_REF_SSP_EN BIT(2) 29 #define PHY_CTRL1_RESET BIT(0) 30 #define PHY_CTRL1_COMMONONN BIT(1) 31 #define PHY_CTRL1_ATERESET BIT(3) 32 #define PHY_CTRL1_VDATSRCENB0 BIT(19) 33 #define PHY_CTRL1_VDATDETENB0 BIT(20) 36 #define PHY_CTRL2_TXENABLEN0 BIT(8) 37 #define PHY_CTRL2_OTG_DISABLE BIT(9) [all …]
|
| /linux/Documentation/devicetree/bindings/powerpc/ |
| H A D | ibm,powerpc-cpu-features.txt | 3 (skiboot/doc/device-tree/ibm,powerpc-cpu-features/binding.txt) 9 ibm,powerpc-cpu-features binding 19 /cpus/ibm,powerpc-cpu-features node binding 20 ------------------------------------------- 22 Node: ibm,powerpc-cpu-features 26 The node name must be "ibm,powerpc-cpu-features". 35 - compatible 37 Value type: string 38 Definition: "ibm,powerpc-cpu-features" 45 - isa [all …]
|
| /linux/arch/xtensa/include/asm/ |
| H A D | bitops.h | 2 * include/asm-xtensa/bitops.h 10 * Copyright (C) 2001 - 2007 Tensilica Inc. 24 #include <asm-generic/bitops/non-atomic.h> 37 * bit 0 is the LSB of addr; bit 32 is the LSB of (addr+1). 42 return 31 - __cntlz(~x & -~x); in ffz() 46 * __ffs: Find first bit set in word. Return 0 for bit 0 51 return 31 - __cntlz(x & -x); in __ffs() 55 * ffs: Find first bit set in word. This is defined the same way as 62 return 32 - __cntlz(x & -x); in ffs() 66 * fls: Find last (most-significant) bit set in word. [all …]
|
| /linux/Documentation/devicetree/bindings/regulator/ |
| H A D | anatop-regulator.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/regulator/anatop-regulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org> 13 - $ref: regulator.yaml# 17 const: fsl,anatop-regulator 19 regulator-name: true 21 anatop-reg-offset: 23 description: u32 value representing the anatop MFD register offset. [all …]
|
| /linux/arch/x86/kvm/vmx/ |
| H A D | vmx_ops.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 14 void vmwrite_error(unsigned long field, unsigned long value); 23 * for 64-bit targets. Preserving all registers allows the VMREAD inline asm 29 * 64-bit targets. 37 * exists primarily to enable instrumentation for the VM-Fail path. 46 "16-bit accessor invalid for 64-bit field"); in vmcs_check16() 48 "16-bit accessor invalid for 64-bit high field"); in vmcs_check16() 50 "16-bit accessor invalid for 32-bit field"); in vmcs_check16() 52 "16-bit accessor invalid for natural width field"); in vmcs_check16() 58 "32-bit accessor invalid for 16-bit field"); in vmcs_check32() [all …]
|
| /linux/tools/testing/selftests/powerpc/vphn/ |
| H A D | test-vphn.c | 1 // SPDX-License-Identifier: GPL-2.0 41 "vphn: 1 x 16-bit value", 56 "vphn: 2 x 16-bit values", 72 "vphn: 3 x 16-bit value [all...] |
| /linux/drivers/net/ethernet/sfc/falcon/ |
| H A D | io.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright 2005-2006 Fen Systems Ltd. 5 * Copyright 2006-2013 Solarflare Communications Inc. 25 * the BIU collects the written value and does not write to the 27 * similar buffering scheme applies to host access to the NIC's 64-bit 30 * Writes to different CSRs and 64-bit SRAM words must be serialised, 34 * We also serialise reads from 128-bit CSRs and SRAM with the same 39 * 128-bit but are special-cased in the BIU to avoid the need for 42 * - They are write-only. 43 * - The semantics of writing to these registers are such that [all …]
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A D | io.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright 2005-2006 Fen Systems Ltd. 5 * Copyright 2006-2013 Solarflare Communications Inc. 25 * the BIU collects the written value and does not write to the 27 * similar buffering scheme applies to host access to the NIC's 64-bit 30 * Writes to different CSRs and 64-bit SRAM words must be serialised, 34 * We also serialise reads from 128-bit CSRs and SRAM with the same 39 * 128-bit but are special-cased in the BIU to avoid the need for 42 * - They are write-only. 43 * - The semantics of writing to these registers are such that [all …]
|
| /linux/drivers/gpio/ |
| H A D | gpio-tangier.c | 1 // SPDX-License-Identifier: GPL-2.0-only 22 #include <linux/pinctrl/pinconf-generic.h> 30 #include "gpio-tangier.h" 46 * struct tng_gpio_context - Context to be saved during suspend-resume 69 return priv->reg_base + reg + reg_offset * 4; in gpio_reg() 73 unsigned int reg, u8 *bit) in gpio_reg_and_bit() argument 79 *bit = shift; in gpio_reg_and_bit() 80 return priv->reg_base + reg + reg_offset * 4; in gpio_reg_and_bit() 90 return !!(readl(gplr) & BIT(shift)); in tng_gpio_get() 93 static int tng_gpio_set(struct gpio_chip *chip, unsigned int offset, int value) in tng_gpio_set() argument [all …]
|
| /linux/drivers/staging/rtl8723bs/include/ |
| H A D | HalPwrSeqCmd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 12 /*---------------------------------------------*/ 13 /* 3 The value of cmd: 4 bits */ 14 /*---------------------------------------------*/ 17 /* msk: the mask of the read value */ 18 /* value: N/A, left by 0 */ 24 /* value: write value */ 29 /* msk: the mask of the polled value */ 30 /* value: the value to be polled, masked by the msd field. */ [all …]
|
| /linux/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | dwmac-tegra.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 "rx-pcs", "tx", "tx-pcs", "mac-divider", "mac", "mgbe", "ptp_ref", "mac" 33 #define XPCS_WRAP_UPHY_RX_CONTROL_RX_SW_OVRD BIT(31) 34 #define XPCS_WRAP_UPHY_RX_CONTROL_RX_PCS_PHY_RDY BIT(10) 35 #define XPCS_WRAP_UPHY_RX_CONTROL_RX_CDR_RESET BIT(9) 36 #define XPCS_WRAP_UPHY_RX_CONTROL_RX_CAL_EN BIT(8) 37 #define XPCS_WRAP_UPHY_RX_CONTROL_RX_SLEEP (BIT(7) | BIT(6)) 38 #define XPCS_WRAP_UPHY_RX_CONTROL_AUX_RX_IDDQ BIT(5) 39 #define XPCS_WRAP_UPHY_RX_CONTROL_RX_IDDQ BIT(4) 40 #define XPCS_WRAP_UPHY_RX_CONTROL_RX_DATA_EN BIT(0) [all …]
|