/linux/drivers/acpi/acpica/ |
H A D | utmath.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 4 * Module Name: utmath - Integer math support routines 14 /* Structures used only for 64-bit divide */ 22 u64 full; member 28 * Optional support for 64-bit double-precision integer multiply and shift. 29 * This code is configurable and is implemented in order to support 32-bit 30 * kernel environments where a 64-bit double-precision math library is not 39 * PARAMETERS: multiplicand - 64-bit multiplicand 40 * multiplier - 32-bit multiplier 41 * out_product - Pointer to where the product is returned [all …]
|
/linux/drivers/comedi/drivers/ |
H A D | jr3_pci.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * is 16 bits, but aligned on a 32 bit PCI boundary 31 * two-byte words. 42 * Channels 1-6 contain the coupled force data Fx through Mz. Channel 43 * 7 contains the sensor's calibration data. The use of channels 8-15 70 * the full scales. 84 * which axes to use in computing the vectors. Each bit signifies 85 * selection of a single axis. The V1x axis bit corresponds to a hex 86 * value of 0x0001 and the V2z bit corresponds to a hex value of 91 * calculated. Setting the changeV1 bit or the changeV2 bit will [all …]
|
/linux/drivers/net/ethernet/sunplus/ |
H A D | spl2sw_define.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 #define MAX_NETDEV_NUM 2 /* Maximum # of net-device */ 12 #define MAC_INT_DAISY_MODE_CHG BIT(31) /* Daisy Mode Change */ 13 #define MAC_INT_IP_CHKSUM_ERR BIT(23) /* IP Checksum Append Error */ 14 #define MAC_INT_WDOG_TIMER1_EXP BIT(22) /* Watchdog Timer1 Expired */ 15 #define MAC_INT_WDOG_TIMER0_EXP BIT(21) /* Watchdog Timer0 Expired */ 16 #define MAC_INT_INTRUDER_ALERT BIT(20) /* Atruder Alert */ 17 #define MAC_INT_PORT_ST_CHG BIT(19) /* Port Status Change */ 18 #define MAC_INT_BC_STORM BIT(18) /* Broad Cast Storm */ 19 #define MAC_INT_MUST_DROP_LAN BIT(17) /* Global Queue Exhausted */ [all …]
|
/linux/tools/perf/pmu-events/arch/arm64/ampere/ampereonex/ |
H A D | core-imp-def.json | 93 … "PublicDescription": "Count predict pipe stalls due to speculative return address predictor full", 96 … "BriefDescription": "Count predict pipe stalls due to speculative return address predictor full" 99 "PublicDescription": "Macro-ops speculatively decoded", 102 "BriefDescription": "Macro-ops speculatively decoded" 117 "PublicDescription": "ETM extout bit 0", 120 "BriefDescription": "ETM extout bit 0" 123 "PublicDescription": "ETM extout bit 1", 126 "BriefDescription": "ETM extout bit 1" 129 "PublicDescription": "ETM extout bit 2", 132 "BriefDescription": "ETM extout bit 2" [all …]
|
/linux/include/linux/ |
H A D | cnt32_to_63.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Extend a 32-bit counter to 63 bits 31 * cnt32_to_63 - Expand a 32-bit counter to a 63-bit counter 35 * a relatively short period making wrap-arounds rather frequent. This 36 * is a problem when implementing sched_clock() for example, where a 64-bit 37 * non-wrapping monotonic value is expected to be returned. 39 * To overcome that limitation, let's extend a 32-bit counter to 63 bits 41 * by the hardware while bits 32 to 62 are stored in memory. The top bit in 42 * memory is used to synchronize with the hardware clock half-period. When 43 * the top bit of both counters (hardware and in memory) differ then the [all …]
|
/linux/Documentation/devicetree/bindings/dma/stm32/ |
H A D | st,stm32-dma.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/dma/stm32/st,stm32-dma.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 The STM32 DMA is a general-purpose direct memory access controller capable of 13 described in the dma.txt file, using a four-cell specifier for each 17 3. A 32bit mask specifying the DMA channel configuration which are device 19 -bit 9: Peripheral Increment Address 22 -bit 10: Memory Increment Address 25 -bit 15: Peripheral Increment Offset Size [all …]
|
/linux/tools/perf/pmu-events/arch/arm64/ampere/ampereone/ |
H A D | core-imp-def.json | 93 … "PublicDescription": "Count predict pipe stalls due to speculative return address predictor full", 96 … "BriefDescription": "Count predict pipe stalls due to speculative return address predictor full" 99 "PublicDescription": "Macro-ops speculatively decoded", 102 "BriefDescription": "Macro-ops speculatively decoded" 117 "PublicDescription": "ETM extout bit 0", 120 "BriefDescription": "ETM extout bit 0" 123 "PublicDescription": "ETM extout bit 1", 126 "BriefDescription": "ETM extout bit 1" 129 "PublicDescription": "ETM extout bit 2", 132 "BriefDescription": "ETM extout bit 2" [all …]
|
/linux/include/asm-generic/bitops/ |
H A D | instrumented-atomic.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * This file provides wrappers with sanitizer instrumentation for atomic bit 8 * the below bit operations with an arch_ prefix (e.g. arch_set_bit(), 17 * set_bit - Atomically set a bit in memory 18 * @nr: the bit to set 24 * restricted to acting on a single-word quantity. 33 * clear_bit - Clears a bit in memory 34 * @nr: Bit to clear 46 * change_bit - Toggle a bit in memory 47 * @nr: Bit to change [all …]
|
/linux/drivers/power/supply/ |
H A D | cpcap-battery.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 * Copyright (C) 2009-2010 Motorola, Inc. 23 #include <linux/nvmem-consumer.h> 28 #include <linux/mfd/motorola-cpcap.h> 31 * Register bit defines for CPCAP_REG_BPEOL. Some of these seem to 32 * map to MC13783UG.pdf "Table 5-19. Register 13, Power Control 0" 36 #define CPCAP_REG_BPEOL_BIT_EOL9 BIT(9) /* Set for EOL irq */ 37 #define CPCAP_REG_BPEOL_BIT_EOL8 BIT(8) /* Set for EOL irq */ 38 #define CPCAP_REG_BPEOL_BIT_UNKNOWN7 BIT(7) 39 #define CPCAP_REG_BPEOL_BIT_UNKNOWN6 BIT(6) [all …]
|
/linux/drivers/scsi/ |
H A D | aha1542.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 #define STST BIT(7) /* Self Test in Progress */ 11 #define DIAGF BIT(6) /* Internal Diagnostic Failure */ 12 #define INIT BIT(5) /* Mailbox Initialization Required */ 13 #define IDLE BIT(4) /* SCSI Host Adapter Idle */ 14 #define CDF BIT(3) /* Command/Data Out Port Full */ 15 #define DF BIT(2) /* Data In Port Full */ 16 /* BIT(1) is reserved */ 17 #define INVDCMD BIT(0) /* Invalid H A Command */ 21 #define ANYINTR BIT(7) /* Any Interrupt */ [all …]
|
/linux/Documentation/admin-guide/hw-vuln/ |
H A D | tsx_async_abort.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 TAA - TSX Asynchronous Abort 11 ------------------- 14 Transactional Synchronization Extensions (TSX) when the TAA_NO bit (bit 8) 15 is 0 in the IA32_ARCH_CAPABILITIES MSR. On processors where the MDS_NO bit 16 (bit 5) is 0 in the IA32_ARCH_CAPABILITIES MSR, the existing MDS mitigations 23 ------------ 28 CVE-2019-11135 TAA TSX Asynchronous Abort (TAA) condition on some 36 ------- 43 hardware transactional memory support to improve performance of multi-threaded [all …]
|
/linux/tools/testing/selftests/kvm/ |
H A D | dirty_log_test.c | 1 // SPDX-License-Identifier: GPL-2.0 45 # define BITOP_LE_SWIZZLE ((BITS_PER_LONG-1) & ~0x7) 144 * is the only place that we'll guarantee both "dirty bit" and "dirty data" 146 * after setting dirty bit but before the data is written. 151 * ring-full event. It should only be read until a sem_wait() of 157 * tricky case when the ring just got full, kvm will do userspace exit due to 158 * ring full. When that happens, the very last PFN is set but actually the 160 * we found that the dirty ring is full, refused to continue the vcpu, and 164 * bit, because it's a redundant bit, and when the write happens later the bit 209 while (ret == -1 && errno == EINTR); in sem_wait_until() [all …]
|
/linux/Documentation/networking/device_drivers/can/ |
H A D | can327.rst | 1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 7 -------- 14 ----------- 26 ------------- 29 into full fledged (as far as possible) CAN interfaces. 33 order to fake full-duplex operation. 36 enough to implement simple request-response protocols (such as OBD II), 50 ----------- 59 ---------------------------------- 68 --debug \ [all …]
|
/linux/arch/m68k/include/asm/ |
H A D | mcfuart.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * mcfuart.h -- ColdFire internal UART support defines. 7 * (C) Copyright 1999-2003, Greg Ungerer (gerg@snapgear.com) 52 #define MCFUART_UOP1 0x38 /* Output Port Bit Set (w) */ 53 #define MCFUART_UOP0 0x3c /* Output Port Bit Reset (w) */ 57 * Define bit flags in Mode Register 1 (MR1). 60 #define MCFUART_MR1_RXIRQFULL 0x40 /* RX IRQ type FULL */ 77 * Define bit flags in Mode Register 2 (MR2). 85 #define MCFUART_MR2_STOP1 0x07 /* 1 stop bit */ 90 * Define bit flags in Status Register (USR). [all …]
|
/linux/drivers/pwm/ |
H A D | pwm-pca9685.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Driver for PCA9685 16-channel 12-bit PWM LED controller 8 * based on the pwm-twl-led.c driver 59 #define LED_FULL BIT(4) 60 #define MODE1_ALLCALL BIT(0) 61 #define MODE1_SUB3 BIT(1) 62 #define MODE1_SUB2 BIT(2) 63 #define MODE1_SUB1 BIT(3) 64 #define MODE1_SLEEP BIT(4) 65 #define MODE2_INVRT BIT(4) [all …]
|
/linux/drivers/spi/ |
H A D | spi-meson-spicc.c | 7 * SPDX-License-Identifier: GPL-2.0+ 12 #include <linux/clk-provider.h> 30 * - all transfers are cutted in 16 words burst because the FIFO hangs on 31 * TX underflow, and there is no TX "Half-Empty" interrupt, so we go by 33 * - CS management is dumb, and goes UP between every burst, so is really a 35 * to have a CS go down over the full transfer 46 #define SPICC_ENABLE BIT(0) 47 #define SPICC_MODE_MASTER BIT(1) 48 #define SPICC_XCH BIT(2) 49 #define SPICC_SMC BIT(3) [all …]
|
/linux/drivers/usb/host/ |
H A D | max3421-hcd.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Author: David Mosberger-Tang <davidm@egauge.net> 7 * (C) Copyright 2014 David Mosberger-Tang <davidm@egauge.net> 9 * MAX3421 is a chip implementing a USB 2.0 Full-/Low-Speed host 16 * https://www.hdl.co.jp/ftpdata/utl-001/AN3785.pdf 24 * Important note on worst-case (full-speed) packet size constraints 27 * - control: 64 bytes 28 * - isochronous: 1023 bytes 29 * - interrupt: 64 bytes 30 * - bulk: 64 bytes [all …]
|
/linux/arch/mips/include/asm/ |
H A D | cmpxchg.h | 6 * Copyright (C) 2003, 06, 07 by Ralf Baechle (ralf@linux-mips.org) 20 * - Get an error at compile-time due to __compiletime_error, if supported by 25 * - Get an error at link-time due to the call to the missing function. 44 " " __SYNC(full, loongson3_war) " \n" \ 122 " " __SYNC(full, loongson3_war) " \n" \ 131 "2: " __SYNC(full, loongson3_war) " \n" \ 223 # include <asm-generic/cmpxchg-local.h> 236 * The assembly below has to combine 32 bit values into a 64 bit in __cmpxchg64() 237 * register, and split 64 bit values from one register into two. If we in __cmpxchg64() 240 * most significant 32 bits of the 64 bit values we're using. In order in __cmpxchg64() [all …]
|
/linux/Documentation/hwmon/ |
H A D | vt1211.rst | 10 Addresses scanned: none, address read from Super-I/O config space 24 ----------------- 29 configuration for channels 1-5. 30 Legal values are in the range of 0-31. Bit 0 maps to 31 UCH1, bit 1 maps to UCH2 and so on. Setting a bit to 1 33 setting a bit to 0 enables the voltage input. 47 ----------- 49 The VIA VT1211 Super-I/O chip includes complete hardware monitoring 52 implements 5 universal input channels (UCH1-5) that can be individually 60 connected to the PWM outputs of the VT1211 :-(). [all …]
|
/linux/include/uapi/linux/ |
H A D | mii.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * linux/mii.h: definitions for MII-compatible transceivers 23 #define MII_CTRL1000 0x09 /* 1000BASE-T control */ 24 #define MII_STAT1000 0x0a /* 1000BASE-T status */ 30 #define MII_NWAYTEST 0x14 /* N-way auto-neg test reg */ 44 #define BMCR_FULLDPLX 0x0100 /* Full duplex */ 55 #define BMSR_ERCAP 0x0001 /* Ext-reg capability */ 58 #define BMSR_ANEGCAPABLE 0x0008 /* Able to do auto-negotiation */ 60 #define BMSR_ANEGCOMPLETE 0x0020 /* Auto-negotiation complete */ 63 #define BMSR_100HALF2 0x0200 /* Can do 100BASE-T2 HDX */ [all …]
|
/linux/drivers/hwtracing/coresight/ |
H A D | coresight-tmc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 #include <linux/dma-mapping.h> 45 /* TMC_CTL - 0x020 */ 46 #define TMC_CTL_CAPT_EN BIT(0) 47 /* TMC_STS - 0x00C */ 49 #define TMC_STS_FULL BIT(0) 50 #define TMC_STS_TRIGGERED BIT(1) 51 #define TMC_STS_MEMERR BIT(5) 53 * TMC_AXICTL - 0x110 55 * TMC AXICTL format for SoC-400 [all …]
|
/linux/sound/soc/sprd/ |
H A D | sprd-mcdt.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #include "sprd-mcdt.h" 121 u32 orig = readl_relaxed(mcdt->base + reg); in sprd_mcdt_update() 125 writel_relaxed(tmp, mcdt->base + reg); in sprd_mcdt_update() 129 u32 full, u32 empty) in sprd_mcdt_dac_set_watermark() argument 135 water_mark |= full & MCDT_CH_FIFO_AF_MASK; in sprd_mcdt_dac_set_watermark() 141 u32 full, u32 empty) in sprd_mcdt_adc_set_watermark() argument 147 water_mark |= full & MCDT_CH_FIFO_AF_MASK; in sprd_mcdt_adc_set_watermark() 158 sprd_mcdt_update(mcdt, MCDT_DMA_EN, BIT(shift), BIT(shift)); in sprd_mcdt_dac_dma_enable() 160 sprd_mcdt_update(mcdt, MCDT_DMA_EN, 0, BIT(shift)); in sprd_mcdt_dac_dma_enable() [all …]
|
/linux/fs/nilfs2/ |
H A D | the_nilfs.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 5 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation. 19 #include <linux/backing-dev.h> 36 * struct the_nilfs - struct to supervise multiple nilfs mount points 43 * @ns_sbh: buffer heads of on-disk super blocks 51 * @ns_segnum: index number of the latest full segment. 52 * @ns_nextnum: index number of the full segment index to be used next 53 * @ns_pseg_offset: offset of next partial segment in the current full segment 69 * @ns_cptree: rb-tree of all mounted checkpoints (nilfs_root) 79 * @ns_blocksize_bits: bit length of block size [all …]
|
/linux/arch/x86/events/amd/ |
H A D | lbr.c | 1 // SPDX-License-Identifier: GPL-2.0 24 #define LBR_KERNEL BIT(LBR_SELECT_KERNEL) 25 #define LBR_USER BIT(LBR_SELECT_USER) 26 #define LBR_JCC BIT(LBR_SELECT_JCC) 27 #define LBR_REL_CALL BIT(LBR_SELECT_CALL_NEAR_REL) 28 #define LBR_IND_CALL BIT(LBR_SELECT_CALL_NEAR_IND) 29 #define LBR_RETURN BIT(LBR_SELECT_RET_NEAR) 30 #define LBR_REL_JMP BIT(LBR_SELECT_JMP_NEAR_REL) 31 #define LBR_IND_JMP BIT(LBR_SELECT_JMP_NEAR_IND) 32 #define LBR_FAR BIT(LBR_SELECT_FAR_BRANCH) [all …]
|
/linux/include/linux/ceph/ |
H A D | msgr.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 23 * The full banner string should have the form: "ceph v2\n<le16>" 35 #define DEFINE_MSGR2_FEATURE(bit, incarnation, name) \ argument 36 static const uint64_t __maybe_unused CEPH_MSGR2_FEATURE_##name = (1ULL << bit); \ 38 (1ULL << bit | CEPH_MSGR2_INCARNATION_##incarnation); 51 * Rollover-safe type and comparator for 32-bit sequence numbers. 52 * Comparator returns -1, 0, or 1. 58 return (__s32)a - (__s32)b; in ceph_seq_cmp() 63 * entity_name -- logical name for a process participating in the 82 * entity_addr -- network address [all …]
|