Home
last modified time | relevance | path

Searched +full:high +full:- +full:bit (Results 1 – 25 of 1113) sorted by relevance

12345678910>>...45

/linux/include/linux/
H A Dmath64.h1 /* SPDX-License-Identifier: GPL-2.0 */
16 * div_u64_rem - unsigned 64bit divide with 32bit divisor with remainder
17 * @dividend: unsigned 64bit dividend
18 * @divisor: unsigned 32bit divisor
19 * @remainder: pointer to unsigned 32bit remainder
23 * This is commonly provided by 32bit archs to provide an optimized 64bit
33 * div_s64_rem - signed 64bit divide with 32bit divisor with remainder
34 * @dividend: signed 64bit dividend
35 * @divisor: signed 32bit divisor
36 * @remainder: pointer to signed 32bit remainder
[all …]
/linux/drivers/net/ethernet/sfc/falcon/
H A Dbitfield.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Copyright 2005-2006 Fen Systems Ltd.
5 * Copyright 2006-2013 Solarflare Communications Inc.
15 * wide. Since there is no native 128-bit datatype on most systems,
16 * and since 64-bit datatypes are inefficient on 32-bit systems and
20 * The NICs are PCI devices and therefore little-endian. Since most
23 * ef4_dword_t) to be little-endian.
26 /* Lowest bit numbers and widths */
46 /* Low bit number of the specified field */
48 /* Bit width of the specified field */
[all …]
/linux/drivers/net/ethernet/sfc/
H A Dbitfield.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Copyright 2005-2006 Fen Systems Ltd.
5 * Copyright 2006-2013 Solarflare Communications Inc.
15 * wide. Since there is no native 128-bit datatype on most systems,
16 * and since 64-bit datatypes are inefficient on 32-bit systems and
20 * The NICs are PCI devices and therefore little-endian. Since most
23 * efx_dword_t) to be little-endian.
26 /* Lowest bit numbers and widths */
48 /* Low bit number of the specified field */
50 /* Bit width of the specified field */
[all …]
/linux/drivers/net/ethernet/sfc/siena/
H A Dbitfield.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Copyright 2005-2006 Fen Systems Ltd.
5 * Copyright 2006-2013 Solarflare Communications Inc.
15 * wide. Since there is no native 128-bit datatype on most systems,
16 * and since 64-bit datatypes are inefficient on 32-bit systems and
20 * The NICs are PCI devices and therefore little-endian. Since most
23 * efx_dword_t) to be little-endian.
26 /* Lowest bit numbers and widths */
46 /* Low bit number of the specified field */
48 /* Bit width of the specified field */
[all …]
/linux/drivers/media/cec/core/
H A Dcec-pin-priv.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * cec-pin-priv.h - internal cec-pin header
13 #include <media/cec-pin.h>
16 ((pin && pin->ops->op && !pin->adap->devnode.unregistered) ? \
17 pin->ops->op(pin->adap, ## arg) : 0)
21 if (pin && pin->ops->op && \
22 !pin->adap->devnode.unregistered) \
23 pin->ops->op(pin->adap, ## arg); \
36 /* Low-drive was detected, wait for bus to go high */
38 /* Drive CEC low for the start bit */
[all …]
H A Dcec-pin.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <media/cec-pin.h>
11 #include "cec-pin-priv.h"
15 /* start bit timings */
23 /* data bit timings */
33 /* earliest safe time to sample the bit state */
35 /* earliest time the bit is back to 1 (T7 + 50) */
40 /* when processing the start bit, sample twice per millisecond */
48 * Total data bit time that is too short/long for a valid bit,
55 * Total start bit time that is too short/long for a valid bit,
[all …]
/linux/drivers/gpu/drm/bridge/analogix/
H A Danalogix-i2c-txcommon.h1 /* SPDX-License-Identifier: GPL-2.0-only */
19 /* Device ID High Byte Register */
27 #define SP_REGISTER_PD BIT(7)
28 #define SP_HDCP_PD BIT(5)
29 #define SP_AUDIO_PD BIT(4)
30 #define SP_VIDEO_PD BIT(3)
31 #define SP_LINK_PD BIT(2)
32 #define SP_TOTAL_PD BIT(1)
36 #define SP_MISC_RST BIT(7)
37 #define SP_VIDCAP_RST BIT(6)
[all …]
/linux/lib/math/
H A Ddiv64.c1 // SPDX-License-Identifier: GPL-2.0
5 * Based on former do_div() implementation from asm-parisc/div64.h:
6 * Copyright (C) 1999 Hewlett-Packard Co
7 * Copyright (C) 1999 David Mosberger-Tang <davidm@hpl.hp.com>
10 * Generic C version of 64bit/32bit division and modulo, with
11 * 64bit result and 32bit remainder.
16 * for some CPUs. __div64_32() can be overridden by linking arch-specific
28 /* Not needed on 64bit architectures */
37 uint32_t high = rem >> 32; in __div64_32() local
39 /* Reduce the thing a bit first */ in __div64_32()
[all …]
/linux/Documentation/userspace-api/media/v4l/
H A Dpixfmt-z16.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
3 .. _V4L2-PIX-FMT-Z16:
10 16-bit depth data with distance values at each pixel
16 This is a 16-bit format, representing depth data. Each pixel is a
19 is stored in a 16-bit word in the little endian byte order.
27 .. flat-table::
28 :header-rows: 0
29 :stub-columns: 0
31 * - start + 0:
32 - Z\ :sub:`00low`
[all …]
H A Dpixfmt-tch-tu16.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
3 .. _V4L2-TCH-FMT-TU16:
11 16-bit unsigned little endian raw touch data
17 This format represents unsigned 16-bit data from a touch controller.
26 .. flat-table::
27 :header-rows: 0
28 :stub-columns: 0
31 * - start + 0:
32 - R'\ :sub:`00low`
33 - R'\ :sub:`00high`
[all …]
H A Dpixfmt-srggb10.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
3 .. _V4L2-PIX-FMT-SRGGB10:
4 .. _v4l2-pix-fmt-sbggr10:
5 .. _v4l2-pix-fmt-sgbrg10:
6 .. _v4l2-pix-fmt-sgrbg10:
16 10-bit Bayer formats expanded to 16 bits
23 sample. Each sample is stored in a 16-bit word, with 6 unused
24 high bits filled with zeros. Each n-pixel row contains n/2 green samples and
31 Each cell is one byte, the 6 most significant bits in the high bytes
37 .. flat-table::
[all …]
H A Dpixfmt-srggb12.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
3 .. _V4L2-PIX-FMT-SRGGB12:
4 .. _v4l2-pix-fmt-sbggr12:
5 .. _v4l2-pix-fmt-sgbrg12:
6 .. _v4l2-pix-fmt-sgrbg12:
17 12-bit Bayer formats expanded to 16 bits
24 colour. Each colour component is stored in a 16-bit word, with 4 unused
25 high bits filled with zeros. Each n-pixel row contains n/2 green samples
32 Each cell is one byte, the 4 most significant bits in the high bytes are
38 .. flat-table::
[all …]
/linux/arch/x86/include/asm/
H A Dmsr.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include "msr-index.h"
40 * both i386 and x86_64 returns 64-bit value in edx:eax, but gcc's "A"
46 /* Using 64-bit values saves one instruction clearing the high half of low */
47 #define DECLARE_ARGS(val, low, high) unsigned long low, high argument
48 #define EAX_EDX_VAL(val, low, high) ((low) | (high) << 32) argument
49 #define EAX_EDX_RET(val, low, high) "=a" (low), "=d" (high) argument
51 #define DECLARE_ARGS(val, low, high) unsigned long long val argument
52 #define EAX_EDX_VAL(val, low, high) (val) argument
53 #define EAX_EDX_RET(val, low, high) "=A" (val) argument
[all …]
/linux/Documentation/hwmon/
H A Dadm9240.rst10 Addresses scanned: I2C 0x2c - 0x2f
20 Addresses scanned: I2C 0x2c - 0x2f
24 http://pdfserv.maxim-ic.com/en/ds/DS1780.pdf
30 Addresses scanned: I2C 0x2c - 0x2f
37 - Frodo Looijaard <frodol@dds.nl>,
38 - Philip Edelbrock <phil@netroedge.com>,
39 - Michiel Rook <michiel@grendelproject.nl>,
40 - Grant Coady <gcoady.lk@gmail.com> with guidance
44 ---------
46 chip MSB 5-bit address. Each chip reports a unique manufacturer
[all …]
/linux/Documentation/userspace-api/media/cec/
H A Dcec-pin-error-inj.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
9 has low-level support for the CEC bus. Most hardware today will have
10 high-level CEC support where the hardware deals with driving the CEC bus,
19 Currently only the cec-gpio driver (when the CEC line is directly
20 connected to a pull-up GPIO line) and the AllWinner A10/A20 drm driver
25 now an ``error-inj`` file.
32 With ``cat error-inj`` you can see both the possible commands and the current
35 $ cat /sys/kernel/debug/cec/cec0/error-inj
38 # rx-clear clear all rx error injections
39 # tx-clear clear all tx error injections
[all …]
/linux/include/dt-bindings/pinctrl/
H A Dk210-fpioa.h1 /* SPDX-License-Identifier: GPL-2.0+ */
11 * kendryte-standalone-sdk/lib/drivers/include/fpioa.h
32 #define K210_PCF_UARTHS_RX 18 /* UART High speed Receiver */
33 #define K210_PCF_UARTHS_TX 19 /* UART High speed Transmitter */
38 #define K210_PCF_GPIOHS0 24 /* GPIO High speed 0 */
39 #define K210_PCF_GPIOHS1 25 /* GPIO High speed 1 */
40 #define K210_PCF_GPIOHS2 26 /* GPIO High speed 2 */
41 #define K210_PCF_GPIOHS3 27 /* GPIO High speed 3 */
42 #define K210_PCF_GPIOHS4 28 /* GPIO High speed 4 */
43 #define K210_PCF_GPIOHS5 29 /* GPIO High speed 5 */
[all …]
/linux/arch/mips/lib/
H A Dmulti3.c1 // SPDX-License-Identifier: GPL-2.0
14 /* multiply 64-bit values, low 64-bits returned */
23 /* multiply 64-bit unsigned values, high 64-bits of 128-bit result returned */
32 /* multiply 128-bit values, low 128-bits returned */
46 res.s.high = dmuhu(aa.s.low, bb.s.low); in __multi3()
47 res.s.high += dmulu(aa.s.high, bb.s.low); in __multi3()
48 res.s.high += dmulu(aa.s.low, bb.s.high); in __multi3()
54 #endif /* 64BIT && CPU_MIPSR6 && GCC7 */
/linux/arch/s390/include/asm/
H A Dctlreg.h1 /* SPDX-License-Identifier: GPL-2.0 */
13 #define CR0_TRANSACTIONAL_EXECUTION_BIT (63 - 8)
14 #define CR0_CLOCK_COMPARATOR_SIGN_BIT (63 - 10)
15 #define CR0_CRYPTOGRAPHY_COUNTER_BIT (63 - 13)
16 #define CR0_PAI_EXTENSION_BIT (63 - 14)
17 #define CR0_CPUMF_EXTRACTION_AUTH_BIT (63 - 15)
18 #define CR0_WARNING_TRACK_BIT (63 - 30)
19 #define CR0_LOW_ADDRESS_PROTECTION_BIT (63 - 35)
20 #define CR0_FETCH_PROTECTION_OVERRIDE_BIT (63 - 38)
21 #define CR0_STORAGE_PROTECTION_OVERRIDE_BIT (63 - 39)
[all …]
/linux/Documentation/virt/kvm/x86/
H A Dtimekeeping.rst1 .. SPDX-License-Identifier: GPL-2.0
4 Timekeeping Virtualization for X86-Based Architectures
32 information relevant to KVM and hardware-based virtualization.
41 2.1. i8254 - PIT
42 ----------------
46 channels which can be programmed to deliver periodic or one-shot interrupts.
53 The PIT uses I/O ports 0x40 - 0x43. Access to the 16-bit counters is done
57 controlled by port 61h, bit 0, as illustrated in the following diagram::
59 -------------- ----------------
61 | 1.1932 MHz|---------->| CLOCK OUT | ---------> IRQ 0
[all …]
/linux/arch/s390/kernel/
H A Dcompat_linux.h1 /* SPDX-License-Identifier: GPL-2.0 */
11 * Macro that masks the high order bit of a 32 bit pointer and
12 * converts it to a 64 bit pointer.
17 /* Now 32bit compatibility types */
72 /* Allow for uc_sigmask growth. Glibc uses a 1024-bit sigset_t. */
73 unsigned char __unused[128 - sizeof(compat_sigset_t)];
81 long compat_sys_s390_truncate64(const char __user *path, u32 high, u32 low);
82 long compat_sys_s390_ftruncate64(unsigned int fd, u32 high, u32 low);
83 long compat_sys_s390_pread64(unsigned int fd, char __user *ubuf, compat_size_t count, u32 high, u32…
84 …ys_s390_pwrite64(unsigned int fd, const char __user *ubuf, compat_size_t count, u32 high, u32 low);
[all …]
H A Dcompat_linux.c1 // SPDX-License-Identifier: GPL-2.0
9 * Conversion between 31bit and 64bit native syscalls.
11 * Heavily inspired by the 32-bit Sparc compat code which is
65 return -EINVAL; in COMPAT_SYSCALL_DEFINE5()
70 COMPAT_SYSCALL_DEFINE3(s390_truncate64, const char __user *, path, u32, high, u32, low) in COMPAT_SYSCALL_DEFINE3() argument
72 return ksys_truncate(path, (unsigned long)high << 32 | low); in COMPAT_SYSCALL_DEFINE3()
75 COMPAT_SYSCALL_DEFINE3(s390_ftruncate64, unsigned int, fd, u32, high, u32, low) in COMPAT_SYSCALL_DEFINE3() argument
77 return ksys_ftruncate(fd, (unsigned long)high << 32 | low); in COMPAT_SYSCALL_DEFINE3()
81 compat_size_t, count, u32, high, u32, low) in COMPAT_SYSCALL_DEFINE5() argument
84 return -EINVAL; in COMPAT_SYSCALL_DEFINE5()
[all …]
/linux/drivers/staging/sm750fb/
H A Dddk750_swi2c.c1 // SPDX-License-Identifier: GPL-2.0
5 * swi2c.c --- SM750/SM718 DDK
22 * +-------------+-------------+-------------+-------------+
23 * | SCL set LOW |SCL no change| SCL set HIGH|SCL no change|
34 * blank = no change, L = set bit LOW, H = set bit HIGH
37 * ---------------+---+---+---+---+
40 * ---------------+---+---+---+---+
43 * ---------------+---+---+---+---+
44 * Tx bit H SDA | | H | | |
46 * ---------------+---+---+---+---+
[all …]
/linux/drivers/infiniband/hw/qib/
H A Dqib_twsi.c3 * Copyright (c) 2006 - 2012 QLogic Corporation. All rights reserved.
16 * - Redistributions of source code must retain the above
20 * - Redistributions in binary form must reproduce the above
43 * Originally written for a not-quite-i2c serial eeprom, which is
45 * variety of other uses, most board-specific, so the bit-boffing
47 * have been moved to chip-specific files.
59 * i2c_wait_for_writes - wait for a write
65 * hurt, and makes the bit twiddling more regular
74 dd->f_gpio_mod(dd, 0, 0, 0); in i2c_wait_for_writes()
89 static void scl_out(struct qib_devdata *dd, u8 bit) in scl_out() argument
[all …]
/linux/arch/powerpc/lib/
H A Dstrlen_32.S1 /* SPDX-License-Identifier: GPL-2.0 */
19 * by subtracting 0x01010101, and seeing if any of the high bits of each
22 * significant), so it is 0x00 - 0x01 == 0xff. For all other
23 * byte values, either they have the high bit set initially, or when
24 * 1 is subtracted you get a value in the range 0x00-0x7f, none of which
25 * have their high bit set. The expression here is
26 * (x - 0x01010101) & ~x & 0x80808080), which gives 0x00000000 when
29 * byte to a true match due to carries. For little-endian this is
31 * we're interested in, but big-endian needs method 2 to find which
34 * calculating ~(((x & ~0x80808080) - 0x80808080 - 1) | x | ~0x80808080).
[all …]
/linux/tools/testing/selftests/powerpc/stringloops/
H A Dstrlen_32.S1 /* SPDX-License-Identifier: GPL-2.0 */
19 * by subtracting 0x01010101, and seeing if any of the high bits of each
22 * significant), so it is 0x00 - 0x01 == 0xff. For all other
23 * byte values, either they have the high bit set initially, or when
24 * 1 is subtracted you get a value in the range 0x00-0x7f, none of which
25 * have their high bit set. The expression here is
26 * (x - 0x01010101) & ~x & 0x80808080), which gives 0x00000000 when
29 * byte to a true match due to carries. For little-endian this is
31 * we're interested in, but big-endian needs method 2 to find which
34 * calculating ~(((x & ~0x80808080) - 0x80808080 - 1) | x | ~0x80808080).
[all …]

12345678910>>...45