/openbmc/linux/drivers/counter/ |
H A D | stm32-lptimer-cnt.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * STM32 Low-Power Timer Encoder and Counter driver 9 * Inspired by 104-quad-8 and stm32-timer-trigger drivers. 14 #include <linux/counter.h> 15 #include <linux/mfd/stm32-lptimer.h> 37 ret = regmap_read(priv->regmap, STM32_LPTIM_CR, &val); in stm32_lptim_is_enabled() 51 ret = regmap_write(priv->regmap, STM32_LPTIM_CR, val); in stm32_lptim_set_enable_state() 56 clk_disable(priv->clk); in stm32_lptim_set_enable_state() 57 priv->enabled = false; in stm32_lptim_set_enable_state() 62 ret = regmap_write(priv->regmap, STM32_LPTIM_ARR, priv->ceiling); in stm32_lptim_set_enable_state() [all …]
|
H A D | stm32-timer-cnt.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * STM32 Timer Encoder and Counter driver 10 #include <linux/counter.h> 11 #include <linux/mfd/stm32-timers.h> 46 static int stm32_count_read(struct counter_device *counter, in stm32_count_read() argument 49 struct stm32_timer_cnt *const priv = counter_priv(counter); in stm32_count_read() 52 regmap_read(priv->regmap, TIM_CNT, &cnt); in stm32_count_read() 58 static int stm32_count_write(struct counter_device *counter, in stm32_count_write() argument 61 struct stm32_timer_cnt *const priv = counter_priv(counter); in stm32_count_write() 64 regmap_read(priv->regmap, TIM_ARR, &ceiling); in stm32_count_write() [all …]
|
/openbmc/linux/include/linux/ |
H A D | pm_runtime.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * pm_runtime.h - Device run-time power management helper functions. 98 * pm_runtime_get_if_in_use - Conditionally bump up runtime PM usage counter. 101 * Increment the runtime PM usage counter of @dev if its runtime PM status is 102 * %RPM_ACTIVE and its runtime PM usage counter is greater than 0. 110 * pm_suspend_ignore_children - Set runtime PM behavior regarding children. 120 dev->power.ignore_children = enable; in pm_suspend_ignore_children() 124 * pm_runtime_get_noresume - Bump up runtime PM usage counter of a device. 129 atomic_inc(&dev->power.usage_count); in pm_runtime_get_noresume() 133 * pm_runtime_put_noidle - Drop runtime PM usage counter of a device. [all …]
|
/openbmc/linux/tools/testing/selftests/netfilter/ |
H A D | conntrack_icmp_related.sh | 3 # check that ICMP df-needed/pkttoobig icmp are set are set as related 8 # nsclient1 -> nsrouter1 -> nsrouter2 -> nsclient2 9 # MTU 1500, except for nsrouter2 <-> nsclient2 link (1280). 15 # nat of "established" icmp-echo "connection". 17 # Kselftest framework requirement - SKIP code is 4. 21 nft --version > /dev/null 2>&1 22 if [ $? -ne 0 ];then 27 ip -Version > /dev/null 2>&1 28 if [ $? -ne 0 ];then 41 echo -n 192.168.$1.2 [all …]
|
H A D | conntrack_vrf.sh | 38 sfx=$(mktemp -u "XXXXXXXX") 39 ns0="ns0-$sfx" 40 ns1="ns1-$sfx" 50 nft --version > /dev/null 2>&1 51 if [ $? -ne 0 ];then 56 ip -Version > /dev/null 2>&1 57 if [ $? -ne 0 ];then 63 if [ $? -ne 0 ];then 71 ip netns exec $ns0 sysctl -q -w net.ipv4.conf.default.rp_filter=0 72 ip netns exec $ns0 sysctl -q -w net.ipv4.conf.all.rp_filter=0 [all …]
|
H A D | conntrack_tcp_unreplied.sh | 2 # SPDX-License-Identifier: GPL-2.0 7 # Kselftest framework requirement - SKIP code is 4. 12 sfx=$(mktemp -u "XXXXXXXX") 13 ns1="ns1-$sfx" 14 ns2="ns2-$sfx" 16 nft --version > /dev/null 2>&1 17 if [ $? -ne 0 ];then 22 ip -Version > /dev/null 2>&1 23 if [ $? -ne 0 ];then 37 echo -n 192.168.$1.2 [all …]
|
H A D | nft_flowtable.sh | 2 # SPDX-License-Identifier: GPL-2.0 7 # Originator (MTU 9000) <-Router1-> MTU 1500 <-Router2-> Responder (MTU 2000) 14 # nft_flowtable.sh -o8000 -l1500 -r2000 17 sfx=$(mktemp -u "XXXXXXXX") 18 ns1="ns1-$sfx" 19 ns2="ns2-$sfx" 20 nsr1="nsr1-$sfx" 21 nsr2="nsr2-$sfx" 23 # Kselftest framework requirement - SKIP code is 4. 31 log_netns=$(sysctl -n net.netfilter.nf_log_all_netns) [all …]
|
H A D | nft_queue.sh | 7 # Kselftest framework requirement - SKIP code is 4. 11 sfx=$(mktemp -u "XXXXXXXX") 12 ns1="ns1-$sfx" 13 ns2="ns2-$sfx" 14 nsrouter="nsrouter-$sfx" 26 rm -f "$TMPFILE0" 27 rm -f "$TMPFILE1" 28 rm -f "$TMPFILE2" "$TMPFILE3" 31 nft --version > /dev/null 2>&1 32 if [ $? -ne 0 ];then [all …]
|
H A D | nft_meta.sh | 5 # Kselftest framework requirement - SKIP code is 4. 7 sfx=$(mktemp -u "XXXXXXXX") 8 ns0="ns0-$sfx" 10 if ! nft --version > /dev/null 2>&1; then 21 ip -net "$ns0" link set lo up 22 ip -net "$ns0" addr add 127.0.0.1 dev lo 27 lastyear=$((currentyear-1)) 28 ip netns exec "$ns0" nft -f /dev/stdin <<EOF 30 counter iifcount {} 31 counter iifnamecount {} [all …]
|
H A D | nft_synproxy.sh | 2 # SPDX-License-Identifier: GPL-2.0 5 # Kselftest framework requirement - SKIP code is 4. 9 rnd=$(mktemp -u XXXXXXXX) 10 nsr="nsr-$rnd" # synproxy machine 11 ns1="ns1-$rnd" # iperf client 12 ns2="ns2-$rnd" # iperf server 21 checktool "nft --version" "run test without nft tool" 22 checktool "ip -Version" "run test without ip tool" 23 checktool "iperf3 --version" "run test without iperf3" 26 modprobe -q nf_conntrack [all …]
|
H A D | nft_nat_zones.sh | 6 # Kselftest framework requirement - SKIP code is 4. 17 # client1---. 18 # veth1-. 20 # NAT Gateway --veth0--> Server 22 # veth2-' | 23 # client2---' | 25 # clientX----vethX---' 30 # clientsaddr:10000 -> serveraddr:dport 34 sfx=$(mktemp -u "XXXXXXXX") 35 gw="ns-gw-$sfx" [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | st,stm32-timers.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mfd/st,stm32-timers.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - advanced-control timers consist of a 16-bit auto-reload counter driven 14 - general-purpose timers consist of a 16-bit or 32-bit auto-reload counter 16 - basic timers consist of a 16-bit auto-reload counter driven by a 20 - Fabrice Gasnier <fabrice.gasnier@foss.st.com> 24 const: st,stm32-timers 32 clock-names: [all …]
|
/openbmc/linux/Documentation/power/ |
H A D | runtime_pm.rst | 5 (C) 2009-2011 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc. 18 put their PM-related work items. It is strongly recommended that pm_wq be 20 them to be synchronized with system-wide power transitions (suspend to RAM, 53 The ->runtime_suspend(), ->runtime_resume() and ->runtime_idle() callbacks 57 1. PM domain of the device, if the device's PM domain object, dev->pm_domain, 60 2. Device type of the device, if both dev->type and dev->type->pm are present. 62 3. Device class of the device, if both dev->class and dev->class->pm are 65 4. Bus type of the device, if both dev->bus and dev->bus->pm are present. 69 dev->driver->pm directly (if present). 73 and bus type. Moreover, the high-priority one will always take precedence over [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-aio-multithread.c | 10 * See the COPYING.LIB file in the top-level directory. 17 #include "qemu/error-report.h" 26 static __thread int id = -1; 41 data->cb(data->arg); in ctx_run_bh_cb() 148 * is scheduled there is no guarantee that it will actually be woken up, in test_multi_co_schedule_entry() 179 /* Guarantee that each AioContext is woken up from its last wait. */ in test_multi_co_schedule() 201 /* CoMutex thread-safety. */ 205 static uint32_t counter; variable 213 counter++; in test_multi_co_mutex_entry() 218 * exits before the coroutine is woken up, causing a spurious in test_multi_co_mutex_entry() [all …]
|
/openbmc/linux/Documentation/arch/arm64/ |
H A D | amu.rst | 9 Date: 2019-09-10 16 --------------------- 23 system register interface to the counter registers and also supports an 24 optional external memory-mapped interface. 26 Version 1 of the Activity Monitors architecture implements a counter group 27 of four fixed and architecturally defined 64-bit event counters. 29 - CPU cycle counter: increments at the frequency of the CPU. 30 - Constant counter: increments at the fixed frequency of the system 32 - Instructions retired: increments with every architecturally executed 34 - Memory stall cycles: counts instruction dispatch stall cycles caused by [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_vblank.c | 1 // SPDX-License-Identifier: MIT 3 * Copyright © 2022-2023 Intel Corporation 25 * increment frame counter (ctg+) 30 * | may be shifted forward 1-3 extra lines via TRANSCONF 37 * ----va---> <-----------------vb--------------------> <--------va------------- 38 * | | <----vs-----> | 39 …* -vbs-----> <---vbs+1---> <---vbs+2---> <-----0-----> <-----1-----> <-----2--- (scanline counter … 40 …* -vbs-2---> <---vbs-1---> <---vbs-----> <---vbs+1---> <---vbs+2---> <-----0--- (scanline counter … 41 …* -vbs-2---> <---vbs-2---> <---vbs-1---> <---vbs-----> <---vbs+1---> <---vbs+2- (scanline counter … 44 * | increment frame counter (gen3/4) [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/ivytown/ |
H A D | uncore-cache.json | 9 "BriefDescription": "Counter 0 Occupancy", 13 …counter, this event allows a user to capture occupancy related information by filtering the Cb0 oc… 21 … LLC was accessed - this includes code, data, prefetches and hints coming from L2. This has numer… 30 … LLC was accessed - this includes code, data, prefetches and hints coming from L2. This has numer… 39 … LLC was accessed - this includes code, data, prefetches and hints coming from L2. This has numer… 48 … LLC was accessed - this includes code, data, prefetches and hints coming from L2. This has numer… 57 …- this includes code, data, prefetches and hints coming from L2. This has numerous filters availa… 188 "BriefDescription": "LRU Queue; Non-0 Aged Victim", 192 "PublicDescription": "How often we picked a victim that had a non-zero age", 201 …-- a clockwise ring and a counter-clockwise ring. On the left side of the ring, the UP direction … [all …]
|
/openbmc/u-boot/drivers/serial/ |
H A D | mcfuart.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * (C) Copyright 2004-2007 Freescale Semiconductor, Inc. 4 * TsiChung Liew, Tsi-Chung.Liew@freescale.com. 29 u32 counter; in mcf_serial_init_common() local 34 writeb(UART_UCR_RESET_RX, &uart->ucr); in mcf_serial_init_common() 35 writeb(UART_UCR_RESET_TX, &uart->ucr); in mcf_serial_init_common() 36 writeb(UART_UCR_RESET_ERROR, &uart->ucr); in mcf_serial_init_common() 37 writeb(UART_UCR_RESET_MR, &uart->ucr); in mcf_serial_init_common() 40 writeb(0, &uart->uimr); in mcf_serial_init_common() 43 writeb(UART_UCSR_RCS_SYS_CLK | UART_UCSR_TCS_SYS_CLK, &uart->ucsr); in mcf_serial_init_common() [all …]
|
/openbmc/linux/drivers/net/wireless/ti/wl18xx/ |
H A D | wl18xx.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 43 /* number of keys requiring extra spare mem-blocks */ 63 * is short lived, for multi-channel Tx requirements. 72 /* number of packets to queue up for a link in PS */ 75 /* number of packet to queue up for a suspended link */ 89 * link before we stop queuing up packets for it. 94 * link before we stop queuing up packets for it. 102 /* Cumulative counter of released packets per AC */ 105 /* Cumulative counter of freed packets per HLID */ 108 /* Cumulative counter of released Voice memory blocks */ [all …]
|
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/ |
H A D | ptrace-perf-hwbreak.c | 1 // SPDX-License-Identifier: GPL-2.0+ 126 attr->type = PERF_TYPE_BREAKPOINT; in perf_user_event_attr_set() 127 attr->size = sizeof(struct perf_event_attr); in perf_user_event_attr_set() 128 attr->bp_type = HW_BREAKPOINT_R; in perf_user_event_attr_set() 129 attr->bp_addr = (u64)addr; in perf_user_event_attr_set() 130 attr->bp_len = len; in perf_user_event_attr_set() 131 attr->exclude_kernel = 1; in perf_user_event_attr_set() 132 attr->exclude_hv = 1; in perf_user_event_attr_set() 140 return perf_event_open(&attr, child_pid, -1, -1, 0); in perf_watchpoint_open() 146 * A perf counter is retrieved by the read() syscall. It contains in perf_read_counter() [all …]
|
/openbmc/linux/drivers/net/ethernet/sun/ |
H A D | sunhme.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 37 #define GREG_STAT_RCNTEXP 0x00000002 /* Receive frame counter expired */ 38 #define GREG_STAT_ACNTEXP 0x00000004 /* Align-error counter expired */ 39 #define GREG_STAT_CCNTEXP 0x00000008 /* CRC-error counter expired */ 40 #define GREG_STAT_LCNTEXP 0x00000010 /* Length-error counter expired */ 42 #define GREG_STAT_CVCNTEXP 0x00000040 /* Code-violation counter expired */ 46 #define GREG_STAT_MAXPKTERR 0x00000400 /* Max-packet size error */ 47 #define GREG_STAT_NCNTEXP 0x00000800 /* Normal-collision counter expired */ 48 #define GREG_STAT_ECNTEXP 0x00001000 /* Excess-collision counter expired */ 49 #define GREG_STAT_LCCNTEXP 0x00002000 /* Late-collision counter expired */ [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-counter | 1 What: /sys/bus/counter/devices/counterX/cascade_counts_enable 3 Contact: linux-iio@vger.kernel.org 5 Indicates the cascading of Counts on Counter X. 9 What: /sys/bus/counter/devices/counterX/external_input_phase_clock_select 11 Contact: linux-iio@vger.kernel.org 14 Counter X. 16 MTCLKA-MTCLKB: 20 MTCLKC-MTCLKD: 24 What: /sys/bus/counter/devices/counterX/external_input_phase_clock_select_available 26 Contact: linux-iio@vger.kernel.org [all …]
|
/openbmc/linux/drivers/power/reset/ |
H A D | at91-poweroff.c | 5 * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 28 #define AT91_SHDW_WKMODE0 GENMASK(2, 0) /* Wake-up 0 Mode Selection */ 29 #define AT91_SHDW_CPTWK0_MAX 0xf /* Maximum Counter On Wake Up 0 */ 30 #define AT91_SHDW_CPTWK0 (AT91_SHDW_CPTWK0_MAX << 4) /* Counter On Wake Up 0 */ 32 #define AT91_SHDW_RTTWKEN BIT(16) /* Real Time Timer Wake-up Enable */ 33 #define AT91_SHDW_RTCWKEN BIT(17) /* Real Time Clock Wake-up Enable */ 36 #define AT91_SHDW_WAKEUP0 BIT(0) /* Wake-up 0 Status */ 37 #define AT91_SHDW_RTTWK BIT(16) /* Real-time Timer Wake-up */ 38 #define AT91_SHDW_RTCWK BIT(17) /* Real-time Clock Wake-up [SAM9RL] */ 65 /* Simple power-on, just bail out */ in at91_wakeup_status() [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/graniterapids/ |
H A D | pipeline.json | 21 …counter. This event can approximate elapsed time while the core was not in a halt state. It is cou… 29 …counter. This event can approximate elapsed time while the core was not in a halt state. It is cou… 36 …e the core was not in the halt state. It is counted on a dedicated fixed counter, leaving the eigh… 48 "BriefDescription": "Number of instructions retired. Fixed Counter - architectural event", 51 …- an Architectural PerfMon event. Counting continues during hardware interrupts, traps, and inside… 56 "BriefDescription": "Number of instructions retired. General Counter - architectural event", 60 …- an Architectural PerfMon event. Counting continues during hardware interrupts, traps, and inside… 72 … the Topdown Slots event that were not consumed by the back-end pipeline due to lack of back-end r… 75 …-end pipeline due to lack of back-end resources, as a result of memory subsystem delays, execution… 80 …"BriefDescription": "TMA slots available for an unhalted logical processor. Fixed counter - archit… [all …]
|
/openbmc/u-boot/tools/ |
H A D | mrvl_uart.sh | 2 # SPDX-License-Identifier: GPL-2.0 44 if [[ -z "$port" || -z "$file" ]] 46 echo -e "\nMarvell recovery image downloader for Armada SoC family." 47 echo -e "Command syntax:" 48 echo -e "\t$(basename $0) <port> <file> [2|4|8]" 49 echo -e "\tport - serial port the target board is connected to" 50 echo -e "\tfile - recovery boot image for target download" 51 echo -e "\t2|4|8 - times to increase the default serial port speed by" 52 echo -e "For example - load the image over ttyUSB0 @ 460800 baud:" 53 echo -e "$(basename $0) /dev/ttyUSB0 /tmp/flash-image.bin 4\n" [all …]
|