/linux-5.10/drivers/net/ethernet/google/gve/ |
D | gve.h | 1 /* SPDX-License-Identifier: (GPL-2.0 OR MIT) 4 * Copyright (C) 2015-2019 Google, Inc. 10 #include <linux/dma-mapping.h> 75 /* An RX ring that contains a power-of-two sized desc and data ring. */ 80 u64 rbytes; /* free-running bytes received */ 81 u64 rpackets; /* free-running packets received */ 82 u32 cnt; /* free-running total number of completed packets */ 83 u32 fill_cnt; /* free-running total number of descs and buffs posted */ 85 u64 rx_copybreak_pkt; /* free-running count of copybreak packets */ 86 u64 rx_copied_pkt; /* free-running total number of copied packets */ [all …]
|
/linux-5.10/drivers/video/fbdev/ |
D | pxa3xx-gcu.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * pxa3xx-gcu.c - Linux kernel module for PXA3xx graphics controllers 22 #include <linux/dma-mapping.h> 36 #include "pxa3xx-gcu.h" 38 #define DRV_NAME "pxa3xx-gcu" 97 struct pxa3xx_gcu_batch *free; member 100 struct pxa3xx_gcu_batch *running; member 106 return __raw_readl(priv->mmio_base + off); in gc_readl() 112 __raw_writel(val, priv->mmio_base + off); in gc_writel() 118 struct pxa3xx_gcu_shared *shared = priv->shared; \ [all …]
|
/linux-5.10/arch/x86/events/intel/ |
D | uncore.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 #include <linux/io-64-nonatomic-lo-hi.h> 154 /* event config registers are 8-byte apart */ 227 if (offset < box->pmu->type->mmio_map_size) in uncore_mmio_is_valid_offset() 231 offset, box->pmu->type->name); in uncore_mmio_is_valid_offset() 239 return box->pmu->type->box_ctl + in uncore_mmio_box_ctl() 240 box->pmu->type->mmio_offset * box->pmu->pmu_idx; in uncore_mmio_box_ctl() 245 return box->pmu->type->box_ctl; in uncore_pci_box_ctl() 250 return box->pmu->type->fixed_ctl; in uncore_pci_fixed_ctl() 255 return box->pmu->type->fixed_ctr; in uncore_pci_fixed_ctr() [all …]
|
/linux-5.10/drivers/input/serio/ |
D | userio.c | 6 * This program is free software; you can redistribute it and/or modify it 8 * the Free Software Foundation; either version 2 of the License, or (at 39 bool running; member 51 * userio_device_write - Write data from serio to a userio device in userspace 57 struct userio_device *userio = id->port_data; in userio_device_write() 60 spin_lock_irqsave(&userio->buf_lock, flags); in userio_device_write() 62 userio->buf[userio->head] = val; in userio_device_write() 63 userio->head = (userio->head + 1) % USERIO_BUFSIZE; in userio_device_write() 65 if (userio->head == userio->tail) in userio_device_write() 69 spin_unlock_irqrestore(&userio->buf_lock, flags); in userio_device_write() [all …]
|
/linux-5.10/tools/testing/selftests/media_tests/ |
D | media_device_test.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * media_device_test.c - Media Controller Device ioctl loop Test 23 * sudo ./media_device_test -d /dev/mediaX 25 * While test is running, remove the device and 26 * ensure there are no use after free errors and 28 * config option for use-after-free error detection. 54 printf("Usage: %s [-d </dev/mediaX>]\n", argv[0]); in main() 55 exit(-1); in main() 59 while ((opt = getopt(argc, argv, "d:")) != -1) { in main() 62 strncpy(media_device, optarg, sizeof(media_device) - 1); in main() [all …]
|
D | video_device_test.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * video_device_test - Video Device Test 20 * sudo ./video_device_test -d /dev/videoX 22 * While test is running, remove the device or unbind the driver and 23 * ensure there are no use after free errors and other Oops in the 25 * When possible, enable KaSan kernel config option for use-after-free 51 printf("Usage: %s [-d </dev/videoX>]\n", argv[0]); in main() 52 exit(-1); in main() 56 while ((opt = getopt(argc, argv, "d:")) != -1) { in main() 59 strncpy(video_dev, optarg, sizeof(video_dev) - 1); in main() [all …]
|
/linux-5.10/drivers/dma/sh/ |
D | rcar-dmac.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Renesas R-Car Gen2/Gen3 DMA Controller Driver 5 * Copyright (C) 2014-2019 Renesas Electronics Inc. 11 #include <linux/dma-mapping.h> 28 * struct rcar_dmac_xfer_chunk - Descriptor for a hardware transfer 43 * struct rcar_dmac_hw_desc - Hardware descriptor for a transfer chunk 56 * struct rcar_dmac_desc - R-Car Gen2 DMA Transfer Descriptor 63 * @running: the transfer chunk being currently processed 80 struct rcar_dmac_xfer_chunk *running; member 97 * struct rcar_dmac_desc_page - One page worth of descriptors [all …]
|
/linux-5.10/Documentation/devicetree/bindings/timer/ |
D | brcm,bcm2835-system-timer.txt | 3 The System Timer peripheral provides four 32-bit timer channels and a 4 single 64-bit free running counter. Each channel has an output compare 6 free running counter values, and generates an interrupt. 10 - compatible : should be "brcm,bcm2835-system-timer" 11 - reg : Specifies base physical address and size of the registers. 12 - interrupts : A list of 4 interrupt sinks; one per timer channel. 13 - clock-frequency : The frequency of the clock that drives the counter, in Hz. 18 compatible = "brcm,bcm2835-system-timer"; 21 clock-frequency = <1000000>;
|
/linux-5.10/drivers/staging/media/atomisp/include/hmm/ |
D | hmm_common.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 * This program is free software; you can redistribute it and/or 11 * 2 as published by the Free Software Foundation. 76 * sys_size: system mem pool size, being allocated from system at camera running time. 82 * res_cnt: track the mem allocated from reserved pool at camera running time. 83 * tol_cnt: track the total mem used by ISP pipe at camera running time.
|
/linux-5.10/drivers/clocksource/ |
D | timer-orion.c | 10 * Timer 0 is used as free-running clocksource, while timer 1 is 56 * Free-running clocksource handling. 71 /* setup and enable one-shot timer */ in orion_clkevt_next_event() 90 writel(ticks_per_jiffy - 1, timer_base + TIMER1_RELOAD); in orion_clkevt_set_periodic() 91 writel(ticks_per_jiffy - 1, timer_base + TIMER1_VAL); in orion_clkevt_set_periodic() 127 return -ENXIO; in orion_timer_init() 146 return -EINVAL; in orion_timer_init() 151 /* setup timer0 as free-running clocksource */ in orion_timer_init() 187 TIMER_OF_DECLARE(orion_timer, "marvell,orion-timer", orion_timer_init);
|
D | dw_apb_timer.c | 1 // SPDX-License-Identifier: GPL-2.0-only 33 /* 1: periodic, 0:free running. */ 51 return readl(timer->base + offs); in apbt_readl() 57 writel(val, timer->base + offs); in apbt_writel() 62 return readl_relaxed(timer->base + offs); in apbt_readl_relaxed() 68 writel_relaxed(val, timer->base + offs); in apbt_writel_relaxed() 80 * dw_apb_clockevent_pause() - stop the clock_event_device from running 86 disable_irq(dw_ced->timer.irq); in dw_apb_clockevent_pause() 87 apbt_disable_int(&dw_ced->timer); in dw_apb_clockevent_pause() 100 if (!evt->event_handler) { in dw_apb_clockevent_irq() [all …]
|
/linux-5.10/arch/arm/mach-pxa/include/mach/ |
D | smemc.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 21 #define SXLCR (SMEMC_VIRT + 0x18) /* LCR value to be written to SDRAM-Timing Synchronous Flash */ 31 #define BOOT_DEF (SMEMC_VIRT + 0x44) /* Read-Only Boot-Time Register. Contains BOOT_SEL and PKG_SE… 49 #define MECR_NOS (1 << 0) /* Number Of Sockets: 0 -> 1 sock, 1 -> 2 sock */ 50 #define MECR_CIT (1 << 1) /* Card Is There: 0 -> no card, 1 -> card inserted */ 58 #define MDREFR_K2FREE (1 << 25) /* SDRAM Free-Running Control */ 59 #define MDREFR_K1FREE (1 << 24) /* SDRAM Free-Running Control */ 60 #define MDREFR_K0FREE (1 << 23) /* SDRAM Free-Running Control */ 61 #define MDREFR_SLFRSH (1 << 22) /* SDRAM Self-Refresh Control/Status */ 62 #define MDREFR_APD (1 << 20) /* SDRAM/SSRAM Auto-Power-Down Enable */
|
/linux-5.10/tools/testing/selftests/powerpc/math/ |
D | fpu_preempt.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 38 int running; variable 40 extern void preempt_fpu(double *darray, int *threads_starting, int *running); 50 preempt_fpu(darray, &threads_starting, &running); in preempt_fpu_c() 64 running = true; in test_preempt_fpu() 85 * r5 will have loaded the value of running. in test_preempt_fpu() 87 running = 0; in test_preempt_fpu() 102 free(tids); in test_preempt_fpu()
|
D | fpu_signal.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 36 int running; variable 38 extern long preempt_fpu(double *darray, int *threads_starting, int *running); 44 mcontext_t *mc = &uc->uc_mcontext; in signal_fpu_sig() 48 if (mc->fp_regs[i] != darray[i - 14]) { in signal_fpu_sig() 70 rc = preempt_fpu(darray, &threads_starting, &running); in signal_fpu_c() 85 running = true; in test_signal_fpu() 108 running = 0; in test_signal_fpu() 124 free(tids); in test_signal_fpu()
|
/linux-5.10/include/uapi/linux/ |
D | membarrier.h | 11 * Permission is hereby granted, free of charge, to any person obtaining a copy 31 * enum membarrier_cmd - membarrier system call command 34 * @MEMBARRIER_CMD_GLOBAL: Execute a memory barrier on all running threads. 36 * is ensured that all running threads have passed 38 * user-space addresses match program order between 40 * (non-running threads are de facto in such a 42 * running on the system. This command returns 0. 44 * Execute a memory barrier on all running threads 48 * is ensured that all running threads have passed 50 * user-space addresses match program order between [all …]
|
/linux-5.10/tools/testing/selftests/cgroup/ |
D | test_freezer.c | 1 /* SPDX-License-Identifier: GPL-2.0 */ 34 return -1; in cg_check_frozen() 42 return -1; in cg_check_frozen() 62 int fd, ret = -1; in cg_prepare_for_wait() 65 if (fd == -1) { in cg_prepare_for_wait() 72 if (ret == -1) { in cg_prepare_for_wait() 75 fd = -1; in cg_prepare_for_wait() 87 int ret = -1; in cg_wait_for() 96 if (ret == -1) { in cg_wait_for() 119 int fd, ret = -1; in cg_enter_and_wait_for_frozen() [all …]
|
/linux-5.10/drivers/misc/lkdtm/ |
D | heap.c | 1 // SPDX-License-Identifier: GPL-2.0 15 * This tries to stay within the next largest power-of-2 kmalloc cache 35 * The slub allocator uses the first word to store the free in lkdtm_WRITE_AFTER_FREE() 37 * allocation to avoid running into the freelist in lkdtm_WRITE_AFTER_FREE() 44 pr_info("Allocated memory %p-%p\n", base, &base[offset * 2]); in lkdtm_WRITE_AFTER_FREE() 62 * the middle of the allocation to store the free pointer, in lkdtm_READ_AFTER_FREE() 64 * avoid running into the freelist. in lkdtm_READ_AFTER_FREE() 83 pr_info("Value in memory before free: %x\n", base[offset]); in lkdtm_READ_AFTER_FREE() 103 pr_info("Unable to allocate free page\n"); in lkdtm_WRITE_BUDDY_AFTER_FREE() 107 pr_info("Writing to the buddy page before free\n"); in lkdtm_WRITE_BUDDY_AFTER_FREE() [all …]
|
/linux-5.10/drivers/dma/qcom/ |
D | hidma.c | 4 * Copyright (c) 2015-2017, The Linux Foundation. All rights reserved. 6 * This program is free software; you can redistribute it and/or modify 8 * only version 2 as published by the Free Software Foundation. 24 * written by Hongjun Chen <hong-jun.chen@freescale.com>. 29 * This program is free software; you can redistribute it and/or modify it 30 * under the terms of the GNU General Public License as published by the Free 46 #include <linux/dma-mapping.h> 101 INIT_LIST_HEAD(&dmadev->ddev.channels); in hidma_free() 116 struct dma_device *ddev = mchan->chan.device; in hidma_process_completed() 128 spin_lock_irqsave(&mchan->lock, irqflags); in hidma_process_completed() [all …]
|
/linux-5.10/arch/arm/mach-mmp/ |
D | time.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/arch/arm/mach-mmp/time.c 10 * 2008-04-11: Jason Chagas <Jason.chagas@marvell.com> 11 * 2008-10-08: Bin Yang <bin.yang@marvell.com> 14 * three match comparators. Timer #0 is used here in free-running mode as 32 #include "addr-map.h" 33 #include "regs-timers.h" 34 #include "regs-apbc.h" 54 while (delay--) in timer_read() 79 c->event_handler(c); in timer_interrupt() [all …]
|
/linux-5.10/drivers/staging/media/atomisp/pci/ |
D | ia_css_control.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * This program is free software; you can redistribute it and/or modify it 8 * version 2, as published by the Free Software Foundation. 41 * @return Returns -EINVAL in case of any 55 /* @brief Un-initialize the CSS API. 63 * with the exception of ia_css_init which will re-initialize the CSS code, 73 * @return error if called when SP is running. 78 * This function should only be called when the SP is not running, calling it 79 * when the SP is running will result in an error value being returned. } 115 * It will boot the SP hardware and start multi-threading infrastructure.
|
/linux-5.10/samples/bpf/ |
D | trace_event_kern.c | 3 * This program is free software; you can redistribute it and/or 5 * License as published by the Free Software Foundation. 41 char time_fmt1[] = "Time Enabled: %llu, Time Running: %llu"; in bpf_prog1() 44 char fmt[] = "CPU-%d period %lld ip %llx"; in bpf_prog1() 51 if (ctx->sample_period < 10000) in bpf_prog1() 58 bpf_trace_printk(fmt, sizeof(fmt), cpu, ctx->sample_period, in bpf_prog1() 59 PT_REGS_IP(&ctx->regs)); in bpf_prog1() 65 bpf_trace_printk(time_fmt1, sizeof(time_fmt1), value_buf.enabled, value_buf.running); in bpf_prog1() 69 if (ctx->addr != 0) in bpf_prog1() 70 bpf_trace_printk(addr_fmt, sizeof(addr_fmt), ctx->addr); in bpf_prog1()
|
/linux-5.10/Documentation/driver-api/dmaengine/ |
D | client.rst | 8 ``Documentation/crypto/async-tx-api.rst`` 11 Below is a guide to device driver writers on how to use the Slave-DMA API of the 19 - Allocate a DMA slave channel 21 - Set slave and controller specific parameters 23 - Get a descriptor for transaction 25 - Submit the transaction 27 - Issue pending requests and wait for callback notification 40 .. code-block:: c 66 .. code-block:: c 79 DMA-engine are: [all …]
|
/linux-5.10/fs/btrfs/tests/ |
D | free-space-tests.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include "btrfs-tests.h" 9 #include "../disk-io.h" 10 #include "../free-space-cache.h" 11 #include "../block-group.h" 24 test_msg("running extent only tests"); in test_extents() 41 return -1; in test_extents() 71 return -1; in test_extents() 76 return -1; in test_extents() 81 return -1; in test_extents() [all …]
|
/linux-5.10/drivers/dma/ |
D | nbpfaxi.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2013-2014 Renesas Electronics Europe Ltd. 10 #include <linux/dma-mapping.h> 23 #include <dt-bindings/dma/nbpfaxi.h> 105 * 1. high-level descriptor, containing a struct dma_async_tx_descriptor object 109 * allocated from coherent memory - one per SG segment 116 * Therefore for both cases (a) and (b) at run-time objects (2) and (3) shall be 143 * struct nbpf_desc - DMA transfer descriptor 162 #define NBPF_DESCS_PER_PAGE ((PAGE_SIZE - sizeof(struct list_head)) / \ 176 * struct nbpf_channel - one DMAC channel [all …]
|
/linux-5.10/sound/usb/line6/ |
D | pcm.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 2004-2010 Markus Grabner (grabner@icg.tugraz.at) 38 (line6pcm->pcm->streams[stream].substream) 53 We define two bit flags, "opened" and "running", for each playback 60 the running flag indicates whether the stream is running. 97 /* Free frame position in the buffer. */ 130 /* Bit flags for running stream types */ 131 unsigned long running; member
|