Home
last modified time | relevance | path

Searched +full:x +full:- +full:mask (Results 1 – 25 of 1133) sorted by relevance

12345678910>>...46

/kernel/linux/linux-6.6/drivers/video/fbdev/
Dc2p_core.h2 * Fast C2P (Chunky-to-Planar) Conversion
4 * Copyright (C) 2003-2008 Geert Uytterhoeven
7 * - This code was inspired by Scout's C2P tutorial
8 * - It assumes to run on a big endian system
23 unsigned int shift, u32 mask) in _transp() argument
25 u32 t = (d[i1] ^ (d[i2] >> shift)) & mask; in _transp()
57 * Transpose operations on 8 32-bit words
62 u32 mask = get_mask(n); in transp8() local
66 /* First n x 1 block */ in transp8()
67 _transp(d, 0, 1, n, mask); in transp8()
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/
Dc2p_core.h2 * Fast C2P (Chunky-to-Planar) Conversion
4 * Copyright (C) 2003-2008 Geert Uytterhoeven
7 * - This code was inspired by Scout's C2P tutorial
8 * - It assumes to run on a big endian system
23 unsigned int shift, u32 mask) in _transp() argument
25 u32 t = (d[i1] ^ (d[i2] >> shift)) & mask; in _transp()
57 * Transpose operations on 8 32-bit words
62 u32 mask = get_mask(n); in transp8() local
66 /* First n x 1 block */ in transp8()
67 _transp(d, 0, 1, n, mask); in transp8()
[all …]
/kernel/linux/linux-5.10/drivers/input/joystick/
Danalog.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 1996-2001 Vojtech Pavlik
99 int mask; member
108 unsigned char mask; member
130 #define GET_TIME(x) do { if (boot_cpu_has(X86_FEATURE_TSC)) x = (unsigned int)rdtsc(); else x = get… argument
131 #define DELTA(x,y) (boot_cpu_has(X86_FEATURE_TSC) ? ((y) - (x)) : ((x) - (y) + ((x) < (y) ? PIT_TIC… argument
147 #define GET_TIME(x) do { x = (unsigned int)rdtsc(); } while (0) argument
148 #define DELTA(x,y) ((y)-(x)) argument
151 #define GET_TIME(x) do { x = get_cycles(); } while (0) argument
152 #define DELTA(x,y) ((y)-(x)) argument
[all …]
/kernel/linux/linux-6.6/include/linux/
Dpxa2xx_ssp.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * This driver supports the following PXA CPU/SSP ports:-
49 #define SSCR0_DSS GENMASK(3, 0) /* Data Size Select (mask) */
50 #define SSCR0_DataSize(x) ((x) - 1) /* Data Size Select [4..16] */ argument
51 #define SSCR0_FRF GENMASK(5, 4) /* FRame Format (mask) */
57 #define SSCR0_SCR(x) ((x) << 8) /* Serial Clock Rate (mask) */ argument
62 #define SSCR0_RIM BIT(22) /* Receive FIFO overrun interrupt mask */
63 #define SSCR0_TUM BIT(23) /* Transmit FIFO underrun interrupt mask */
64 #define SSCR0_FRDC GENMASK(26, 24) /* Frame rate divider control (mask) */
65 #define SSCR0_SlotsPerFrm(x) (((x) - 1) << 24) /* Time slots per frame [1..8] */ argument
[all …]
/kernel/linux/linux-5.10/arch/powerpc/platforms/powermac/
Dpfunc_core.c1 // SPDX-License-Identifier: GPL-2.0-only
84 while(bytes--) {
85 printk("%02x ", *((u8 *)blob));
99 if ((cmd->cmdend - cmd->cmdptr) < 4) { in pmf_next32()
100 cmd->error = 1; in pmf_next32()
103 value = *((u32 *)cmd->cmdptr); in pmf_next32()
104 cmd->cmdptr += 4; in pmf_next32()
111 if ((cmd->cmdend - cmd->cmdptr) < count) { in pmf_next_blob()
112 cmd->error = 1; in pmf_next_blob()
115 value = cmd->cmdptr; in pmf_next_blob()
[all …]
/kernel/linux/linux-6.6/arch/powerpc/platforms/powermac/
Dpfunc_core.c1 // SPDX-License-Identifier: GPL-2.0-only
84 while(bytes--) {
85 printk("%02x ", *((u8 *)blob));
99 if ((cmd->cmdend - cmd->cmdptr) < 4) { in pmf_next32()
100 cmd->error = 1; in pmf_next32()
103 value = *((u32 *)cmd->cmdptr); in pmf_next32()
104 cmd->cmdptr += 4; in pmf_next32()
111 if ((cmd->cmdend - cmd->cmdptr) < count) { in pmf_next_blob()
112 cmd->error = 1; in pmf_next_blob()
115 value = cmd->cmdptr; in pmf_next_blob()
[all …]
/kernel/linux/linux-5.10/drivers/net/mdio/
Dmdio-mux-mmioreg.c1 // SPDX-License-Identifier: GPL-2.0
3 * Simple memory-mapped device MDIO MUX driver
11 #include <linux/mdio-mux.h>
22 unsigned int mask; member
28 * This function is called by the mdio-mux layer when it thinks the mdio bus
32 * s->mask).
37 * The first time this function is called, current_child == -1.
48 void __iomem *p = ioremap(s->phys, s->iosize); in mdio_mux_mmioreg_switch_fn()
50 return -ENOMEM; in mdio_mux_mmioreg_switch_fn()
52 switch (s->iosize) { in mdio_mux_mmioreg_switch_fn()
[all …]
/kernel/linux/linux-6.6/drivers/net/mdio/
Dmdio-mux-mmioreg.c1 // SPDX-License-Identifier: GPL-2.0
3 * Simple memory-mapped device MDIO MUX driver
11 #include <linux/mdio-mux.h>
22 unsigned int mask; member
28 * This function is called by the mdio-mux layer when it thinks the mdio bus
32 * s->mask).
37 * The first time this function is called, current_child == -1.
48 void __iomem *p = ioremap(s->phys, s->iosize); in mdio_mux_mmioreg_switch_fn()
50 return -ENOMEM; in mdio_mux_mmioreg_switch_fn()
52 switch (s->iosize) { in mdio_mux_mmioreg_switch_fn()
[all …]
/kernel/linux/linux-6.6/drivers/video/fbdev/core/
Dfb_draw.h1 /* SPDX-License-Identifier: GPL-2.0 */
11 * This is equivalent to (a & mask) | (b & ~mask)
15 comp(unsigned long a, unsigned long b, unsigned long mask) in comp() argument
17 return ((a ^ b) & mask) ^ b; in comp()
104 u32 mask; in fb_shifted_pixels_mask_u32() local
107 mask = FB_SHIFT_HIGH(p, ~(u32)0, index); in fb_shifted_pixels_mask_u32()
109 mask = 0xff << FB_LEFT_POS(p, 8); in fb_shifted_pixels_mask_u32()
110 mask = FB_SHIFT_LOW(p, mask, index & (bswapmask)) & mask; in fb_shifted_pixels_mask_u32()
111 mask = FB_SHIFT_HIGH(p, mask, index & ~(bswapmask)); in fb_shifted_pixels_mask_u32()
113 /* Shift argument is limited to 0 - 31 on x86 based CPU's */ in fb_shifted_pixels_mask_u32()
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/core/
Dfb_draw.h1 /* SPDX-License-Identifier: GPL-2.0 */
11 * This is equivalent to (a & mask) | (b & ~mask)
15 comp(unsigned long a, unsigned long b, unsigned long mask) in comp() argument
17 return ((a ^ b) & mask) ^ b; in comp()
104 u32 mask; in fb_shifted_pixels_mask_u32() local
107 mask = FB_SHIFT_HIGH(p, ~(u32)0, index); in fb_shifted_pixels_mask_u32()
109 mask = 0xff << FB_LEFT_POS(p, 8); in fb_shifted_pixels_mask_u32()
110 mask = FB_SHIFT_LOW(p, mask, index & (bswapmask)) & mask; in fb_shifted_pixels_mask_u32()
111 mask = FB_SHIFT_HIGH(p, mask, index & ~(bswapmask)); in fb_shifted_pixels_mask_u32()
113 /* Shift argument is limited to 0 - 31 on x86 based CPU's */ in fb_shifted_pixels_mask_u32()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dpxa2xx_ssp.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * This driver supports the following PXA CPU/SSP ports:-
50 #define SSCR0_DSS GENMASK(3, 0) /* Data Size Select (mask) */
51 #define SSCR0_DataSize(x) ((x) - 1) /* Data Size Select [4..16] */ argument
52 #define SSCR0_FRF GENMASK(5, 4) /* FRame Format (mask) */
58 #define SSCR0_SCR(x) ((x) << 8) /* Serial Clock Rate (mask) */ argument
63 #define SSCR0_RIM BIT(22) /* Receive FIFO overrrun interrupt mask */
64 #define SSCR0_TUM BIT(23) /* Transmit FIFO underrun interrupt mask */
65 #define SSCR0_FRDC GENMASK(26, 24) /* Frame rate divider control (mask) */
66 #define SSCR0_SlotsPerFrm(x) (((x) - 1) << 24) /* Time slots per frame [1..8] */ argument
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/tegra/
Dfirewall.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* Copyright (c) 2010-2020 NVIDIA Corporation */
19 if (fw->pos == fw->end) in fw_next()
20 return -EINVAL; in fw_next()
22 *word = fw->data[fw->pos++]; in fw_next()
31 for (i = 0; i < fw->submit->num_used_mappings; i++) { in fw_check_addr_valid()
32 struct tegra_drm_mapping *m = fw->submit->used_mappings[i].mapping; in fw_check_addr_valid()
34 if (offset >= m->iova && offset <= m->iova_end) in fw_check_addr_valid()
51 if (!fw->client->ops->is_addr_reg) in fw_check_reg()
54 is_addr = fw->client->ops->is_addr_reg(fw->client->base.dev, fw->class, in fw_check_reg()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/exynos/
Dregs-rotator.h1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* drivers/gpu/drm/exynos/regs-rotator.h
34 #define ROT_STATUS_IRQ_PENDING(x) (1 << (x)) argument
35 #define ROT_STATUS_IRQ(x) (((x) >> 8) & 0x3) argument
46 #define ROT_SET_BUF_SIZE_H(x) ((x) << 16) argument
47 #define ROT_SET_BUF_SIZE_W(x) ((x) << 0) argument
48 #define ROT_GET_BUF_SIZE_H(x) ((x) >> 16) argument
49 #define ROT_GET_BUF_SIZE_W(x) ((x) & 0xffff) argument
54 #define ROT_CROP_POS_Y(x) ((x) << 16) argument
55 #define ROT_CROP_POS_X(x) ((x) << 0) argument
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/
Dregs-rotator.h1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* drivers/gpu/drm/exynos/regs-rotator.h
34 #define ROT_STATUS_IRQ_PENDING(x) (1 << (x)) argument
35 #define ROT_STATUS_IRQ(x) (((x) >> 8) & 0x3) argument
46 #define ROT_SET_BUF_SIZE_H(x) ((x) << 16) argument
47 #define ROT_SET_BUF_SIZE_W(x) ((x) << 0) argument
48 #define ROT_GET_BUF_SIZE_H(x) ((x) >> 16) argument
49 #define ROT_GET_BUF_SIZE_W(x) ((x) & 0xffff) argument
54 #define ROT_CROP_POS_Y(x) ((x) << 16) argument
55 #define ROT_CROP_POS_X(x) ((x) << 0) argument
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/
Digc_diag.c1 // SPDX-License-Identifier: GPL-2.0
36 u32 mask, u32 write) in reg_pattern_test() argument
38 struct igc_hw *hw = &adapter->hw; in reg_pattern_test()
48 if (val != (test_pattern[pat] & write & mask)) { in reg_pattern_test()
49 netdev_err(adapter->netdev, in reg_pattern_test()
50 "pattern test reg %04X failed: got 0x%08X expected 0x%08X", in reg_pattern_test()
51 reg, val, test_pattern[pat] & write & mask); in reg_pattern_test()
62 u32 mask, u32 write) in reg_set_and_check() argument
64 struct igc_hw *hw = &adapter->hw; in reg_set_and_check()
68 wr32(reg, write & mask); in reg_set_and_check()
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/igc/
Digc_diag.c1 // SPDX-License-Identifier: GPL-2.0
36 u32 mask, u32 write) in reg_pattern_test() argument
38 struct igc_hw *hw = &adapter->hw; in reg_pattern_test()
48 if (val != (test_pattern[pat] & write & mask)) { in reg_pattern_test()
49 netdev_err(adapter->netdev, in reg_pattern_test()
50 "pattern test reg %04X failed: got 0x%08X expected 0x%08X", in reg_pattern_test()
51 reg, val, test_pattern[pat] & write & mask); in reg_pattern_test()
62 u32 mask, u32 write) in reg_set_and_check() argument
64 struct igc_hw *hw = &adapter->hw; in reg_set_and_check()
68 wr32(reg, write & mask); in reg_set_and_check()
[all …]
/kernel/linux/linux-6.6/arch/xtensa/include/asm/
Dbitops.h2 * include/asm-xtensa/bitops.h
10 * Copyright (C) 2001 - 2007 Tensilica Inc.
24 #include <asm-generic/bitops/non-atomic.h>
28 static inline unsigned long __cntlz (unsigned long x) in __cntlz() argument
31 asm ("nsau %0, %1" : "=r" (lz) : "r" (x)); in __cntlz()
40 static inline int ffz(unsigned long x) in ffz() argument
42 return 31 - __cntlz(~x & -~x); in ffz()
49 static inline unsigned long __ffs(unsigned long x) in __ffs() argument
51 return 31 - __cntlz(x & -x); in __ffs()
60 static inline int ffs(unsigned long x) in ffs() argument
[all …]
/kernel/linux/linux-5.10/arch/xtensa/include/asm/
Dbitops.h2 * include/asm-xtensa/bitops.h
10 * Copyright (C) 2001 - 2007 Tensilica Inc.
24 #include <asm-generic/bitops/non-atomic.h>
28 static inline unsigned long __cntlz (unsigned long x) in __cntlz() argument
31 asm ("nsau %0, %1" : "=r" (lz) : "r" (x)); in __cntlz()
40 static inline int ffz(unsigned long x) in ffz() argument
42 return 31 - __cntlz(~x & -~x); in ffz()
49 static inline unsigned long __ffs(unsigned long x) in __ffs() argument
51 return 31 - __cntlz(x & -x); in __ffs()
60 static inline int ffs(unsigned long x) in ffs() argument
[all …]
/kernel/linux/linux-5.10/arch/alpha/lib/
Ddivide.S1 /* SPDX-License-Identifier: GPL-2.0 */
14 * __divqu: 64-bit unsigned long divide
15 * __remqu: 64-bit unsigned long remainder
16 * __divqs/__remqs: signed 64-bit
17 * __divlu/__remlu: unsigned 32-bit
18 * __divls/__remls: signed 32-bit
27 * This is a rather simple bit-at-a-time algorithm: it's very good
28 * at dividing random 64-bit numbers, but the more usual case where
37 * $0 - current bit
38 * $1 - shifted divisor
[all …]
/kernel/linux/linux-6.6/arch/alpha/lib/
Ddivide.S1 /* SPDX-License-Identifier: GPL-2.0 */
14 * __divqu: 64-bit unsigned long divide
15 * __remqu: 64-bit unsigned long remainder
16 * __divqs/__remqs: signed 64-bit
17 * __divlu/__remlu: unsigned 32-bit
18 * __divls/__remls: signed 32-bit
27 * This is a rather simple bit-at-a-time algorithm: it's very good
28 * at dividing random 64-bit numbers, but the more usual case where
37 * $0 - current bit
38 * $1 - shifted divisor
[all …]
/kernel/linux/linux-5.10/drivers/gpu/host1x/hw/
Ddebug_hw.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (C) 2011-2013 NVIDIA Corporation
44 unsigned int mask, subop, num, opcode; in show_channel_command() local
50 mask = val & 0x3f; in show_channel_command()
51 if (mask) { in show_channel_command()
52 host1x_debug_cont(o, "SETCL(class=%03x, offset=%03x, mask=%02x, [", in show_channel_command()
54 val >> 16 & 0xfff, mask); in show_channel_command()
55 return hweight8(mask); in show_channel_command()
58 host1x_debug_cont(o, "SETCL(class=%03x)\n", val >> 6 & 0x3ff); in show_channel_command()
63 host1x_debug_cont(o, "INCR(offset=%03x, [", in show_channel_command()
[all …]
/kernel/linux/linux-5.10/drivers/rtc/
Drtc-sunxi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
49 #define SUNXI_GET(x, mask, shift) (((x) & ((mask) << (shift))) \ argument
52 #define SUNXI_SET(x, mask, shift) (((x) & (mask)) << (shift)) argument
57 #define SUNXI_DATE_GET_DAY_VALUE(x) SUNXI_GET(x, SUNXI_MASK_DH, 0) argument
58 #define SUNXI_DATE_GET_MON_VALUE(x) SUNXI_GET(x, SUNXI_MASK_M, 8) argument
59 #define SUNXI_DATE_GET_YEAR_VALUE(x, mask) SUNXI_GET(x, mask, 16) argument
64 #define SUNXI_TIME_GET_SEC_VALUE(x) SUNXI_GET(x, SUNXI_MASK_SM, 0) argument
65 #define SUNXI_TIME_GET_MIN_VALUE(x) SUNXI_GET(x, SUNXI_MASK_SM, 8) argument
66 #define SUNXI_TIME_GET_HOUR_VALUE(x) SUNXI_GET(x, SUNXI_MASK_DH, 16) argument
71 #define SUNXI_ALRM_GET_SEC_VALUE(x) SUNXI_GET(x, SUNXI_MASK_SM, 0) argument
[all …]
/kernel/linux/linux-6.6/drivers/rtc/
Drtc-sunxi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
47 #define SUNXI_GET(x, mask, shift) (((x) & ((mask) << (shift))) \ argument
50 #define SUNXI_SET(x, mask, shift) (((x) & (mask)) << (shift)) argument
55 #define SUNXI_DATE_GET_DAY_VALUE(x) SUNXI_GET(x, SUNXI_MASK_DH, 0) argument
56 #define SUNXI_DATE_GET_MON_VALUE(x) SUNXI_GET(x, SUNXI_MASK_M, 8) argument
57 #define SUNXI_DATE_GET_YEAR_VALUE(x, mask) SUNXI_GET(x, mask, 16) argument
62 #define SUNXI_TIME_GET_SEC_VALUE(x) SUNXI_GET(x, SUNXI_MASK_SM, 0) argument
63 #define SUNXI_TIME_GET_MIN_VALUE(x) SUNXI_GET(x, SUNXI_MASK_SM, 8) argument
64 #define SUNXI_TIME_GET_HOUR_VALUE(x) SUNXI_GET(x, SUNXI_MASK_DH, 16) argument
69 #define SUNXI_ALRM_GET_SEC_VALUE(x) SUNXI_GET(x, SUNXI_MASK_SM, 0) argument
[all …]
/kernel/linux/linux-6.6/drivers/iommu/
Domap-iopgtable.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (C) 2008-2010 Nokia Corporation
16 * "L2 table" address mask and size definitions.
20 #define IOPGD_MASK (~(IOPGD_SIZE - 1))
23 * "section" address mask and size definitions.
27 #define IOSECTION_MASK (~(IOSECTION_SIZE - 1))
30 * "supersection" address mask and size definitions.
34 #define IOSUPER_MASK (~(IOSUPER_SIZE - 1))
36 #define PTRS_PER_IOPGD (1UL << (32 - IOPGD_SHIFT))
40 * "small page" address mask and size definitions.
[all …]
/kernel/linux/linux-5.10/drivers/iommu/
Domap-iopgtable.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (C) 2008-2010 Nokia Corporation
16 * "L2 table" address mask and size definitions.
20 #define IOPGD_MASK (~(IOPGD_SIZE - 1))
23 * "section" address mask and size definitions.
27 #define IOSECTION_MASK (~(IOSECTION_SIZE - 1))
30 * "supersection" address mask and size definitions.
34 #define IOSUPER_MASK (~(IOSUPER_SIZE - 1))
36 #define PTRS_PER_IOPGD (1UL << (32 - IOPGD_SHIFT))
40 * "small page" address mask and size definitions.
[all …]

12345678910>>...46