Home
last modified time | relevance | path

Searched +full:4 +full:- +full:ch (Results 1 – 25 of 1043) sorted by relevance

12345678910>>...42

/kernel/linux/linux-5.10/drivers/gpu/drm/imx/dcss/
Ddcss-scaler.c1 // SPDX-License-Identifier: GPL-2.0
11 #include "dcss-dev.h"
15 #define REPEAT_EN BIT(4)
32 #define Y_UV_BYTE_SWAP BIT(4)
38 #define CHR_BIT_DEPTH_POS 4
39 #define CHR_BIT_DEPTH_MASK GENMASK(5, 4)
88 struct dcss_scaler_ch ch[3]; member
94 #define PSC_BITS_FOR_PHASE 4
101 #define PSC_PHASE_MASK (PSC_NUM_PHASES - 1)
103 #define PSC_Q_ROUND_OFFSET (1 << (PSC_Q_FRACTION - 1))
[all …]
Ddcss-dpr.c1 // SPDX-License-Identifier: GPL-2.0
9 #include "dcss-dev.h"
16 #define SW_SHADOW_LOAD_SEL BIT(4)
25 #define DPR2RTR_YRGB_FIFO_OVFL BIT(4)
33 #define TILE_TYPE_MASK GENMASK(4, 2)
53 #define ROT_FLIP_ORDER_EN BIT(4)
73 #define THRES_LOW_POS 4
74 #define THRES_LOW_MASK GENMASK(6, 4)
118 struct dcss_dpr_ch ch[3]; member
121 static void dcss_dpr_write(struct dcss_dpr_ch *ch, u32 val, u32 ofs) in dcss_dpr_write() argument
[all …]
/kernel/linux/linux-5.10/drivers/clk/berlin/
Dberlin2-avpll.c1 // SPDX-License-Identifier: GPL-2.0
6 * Alexandre Belloni <alexandre.belloni@free-electrons.com>
8 #include <linux/clk-provider.h>
15 #include "berlin2-avpll.h"
19 * VCO with 8 channels each, channel 8 is the odd-one-out and does
34 /* BG2/BG2CDs VCO_B has an additional shift of 4 for its VCO_CTRL0 reg */
67 #define VCO_SPEED_1G86_2G00 VCO_SPEED(4)
118 reg = readl_relaxed(vco->base + VCO_CTRL0); in berlin2_avpll_vco_is_enabled()
119 if (vco->flags & BERLIN2_AVPLL_BIT_QUIRK) in berlin2_avpll_vco_is_enabled()
120 reg >>= 4; in berlin2_avpll_vco_is_enabled()
[all …]
/kernel/linux/linux-5.10/drivers/clocksource/
Dsh_mtu2.c1 // SPDX-License-Identifier: GPL-2.0
3 * SuperH Timer Support - MTU2
55 #define TSTR -1 /* shared register */
60 #define TSR 4 /* channel register */
75 /* Values 4 to 7 are channel-dependent */
80 #define TCR_TPSC_CH0_TCLKA (4 << 0)
84 #define TCR_TPSC_CH1_TCLKA (4 << 0)
88 #define TCR_TPSC_CH2_TCLKA (4 << 0)
92 #define TCR_TPSC_CH34_P256 (4 << 0)
100 #define TMDR_BFA (1 << 4)
[all …]
Dsh_tmu.c1 // SPDX-License-Identifier: GPL-2.0
3 * SuperH Timer Support - TMU
70 #define TSTR -1 /* shared register */
81 #define TCR_TPSC_CLK1024 (4 << 0)
84 static inline unsigned long sh_tmu_read(struct sh_tmu_channel *ch, int reg_nr) in sh_tmu_read() argument
89 switch (ch->tmu->model) { in sh_tmu_read()
91 return ioread8(ch->tmu->mapbase + 2); in sh_tmu_read()
93 return ioread8(ch->tmu->mapbase + 4); in sh_tmu_read()
100 return ioread16(ch->base + offs); in sh_tmu_read()
102 return ioread32(ch->base + offs); in sh_tmu_read()
[all …]
Dsh_cmt.c1 // SPDX-License-Identifier: GPL-2.0
3 * SuperH Timer Support - CMT
39 * 16B 32B 32B-F 48B R-Car Gen2
40 * -----------------------------------------------------------------------------
41 * Channels 2 1/4 1 6 2/8
46 * The r8a73a4 / R-Car Gen2 version has a per-channel start/stop register
50 * Channels are indexed from 0 to N-1 in the documentation. The channel index
55 * CMT0 on r8a7740, which is a 32-bit variant with a single channel numbered 0
59 * Similarly CMT0 on r8a73a4, r8a7790 and r8a7791, while implementing 32-bit
60 * channels only, is a 48-bit gen2 CMT with the 48-bit channels unavailable.
[all …]
/kernel/linux/linux-5.10/drivers/dma/
Dmoxart-dma.c14 #include <linux/dma-mapping.h>
31 #include "virt-dma.h"
33 #define APB_DMA_MAX_CHANNEL 4
36 #define REG_OFF_ADDRESS_DEST 4
45 #define APB_DMA_ERR_INT_STS BIT(4)
63 * 001: +1 (Burst=0), +4 (Burst=1)
65 * 011: +4 (Burst=0), +16 (Burst=1)
66 * 101: -1 (Burst=0), -4 (Burst=1)
67 * 110: -2 (Burst=0), -8 (Burst=1)
68 * 111: -4 (Burst=0), -16 (Burst=1)
[all …]
/kernel/linux/linux-5.10/drivers/gpu/ipu-v3/
Dipu-prv.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 * Copyright (C) 2005-2009 Freescale Semiconductor, Inc.
16 #include <video/imx-ipu-v3.h>
52 #define IPU_CHA_DB_MODE_SEL(ch) IPU_CM_REG(0x0150 + 4 * ((ch) / 32)) argument
53 #define IPU_ALT_CHA_DB_MODE_SEL(ch) IPU_CM_REG(0x0168 + 4 * ((ch) / 32)) argument
54 #define IPU_CHA_CUR_BUF(ch) IPU_CM_REG(0x023C + 4 * ((ch) / 32)) argument
60 #define IPU_CHA_BUF0_RDY(ch) IPU_CM_REG(0x0268 + 4 * ((ch) / 32)) argument
61 #define IPU_CHA_BUF1_RDY(ch) IPU_CM_REG(0x0270 + 4 * ((ch) / 32)) argument
62 #define IPU_CHA_BUF2_RDY(ch) IPU_CM_REG(0x0288 + 4 * ((ch) / 32)) argument
63 #define IPU_ALT_CHA_BUF0_RDY(ch) IPU_CM_REG(0x0278 + 4 * ((ch) / 32)) argument
[all …]
Dipu-cpmem.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright 2005-2012 Freescale Semiconductor, Inc. All Rights Reserved.
11 #include "ipu-prv.h"
34 #define IPU_FIELD_IOX IPU_CPMEM_WORD(0, 90, 4)
74 #define IPU_FIELD_PFS IPU_CPMEM_WORD(1, 85, 4)
93 ipu_get_cpmem(struct ipuv3_channel *ch) in ipu_get_cpmem() argument
95 struct ipu_cpmem *cpmem = ch->ipu->cpmem_priv; in ipu_get_cpmem()
97 return cpmem->base + ch->num; in ipu_get_cpmem()
100 static void ipu_ch_param_write_field(struct ipuv3_channel *ch, u32 wbs, u32 v) in ipu_ch_param_write_field() argument
102 struct ipu_ch_param __iomem *base = ipu_get_cpmem(ch); in ipu_ch_param_write_field()
[all …]
/kernel/linux/linux-5.10/drivers/staging/most/dim2/
Dhal.c1 // SPDX-License-Identifier: GPL-2.0
3 * hal.c - DIM2 HAL implementation
6 * Copyright (C) 2015-2016, Microchip Technology Germany II GmbH & Co. KG
25 * Number of 32-bit units for DBR map.
29 * 4: block size is 128, max allocation is 4K
37 /* -------------------------------------------------------------------------- */
50 /* -------------------------------------------------------------------------- */
64 /* -------------------------------------------------------------------------- */
86 /* -------------------------------------------------------------------------- */
126 mask <<= mask_size - 1; in alloc_dbr()
[all …]
/kernel/linux/linux-5.10/arch/x86/crypto/
Dsha256-avx2-asm.S2 # Implement fast SHA-256 with AVX2 instructions. (x86_64)
21 # - Redistributions of source code must retain the above
25 # - Redistributions in binary form must reproduce the above
41 # This code is described in an Intel White-Paper:
42 # "Fast SHA-256 Implementations on Intel Architecture Processors"
48 # This code schedules 2 blocks at a time, with 4 lanes per block
59 # Add reg to mem using reg-mem add and store
86 SHUF_00BA = %ymm10 # shuffle xBxA -> 00BA
87 SHUF_DC00 = %ymm12 # shuffle xDxC -> DC00
115 _XFER_SIZE = 2*64*4 # 2 blocks, 64 rounds, 4 bytes/round
[all …]
Dsha256-avx-asm.S2 # Implement fast SHA-256 with AVX1 instructions. (x86_64)
21 # - Redistributions of source code must retain the above
25 # - Redistributions in binary form must reproduce the above
40 # This code is described in an Intel White-Paper:
41 # "Fast SHA-256 Implementations on Intel Architecture Processors"
47 # This code schedules 1 block at a time, with 4 lanes per block
58 # Add reg to mem using reg-mem add and store
66 shld $(32-(\p1)), \p2, \p2
93 SHUF_00BA = %xmm10 # shuffle xBxA -> 00BA
94 SHUF_DC00 = %xmm12 # shuffle xDxC -> DC00
[all …]
Dsha256-ssse3-asm.S2 # Implement fast SHA-256 with SSSE3 instructions. (x86_64)
21 # - Redistributions of source code must retain the above
25 # - Redistributions in binary form must reproduce the above
41 # This code is described in an Intel White-Paper:
42 # "Fast SHA-256 Implementations on Intel Architecture Processors"
57 # Add reg to mem using reg-mem add and store
86 SHUF_00BA = %xmm10 # shuffle xBxA -> 00BA
87 SHUF_DC00 = %xmm11 # shuffle xDxC -> DC00
149 ## compute W[-16] + W[-7] 4 at a time
152 ror $(25-11), y0 # y0 = e >> (25-11)
[all …]
/kernel/linux/linux-5.10/drivers/media/pci/cx25821/
Dcx25821-core.c1 // SPDX-License-Identifier: GPL-2.0-or-later
15 #include "cx25821-sram.h"
16 #include "cx25821-video.h"
19 MODULE_AUTHOR("Shu Lin - Hiep Huynh");
26 static unsigned int card[] = {[0 ... (CX25821_MAXBOARDS - 1)] = UNSET };
320 [RISC_WRITECR >> 28] = 4, in cx25821_risc_decode()
332 for (i = ARRAY_SIZE(bits) - 1; i >= 0; i--) { in cx25821_risc_decode()
342 struct cx25821_i2c *bus = i2c_adap->algo_data; in i2c_slave_did_ack()
343 struct cx25821_dev *dev = bus->dev; in i2c_slave_did_ack()
344 return cx_read(bus->reg_stat) & 0x01; in i2c_slave_did_ack()
[all …]
/kernel/linux/linux-5.10/drivers/clk/uniphier/
Dclk-uniphier-peri.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 #include "clk-uniphier.h"
9 #define UNIPHIER_PERI_CLK_UART(idx, ch) \ argument
10 UNIPHIER_CLK_GATE("uart" #ch, (idx), "uart", 0x24, 19 + (ch))
13 UNIPHIER_CLK_GATE("i2c-common", -1, "i2c", 0x20, 1)
15 #define UNIPHIER_PERI_CLK_I2C(idx, ch) \ argument
16 UNIPHIER_CLK_GATE("i2c" #ch, (idx), "i2c-common", 0x24, 5 + (ch))
18 #define UNIPHIER_PERI_CLK_FI2C(idx, ch) \ argument
19 UNIPHIER_CLK_GATE("i2c" #ch, (idx), "i2c", 0x24, 24 + (ch))
21 #define UNIPHIER_PERI_CLK_SCSSI(idx, ch) \ argument
[all …]
/kernel/linux/linux-5.10/drivers/scsi/
Dch.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * (c) 1996-2003 Gerd Knorr <kraxel@bytesex.org>
71 static int dt_id[CH_DT_MAX] = { [ 0 ... (CH_DT_MAX-1) ] = -1 };
76 /* tell the driver about vendor-specific slots */
77 static int vendor_firsts[CH_TYPES-4];
78 static int vendor_counts[CH_TYPES-4];
82 static const char * vendor_labels[CH_TYPES-4] = {
87 #define ch_printk(prefix, ch, fmt, a...) \ argument
88 sdev_prefix_printk(prefix, (ch)->device, (ch)->name, fmt, ##a)
93 ch_printk(KERN_DEBUG, ch, fmt, ##arg); \
[all …]
/kernel/linux/linux-5.10/lib/
Dhexdump.c1 // SPDX-License-Identifier: GPL-2.0-only
20 * hex_to_bin - convert a hex digit to its real value
21 * @ch: ascii character represents hex digit
23 * hex_to_bin() converts one hex digit to its actual value or -1 in case of bad
26 int hex_to_bin(char ch) in hex_to_bin() argument
28 if ((ch >= '0') && (ch <= '9')) in hex_to_bin()
29 return ch - '0'; in hex_to_bin()
30 ch = tolower(ch); in hex_to_bin()
31 if ((ch >= 'a') && (ch <= 'f')) in hex_to_bin()
32 return ch - 'a' + 10; in hex_to_bin()
[all …]
/kernel/linux/linux-5.10/tools/lib/api/
Dio.h1 /* SPDX-License-Identifier: GPL-2.0 */
31 io->fd = fd; in io__init()
32 io->buf_len = buf_len; in io__init()
33 io->buf = buf; in io__init()
34 io->end = buf; in io__init()
35 io->data = buf; in io__init()
36 io->eof = false; in io__init()
42 char *ptr = io->data; in io__get_char()
44 if (io->eof) in io__get_char()
45 return -1; in io__get_char()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/tidss/
Dtidss_irq.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/
18 * bit group |dev|wb |mrg0|mrg1|mrg2|mrg3|plane0-3| <unused> |
20 * bit number|0 |1-3|4-7 |8-11| 12-19 | 20-23 | 24-31 |
36 #define DSS_IRQ_VP_BIT_N(ch, bit) (4 + 4 * (ch) + (bit)) argument
40 #define DSS_IRQ_VP_BIT(ch, bit) BIT(DSS_IRQ_VP_BIT_N((ch), (bit))) argument
44 static inline dispc_irq_t DSS_IRQ_VP_MASK(u32 ch) in DSS_IRQ_VP_MASK() argument
46 return GENMASK(DSS_IRQ_VP_BIT_N((ch), 3), DSS_IRQ_VP_BIT_N((ch), 0)); in DSS_IRQ_VP_MASK()
55 #define DSS_IRQ_VP_FRAME_DONE(ch) DSS_IRQ_VP_BIT((ch), 0) argument
56 #define DSS_IRQ_VP_VSYNC_EVEN(ch) DSS_IRQ_VP_BIT((ch), 1) argument
[all …]
/kernel/linux/linux-5.10/drivers/media/pci/solo6x10/
Dsolo6x10-regs.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) 2010-2013 Bluecherry, LLC <https://www.bluecherrydvr.com>
17 #include "solo6x10-offsets.h"
38 #define SOLO_DMA_CTRL_STROBE_SELECT BIT(4)
48 /* 0=sys_clk/4, 1=sys_clk/2, 2=clk_in/2 of system input */
55 #define SOLO_VCLK_VIN0405_DELAY(n) ((n)<<4)
73 #define SOLO_IRQ_UART(n) BIT((n) + 4)
107 #define SOLO_P2M_CSC_BYTE_REORDER BIT(5) /* BGR -> RGB */
108 /* 0:r=[14:10] g=[9:5] b=[4:0], 1:r=[15:11] g=[10:5] b=[4:0] */
109 #define SOLO_P2M_CSC_16BIT_565 BIT(4)
[all …]
Dsolo6x10-tw28.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2010-2013 Bluecherry, LLC <https://www.bluecherrydvr.com>
16 #include "solo6x10-tw28.h"
18 #define DEFAULT_HDELAY_NTSC (32 - 8)
20 #define DEFAULT_VDELAY_NTSC (7 - 2)
21 #define DEFAULT_VACTIVE_NTSC (240 + 4)
23 #define DEFAULT_HDELAY_PAL (32 + 4)
24 #define DEFAULT_HACTIVE_PAL (864-DEFAULT_HDELAY_PAL)
26 #define DEFAULT_VACTIVE_PAL (312-DEFAULT_VDELAY_PAL)
169 #define is_tw286x(__solo, __id) (!(__solo->tw2815 & (1 << __id)))
[all …]
/kernel/linux/linux-5.10/drivers/iio/adc/
Dad7606_spi.c1 // SPDX-License-Identifier: GPL-2.0
19 #define AD7616_OS_MASK GENMASK(4, 2)
26 * 0, 1, 2, 3 in a register followed by 4, 5, 6, 7 in second register.
27 * For channels from second group(8-15) the order is the same, only with
30 #define AD7616_RANGE_CH_ADDR(ch) ((ch) >> 2) argument
32 #define AD7616_RANGE_CH_MSK(ch) (0b11 << (((ch) & 0b11) * 2)) argument
33 #define AD7616_RANGE_CH_MODE(ch, mode) ((mode) << ((((ch) & 0b11)) * 2)) argument
40 * Each register stores range for 2 channels(4 bits per channel).
42 #define AD7606_RANGE_CH_MSK(ch) (GENMASK(3, 0) << (4 * ((ch) & 0x1))) argument
43 #define AD7606_RANGE_CH_MODE(ch, mode) \ argument
[all …]
/kernel/linux/linux-5.10/drivers/net/ipa/
Dgsi_reg.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
4 * Copyright (C) 2018-2020 Linaro Ltd.
26 * function-like macro that takes a parameter used in the computation.
33 * parameter "ch". The "ch" value is a channel id whose maximum value is 30
34 * (though the actual limit is hardware-dependent).
38 * (though the actual limit is hardware-dependent).
51 #define GSI_CH_C_CNTXT_0_OFFSET(ch) \ argument
52 GSI_EE_N_CH_C_CNTXT_0_OFFSET((ch), GSI_EE_AP)
53 #define GSI_EE_N_CH_C_CNTXT_0_OFFSET(ch, ee) \ argument
[all …]
/kernel/linux/linux-5.10/drivers/isdn/hardware/mISDN/
Dhfcmulti.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * hfcmulti.c low level driver for hfc-4s/hfc-8s/hfc-e1 based cards
7 * Peter Sprenger (sprengermoving-bytes.de)
9 * inspired by existing hfc-pci driver:
10 * Copyright 1999 by Werner Cornelius (werner@isdn-development.de)
22 * Bit 0-7 = 0x00001 = HFC-E1 (1 port)
23 * or Bit 0-7 = 0x00004 = HFC-4S (4 ports)
24 * or Bit 0-7 = 0x00008 = HFC-8S (8 ports)
26 * Bit 9 = 0x00200 = Disable DTMF detect on all B-channels via hardware
38 * example: 0x20204 one HFC-4S with dtmf detection and 128 timeslots on PCM
[all …]
/kernel/linux/linux-5.10/arch/nios2/boot/compressed/
Dconsole.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2008-2010 Thomas Chou <thomas@wytron.com.tw>
20 #define ALTERA_JTAGUART_CONTROL_REG 4
26 static void jtag_putc(int ch) in jtag_putc() argument
30 writeb(ch, uartbase + ALTERA_JTAGUART_DATA_REG); in jtag_putc()
33 static void jtag_putc(int ch) in jtag_putc() argument
38 writeb(ch, uartbase + ALTERA_JTAGUART_DATA_REG); in jtag_putc()
42 static int putchar(int ch) in putchar() argument
44 jtag_putc(ch); in putchar()
45 return ch; in putchar()
[all …]

12345678910>>...42