/Linux-v6.1/drivers/mtd/nand/raw/ |
D | nand_ids.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 {"TC58NVG0S3E 1G 3.3V 8-bit", 32 {"TC58NVG2S0F 4G 3.3V 8-bit", 35 {"TC58NVG2S0H 4G 3.3V 8-bit", 38 {"TC58NVG3S0F 8G 3.3V 8-bit", 41 {"TC58NVG5D2 32G 3.3V 8-bit", 44 {"TC58NVG6D2 64G 3.3V 8-bit", 47 {"SDTNRGAMA 64G 3.3V 8-bit", 50 {"H27UCG8T2ATR-BC 64G 3.3V 8-bit", 54 {"H27UCG8T2ETR-BC 64G 3.3V 8-bit", [all …]
|
/Linux-v6.1/drivers/staging/media/sunxi/cedrus/ |
D | cedrus_regs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Copyright (c) 2013-2016 Jens Kuske <jenskuske@gmail.com> 6 * Copyright (C) 2016 Florent Revest <florent.revest@free-electrons.com> 13 #define SHIFT_AND_MASK_BITS(v, h, l) \ argument 14 (((unsigned long)(v) << (l)) & GENMASK(h, l)) 18 * * VLD : Variable-Length Decoder 38 #define VE_MODE_PIC_WIDTH_IS_4096 BIT(22) 39 #define VE_MODE_PIC_WIDTH_MORE_2048 BIT(21) 96 #define VE_DEC_MPEG_MP12HDR_F_CODE_SHIFT(x, y) (24 - 4 * (y) - 8 * (x)) 104 #define VE_DEC_MPEG_MP12HDR_TOP_FIELD_FIRST(v) \ argument [all …]
|
/Linux-v6.1/sound/soc/fsl/ |
D | fsl_easrc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 #include <linux/dma/imx-dma.h> 88 #define EASRC_CC_EN_MASK BIT(EASRC_CC_EN_SHIFT) 89 #define EASRC_CC_EN BIT(EASRC_CC_EN_SHIFT) 91 #define EASRC_CC_STOP_MASK BIT(EASRC_CC_STOP_SHIFT) 92 #define EASRC_CC_STOP BIT(EASRC_CC_STOP_SHIFT) 94 #define EASRC_CC_FWMDE_MASK BIT(EASRC_CC_FWMDE_SHIFT) 95 #define EASRC_CC_FWMDE BIT(EASRC_CC_FWMDE_SHIFT) 98 #define EASRC_CC_FIFO_WTMK_MASK ((BIT(EASRC_CC_FIFO_WTMK_WIDTH) - 1) \ 100 #define EASRC_CC_FIFO_WTMK(v) (((v) << EASRC_CC_FIFO_WTMK_SHIFT) \ argument [all …]
|
/Linux-v6.1/drivers/iio/adc/ |
D | stm32-dfsdm.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Copyright (C) 2017, STMicroelectronics - All Rights Reserved 15 * STM32 DFSDM - global register map 18 * -------------------------------------------------------- 20 * -------------------------------------------------------- 22 * -------------------------------------------------------- 24 * -------------------------------------------------------- 26 * -------------------------------------------------------- 28 * -------------------------------------------------------- 30 * -------------------------------------------------------- [all …]
|
/Linux-v6.1/drivers/media/platform/verisilicon/ |
D | rockchip_vpu2_hw_mpeg2_dec.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <media/v4l2-mem2mem.h> 23 #define VDPU_REG_DEC_E(v) ((v) ? BIT(0) : 0) argument 25 #define VDPU_REG_DEC_ADV_PRE_DIS(v) ((v) ? BIT(11) : 0) argument 26 #define VDPU_REG_DEC_SCMD_DIS(v) ((v) ? BIT(10) : 0) argument 27 #define VDPU_REG_FILTERING_DIS(v) ((v) ? BIT(8) : 0) argument 28 #define VDPU_REG_DEC_LATENCY(v) (((v) << 1) & GENMASK(6, 1)) argument 30 #define VDPU_REG_INIT_QP(v) (((v) << 25) & GENMASK(30, 25)) argument 31 #define VDPU_REG_STREAM_LEN(v) (((v) << 0) & GENMASK(23, 0)) argument 33 #define VDPU_REG_APF_THRESHOLD(v) (((v) << 17) & GENMASK(30, 17)) argument [all …]
|
D | hantro_g1_mpeg2_dec.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <media/v4l2-mem2mem.h> 25 #define G1_REG_DEC_AXI_RD_ID(v) (((v) << 24) & GENMASK(31, 24)) argument 26 #define G1_REG_DEC_TIMEOUT_E(v) ((v) ? BIT(23) : 0) argument 27 #define G1_REG_DEC_STRSWAP32_E(v) ((v) ? BIT(22) : 0) argument 28 #define G1_REG_DEC_STRENDIAN_E(v) ((v) ? BIT(21) : 0) argument 29 #define G1_REG_DEC_INSWAP32_E(v) ((v) ? BIT(20) : 0) argument 30 #define G1_REG_DEC_OUTSWAP32_E(v) ((v) ? BIT(19) : 0) argument 31 #define G1_REG_DEC_DATA_DISC_E(v) ((v) ? BIT(18) : 0) argument 32 #define G1_REG_DEC_LATENCY(v) (((v) << 11) & GENMASK(16, 11)) argument [all …]
|
D | rockchip_vpu2_hw_h264_dec.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Hertz Wong <hertz.wong@rock-chips.com> 7 * Herman Chen <herman.chen@rock-chips.com> 16 #include <media/v4l2-mem2mem.h> 28 #define VDPU_REG_DEC_E(v) ((v) ? BIT(0) : 0) argument 30 #define VDPU_REG_DEC_ADV_PRE_DIS(v) ((v) ? BIT(11) : 0) argument 31 #define VDPU_REG_DEC_SCMD_DIS(v) ((v) ? BIT(10) : 0) argument 32 #define VDPU_REG_FILTERING_DIS(v) ((v) ? BIT(8) : 0) argument 33 #define VDPU_REG_PIC_FIXED_QUANT(v) ((v) ? BIT(7) : 0) argument 34 #define VDPU_REG_DEC_LATENCY(v) (((v) << 1) & GENMASK(6, 1)) argument [all …]
|
D | hantro_g1_regs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 16 #define G1_REG_INTERRUPT_DEC_PIC_INF BIT(24) 17 #define G1_REG_INTERRUPT_DEC_TIMEOUT BIT(18) 18 #define G1_REG_INTERRUPT_DEC_SLICE_INT BIT(17) 19 #define G1_REG_INTERRUPT_DEC_ERROR_INT BIT(16) 20 #define G1_REG_INTERRUPT_DEC_ASO_INT BIT(15) 21 #define G1_REG_INTERRUPT_DEC_BUFFER_INT BIT(14) 22 #define G1_REG_INTERRUPT_DEC_BUS_INT BIT(13) 23 #define G1_REG_INTERRUPT_DEC_RDY_INT BIT(12) 24 #define G1_REG_INTERRUPT_DEC_IRQ BIT(8) [all …]
|
/Linux-v6.1/drivers/net/ethernet/altera/ |
D | altera_msgdmahw.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 17 u32 burst_seq_num; /* bit 31:24 write burst 18 * bit 23:16 read burst 19 * bit 15:0 sequence number 21 u32 stride; /* bit 31:16 write stride 22 * bit 15:0 read stride 29 /* mSGDMA descriptor control field bit definitions 32 #define MSGDMA_DESC_CTL_GEN_SOP BIT(8) 33 #define MSGDMA_DESC_CTL_GEN_EOP BIT(9) 34 #define MSGDMA_DESC_CTL_PARK_READS BIT(10) [all …]
|
D | altera_tse.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* Altera Triple-Speed Ethernet MAC driver 3 * Copyright (C) 2008-2014 Altera Corporation. All rights reserved 53 #define GET_BIT_VALUE(v, bit) (((v) >> (bit)) & 0x1) argument 55 /* MAC Command_Config Register Bit Definitions 57 #define MAC_CMDCFG_TX_ENA BIT(0) 58 #define MAC_CMDCFG_RX_ENA BIT(1) 59 #define MAC_CMDCFG_XON_GEN BIT(2) 60 #define MAC_CMDCFG_ETH_SPEED BIT(3) 61 #define MAC_CMDCFG_PROMIS_EN BIT(4) [all …]
|
/Linux-v6.1/lib/ |
D | atomic64_test.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 20 #define TEST(bit, op, c_op, val) \ argument 22 atomic##bit##_set(&v, v0); \ 24 atomic##bit##_##op(val, &v); \ 26 WARN(atomic##bit##_read(&v) != r, "%Lx != %Lx\n", \ 27 (unsigned long long)atomic##bit##_read(&v), \ 33 * @test should be a macro accepting parameters (bit, op, ...) 36 #define FAMILY_TEST(test, bit, op, args...) \ argument 38 test(bit, op, ##args); \ 39 test(bit, op##_acquire, ##args); \ [all …]
|
/Linux-v6.1/drivers/media/platform/sunxi/sun8i-di/ |
D | sun8i-di.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 #include <media/v4l2-device.h> 12 #include <media/v4l2-mem2mem.h> 13 #include <media/videobuf2-v4l2.h> 14 #include <media/videobuf2-dma-contig.h> 18 #define DEINTERLACE_NAME "sun8i-di" 21 #define DEINTERLACE_MOD_ENABLE_EN BIT(0) 24 #define DEINTERLACE_FRM_CTRL_REG_READY BIT(0) 25 #define DEINTERLACE_FRM_CTRL_WB_EN BIT(2) 26 #define DEINTERLACE_FRM_CTRL_OUT_CTRL BIT(11) [all …]
|
/Linux-v6.1/sound/soc/sunxi/ |
D | sun4i-spdif.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 31 #define SUN4I_SPDIF_CTL_MCLKDIV(v) ((v) << 4) /* v even */ argument 32 #define SUN4I_SPDIF_CTL_MCLKOUTEN BIT(2) 33 #define SUN4I_SPDIF_CTL_GEN BIT(1) 34 #define SUN4I_SPDIF_CTL_RESET BIT(0) 37 #define SUN4I_SPDIF_TXCFG_SINGLEMOD BIT(31) 38 #define SUN4I_SPDIF_TXCFG_ASS BIT(17) 39 #define SUN4I_SPDIF_TXCFG_NONAUDIO BIT(16) 40 #define SUN4I_SPDIF_TXCFG_TXRATIO(v) ((v) << 4) argument 46 #define SUN4I_SPDIF_TXCFG_CHSTMODE BIT(1) [all …]
|
/Linux-v6.1/tools/perf/util/arm-spe-decoder/ |
D | arm-spe-pkt-decoder.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * Copyright (c) 2017-2018, Arm Ltd. 15 #define ARM_SPE_NEED_MORE_BYTES -1 16 #define ARM_SPE_BAD_PACKET -2 71 #define SPE_ADDR_PKT_ADDR_GET_BYTES_0_6(v) ((v) & GENMASK_ULL(55, 0)) argument 72 #define SPE_ADDR_PKT_ADDR_GET_BYTE_6(v) (((v) & GENMASK_ULL(55, 48)) >> 48) argument 74 #define SPE_ADDR_PKT_GET_NS(v) (((v) & BIT_ULL(63)) >> 63) argument 75 #define SPE_ADDR_PKT_GET_EL(v) (((v) & GENMASK_ULL(62, 61)) >> 61) argument 76 #define SPE_ADDR_PKT_GET_CH(v) (((v) & BIT_ULL(62)) >> 62) argument 77 #define SPE_ADDR_PKT_GET_PAT(v) (((v) & GENMASK_ULL(59, 56)) >> 56) argument [all …]
|
/Linux-v6.1/drivers/gpu/drm/bridge/ |
D | tc358764.c | 1 // SPDX-License-Identifier: GPL-2.0 24 #define FLD_MASK(start, end) (((1 << ((start) - (end) + 1)) - 1) << (end)) 28 #define PPI_STARTPPI 0x0104 /* START control bit */ 39 #define DSI_STARTDSI 0x0204 /* START control bit of DSI-TX */ 45 #define VP_CTRL_MSF(v) FLD_VAL(v, 0, 0) /* Magic square in RGB666 */ argument 46 #define VP_CTRL_VTGEN(v) FLD_VAL(v, 4, 4) /* Use chip clock for timing */ argument 47 #define VP_CTRL_EVTMODE(v) FLD_VAL(v, 5, 5) /* Event mode */ argument 48 #define VP_CTRL_RGB888(v) FLD_VAL(v, 8, 8) /* RGB888 mode */ argument 49 #define VP_CTRL_VSDELAY(v) FLD_VAL(v, 31, 20) /* VSYNC delay */ argument 50 #define VP_CTRL_HSPOL BIT(17) /* Polarity of HSYNC signal */ [all …]
|
/Linux-v6.1/drivers/power/supply/ |
D | bq24190_charger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 #include <linux/extcon-provider.h> 24 #define BQ24190_REG_ISC_EN_HIZ_MASK BIT(7) 26 #define BQ24190_REG_ISC_VINDPM_MASK (BIT(6) | BIT(5) | BIT(4) | \ 27 BIT(3)) 29 #define BQ24190_REG_ISC_IINLIM_MASK (BIT(2) | BIT(1) | BIT(0)) 32 #define BQ24190_REG_POC 0x01 /* Power-On Configuration */ 33 #define BQ24190_REG_POC_RESET_MASK BIT(7) 35 #define BQ24190_REG_POC_WDT_RESET_MASK BIT(6) 37 #define BQ24190_REG_POC_CHG_CONFIG_MASK (BIT(5) | BIT(4)) [all …]
|
/Linux-v6.1/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-sun8i.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * dwmac-sun8i.c - Allwinner sun8i DWMAC specific glue layer 11 #include <linux/mdio-mux.h> 27 /* General notes on dwmac-sun8i: 32 /* struct emac_variant - Describe dwmac-sun8i hardware variant 60 /* struct sunxi_priv_data - hold all sunxi private data 68 * @mux_handle: Internal pointer used by mdio-mux lib 146 * co-packaged AC200 chip instead. 180 #define EMAC_DUPLEX_FULL BIT(0) 181 #define EMAC_LOOPBACK BIT(1) [all …]
|
/Linux-v6.1/fs/xfs/libxfs/ |
D | xfs_bit.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 * XFS bit manipulation routines. 14 * masks with n high/low bits set, 64-bit values 18 return (uint64_t)-1 << (64 - (n)); in xfs_mask64hi() 22 return ((uint32_t)1 << (n)) - 1; in xfs_mask32lo() 26 return ((uint64_t)1 << (n)) - 1; in xfs_mask64lo() 29 /* Get high bit set out of 32-bit argument, -1 if none set */ 30 static inline int xfs_highbit32(uint32_t v) in xfs_highbit32() argument 32 return fls(v) - 1; in xfs_highbit32() 35 /* Get high bit set out of 64-bit argument, -1 if none set */ [all …]
|
/Linux-v6.1/drivers/media/i2c/ |
D | ov5648.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 #include <media/v4l2-ctrls.h> 17 #include <media/v4l2-device.h> 18 #include <media/v4l2-fwnode.h> 19 #include <media/v4l2-image-sizes.h> 20 #include <media/v4l2-mediabus.h> 31 #define OV5648_SW_STANDBY_STREAM_ON BIT(0) 34 #define OV5648_SW_RESET_RESET BIT(0) 52 #define OV5648_PAD_PK_PD_DATO_EN BIT(7) 55 #define OV5648_PAD_PK_FREX_N BIT(1) [all …]
|
D | ov8865.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 #include <media/v4l2-ctrls.h> 19 #include <media/v4l2-device.h> 20 #include <media/v4l2-fwnode.h> 21 #include <media/v4l2-image-sizes.h> 22 #include <media/v4l2-mediabus.h> 29 #define OV8865_SW_STANDBY_STREAM_ON BIT(0) 32 #define OV8865_SW_RESET_RESET BIT(0) 35 #define OV8865_PLL_CTRL0_PRE_DIV(v) ((v) & GENMASK(2, 0)) argument 37 #define OV8865_PLL_CTRL1_MUL_H(v) (((v) & GENMASK(9, 8)) >> 8) argument [all …]
|
/Linux-v6.1/drivers/comedi/drivers/ |
D | icp_multi.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * COMEDI - Linux Control and Measurement Device Interface 7 * Copyright (C) 1997-2002 David A. Schleef <ds@schleef.org> 23 * It has 16 single-ended or 8 differential Analogue Input channels with 24 * 12-bit resolution. Ranges : 5V, 10V, +/-5V, +/-10V, 0..20mA and 4..20mA. 28 * There are 4 x 12-bit Analogue Outputs. Ranges : 5V, 10V, +/-5V, +/-10V 30 * 16 x Digital Inputs, 24V 32 * 8 x Digital Outputs, 24V, 1A 34 * 4 x 16-bit counters - not implemented 42 #define ICP_MULTI_ADC_CSR_ST BIT(0) /* Start ADC */ [all …]
|
D | s626.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 6 * COMEDI - Linux Control and Measurement Device Interface 10 * Copyright (C) 2002-2004 Sensoray Co., Inc. 24 * Number of extended-capability 36 #define S626_RANGE_5V 0x10 /* +/-5V range */ 37 #define S626_RANGE_10V 0x00 /* +/-10V range */ 40 #define S626_GSEL_BIPOLAR5V 0x00F0 /* S626_LP_GSEL setting 5V bipolar. */ 41 #define S626_GSEL_BIPOLAR10V 0x00A0 /* S626_LP_GSEL setting 10V bipolar. */ 73 /* Interrupt enable bit in ISR and IER. */ 180 * Shut down all MC1-controlled [all …]
|
/Linux-v6.1/include/linux/ |
D | string_helpers.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 26 #define UNESCAPE_SPACE BIT(0) 27 #define UNESCAPE_OCTAL BIT(1) 28 #define UNESCAPE_HEX BIT(2) 29 #define UNESCAPE_SPECIAL BIT(3) 52 #define ESCAPE_SPACE BIT(0) 53 #define ESCAPE_SPECIAL BIT(1) 54 #define ESCAPE_NULL BIT(2) 55 #define ESCAPE_OCTAL BIT(3) 58 #define ESCAPE_NP BIT(4) [all …]
|
/Linux-v6.1/sound/ppc/ |
D | snd_ps3_reg.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 66 can be cleared by writing a '1' to the corresponding bit. A new interrupt 73 +-+-+-+-+-+-+-+-|-+-+-+-+-+-+-+-|-+-+-+-+-+-+-+-|-+-+-+-+-+-+-+-+ 75 +-+-+-+-+-+-+-+-|-+-+-+-+-+-+-+-|-+-+-+-+-+-+-+-|-+-+-+-+-+-+-+-+ 91 an interrupt to the PU. Each bit of PS3_AUDIO_INTR_EN_0 is ANDed with the 92 corresponding bit in PS3_AUDIO_INTR_0. The resulting bits are OR'd together 96 +-+-+-+-+-+-+-+-|-+-+-+-+-+-+-+-|-+-+-+-+-+-+-+-|-+-+-+-+-+-+-+-+ 98 +-+-+-+-+-+-+-+-|-+-+-+-+-+-+-+-|-+-+-+-+-+-+-+-|-+-+-+-+-+-+-+-+ 100 Bit assignments are same as PS3_AUDIO_INTR_0 106 +-+-+-+-+-+-+-+-|-+-+-+-+-+-+-+-|-+-+-+-+-+-+-+-|-+-+-+-+-+-+-+-+ [all …]
|
/Linux-v6.1/arch/powerpc/perf/ |
D | isa207-common.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 38 #define EVENT_PMC_SHIFT 16 /* PMC number (1-based) */ 42 #define EVENT_COMBINE_SHIFT 11 /* Combine bit */ 44 #define EVENT_COMBINE(v) (((v) >> EVENT_COMBINE_SHIFT) & EVENT_COMBINE_MASK) argument 45 #define EVENT_MARKED_SHIFT 8 /* Marked bit */ 73 #define p9_EVENT_COMBINE_SHIFT 10 /* Combine bit */ 75 #define p9_EVENT_COMBINE(v) (((v) >> p9_EVENT_COMBINE_SHIFT) & p9_EVENT_COMBINE_MASK) argument 78 #define p9_SDAR_MODE(v) (((v) >> p9_SDAR_MODE_SHIFT) & p9_SDAR_MODE_MASK) argument 95 #define p10_SDAR_MODE(v) (((v) >> p10_SDAR_MODE_SHIFT) & \ argument 108 /* Event Threshold Compare bit constant for power10 in config1 attribute */ [all …]
|