/linux/arch/m68k/include/asm/ |
H A D | m5307sim.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * m5307sim.h -- ColdFire 5307 System Integration Module support. 19 #define CPU_INSTR_PER_JIFFY 3 41 #define MCFSIM_ICR3 (MCF_MBAR + 0x4f) /* Intr Ctrl reg 3 */ 51 #define MCFSIM_CSAR0 (MCF_MBAR + 0x80) /* CS 0 Address reg */ 52 #define MCFSIM_CSMR0 (MCF_MBAR + 0x84) /* CS 0 Mask reg */ 53 #define MCFSIM_CSCR0 (MCF_MBAR + 0x8a) /* CS 0 Control reg */ 54 #define MCFSIM_CSAR1 (MCF_MBAR + 0x8c) /* CS 1 Address reg */ 55 #define MCFSIM_CSMR1 (MCF_MBAR + 0x90) /* CS 1 Mask reg */ 56 #define MCFSIM_CSCR1 (MCF_MBAR + 0x96) /* CS 1 Control reg */ [all …]
|
H A D | m5407sim.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * m5407sim.h -- ColdFire 5407 System Integration Module support. 19 #define CPU_INSTR_PER_JIFFY 3 41 #define MCFSIM_ICR3 (MCF_MBAR + 0x4f) /* Intr Ctrl reg 3 */ 51 #define MCFSIM_CSAR0 (MCF_MBAR + 0x80) /* CS 0 Address reg */ 52 #define MCFSIM_CSMR0 (MCF_MBAR + 0x84) /* CS 0 Mask reg */ 53 #define MCFSIM_CSCR0 (MCF_MBAR + 0x8a) /* CS 0 Control reg */ 54 #define MCFSIM_CSAR1 (MCF_MBAR + 0x8c) /* CS 1 Address reg */ 55 #define MCFSIM_CSMR1 (MCF_MBAR + 0x90) /* CS 1 Mask reg */ 56 #define MCFSIM_CSCR1 (MCF_MBAR + 0x96) /* CS 1 Control reg */ [all …]
|
H A D | m5206sim.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * m5206sim.h -- ColdFire 5206 System Integration Module support. 17 #define CPU_INSTR_PER_JIFFY 3 28 #define MCFSIM_ICR3 (MCF_MBAR + 0x16) /* Intr Ctrl reg 3 */ 62 #define MCFSIM_CSAR0 (MCF_MBAR + 0x64) /* CS 0 Address reg */ 63 #define MCFSIM_CSMR0 (MCF_MBAR + 0x68) /* CS 0 Mask reg */ 64 #define MCFSIM_CSCR0 (MCF_MBAR + 0x6e) /* CS 0 Control reg */ 65 #define MCFSIM_CSAR1 (MCF_MBAR + 0x70) /* CS 1 Address reg */ 66 #define MCFSIM_CSMR1 (MCF_MBAR + 0x74) /* CS 1 Mask reg */ 67 #define MCFSIM_CSCR1 (MCF_MBAR + 0x7a) /* CS 1 Control reg */ [all …]
|
/linux/sound/core/ |
H A D | pcm_iec958.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 * snd_pcm_create_iec958_consumer_default - create default consumer format IEC958 channel status 14 * @cs: channel status buffer, at least four bytes 17 * Create the consumer format channel status data in @cs of maximum size 18 * @len. When relevant, the configuration-dependant bits will be set as 29 int snd_pcm_create_iec958_consumer_default(u8 *cs, size_t len) in snd_pcm_create_iec958_consumer_default() argument 32 return -EINVAL; in snd_pcm_create_iec958_consumer_default() 34 memset(cs, 0, len); in snd_pcm_create_iec958_consumer_default() 36 cs[0] = IEC958_AES0_CON_NOT_COPYRIGHT | IEC958_AES0_CON_EMPHASIS_NONE; in snd_pcm_create_iec958_consumer_default() 37 cs[1] = IEC958_AES1_CON_GENERAL; in snd_pcm_create_iec958_consumer_default() [all …]
|
/linux/drivers/gpu/drm/i915/gt/ |
H A D | selftest_engine_pm.c | 1 // SPDX-License-Identifier: GPL-2.0 25 return *a - *b; in cmp_u64() 31 return (a[1] + 2 * a[2] + a[3]) >> 2; in trifilter() 34 static u32 *emit_wait(u32 *cs, u32 offset, int op, u32 value) in emit_wait() argument 36 *cs++ = MI_SEMAPHORE_WAIT | in emit_wait() 40 *cs++ = value; in emit_wait() 41 *cs++ = offset; in emit_wait() 42 *cs++ = 0; in emit_wait() 44 return cs; in emit_wait() 47 static u32 *emit_store(u32 *cs, u32 offset, u32 value) in emit_store() argument [all …]
|
H A D | intel_migrate.c | 1 // SPDX-License-Identifier: MIT 33 GEM_BUG_ON(engine->class != COPY_ENGINE_CLASS); in engine_supports_migration() 48 vm->insert_page(vm, 0, d->offset, in xehp_toggle_pdes() 49 i915_gem_get_pat_index(vm->i915, I915_CACHE_NONE), in xehp_toggle_pdes() 51 GEM_BUG_ON(!pt->is_compact); in xehp_toggle_pdes() 52 d->offset += SZ_2M; in xehp_toggle_pdes() 68 vm->insert_page(vm, px_dma(pt), d->offset, in xehp_insert_pte() 69 i915_gem_get_pat_index(vm->i915, I915_CACHE_NONE), in xehp_insert_pte() 71 d->offset += SZ_64K; in xehp_insert_pte() 80 vm->insert_page(vm, px_dma(pt), d->offset, in insert_pte() [all …]
|
H A D | gen6_engine_cs.c | 1 // SPDX-License-Identifier: MIT 18 * Emits a PIPE_CONTROL with a non-zero post-sync operation, for 22 * [DevSNB-C+{W/A}] Before any depth stall flush (including those 23 * produced by non-pipelined state commands), software needs to first 24 * send a PIPE_CONTROL with no bits set except Post-Sync Operation != 27 * [Dev-SNB{W/A}]: Before a PIPE_CONTROL with Write Cache Flush Enable 28 * =1, a PIPE_CONTROL with any non-zero post-sync-op is required. 32 * [Dev-SNB{W/A}]: Pipe-control with CS-stall bit set must be sent 33 * BEFORE the pipe-control with a post-sync op and no write-cache 37 * that bit. From section 1.4.7.2.3 "Stall" of the Sandy Bridge PRM [all …]
|
H A D | selftest_engine_cs.c | 1 // SPDX-License-Identifier: GPL-2.0 21 return *a - *b; in cmp_u32() 29 atomic_inc(>->rps.num_waiters); in perf_begin() 30 queue_work(gt->i915->unordered_wq, >->rps.work); in perf_begin() 31 flush_work(>->rps.work); in perf_begin() 38 atomic_dec(>->rps.num_waiters); in perf_end() 41 return igt_flush_test(gt->i915); in perf_end() 46 struct drm_i915_private *i915 = engine->i915; in timestamp_reg() 49 return RING_TIMESTAMP_UDW(engine->mmio_base); in timestamp_reg() 51 return RING_TIMESTAMP(engine->mmio_base); in timestamp_reg() [all …]
|
/linux/drivers/memory/ |
H A D | omap-gpmc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2005-2006 Nokia Corporation 10 * Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com> 33 #include <linux/omap-gpmc.h> 37 #include <linux/platform_data/mtd-nand-omap2.h> 39 #define DEVICE_NAME "omap-gpmc" 146 #define GPMC_CONFIG1_CLKACTIVATIONTIME(val) (((val) & 3) << 25) 149 #define GPMC_CONFIG1_PAGE_LEN(val) (((val) & 3) << 23) 154 #define GPMC_CONFIG1_WAIT_MON_TIME(val) (((val) & 3) << 18) 157 #define GPMC_CONFIG1_WAIT_PIN_SEL(val) (((val) & 3) << 16) [all …]
|
/linux/tools/perf/pmu-events/arch/x86/amdzen4/ |
H A D | data-fabric.json | 4 … "PublicDescription": "Read data beats (64 bytes) for local processor at Coherent Station (CS) 0.", 12 … "PublicDescription": "Read data beats (64 bytes) for local processor at Coherent Station (CS) 1.", 20 … "PublicDescription": "Read data beats (64 bytes) for local processor at Coherent Station (CS) 2.", 28 … "PublicDescription": "Read data beats (64 bytes) for local processor at Coherent Station (CS) 3.", 36 … "PublicDescription": "Read data beats (64 bytes) for local processor at Coherent Station (CS) 4.", 44 … "PublicDescription": "Read data beats (64 bytes) for local processor at Coherent Station (CS) 5.", 52 … "PublicDescription": "Read data beats (64 bytes) for local processor at Coherent Station (CS) 6.", 60 … "PublicDescription": "Read data beats (64 bytes) for local processor at Coherent Station (CS) 7.", 68 … "PublicDescription": "Read data beats (64 bytes) for local processor at Coherent Station (CS) 8.", 76 … "PublicDescription": "Read data beats (64 bytes) for local processor at Coherent Station (CS) 9.", [all …]
|
/linux/drivers/scsi/ |
H A D | myrs.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * This driver supports the newer, SCSI-based firmware interface only. 10 * Copyright 1998-2001 by Leonard N. Zubkoff <lnz@dandelion.com> 91 * myrs_reset_cmd - clears critical fields in struct myrs_cmdblk 95 union myrs_cmd_mbox *mbox = &cmd_blk->mbox; in myrs_reset_cmd() 98 cmd_blk->status = 0; in myrs_reset_cmd() 102 * myrs_qcmd - queues Command for DAC960 V2 Series Controllers. 104 static void myrs_qcmd(struct myrs_hba *cs, struct myrs_cmdblk *cmd_blk) in myrs_qcmd() argument 106 void __iomem *base = cs->io_base; in myrs_qcmd() 107 union myrs_cmd_mbox *mbox = &cmd_blk->mbox; in myrs_qcmd() [all …]
|
/linux/drivers/gpu/drm/i915/selftests/ |
H A D | i915_perf.c | 2 * SPDX-License-Identifier: MIT 17 #define TEST_OA_CONFIG_UUID "12345678-1234-1234-1234-1234567890ab" 26 return -ENOMEM; in alloc_empty_config() 28 oa_config->perf = perf; in alloc_empty_config() 29 kref_init(&oa_config->ref); in alloc_empty_config() 31 strscpy(oa_config->uuid, TEST_OA_CONFIG_UUID, sizeof(oa_config->uuid)); in alloc_empty_config() 33 mutex_lock(&perf->metrics_lock); in alloc_empty_config() 35 oa_config->id = idr_alloc(&perf->metrics_idr, oa_config, 2, 0, GFP_KERNEL); in alloc_empty_config() 36 if (oa_config->id < 0) { in alloc_empty_config() 37 mutex_unlock(&perf->metrics_lock); in alloc_empty_config() [all …]
|
/linux/Documentation/scsi/ |
H A D | NinjaSCSI.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 WorkBiT NinjaSCSI-3/32Bi driver for Linux 10 This is Workbit corp.'s(http://www.workbit.co.jp/) NinjaSCSI-3 17 :pcmcia-cs: 3.1.27 18 :gcc: gcc-2.95.4 19 :PC card: I-O data PCSC-F (NinjaSCSI-3), 20 I-O data CBSC-II in 16 bit mode (NinjaSCSI-32Bi) 21 :SCSI device: I-O data CDPS-PX24 (CD-ROM drive), 22 Media Intelligent MMO-640GT (Optical disk drive) 24 3. Install [all …]
|
/linux/drivers/iio/adc/ |
H A D | ad7606.c | 1 // SPDX-License-Identifier: GPL-2.0 48 static const unsigned int ad7606c_16bit_single_ended_unipolar_scale_avail[3][2] = { 60 static const unsigned int ad7606c_18bit_single_ended_unipolar_scale_avail[3][2] = { 72 static const unsigned int ad7606_16bit_sw_scale_avail[3][2] = { 97 AD7605_CHANNEL(3), 105 AD7606_CHANNEL(3, 16), 117 AD7606_CHANNEL(3, 18), 129 AD7606_CHANNEL(3, 14), 141 AD7606_CHANNEL(3, 18), 152 * -SER/PAR [all …]
|
/linux/arch/arm64/boot/dts/exynos/ |
H A D | exynosautov920-pinctrl.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Samsung's ExynosAutov920 SoC pin-mux and pin-config device tree source 7 * Samsung's ExynosAutov920 SoC pin-mux and pin-config options are listed as 11 #include <dt-bindings/interrupt-controller/arm-gic.h> 13 #include "exynos-pinctrl.h" 16 gpa0: gpa0-gpio-bank { 17 gpio-controller; 18 #gpio-cells = <2>; 19 interrupt-controller; 20 #interrupt-cells = <2>; [all …]
|
/linux/Documentation/devicetree/bindings/spi/ |
H A D | spi-controller.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/spi/spi-controller.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Mark Brown <broonie@kernel.org> 20 pattern: "^spi(@.*|-([0-9]|[1-9][0-9]+))?$" 22 "#address-cells": 25 "#size-cells": 28 cs-gpios: 32 increased automatically with max(cs-gpios, hardware chip selects). [all …]
|
/linux/drivers/spi/ |
H A D | spi-wpcm-fiu.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/spi/spi-mem.h> 36 #define FIU_BURST_CFG_R16 3 39 #define FIU_UMA_CTS_A_SIZE BIT(3) 53 /* The memory-mapped view of flash is 16 MiB long */ 68 writeb(opcode, fiu->regs + FIU_UMA_CODE); in wpcm_fiu_set_opcode() 73 writeb((addr >> 0) & 0xff, fiu->regs + FIU_UMA_AB0); in wpcm_fiu_set_addr() 74 writeb((addr >> 8) & 0xff, fiu->regs + FIU_UMA_AB1); in wpcm_fiu_set_addr() 75 writeb((addr >> 16) & 0xff, fiu->regs + FIU_UMA_AB2); in wpcm_fiu_set_addr() 83 writeb(data[i], fiu->regs + FIU_UMA_DB0 + i); in wpcm_fiu_set_data() [all …]
|
/linux/drivers/mfd/ |
H A D | atmel-smc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Author: Boris Brezillon <boris.brezillon@free-electrons.com> 11 #include <linux/mfd/syscon/atmel-smc.h> 15 * atmel_smc_cs_conf_init - initialize a SMC CS conf 16 * @conf: the SMC CS conf to initialize 27 * atmel_smc_cs_encode_ncycles - encode a number of MCK clk cycles in the 40 * If the @ncycles value is too big to be encoded, -ERANGE is returned and 49 unsigned int lsbmask = GENMASK(msbpos - 1, 0); in atmel_smc_cs_encode_ncycles() 50 unsigned int msbmask = GENMASK(msbwidth - 1, 0); in atmel_smc_cs_encode_ncycles() 65 * We still return -ERANGE in case the caller cares. in atmel_smc_cs_encode_ncycles() [all …]
|
/linux/include/linux/mfd/syscon/ |
H A D | atmel-smc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 * Author: Boris Brezillon <boris.brezillon@free-electrons.com> 18 #define ATMEL_SMC_SETUP(cs) (((cs) * 0x10)) argument 19 #define ATMEL_HSMC_SETUP(layout, cs) \ argument 20 ((layout)->timing_regs_offset + ((cs) * 0x14)) 21 #define ATMEL_SMC_PULSE(cs) (((cs) * 0x10) + 0x4) argument 22 #define ATMEL_HSMC_PULSE(layout, cs) \ argument 23 ((layout)->timing_regs_offset + ((cs) * 0x14) + 0x4) 24 #define ATMEL_SMC_CYCLE(cs) (((cs) * 0x10) + 0x8) argument 25 #define ATMEL_HSMC_CYCLE(layout, cs) \ argument [all …]
|
/linux/Documentation/iio/ |
H A D | ad4000.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 30 ------------------ 35 CS mode, 3-wire turbo mode 38 Datasheet "3-wire" mode is what most resembles standard SPI connection which, 39 for these devices, comprises of connecting the controller CS line to device CNV 41 "CS Mode, 3-Wire Turbo Mode" connection in datasheets. 42 NOTE: The datasheet definition of 3-wire mode for the AD4000 series is NOT the 43 same of standard spi-3wire mode. 47 Omit the ``adi,sdi-pin`` property in device tree to select this mode. 51 +-------------+ [all …]
|
/linux/Documentation/devicetree/bindings/gpio/ |
H A D | spear_spics.txt | 1 === ST Microelectronics SPEAr SPI CS Driver === 17 * compatible: should be defined as "st,spear-spics-gpio" 19 * st-spics,peripcfg-reg: peripheral configuration register offset 20 * st-spics,sw-enable-bit: bit offset to enable sw control 21 * st-spics,cs-value-bit: bit offset to drive chipselect low or high 22 * st-spics,cs-enable-mask: chip select number bit mask 23 * st-spics,cs-enable-shift: chip select number program offset 24 * gpio-controller: Marks the device node as gpio controller 25 * #gpio-cells: should be 1 and will mention chip select number 30 ------- [all …]
|
/linux/arch/arm64/boot/dts/freescale/ |
H A D | fsl-ls1043a-rdb.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for Freescale Layerscape-1043A family SoC. 5 * Copyright 2014-2015 Freescale Semiconductor, Inc. 11 /dts-v1/; 12 #include "fsl-ls1043a.dtsi" 16 compatible = "fsl,ls1043a-rdb", "fsl,ls1043a"; 26 stdout-path = "serial0:115200n8"; 36 shunt-resistor = <1000>; 67 #address-cells = <2>; 68 #size-cells = <1>; [all …]
|
/linux/drivers/clocksource/ |
H A D | em_sti.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Emma Mobile Timer Support - STI 33 struct clocksource cs; member 55 return ioread32(p->base + offs); in em_sti_read() 61 iowrite32(value, p->base + offs); in em_sti_write() 69 ret = clk_enable(p->clk); in em_sti_enable() 71 dev_err(&p->pdev->dev, "cannot enable clock\n"); in em_sti_enable() 80 em_sti_write(p, STI_INTENCLR, 3); in em_sti_enable() 81 em_sti_write(p, STI_INTFFCLR, 3); in em_sti_enable() 92 em_sti_write(p, STI_INTENCLR, 3); in em_sti_disable() [all …]
|
/linux/arch/m68k/lib/ |
H A D | memset.c | 21 char *cs = s; in memset() local 22 *cs++ = c; in memset() 23 s = cs; in memset() 24 count--; in memset() 30 count -= 2; in memset() 36 for (; temp; temp--) in memset() 43 " lsrl #3,%1\n" in memset() 46 "1: movel %3,%0@+\n" in memset() 47 " movel %3,%0@+\n" in memset() 48 " movel %3,%0@+\n" in memset() [all …]
|
/linux/arch/mips/cavium-octeon/ |
H A D | octeon-platform.c | 6 * Copyright (C) 2004-2017 Cavium, Inc. 18 #include <asm/octeon/cvmx-helper-board.h> 24 #include <asm/octeon/cvmx-uctlx-defs.h> 78 if (dev->of_node) { in octeon2_usb_clocks_start() 82 uctl_node = of_get_parent(dev->of_node); in octeon2_usb_clocks_start() 88 "refclk-frequency", &clock_rate); in octeon2_usb_clocks_start() 90 dev_err(dev, "No UCTL \"refclk-frequency\"\n"); in octeon2_usb_clocks_start() 95 "refclk-type", &clock_type); in octeon2_usb_clocks_start() 122 /* Step 3: Configure the reference clock, PHY, and HCLK */ in octeon2_usb_clocks_start() 131 /* 3a */ in octeon2_usb_clocks_start() [all …]
|