/linux/drivers/gpu/drm/i915/gt/ |
H A D | gen8_engine_cs.c | 1 // SPDX-License-Identifier: MIT 16 u32 *cs, flags = 0; in gen8_emit_flush_rcs() local 42 if (GRAPHICS_VER(rq->i915) == 9) in gen8_emit_flush_rcs() 46 if (IS_KABYLAKE(rq->i915) && IS_GRAPHICS_STEP(rq->i915, 0, STEP_C0)) in gen8_emit_flush_rcs() 58 cs = intel_ring_begin(rq, len); in gen8_emit_flush_rcs() 59 if (IS_ERR(cs)) in gen8_emit_flush_rcs() 60 return PTR_ERR(cs); in gen8_emit_flush_rcs() 63 cs = gen8_emit_pipe_control(cs, 0, 0); in gen8_emit_flush_rcs() 66 cs = gen8_emit_pipe_control(cs, PIPE_CONTROL_DC_FLUSH_ENABLE, in gen8_emit_flush_rcs() 67 0); in gen8_emit_flush_rcs() [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 != 25 * 0. 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 [all …]
|
H A D | gen8_engine_cs.h | 1 /* SPDX-License-Identifier: MIT */ 43 u32 *gen8_emit_fini_breadcrumb_xcs(struct i915_request *rq, u32 *cs); 44 u32 *gen12_emit_fini_breadcrumb_xcs(struct i915_request *rq, u32 *cs); 46 u32 *gen8_emit_fini_breadcrumb_rcs(struct i915_request *rq, u32 *cs); 47 u32 *gen11_emit_fini_breadcrumb_rcs(struct i915_request *rq, u32 *cs); 48 u32 *gen12_emit_fini_breadcrumb_rcs(struct i915_request *rq, u32 *cs); 50 u32 *gen12_emit_aux_table_inv(struct intel_engine_cs *engine, u32 *cs); 56 memset(batch, 0, 6 * sizeof(u32)); in __gen8_emit_pipe_control() 58 batch[0] = GFX_OP_PIPE_CONTROL(6) | bit_group_0; in __gen8_emit_pipe_control() 68 return __gen8_emit_pipe_control(batch, 0, bit_group_1, offset); in gen8_emit_pipe_control() [all …]
|
H A D | selftest_engine_pm.c | 1 // SPDX-License-Identifier: GPL-2.0 25 return *a - *b; in cmp_u64() 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 49 *cs++ = MI_STORE_DWORD_IMM_GEN4 | MI_USE_GGTT; in emit_store() [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> 52 for (i = 0; i < ARRAY_SIZE(myrs_devstate_name_list); i++) { in myrs_devstate_name() 83 for (i = 0; i < ARRAY_SIZE(myrs_raid_level_name_list); i++) { in myrs_raid_level_name() 91 * myrs_reset_cmd - clears critical fields in struct myrs_cmdblk 95 union myrs_cmd_mbox *mbox = &cmd_blk->mbox; in myrs_reset_cmd() 97 memset(mbox, 0, sizeof(union myrs_cmd_mbox)); in myrs_reset_cmd() 98 cmd_blk->status = 0; in myrs_reset_cmd() 102 * myrs_qcmd - queues Command for DAC960 V2 Series Controllers. [all …]
|
/linux/kernel/time/ |
H A D | clocksource.c | 1 // SPDX-License-Identifier: GPL-2.0+ 20 #include "tick-internal.h" 23 static void clocksource_enqueue(struct clocksource *cs); 25 static noinline u64 cycles_to_nsec_safe(struct clocksource *cs, u64 start, u64 end) in cycles_to_nsec_safe() argument 27 u64 delta = clocksource_delta(end, start, cs->mask, cs->max_raw_delta); in cycles_to_nsec_safe() 29 if (likely(delta < cs->max_cycles)) in cycles_to_nsec_safe() 30 return clocksource_cyc2ns(delta, cs->mult, cs->shift); in cycles_to_nsec_safe() 32 return mul_u64_u32_shr(delta, cs->mult, cs->shift); in cycles_to_nsec_safe() 36 * clocks_calc_mult_shift - calculate mult/shift factors for scaled math of clocks 71 sftacc--; in clocks_calc_mult_shift() [all …]
|
/linux/drivers/gpu/drm/i915/pxp/ |
H A D | intel_pxp_cmd.c | 1 // SPDX-License-Identifier: MIT 23 static u32 *pxp_emit_session_selection(u32 *cs, u32 idx) in pxp_emit_session_selection() argument 25 *cs++ = MFX_WAIT_PXP; in pxp_emit_session_selection() 28 *cs++ = MI_FLUSH_DW; in pxp_emit_session_selection() 29 *cs++ = 0; in pxp_emit_session_selection() 30 *cs++ = 0; in pxp_emit_session_selection() 33 *cs++ = MI_SET_APPID | MI_SET_APPID_SESSION_ID(idx); in pxp_emit_session_selection() 35 *cs++ = MFX_WAIT_PXP; in pxp_emit_session_selection() 38 *cs++ = MI_FLUSH_DW | MI_FLUSH_DW_PROTECTED_MEM_EN | in pxp_emit_session_selection() 40 *cs++ = I915_GEM_HWS_PXP_ADDR | MI_FLUSH_DW_USE_GTT; in pxp_emit_session_selection() [all …]
|
/linux/drivers/memory/ |
H A D | stm32-fmc2-ebi.c | 1 // SPDX-License-Identifier: GPL-2.0 19 #define FMC2_BCR1 0x0 20 #define FMC2_BTR1 0x4 21 #define FMC2_BCR(x) ((x) * 0x8 + FMC2_BCR1) 22 #define FMC2_BTR(x) ((x) * 0x8 + FMC2_BTR1) 23 #define FMC2_PCSCNTR 0x20 24 #define FMC2_CFGR 0x20 25 #define FMC2_SR 0x84 26 #define FMC2_BWTR1 0x104 27 #define FMC2_BWTR(x) ((x) * 0x8 + FMC2_BWTR1) [all …]
|
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" 42 #define GPMC_REVISION 0x00 43 #define GPMC_SYSCONFIG 0x10 44 #define GPMC_SYSSTATUS 0x14 45 #define GPMC_IRQSTATUS 0x18 [all …]
|
/linux/kernel/cgroup/ |
H A D | cpuset.c | 7 * Copyright (C) 2004-2007 Silicon Graphics, Inc. 11 * sysfs is Copyright (c) 2001-3 Patrick Mochel 13 * 2003-10-10 Written by Simon Derr. 14 * 2003-10-22 Updates by Stephen Hemminger. 15 * 2004 May-July Rework by Paul Jackson. 24 #include "cpuset-internal.h" 49 * node binding, add this key to provide a quick low-cost judgment 73 * Exclusive CPUs distributed out to local or remote sub-partitions of 95 * - update_partition_sd_lb() 96 * - update_cpumasks_hier() [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 18 * Set all fields to 0 so that one can start defining a new config. 22 memset(conf, 0, sizeof(*conf)); in atmel_smc_cs_conf_init() 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 41 * the encodedval is contains the maximum val. Otherwise, 0 is returned. [all …]
|
/linux/Documentation/devicetree/bindings/memory-controllers/ |
H A D | ti-aemif.txt | 4 provide a glue-less interface to a variety of asynchronous memory devices like 11 Davinci DM646x - http://www.ti.com/lit/ug/sprueq7c/sprueq7c.pdf 12 OMAP-L138 (DA850) - http://www.ti.com/lit/ug/spruh77a/spruh77a.pdf 13 Kestone - http://www.ti.com/lit/ug/sprugz3a/sprugz3a.pdf 17 - compatible: "ti,davinci-aemif" 18 "ti,keystone-aemif" 19 "ti,da850-aemif" 21 - reg: contains offset/length value for AEMIF control registers 24 - #address-cells: Must be 2. The partition number has to be encoded in the 25 first address cell and it may accept values 0..N-1 [all …]
|
H A D | st,stm32-fmc2-ebi-props.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/st,stm32-fmc2-ebi-props.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Christophe Kerello <christophe.kerello@foss.st.com> 11 - Marek Vasut <marex@denx.de> 14 st,fmc2-ebi-cs-transaction-type: 17 0: Asynchronous mode 1 SRAM/FRAM. 30 minimum: 0 33 st,fmc2-ebi-cs-cclk-enable: [all …]
|
/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. 27 #define MCFSIM_RSR (MCF_MBAR + 0x00) /* Reset Status reg */ 28 #define MCFSIM_SYPCR (MCF_MBAR + 0x01) /* System Protection */ 29 #define MCFSIM_SWIVR (MCF_MBAR + 0x02) /* SW Watchdog intr */ 30 #define MCFSIM_SWSR (MCF_MBAR + 0x03) /* SW Watchdog service*/ 31 #define MCFSIM_PAR (MCF_MBAR + 0x04) /* Pin Assignment */ 32 #define MCFSIM_IRQPAR (MCF_MBAR + 0x06) /* Itr Assignment */ 33 #define MCFSIM_PLLCR (MCF_MBAR + 0x08) /* PLL Ctrl Reg */ 34 #define MCFSIM_MPARK (MCF_MBAR + 0x0C) /* BUS Master Ctrl */ [all …]
|
H A D | m5407sim.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * m5407sim.h -- ColdFire 5407 System Integration Module support. 27 #define MCFSIM_RSR (MCF_MBAR + 0x00) /* Reset Status */ 28 #define MCFSIM_SYPCR (MCF_MBAR + 0x01) /* System Protection */ 29 #define MCFSIM_SWIVR (MCF_MBAR + 0x02) /* SW Watchdog intr */ 30 #define MCFSIM_SWSR (MCF_MBAR + 0x03) /* SW Watchdog service*/ 31 #define MCFSIM_PAR (MCF_MBAR + 0x04) /* Pin Assignment */ 32 #define MCFSIM_IRQPAR (MCF_MBAR + 0x06) /* Intr Assignment */ 33 #define MCFSIM_PLLCR (MCF_MBAR + 0x08) /* PLL Ctrl */ 34 #define MCFSIM_MPARK (MCF_MBAR + 0x0C) /* BUS Master Ctrl */ [all …]
|
H A D | m5206sim.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * m5206sim.h -- ColdFire 5206 System Integration Module support. 25 #define MCFSIM_SIMR (MCF_MBAR + 0x03) /* SIM Config reg */ 26 #define MCFSIM_ICR1 (MCF_MBAR + 0x14) /* Intr Ctrl reg 1 */ 27 #define MCFSIM_ICR2 (MCF_MBAR + 0x15) /* Intr Ctrl reg 2 */ 28 #define MCFSIM_ICR3 (MCF_MBAR + 0x16) /* Intr Ctrl reg 3 */ 29 #define MCFSIM_ICR4 (MCF_MBAR + 0x17) /* Intr Ctrl reg 4 */ 30 #define MCFSIM_ICR5 (MCF_MBAR + 0x18) /* Intr Ctrl reg 5 */ 31 #define MCFSIM_ICR6 (MCF_MBAR + 0x19) /* Intr Ctrl reg 6 */ 32 #define MCFSIM_ICR7 (MCF_MBAR + 0x1a) /* Intr Ctrl reg 7 */ [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/drivers/accel/habanalabs/common/ |
H A D | hw_queue.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright 2016-2019 HabanaLabs, Ltd. 13 * hl_queue_add_ptr - add to pi or ci and checks if it wraps around 23 ptr &= ((HL_QUEUE_LENGTH << 1) - 1); in hl_hw_queue_add_ptr() 28 return atomic_read(ci) & ((queue_len << 1) - 1); in queue_ci_get() 33 int delta = (q->pi - queue_ci_get(&q->ci, queue_len)); in queue_free_slots() 35 if (delta >= 0) in queue_free_slots() 36 return (queue_len - delta); in queue_free_slots() 38 return (abs(delta) - queue_len); in queue_free_slots() 41 void hl_hw_queue_update_ci(struct hl_cs *cs) in hl_hw_queue_update_ci() argument [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/arch/mips/bcm63xx/ |
H A D | cs.c | 24 static int is_valid_cs(unsigned int cs) in is_valid_cs() argument 26 if (cs > 6) in is_valid_cs() 27 return 0; in is_valid_cs() 35 int bcm63xx_set_cs_base(unsigned int cs, u32 base, unsigned int size) in bcm63xx_set_cs_base() argument 40 if (!is_valid_cs(cs)) in bcm63xx_set_cs_base() 41 return -EINVAL; in bcm63xx_set_cs_base() 45 return -EINVAL; in bcm63xx_set_cs_base() 48 return -EINVAL; in bcm63xx_set_cs_base() 51 /* 8k => 0 - 256M => 15 */ in bcm63xx_set_cs_base() 52 val |= (ilog2(size) - ilog2(8 * 1024)) << MPI_CSBASE_SIZE_SHIFT; in bcm63xx_set_cs_base() [all …]
|
/linux/fs/xfs/scrub/ |
H A D | stats.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 20 /* all 32-bit counters here */ 37 /* all 64-bit items here */ 43 /* non-counter state must go at the end for clearall */ 92 struct xchk_stats *cs, in xchk_stats_format() argument 96 struct xchk_scrub_stats *css = &cs->cs_stats[0]; in xchk_stats_format() 98 ssize_t copied = 0; in xchk_stats_format() 99 int ret = 0; in xchk_stats_format() 101 for (i = 0; i < XFS_SCRUB_TYPE_NR; i++, css++) { in xchk_stats_format() 108 (unsigned int)css->invocations, in xchk_stats_format() [all …]
|
/linux/net/ceph/ |
H A D | string_table.c | 1 // SPDX-License-Identifier: GPL-2.0 13 struct ceph_string *cs, *exist; in ceph_find_or_create_string() local 23 if (ret > 0) in ceph_find_or_create_string() 24 p = &(*p)->rb_left; in ceph_find_or_create_string() 25 else if (ret < 0) in ceph_find_or_create_string() 26 p = &(*p)->rb_right; in ceph_find_or_create_string() 31 if (exist && !kref_get_unless_zero(&exist->kref)) { in ceph_find_or_create_string() 32 rb_erase(&exist->node, &string_tree); in ceph_find_or_create_string() 33 RB_CLEAR_NODE(&exist->node); in ceph_find_or_create_string() 40 cs = kmalloc(sizeof(*cs) + len + 1, GFP_NOFS); in ceph_find_or_create_string() [all …]
|
/linux/drivers/clocksource/ |
H A D | timer-pistachio.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Pistachio clocksource based on general-purpose timers 26 #define CR_TIMER_CTRL_CFG 0x00 27 #define TIMER_ME_GLOBAL BIT(0) 28 #define CR_TIMER_REV 0x10 31 #define TIMER_CFG 0x20 32 #define TIMER_ME_LOCAL BIT(0) 33 #define TIMER_RELOAD_VALUE 0x24 34 #define TIMER_CURRENT_VALUE 0x28 35 #define TIMER_CURRENT_OVERFLOW_VALUE 0x2C [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/drivers/spi/ |
H A D | spi-omap2-mcspi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 15 #include <linux/dma-mapping.h> 32 #include <linux/platform_data/spi-omap2-mcspi.h> 37 #define OMAP2_MCSPI_MAX_FIFOWCNT 0xFFFF 40 #define OMAP2_MCSPI_REVISION 0x00 41 #define OMAP2_MCSPI_SYSSTATUS 0x14 42 #define OMAP2_MCSPI_IRQSTATUS 0x18 43 #define OMAP2_MCSPI_IRQENABLE 0x1c 44 #define OMAP2_MCSPI_WAKEUPENABLE 0x20 45 #define OMAP2_MCSPI_SYST 0x24 [all …]
|