/openbmc/qemu/ |
H A D | cpu-common.c | 2 * CPU thread main loop - common bits for user and system mode emulation 4 * Copyright (c) 2003-2005 Fabrice Bellard 6 * This library is free software; you can redistribute it and/or 8 * License as published by the Free Software Foundation; either 21 #include "qemu/main-loop.h" 22 #include "exec/cpu-common.h" 26 #include "trace/trace-root.h" 67 if (some_cpu->cpu_index >= max_cpu_index) { in cpu_get_free_index() 68 max_cpu_index = some_cpu->cpu_index + 1; in cpu_get_free_index() 87 if (cpu->cpu_index == UNASSIGNED_CPU_INDEX) { in cpu_list_add() [all …]
|
/openbmc/linux/drivers/net/ethernet/google/gve/ |
H A D | gve.h | 1 /* SPDX-License-Identifier: (GPL-2.0 OR MIT) 4 * Copyright (C) 2015-2021 Google, Inc. 10 #include <linux/dma-mapping.h> 44 #define GVE_DATA_SLOT_ADDR_PAGE_MASK (~(PAGE_SIZE - 1)) 63 /* 2K buffers for DQO-QPL */ 68 /* If number of free/recyclable buffers are less than this threshold; driver 69 * allocs and uses a non-qpl page on the receive path of DQO QPL to free 157 * which point every other offset is free to be reused. 161 /* Linked list index to next element in the list, or -1 if none */ 165 /* `head` and `tail` are indices into an array, or -1 if empty. */ [all …]
|
/openbmc/linux/drivers/video/fbdev/ |
H A 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 …]
|
/openbmc/qemu/accel/ |
H A D | accel-blocker.c | 8 * Permission is hereby granted, free of charge, to any person obtaining a copy 30 #include "qemu/main-loop.h" 32 #include "sysemu/accel-blocker.h" 71 qemu_lockcnt_inc(&cpu->in_ioctl_lock); in accel_cpu_ioctl_begin() 80 qemu_lockcnt_dec(&cpu->in_ioctl_lock); in accel_cpu_ioctl_end() 91 if (qemu_lockcnt_count(&cpu->in_ioctl_lock)) { in accel_has_to_wait() 92 /* exit the ioctl, if vcpu is running it */ in accel_has_to_wait() 113 qemu_lockcnt_lock(&cpu->in_ioctl_lock); in accel_ioctl_inhibit_begin() 117 /* Keep waiting until there are running ioctls */ in accel_ioctl_inhibit_begin() 120 /* Reset event to FREE. */ in accel_ioctl_inhibit_begin() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | adi,adin.yaml | 1 # SPDX-License-Identifier: GPL-2.0+ 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Alexandru Tachici <alexandru.tachici@analog.com> 16 - $ref: ethernet-phy.yaml# 19 adi,rx-internal-delay-ps: 22 internal delay (phy-mode is 'rgmii-id' or 'rgmii-rxid') in pico-seconds. 26 adi,tx-internal-delay-ps: 29 internal delay (phy-mode is 'rgmii-id' or 'rgmii-txid') in pico-seconds. 33 adi,fifo-depth-bits: [all …]
|
/openbmc/linux/tools/testing/selftests/media_tests/ |
H A 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 …]
|
/openbmc/linux/drivers/input/serio/ |
H A 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 …]
|
/openbmc/linux/arch/x86/events/intel/ |
H A D | uncore.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 #include <asm/intel-family.h> 6 #include <linux/io-64-nonatomic-lo-hi.h> 37 #define UNCORE_IGNORE_END -1 165 /* event config registers are 8-byte apart */ 260 if (offset < box->pmu->type->mmio_map_size) in uncore_mmio_is_valid_offset() 264 offset, box->pmu->type->name); in uncore_mmio_is_valid_offset() 272 return box->pmu->type->box_ctl + in uncore_mmio_box_ctl() 273 box->pmu->type->mmio_offset * box->pmu->pmu_idx; in uncore_mmio_box_ctl() 278 return box->pmu->type->box_ctl; in uncore_pci_box_ctl() [all …]
|
/openbmc/qemu/docs/spin/ |
H A D | tcg-exclusive.promela | 3 * cpus-common.c (start_exclusive, end_exclusive, cpu_exec_start, 12 * spin -a docs/tcg-exclusive.promela 13 * gcc pan.c -O2 14 * ./a.out -a 28 // For 3 CPUs and the lock-free option it needs 1.5 GB of RAM 54 // process-local "cond_t saved;" variable. 57 #define MUTEX_LOCK(m) atomic { m == 0 -> m = 1 } 64 c != saved -> MUTEX_LOCK(m); \ 68 // this is the logic from cpus-common.c 75 byte running[N_CPUS]; [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 091 | 10 # This program is free software; you can redistribute it and/or modify 12 # the Free Software Foundation; either version 2 of the License, or 36 rm -f "${MIG_FIFO}" 64 _launch_qemu -drive file="${TEST_IMG}",cache=${CACHEMODE},aio=${AIOMODE},id=disk 70 _launch_qemu -drive file="${TEST_IMG}",cache=${CACHEMODE},aio=${AIOMODE},id=disk \ 71 -incoming "exec: cat '${MIG_FIFO}'" 79 _send_qemu_cmd $h1 'qemu-io disk "write -P 0x22 0 4M"' "(qemu)" 80 echo "vm1: qemu-io disk write complete" 87 echo === VM 2: Post-migration, write to disk, verify running === 90 _send_qemu_cmd $h2 'qemu-io disk "write 4M 1M"' "(qemu)" [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/timer/ |
H A 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>;
|
/openbmc/linux/drivers/dma/sh/ |
H A 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 …]
|
/openbmc/qemu/hw/timer/ |
H A D | cmsdk-apb-dualtimer.c | 2 * ARM CMSDK APB dual-timer emulation 7 * This program is free software; you can redistribute it and/or modify 13 * This is a model of the "APB dual-input timer" which is part of the Cortex-M 14 * System Design Kit (CMSDK) and documented in the Cortex-M System 16 * https://developer.arm.com/products/system-design/system-design-kits/cortex-m-system-design-kit 26 #include "hw/qdev-properties.h" 28 #include "hw/qdev-clock.h" 29 #include "hw/timer/cmsdk-apb-dualtimer.h" 86 return m->intstatus && (m->control & R_CONTROL_INTEN_MASK); in cmsdk_dualtimermod_intstatus() 93 if (s->timeritcr) { in cmsdk_apb_dualtimer_update() [all …]
|
H A D | bcm2835_systmr.c | 4 * Copyright (C) 2019 Philippe Mathieu-Daudé <f4bug@amsat.org> 6 * SPDX-License-Identifier: GPL-2.0-or-later 8 * Datasheet: BCM2835 ARM Peripherals (C6357-M-1398) 9 * https://www.raspberrypi.org/app/uploads/2012/02/BCM2835-ARM-Peripherals.pdf 11 * Only the free running 64-bit counter is implemented. 35 trace_bcm2835_systmr_timer_expired(tmr->id); in bcm2835_systmr_timer_expire() 36 tmr->state->reg.ctrl_status |= 1 << tmr->id; in bcm2835_systmr_timer_expire() 37 qemu_set_irq(tmr->irq, 1); in bcm2835_systmr_timer_expire() 48 r = s->reg.ctrl_status; in bcm2835_systmr_read() 51 r = s->reg.compare[(offset - A_COMPARE0) >> 2]; in bcm2835_systmr_read() [all …]
|
/openbmc/ipmitool/contrib/ |
H A D | ipmievd.init.suse | 5 # Copyright (C) 1995--2005 Kurt Garloff, SUSE / Novell Inc. 7 # This library is free software; you can redistribute it and/or modify it 9 # the Free Software Foundation; either version 2.1 of the License, or (at 18 # License along with this library; if not, write to the Free Software 19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, 26 # Read http://www.tldp.org/HOWTO/HighQuality-Apps-HOWTO/ if you prefer not 34 # Required-Start: $syslog ipmi 35 # Should-Start: $time 36 # Required-Stop: $syslog ipmi 37 # Should-Stop: $time [all …]
|
/openbmc/linux/drivers/clocksource/ |
H A D | timer-orion.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Timer 0 is used as free-running clocksource, while timer 1 is 53 * Free-running clocksource handling. 68 /* setup and enable one-shot timer */ in orion_clkevt_next_event() 87 writel(ticks_per_jiffy - 1, timer_base + TIMER1_RELOAD); in orion_clkevt_set_periodic() 88 writel(ticks_per_jiffy - 1, timer_base + TIMER1_VAL); in orion_clkevt_set_periodic() 124 return -ENXIO; in orion_timer_init() 143 ret = -EINVAL; in orion_timer_init() 149 /* setup timer0 as free-running clocksource */ in orion_timer_init() 189 TIMER_OF_DECLARE(orion_timer, "marvell,orion-timer", orion_timer_init);
|
/openbmc/linux/tools/testing/selftests/cgroup/ |
H A D | test_freezer.c | 1 /* SPDX-License-Identifier: GPL-2.0 */ 32 return -1; in cg_check_frozen() 40 return -1; in cg_check_frozen() 62 int fd, ret = -1; in cg_enter_and_wait_for_frozen() 95 int fd, ret = -1; in cg_freeze_wait() 118 * A simple process running in a sleep loop until being 119 * re-parented. 133 * running processes and freeze it. Then unfreeze it. Then it kills all 169 free(cgroup); in test_cgfreezer_simple() 329 for (i = 9; i >= 0 && cgroup[i]; i--) { in test_cgfreezer_tree() [all …]
|
/openbmc/linux/arch/arm/mach-pxa/ |
H A 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 */
|
/openbmc/qemu/include/block/ |
H A D | block-copy.h | 9 * Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> 12 * See the COPYING file in the top-level directory. 18 #include "block/block-common.h" 21 /* All APIs are thread-safe */ 52 * Run block-copy in a coroutine, create corresponding BlockCopyCallState 55 * Caller is responsible to call block_copy_call_free() to free 58 * @max_workers means maximum of parallel coroutines to execute sub-requests, 70 * Free finished BlockCopyCallState. Trying to free running 71 * block-copy will crash. 76 * Note, that block-copy call is marked finished prior to calling [all …]
|
/openbmc/qemu/include/io/ |
H A D | channel-websock.h | 6 * This library is free software; you can redistribute it and/or 8 * License as published by the Free Software Foundation; either 29 #define TYPE_QIO_CHANNEL_WEBSOCK "qio-channel-websock" 48 * This channel object is currently only capable of running as 52 * client for encapsulating VNC for noVNC in-browser client. 95 * @destroy: optional callback to free @opaque 100 * loop is running. When the handshake is complete,
|
H A D | task.h | 6 * This library is free software; you can redistribute it and/or 8 * License as published by the Free Software Foundation; either 36 * success / failure of long running background operations. 53 * to free 'opaque' when no longer needed. 149 * lookups) to be easily run non-blocking. Reporting the 157 * DNS API, so the to get non-blocking DNS lookups in a portable 158 * manner requires use of a thread. So achieve a non-blocking 169 * obj->fd = socket_listen(addr, &err); 202 * @destroy: optional callback to free @opaque 205 * background operation running on the object @source. [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | discard.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include "block-group.h" 13 #include "free-space-cache.h" 19 * Async discard manages trimming of free space outside of transaction commit. 20 * Discarding is done by managing the block_groups on a LRU list based on free 32 * The first list is special to manage discarding of fully free block groups. 33 * This is necessary because we issue a final trim for a full free block group 39 * The in-memory free space cache serves as the backing state for discard. 44 * As the free space cache uses bitmaps, there exists a tradeoff between 73 return &discard_ctl->discard_list[block_group->discard_index]; in get_discard_list() [all …]
|
/openbmc/linux/Documentation/admin-guide/mm/damon/ |
H A D | reclaim.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 DAMON-based Reclamation 7 DAMON-based Reclamation (DAMON_RECLAIM) is a static kernel module that aimed to 9 It doesn't aim to replace the LRU-list based page_granularity reclamation, but 15 On general memory over-committed systems, proactively reclaiming cold pages 20 Free Pages Reporting [3]_ based memory over-commit virtualization systems are 21 good example of the cases. In such systems, the guest VMs reports their free 24 guests could be not so memory-frugal, mainly because some kernel subsystems and 25 user-space applications are designed to use as much memory as available. Then, 26 guests could report only small amount of memory as free to host, results in [all …]
|
/openbmc/qemu/hw/core/ |
H A D | vm-change-state-handler.c | 4 * This program is free software; you can redistribute it and/or modify 6 * the Free Software Foundation; either version 2 of the License, 19 #include "hw/qdev-core.h" 27 BusState *bus = dev->parent_bus; in qdev_get_dev_tree_depth() 33 dev = bus->parent; in qdev_get_dev_tree_depth() 51 * starts running. The order is reversed when the VM stops running.
|
/openbmc/linux/tools/testing/selftests/powerpc/math/ |
H A D | fpu_preempt.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 38 int running; variable 40 extern int preempt_fpu(double *darray, int *threads_starting, int *running); 51 rc = preempt_fpu(darray, &threads_starting, &running); in preempt_fpu_c() 65 running = true; in test_preempt_fpu() 86 * r5 will have loaded the value of running. in test_preempt_fpu() 88 running = 0; in test_preempt_fpu() 103 free(tids); in test_preempt_fpu()
|