/linux-6.12.1/drivers/gpu/drm/i915/gt/ |
D | gen7_renderclear.c | 1 // SPDX-License-Identifier: MIT 12 #define batch_advance(Y, CS) GEM_BUG_ON((Y)->end != (CS)) argument 48 * a shader on every HW thread, and clear the thread-local registers. in num_primitives() 52 return bv->max_threads; in num_primitives() 59 switch (INTEL_INFO(i915)->gt) { in batch_get_defaults() 61 case 1: in batch_get_defaults() 62 bv->max_threads = 70; in batch_get_defaults() 65 bv->max_threads = 140; in batch_get_defaults() 68 bv->max_threads = 280; in batch_get_defaults() 71 bv->surface_height = 16 * 16; in batch_get_defaults() [all …]
|
D | gen6_engine_cs.c | 1 // SPDX-License-Identifier: MIT 18 * Emits a PIPE_CONTROL with a non-zero post-sync operation, for 20 * "PIPE_CONTROL" of the Sandy Bridge PRM volume 2 part 1: 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 [all …]
|
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() 69 cs = gen8_emit_pipe_control(cs, flags, LRC_PPHWSP_SCRATCH_ADDR); in gen8_emit_flush_rcs() [all …]
|
D | selftest_lrc.c | 1 // SPDX-License-Identifier: MIT 26 #define CS_GPR(engine, n) ((engine)->mmio_base + 0x600 + (n) * 4) 35 return __vm_create_scratch_for_read_pinned(>->ggtt->vm, PAGE_SIZE); in create_scratch() 57 tasklet_hi_schedule(&engine->sched_engine->tasklet); in wait_for_submit() 68 if (!READ_ONCE(engine->execlists.pending[0]) && is_active(rq)) in wait_for_submit() 72 return -ETIME; in wait_for_submit() 75 } while (1); in wait_for_submit() 81 i915_ggtt_offset(ce->engine->status_page.vma) + in emit_semaphore_signal() 84 u32 *cs; in emit_semaphore_signal() local 90 cs = intel_ring_begin(rq, 4); in emit_semaphore_signal() [all …]
|
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 …]
|
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); 59 batch[1] = bit_group_1; in __gen8_emit_pipe_control() 79 __gen8_emit_write_rcs(u32 *cs, u32 value, u32 offset, u32 flags0, u32 flags1) in __gen8_emit_write_rcs() argument 81 *cs++ = GFX_OP_PIPE_CONTROL(6) | flags0; in __gen8_emit_write_rcs() [all …]
|
D | intel_lrc.c | 1 // SPDX-License-Identifier: MIT 24 * The per-platform tables are u8-encoded in @data. Decode @data and set the 29 * [7]: create NOPs - number of NOPs are set in lower bits 60 const u32 base = engine->mmio_base; in set_offsets() 78 if (GRAPHICS_VER(engine->i915) >= 11) in set_offsets() 95 } while (--count); in set_offsets() 101 if (GRAPHICS_VER(engine->i915) >= 11) in set_offsets() 107 NOP(1), 142 NOP(1), 172 LRI(1, POSTED), [all …]
|
D | intel_migrate.c | 1 // SPDX-License-Identifier: MIT 19 #define CHUNK_SZ SZ_8M /* ~1ms at 8GiB/s preemption delay */ 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() [all …]
|
/linux-6.12.1/drivers/memory/ |
D | stm32-fmc2-ebi.c | 1 // SPDX-License-Identifier: GPL-2.0 40 #define FMC2_BCR_MUXEN BIT(1) 76 #define FMC2_SR_ISOST GENMASK(1, 0) 80 #define FMC2_CIDCFGR_SEMEN BIT(1) 91 #define FMC2_CID1 1 136 FMC2_REG_BCR = 1, 173 FMC2_CSCOUNT_1 = 1, 210 * struct stm32_fmc2_prop - STM32 FMC2 EBI property 234 const struct stm32_fmc2_prop *prop, int cs); 235 u32 (*calculate)(struct stm32_fmc2_ebi *ebi, int cs, u32 setup); [all …]
|
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" 81 #define GPMC_CONFIG_LIMITEDADDRESS BIT(1) 97 * The first 1MB of GPMC address space is typically mapped to 139 #define GPMC_CONFIG1_WRAPBURST_SUPP (1 << 31) 140 #define GPMC_CONFIG1_READMULTIPLE_SUPP (1 << 30) [all …]
|
/linux-6.12.1/drivers/scsi/ |
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-6.12.1/Documentation/devicetree/bindings/memory-controllers/ |
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 …]
|
/linux-6.12.1/kernel/time/ |
D | clocksource.c | 1 // SPDX-License-Identifier: GPL-2.0+ 20 #include "tick-internal.h" 23 static noinline u64 cycles_to_nsec_safe(struct clocksource *cs, u64 start, u64 end) in cycles_to_nsec_safe() argument 25 u64 delta = clocksource_delta(end, start, cs->mask); in cycles_to_nsec_safe() 27 if (likely(delta < cs->max_cycles)) in cycles_to_nsec_safe() 28 return clocksource_cyc2ns(delta, cs->mult, cs->shift); in cycles_to_nsec_safe() 30 return mul_u64_u32_shr(delta, cs->mult, cs->shift); in cycles_to_nsec_safe() 34 * clocks_calc_mult_shift - calculate mult/shift factors for scaled math of clocks 45 * NSEC_PER_SEC == 1GHz and @from is the counter frequency. For clock 68 tmp >>=1; in clocks_calc_mult_shift() [all …]
|
/linux-6.12.1/include/linux/mfd/syscon/ |
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-6.12.1/arch/m68k/include/asm/ |
D | m5307sim.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * m5307sim.h -- ColdFire 5307 System Integration Module support. 39 #define MCFSIM_ICR1 (MCF_MBAR + 0x4d) /* Intr Ctrl reg 1 */ 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 */ 59 #define MCFSIM_CSBAR (MCF_MBAR + 0x98) /* CS Base Address */ [all …]
|
D | m5407sim.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * m5407sim.h -- ColdFire 5407 System Integration Module support. 39 #define MCFSIM_ICR1 (MCF_MBAR + 0x4d) /* Intr Ctrl reg 1 */ 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 */ 58 #define MCFSIM_CSAR2 (MCF_MBAR + 0x98) /* CS 2 Address reg */ [all …]
|
D | m5206sim.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * m5206sim.h -- ColdFire 5206 System Integration Module support. 26 #define MCFSIM_ICR1 (MCF_MBAR + 0x14) /* Intr Ctrl reg 1 */ 58 #define MCFSIM_DAR1 (MCF_MBAR + 0x58) /* DRAM 1 Address reg (r/w) */ 59 #define MCFSIM_DMR1 (MCF_MBAR + 0x5c) /* DRAM 1 Mask reg (r/w) */ 60 #define MCFSIM_DCR1 (MCF_MBAR + 0x63) /* DRAM 1 Control reg (r/w) */ 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 */ [all …]
|
/linux-6.12.1/drivers/accel/habanalabs/common/ |
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() 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 43 struct hl_device *hdev = cs->ctx->hdev; in hl_hw_queue_update_ci() [all …]
|
D | command_submission.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright 2016-2021 HabanaLabs, Ltd. 23 * enum hl_cs_wait_status - cs wait status 24 * @CS_WAIT_STATUS_BUSY: cs was not completed yet 25 * @CS_WAIT_STATUS_COMPLETED: cs completed 26 * @CS_WAIT_STATUS_GONE: cs completed but fence is already gone 65 * CS outcome store supports the following operations: in hl_push_cs_outcome() 66 * push outcome - store a recent CS outcome in the store in hl_push_cs_outcome() 67 * pop outcome - retrieve a SPECIFIC (by seq) CS outcome from the store in hl_push_cs_outcome() 69 * It has a pre-allocated amount of nodes, each node stores in hl_push_cs_outcome() [all …]
|
/linux-6.12.1/tools/perf/util/ |
D | comm.c | 1 // SPDX-License-Identifier: GPL-2.0 22 static void comm_strs__remove_if_last(struct comm_str *cs); 41 static refcount_t *comm_str__refcnt(struct comm_str *cs) in comm_str__refcnt() argument 43 return &RC_CHK_ACCESS(cs)->refcnt; in comm_str__refcnt() 46 static const char *comm_str__str(const struct comm_str *cs) in comm_str__str() argument 48 return &RC_CHK_ACCESS(cs)->str[0]; in comm_str__str() 51 static struct comm_str *comm_str__get(struct comm_str *cs) in comm_str__get() argument 55 if (RC_CHK_GET(result, cs)) in comm_str__get() 56 refcount_inc_not_zero(comm_str__refcnt(cs)); in comm_str__get() 61 static void comm_str__put(struct comm_str *cs) in comm_str__put() argument [all …]
|
/linux-6.12.1/fs/fuse/ |
D | dev.c | 3 Copyright (C) 2001-2008 Miklos Szeredi <miklos@szeredi.hu> 32 #define FUSE_INT_REQ_BIT (1ULL << 0) 33 #define FUSE_REQ_ID_STEP (1ULL << 1) 42 * Lockless access is OK, because file->private data is set in fuse_get_dev() 45 return READ_ONCE(file->private_data); in fuse_get_dev() 50 INIT_LIST_HEAD(&req->list); in fuse_request_init() 51 INIT_LIST_HEAD(&req->intr_entry); in fuse_request_init() 52 init_waitqueue_head(&req->waitq); in fuse_request_init() 53 refcount_set(&req->count, 1); in fuse_request_init() 54 __set_bit(FR_PENDING, &req->flags); in fuse_request_init() [all …]
|
/linux-6.12.1/drivers/mfd/ |
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-6.12.1/kernel/cgroup/ |
D | cpuset-v1.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 #include "cpuset-internal.h" 10 struct cpuset *cs; member 14 * Frequency meter - How fast is some event occurring? 18 * fmeter_init() - initialize a frequency meter. 19 * fmeter_markevent() - called each time the event happens. 20 * fmeter_getrate() - returns the recent rate of such events. 21 * fmeter_update() - internal routine used to update fmeter. 28 * The filter is single-pole low-pass recursive (IIR). The time unit 29 * is 1 second. Arithmetic is done using 32-bit integers scaled to [all …]
|
/linux-6.12.1/drivers/spi/ |
D | spi-fsl-spi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 #include <linux/dma-mapping.h> 45 #include "spi-fsl-lib.h" 46 #include "spi-fsl-cpm.h" 47 #include "spi-fsl-spi.h" 50 #define TYPE_GRLIB 1 81 if (dev->of_node) { in fsl_spi_get_type() 82 match = of_match_node(of_fsl_spi_match, dev->of_node); in fsl_spi_get_type() 83 if (match && match->data) in fsl_spi_get_type() 84 return ((struct fsl_spi_match_data *)match->data)->type; in fsl_spi_get_type() [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/spi/ |
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": 23 enum: [0, 1] 25 "#size-cells": 28 cs-gpios: [all …]
|