/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) 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) 63 #define SSPX_ELPG_CLAMP_EN(x) BIT(0 + (x) * 3) [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/include/linux/ |
H A D | bitops.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 25 * Defined here because those may be needed by architecture-specific static 29 #include <asm-generic/bitops/generic-non-atomic.h> 32 * Many architecture-specific non-atomic bitops contain inline asm code and due 33 * to that the compiler can't optimize them to compile-tim 187 sign_extend32(__u32 value,int index) sign_extend32() argument 198 sign_extend64(__u64 value,int index) sign_extend64() argument 270 assign_bit(nr,addr,value) global() argument 273 __assign_bit(nr,addr,value) global() argument [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/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/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->portinfo[dai->id]; in cygnus_dai_get_portinfo() 246 u32 value, fci_id; in audio_ssp_init_portregs() local 249 switch (aio->port_type) { in audio_ssp_init_portregs() 251 value = readl(aio->cygaud->audio + aio->regs.i2s_stream_cfg); in audio_ssp_init_portregs() [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/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/clk/ingenic/ |
H A D | cgu.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Copyright (c) 2013-2015 Imagination Technologies 13 #include <linux/clk-provider.h> 18 * struct ingenic_cgu_pll_info - information about a PLL 21 * @m_shift: the number of bits to shift the multiplier value by (ie. the 22 * index of the lowest bit of the multiplier value in the PLL's 25 * @m_offset: the multiplier value which encodes to 0 in the PLL's control 27 * @n_shift: the number of bits to shift the divider value by (ie. the 28 * index of the lowest bit of the divider value in the PLL's 31 * @n_offset: the divider value which encodes to 0 in the PLL's control [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/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/include/media/drv-intf/ |
H A D | saa7146.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 #include <linux/delay.h> /* for delay-stuff */ 7 #include <linux/pci.h> /* for pci-config-stuff, vendor ids etc. */ 16 #include <media/v4l2-device.h> 17 #include <media/v4l2-ctrls.h> 22 #define saa7146_write(sxy,adr,dat) writel((dat),(sxy->mem+(adr))) 23 #define saa7146_read(sxy,adr) readl(sxy->mem+(adr)) 107 u32 irq_mask; /* mask to indicate, which irq-events are handled by the extension */ 129 u32 revision; /* chip revision; needed for bug-workarounds*/ 131 /* pci-device & irq stuff*/ [all …]
|
/linux/drivers/phy/freescale/ |
H A D | phy-fsl-imx8mq-usb.c | 1 // SPDX-License-Identifier: GPL-2.0+ 15 #define PHY_CTRL0_REF_SSP_EN BIT(2) 20 #define PHY_CTRL1_RESET BIT(0) 21 #define PHY_CTRL1_COMMONONN BIT(1) 22 #define PHY_CTRL1_ATERESET BIT(3) 23 #define PHY_CTRL1_VDATSRCENB0 BIT(19) 24 #define PHY_CTRL1_VDATDETENB0 BIT(20) 27 #define PHY_CTRL2_TXENABLEN0 BIT(8) 28 #define PHY_CTRL2_OTG_DISABLE BIT(9) 41 #define PHY_CTRL5_DMPWD_OVERRIDE_SEL BIT(23) [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-rda.c | 1 // SPDX-License-Identifier: GPL-2.0-only 48 void __iomem *base = rda_gpio->base; in rda_gpio_update() 52 spin_lock_irqsave(&rda_gpio->lock, flags); in rda_gpio_update() 56 tmp |= BIT(offset); in rda_gpio_update() 58 tmp &= ~BIT(offset); in rda_gpio_update() 61 spin_unlock_irqrestore(&rda_gpio->lock, flags); in rda_gpio_update() 68 void __iomem *base = rda_gpio->base; in rda_gpio_irq_mask() 70 u32 value; in rda_gpio_irq_mask() local 72 value = BIT(offset) << RDA_GPIO_IRQ_RISE_SHIFT; in rda_gpio_irq_mask() 73 value |= BIT(offset) << RDA_GPIO_IRQ_FALL_SHIFT; in rda_gpio_irq_mask() [all …]
|
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 void tng_gpio_set(struct gpio_chip *chip, unsigned int offset, int value) in tng_gpio_set() argument [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 …]
|
/linux/drivers/gpu/drm/amd/display/dc/dce112/ |
H A D | dce112_compressor.c | 2 * Copyright 2012-15 Advanced Micro Devices, Inc. 37 cp110->base.ctx->logger 39 (reg + cp110->offsets.dcp_offset) 41 (reg + cp110->offsets.dmif_offset) 45 .dcp_offset = (mmDCP0_GRPH_CONTROL - mmDCP0_GRPH_CONTROL), 48 - mmDMIF_PG0_DPG_PIPE_DPM_CONTROL), 51 .dcp_offset = (mmDCP1_GRPH_CONTROL - mmDCP0_GRPH_CONTROL), 54 - mmDMIF_PG0_DPG_PIPE_DPM_CONTROL), 57 .dcp_offset = (mmDCP2_GRPH_CONTROL - mmDCP0_GRPH_CONTROL), 60 - mmDMIF_PG0_DPG_PIPE_DPM_CONTROL), [all …]
|