/openbmc/linux/net/ipv4/ |
H A D | tcp_cubic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * "CUBIC: A New TCP-Friendly High-Speed TCP Variant" 47 #define HYSTART_DELAY_THRESH(x) clamp(x, HYSTART_DELAY_MIN, HYSTART_DELAY_MAX) argument 64 /* Note parameters that are used for precomputing scale factors are read-only */ 70 MODULE_PARM_DESC(initial_ssthresh, "initial value of slow start threshold"); 79 " 1: packet-train 2: delay 3: both packet-train and delay"); 110 ca->found = 0; in bictcp_reset() 115 return tcp_sk(sk)->tcp_mstamp; in bictcp_clock_us() 123 ca->round_start = ca->last_ack = bictcp_clock_us(sk); in bictcp_hystart_reset() 124 ca->end_seq = tp->snd_nxt; in bictcp_hystart_reset() [all …]
|
H A D | tcp_lp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * TCP Low Priority (TCP-LP) 11 * the original TCP-LP implementation: 16 * o Handling calculation of One-Way-Delay (OWD) within rtt_sample, since 26 * http://www.ece.rice.edu/~akuzma/Doc/akuzma/TCP-LP.pdf 28 * http://www-ece.rice.edu/networks/TCP-LP/ 30 * 2.6.x module Authors: 34 * http://tcp-lp-mod.sourceforge.net/ 47 * @LP_WITHIN_THR: are we within threshold? 50 * TCP-LP's state flags. [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | bpf_cubic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 * "while (ca->ack_cnt > delta)" loop is changed to the equivalent 14 * "ca->ack_cnt / delta" operation. 39 #define HYSTART_DELAY_THRESH(x) clamp(x, HYSTART_DELAY_MIN, HYSTART_DELAY_MAX) argument 54 / (BICTCP_BETA_SCALE - beta); 55 /* calculate the "K" for (wmax-cwnd) = c/rtt * K^3 56 * so K = cubic_root( (wmax-cwnd)*rtt/c ) 65 * HZ < 1,000,00 (corresponding to 10 nano-second) 96 ca->cnt = 0; in bictcp_reset() 97 ca->last_max_cwnd = 0; in bictcp_reset() [all …]
|
/openbmc/linux/mm/ |
H A D | vmstat.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 * Copyright (C) 2008-2014 Christoph Lameter 43 atomic_long_set(&zone->vm_numa_event[item], 0); in zero_zone_numa_counters() 45 per_cpu_ptr(zone->per_cpu_zonestats, cpu)->vm_numa_event[item] in zero_zone_numa_counters() 121 ret[i] += this->event[i]; in sum_vm_events() 127 * The result is unavoidably approximate - it can change 150 count_vm_events(i, fold_state->event[i]); in vm_events_fold_cpu() 151 fold_state->event[i] = 0; in vm_events_fold_cpu() 178 pzstats = per_cpu_ptr(zone->per_cpu_zonestats, cpu); in fold_vm_zone_numa_events() 180 zone_numa_events[item] += xchg(&pzstats->vm_numa_event[item], 0); in fold_vm_zone_numa_events() [all …]
|
H A D | memcontrol.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* memcontrol.c - Memory Controller 38 #include <linux/page-flags.h> 39 #include <linux/backing-dev.h> 109 * Cgroups above their limits are maintained in a RB-Tree, independent of 206 /* for encoding cft->private value on file */ 214 #define MEMFILE_PRIVATE(x, val) ((x) << 16 | (val)) argument 236 (current->flags & PF_EXITING); in task_is_dying() 244 return &memcg->vmpressure; in memcg_to_vmpressure() 272 * objcg->nr_charged_bytes can't have an arbitrary byte value. in obj_cgroup_release() [all …]
|
/openbmc/linux/Documentation/input/devices/ |
H A D | atarikbd.rst | 12 provides a convenient connection point for a mouse and switch-type joysticks. 13 The ikbd processor also maintains a time-of-day clock with one second 18 The ikbd communicates with the main processor over a high speed bi-directional 41 0xF8-0xFB relative mouse position records (lsbs determined by 43 0xFC time-of-day 67 --------------------------- 72 settable threshold of motion. Regardless of the threshold, all bits of 75 significantly more than the threshold delta x or y. This may happen since no 85 ; and x is the left button state 86 X ; delta x as twos complement integer [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/input/ |
H A D | syna,rmi4.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jason A. Donenfeld <Jason@zx2c4.com> 11 - Matthias Schiffer <matthias.schiffer@ew.tq-group.com 12 - Vincent Huang <vincent.huang@tw.synaptics.com> 22 - syna,rmi4-i2c 23 - syna,rmi4-spi 28 '#address-cells': 31 '#size-cells': [all …]
|
H A D | iqs62x-keys.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/input/iqs62x-keys.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jeff LaBundy <jeff@labundy.com> 13 - $ref: input.yaml# 16 The Azoteq IQS620A, IQS621, IQS622, IQS624 and IQS625 multi-function sensors 17 feature a variety of self-capacitive, mutual-inductive and Hall-effect sens- 23 further details and examples. Sensor hardware configuration (self-capacitive 24 vs. mutual-inductive, etc.) is selected based on the device's firmware. [all …]
|
/openbmc/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8mq-zii-ultra-rmb3.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 6 /dts-v1/; 8 #include "imx8mq-zii-ultra.dtsi" 12 compatible = "zii,imx8mq-ultra-rmb3", "zii,imx8mq-ultra", "fsl,imx8mq"; 15 compatible = "simple-audio-card"; 16 simple-audio-card,name = "front"; 17 simple-audio-card,format = "i2s"; 18 simple-audio-card,bitclock-master = <&sound1_codec>; 19 simple-audio-card,frame-master = <&sound1_codec>; 20 simple-audio-card,widgets = [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A D | rx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright(c) 2003 - 2014 Intel Corporation. All rights reserved. 6 * Copyright(c) 2018, 2020-2021 Intel Corporation 18 #include "iwl-trans.h" 19 #include "iwl-io.h" 34 struct iwl_error_resp *err_resp = (void *)pkt->data; in iwlagn_rx_reply_error() 36 IWL_ERR(priv, "Error Reply type 0x%08X cmd REPLY_ERROR (0x%02X) " in iwlagn_rx_reply_error() 37 "seq 0x%04X ser 0x%08X\n", in iwlagn_rx_reply_error() 38 le32_to_cpu(err_resp->error_type), in iwlagn_rx_reply_error() 39 err_resp->cmd_id, in iwlagn_rx_reply_error() [all …]
|
/openbmc/u-boot/include/linux/ |
H A D | serial_reg.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 116 #define UART_MCR_AFE 0x20 /* Enable auto-RTS/CTS (TI16C550C/TI16C750) */ 126 #define UART_LSR_THRE 0x20 /* Transmit-hold-register empty */ 139 #define UART_MSR_DDCD 0x08 /* Delta DCD */ 141 #define UART_MSR_DDSR 0x02 /* Delta DSR */ 142 #define UART_MSR_DCTS 0x01 /* Delta CTS */ 143 #define UART_MSR_ANY_DELTA 0x0F /* Any of the delta bits! */ 222 * The Intel XScale on-chip UARTs define these bits 231 #define UART_FCR_PXAR1 0x00 /* receive FIFO threshold = 1 */ 232 #define UART_FCR_PXAR8 0x40 /* receive FIFO threshold = 8 */ [all …]
|
/openbmc/linux/drivers/input/rmi4/ |
H A D | rmi_2d_sensor.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2011-2016 Synaptics Incorporated 16 #define RMI_2D_REL_POS_MIN -128 26 struct rmi_2d_axis_alignment *axis_align = &sensor->axis_align; in rmi_2d_sensor_abs_process() 29 if (obj->type == RMI_2D_OBJECT_NONE) in rmi_2d_sensor_abs_process() 32 if (axis_align->flip_x) in rmi_2d_sensor_abs_process() 33 obj->x = sensor->max_x - obj->x; in rmi_2d_sensor_abs_process() 35 if (axis_align->flip_y) in rmi_2d_sensor_abs_process() 36 obj->y = sensor->max_y - obj->y; in rmi_2d_sensor_abs_process() 38 if (axis_align->swap_axes) in rmi_2d_sensor_abs_process() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath9k/ |
H A D | dfs.c | 2 * Copyright (c) 2008-2011 Atheros Communications Inc. 19 #include "hw-ops.h" 36 * - 20MHz chirp width over a pulse width of 50us 37 * - 5MHz chirp width over a pulse width of 100us 46 /* Threshold for difference of delta peaks */ 83 is_ctl = fft_bitmap_weight(fft->lower_bins) != 0; in ath9k_get_max_index_ht40() 84 is_ext = fft_bitmap_weight(fft->upper_bins) != 0; in ath9k_get_max_index_ht40() 88 int mag_lower = fft_max_magnitude(fft->lower_bins); in ath9k_get_max_index_ht40() 89 int mag_upper = fft_max_magnitude(fft->upper_bins); in ath9k_get_max_index_ht40() 97 return fft_max_index(fft->lower_bins); in ath9k_get_max_index_ht40() [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | serial_reg.h | 1 /* SPDX-License-Identifier: GPL-1.0+ WITH Linux-syscall-note */ 100 #define UART_FCR_R_TRIG_BITS(x) \ argument 101 (((x) & UART_FCR_TRIGGER_MASK) >> UART_FCR_R_TRIG_SHIFT) 131 #define UART_MCR_AFE 0x20 /* Enable auto-RTS/CTS (TI16C550C/TI16C750) */ 141 #define UART_LSR_THRE 0x20 /* Transmit-hold-register empty */ 154 #define UART_MSR_DDCD 0x08 /* Delta DCD */ 156 #define UART_MSR_DDSR 0x02 /* Delta DSR */ 157 #define UART_MSR_DCTS 0x01 /* Delta CTS */ 238 * The Intel XScale on-chip UARTs define these bits 247 #define UART_FCR_PXAR1 0x00 /* receive FIFO threshold = 1 */ [all …]
|
/openbmc/linux/kernel/sched/ |
H A D | psi.c | 1 // SPDX-License-Identifier: GPL-2.0 34 * In the FULL state of a given resource, all non-idle tasks are 48 * FULL means all non-idle tasks in the cgroup are delayed on the CPU 64 * unrealized due to resource contention *also* scales with non-idle 83 * we have to base our calculation on the number of non-idle tasks in 91 * FULL = (threads - min(nr_productive_tasks, threads)) / threads 97 * FULL = (256 - min(256, 256)) / 256 = 0% 99 * For the 1 out of 4 memory-delayed tasks, this yields: 103 * FULL = (4 - min(3, 4)) / 4 = 25% 106 * extension of the single-CPU model. ] [all …]
|
/openbmc/linux/arch/mips/kvm/ |
H A D | emulate.c | 23 #include <asm/cpu-info.h> 45 struct kvm_vcpu_arch *arch = &vcpu->arch; in kvm_compute_return_epc() 52 return -EINVAL; in kvm_compute_return_epc() 65 arch->gprs[insn.r_format.rd] = epc + 8; in kvm_compute_return_epc() 68 nextpc = arch->gprs[insn.r_format.rs]; in kvm_compute_return_epc() 71 return -EINVAL; in kvm_compute_return_epc() 84 if ((long)arch->gprs[insn.i_format.rs] < 0) in kvm_compute_return_epc() 93 if ((long)arch->gprs[insn.i_format.rs] >= 0) in kvm_compute_return_epc() 102 arch->gprs[31] = epc + 8; in kvm_compute_return_epc() 103 if ((long)arch->gprs[insn.i_format.rs] < 0) in kvm_compute_return_epc() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
H A D | dm.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2009-2010 Realtek Corporation.*/ 17 0x081, /* 0, -12.0dB */ 18 0x088, /* 1, -11.5dB */ 19 0x090, /* 2, -11.0dB */ 20 0x099, /* 3, -10.5dB */ 21 0x0A2, /* 4, -10.0dB */ 22 0x0AC, /* 5, -9.5dB */ 23 0x0B6, /* 6, -9.0dB */ 24 0x0C0, /* 7, -8.5dB */ [all …]
|
/openbmc/linux/drivers/net/wireless/ti/wlcore/ |
H A D | conf.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 117 * Range: 0 - 0xFFFFFFFF 122 * Packet detection threshold in the PHY. 130 * after a PS-poll has been transmitted. 132 * Range: 0 - 200000 139 * Range: 0 - 200000 147 * Range: 0 - 4096 152 * The RX Clear Channel Assessment threshold in the PHY 153 * (the energy threshold). 161 * Occupied Rx mem-blocks number which requires interrupting the host [all …]
|
/openbmc/linux/drivers/infiniband/hw/bnxt_re/ |
H A D | qplib_fp.h | 2 * Broadcom NetXtreme-E RoCE driver. 4 * Copyright (c) 2016 - 2017, Broadcom. All rights reserved. The term 42 #include <rdma/bnxt_re-abi.h> 98 u32 threshold; member 204 /* FR-PMR */ 304 #define BTH_PSN_MASK ((1 << 24) - 1) 350 #define CQE_MAX_IDX_PER_PG (CQE_CNT_PER_PG - 1) 351 #define CQE_PG(x) (((x) & ~CQE_MAX_IDX_PER_PG) / CQE_CNT_PER_PG) argument 352 #define CQE_IDX(x) ((x) & CQE_MAX_IDX_PER_PG) argument 356 (!!((hdr)->cqe_type_toggle & CQ_BASE_TOGGLE) == \ [all …]
|
/openbmc/linux/drivers/iio/light/ |
H A D | vcnl4000.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * vcnl4000.c - Support for Vishay VCNL4000/4010/4020/4040/4200 combined ambient 11 * VCNL4000/10/20 (7-bit I2C slave address 0x13) 12 * VCNL4040 (7-bit I2C slave address 0x60) 13 * VCNL4200 (7-bit I2C slave address 0x51) 56 #define VCNL4010_LOW_THR_HI 0x8a /* Low threshold, MSB */ 57 #define VCNL4010_LOW_THR_LO 0x8b /* Low threshold, LSB */ 58 #define VCNL4010_HIGH_THR_HI 0x8c /* High threshold, MSB */ 59 #define VCNL4010_HIGH_THR_LO 0x8d /* High threshold, LSB */ 65 #define VCNL4040_PS_THDL_LM 0x06 /* Proximity threshold low */ [all …]
|
/openbmc/linux/drivers/cpuidle/governors/ |
H A D | menu.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * menu.c - the menu idle governor 5 * Copyright (C) 2006-2007 Adam Belay <abelay@novell.com> 42 * ----------------------- 70 * Repeatable-interval-detector 71 * ---------------------------- 78 * threshold value, we use the average of these intervals as prediction. 81 * --------------------------- 90 * This rule-of-thumb is implemented using a performance-multiplier: 157 /* for IO wait tasks (per cpu!) we add 10x each */ in performance_multiplier() [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_rps.c | 1 // SPDX-License-Identifier: MIT 43 return rps_to_gt(rps)->i915; in rps_to_i915() 48 return rps_to_gt(rps)->uncore; in rps_to_uncore() 55 return >->uc.guc.slpc; in rps_to_slpc() 62 return intel_uc_uses_guc_slpc(>->uc); in rps_uses_slpc() 67 return mask & ~rps->pm_intrmsk_mbz; in rps_pm_sanitize_mask() 90 last = engine->stats.rps; in rps_timer() 91 engine->stats.rps = dt; in rps_timer() 99 last = rps->pm_timestamp; in rps_timer() 100 rps->pm_timestamp = timestamp; in rps_timer() [all …]
|
/openbmc/linux/drivers/md/ |
H A D | dm-ps-historical-service-time.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Keeps a time-weighted exponential moving average of the historical 20 * ns, and the weighting is pre-calculated. 25 #include "dm-path-selector.h" 32 #define DM_MSG_PREFIX "multipath historical-service-time" 70 * fixed_power - compute: x^n, in O(log n) time 72 * @x: base of the power 73 * @frac_bits: fractional bits of @x 74 * @n: power to raise @x to. 77 * function: x^n := x*x*...*x (x multiplied by itself for n times), and [all …]
|
/openbmc/linux/arch/mips/include/asm/sn/ |
H A D | ioc3.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 50 u8 fill0[0x151 - 0x142 - 1]; 56 u8 fill1[0x159 - 0x153 - 1]; 62 u8 fill2[0x16a - 0x15b - 1]; 67 u8 fill3[0x170 - 0x16b - 1]; 153 u32 pad1[(0x20000 - 0x00154) / 4]; 157 u32 pad2[(0x40000 - 0x20180) / 4]; 160 u32 ssram[(0x80000 - 0x40000) / 4]; 163 0x80000 - Access to the generic devices selected with DEV0 165 0xA0000 - Access to the generic devices selected with DEV1 [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/modules/color/ |
H A D | color_gamma.c | 45 * The idea is that our regions for X points are exponential and currently they all use 47 * is exactly 2x the one at the same index in the previous region. In other words 48 * X[i] = 2 * X[i-NUM_PTS_IN_REGION] for i>=16 49 * The other fact is that (2x)^gamma = 2^gamma * x^gamma 50 * So we compute and save x^gamma for the first 16 regions, and for every next region 66 /* one-time setup of X points */ 75 coordinates_x[MAX_HW_POINTS].x = region_size; in setup_x_points_distribution() 76 coordinates_x[MAX_HW_POINTS + 1].x = region_size; in setup_x_points_distribution() 78 for (segment = 6; segment > (6 - NUM_REGIONS); segment--) { in setup_x_points_distribution() 82 seg_offset = (segment + (NUM_REGIONS - 7)) * NUM_PTS_IN_REGION; in setup_x_points_distribution() [all …]
|