Home
last modified time | relevance | path

Searched +full:feedback +full:- +full:loop (Results 1 – 25 of 71) sorted by relevance

123

/linux/include/linux/iio/frequency/
H A Dad9523.h1 /* SPDX-License-Identifier: GPL-2.0-only */
38 * struct ad9523_channel_spec - Output channel configuration
42 * @sync_ignore_en: Ignore chip-level SYNC signal.
49 * @channel_divider: 10-bit channel divider.
106 * struct ad9523_platform_data - platform specific information
109 * @refa_diff_rcv_en: REFA differential/single-ended input selection.
110 * @refb_diff_rcv_en: REFB differential/single-ended input selection.
111 * @zd_in_diff_en: Zero Delay differential/single-ended input selection.
112 * @osc_in_diff_en: OSC differential/ single-ended input selection.
113 * @refa_cmos_neg_inp_en: REFA single-ended neg./pos. input enable.
[all …]
/linux/Documentation/mm/
H A Dmultigen_lru.rst1 .. SPDX-License-Identifier: GPL-2.0
4 Multi-Gen LRU
6 The multi-gen LRU is an alternative LRU implementation that optimizes
14 ----------
20 * Simple self-correcting heuristics
23 implementations. In the multi-gen LRU, each generation represents a
25 (time-based) common frame of reference and therefore help make better
41 choices; thus self-correction is necessary.
43 The benefits of simple self-correcting heuristics are self-evident.
46 categorized based on additional factors, and a feedback loop can
[all …]
/linux/Documentation/hwmon/
H A Dmax31785.rst10 Addresses scanned: -
17 -----------
19 The Maxim MAX31785 is a PMBus device providing closed-loop, multi-channel fan
24 For dual-rotor configurations the MAX31785A exposes the second rotor tachometer
25 readings in attributes fan[5-8]_input. By contrast the MAX31785 only exposes
26 the slowest rotor measurement, and does so in the fan[1-4]_input attributes.
29 -----------
35 ----------------
38 fan[1-4]_alarm Fan alarm.
39 fan[1-4]_fault Fan fault.
[all …]
H A Dg762.rst5 and performs closed-loop or open-loop control of the fan speed. Two
6 modes - PWM or DC - are supported by the device.
9 http://natisbad.org/NAS/ref/GMT_EDS-762_763-080710-0.2.pdf. sysfs
10 bindings are described in Documentation/hwmon/sysfs-interface.rst.
25 set desired fan speed. This only makes sense in closed-loop
44 in closed-loop control mode, if fan RPM value is 25% out
50 speed control (open-loop) via pwm1 described below, 2 for
51 automatic fan speed control (closed-loop) via fan1_target
58 get or set PWM fan control value in open-loop mode. This is an
63 when current fan speed control mode is open-loop ('pwm1_enable' set to 1),
[all …]
/linux/include/linux/clk/
H A Danalogbits-wrpll-cln28hpc.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2018-2019 SiFive, Inc.
23 * feedback mode
25 * feedback mode (not yet supported by this driver)
37 * struct wrpll_cfg - WRPLL configuration values
39 * @divf: feedback divider value (9 bits), as presented to the PLL signals
42 * @range: PLL loop filter range. See below for more information
50 * minus one. @divq is a power-of-two divider; for example, 1 =
51 * divide-by-2 and 6 = divide-by-64. 0 is an invalid @divq value.
54 * record should be zero-initialized with the exception of the @flags
/linux/sound/soc/codecs/
H A Dmt6357.c1 // SPDX-License-Identifier: GPL-2.0
9 #include <linux/dma-mapping.h>
19 regmap_write(priv->regmap, MT6357_GPIO_MODE2_CLR, MT6357_GPIO_MODE2_CLEAR_ALL); in set_playback_gpio()
22 regmap_write(priv->regmap, MT6357_GPIO_MODE2_SET, in set_playback_gpio()
32 regmap_update_bits(priv->regmap, MT6357_GPIO_DIR0, in set_playback_gpio()
46 regmap_write(priv->regmap, MT6357_GPIO_MODE3_CLR, MT6357_GPIO_MODE3_CLEAR_ALL); in set_capture_gpio()
49 regmap_write(priv->regmap, MT6357_GPIO_MODE3_SET, in set_capture_gpio()
61 regmap_update_bits(priv->regmap, MT6357_GPIO_DIR0, in set_capture_gpio()
79 stage = up ? i : MT6357_HPLOUT_STG_CTRL_VAUDP15_MAX - i; in hp_main_output_ramp()
80 regmap_update_bits(priv->regmap, MT6357_AUDDEC_ANA_CON1, in hp_main_output_ramp()
[all …]
/linux/drivers/clk/sunxi-ng/
H A Dccu_common.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Maxime Ripard <maxime.ripard@free-electrons.com>
9 #include <linux/clk-provider.h>
33 if (common->features & CCU_FEATURE_LOCK_REG) in ccu_helper_wait_for_lock()
34 addr = common->base + common->lock_reg; in ccu_helper_wait_for_lock()
36 addr = common->base + common->reg; in ccu_helper_wait_for_lock()
49 clk_hw_get_rate_range(&common->hw, &min_rate, &max_rate); in ccu_is_better_rate()
57 if (common->features & CCU_FEATURE_CLOSEST_RATE) in ccu_is_better_rate()
58 return abs(current_rate - target_rate) < abs(best_rate - target_rate); in ccu_is_better_rate()
68 * as dividers in the feedback loop) take a few cycles to work into
[all …]
/linux/drivers/clk/mediatek/
H A Dclk-pll.h1 /* SPDX-License-Identifier: GPL-2.0-only */
10 #include <linux/clk-provider.h>
56 * a divider in the PLL feedback loop which consists of 7 bits for the integer
58 * have a 3 bit power-of-two post divider.
/linux/Documentation/scheduler/
H A Dsched-util-clamp.rst1 .. SPDX-License-Identifier: GPL-2.0
42 As an example, a game can use util clamp to form a feedback loop with its
50 dynamic feedback loop offers a great flexibility to ensure best user experience
57 foreground, top-app, etc. Util clamp can be used to constrain how much
60 the ones belonging to the currently active app (top-app group). Beside this
65 1. The big cores are free to run top-app tasks immediately. top-app
97 User space can form a feedback loop with the thermal subsystem too to ensure
106 Note that by design RT tasks don't have per-task PELT signal and must always
114 See :ref:`section 3.4 <uclamp-default-values>` for default values and
115 :ref:`3.4.1 <sched-util-clamp-min-rt-default>` on how to change RT tasks
[all …]
/linux/drivers/input/
H A Dff-memless.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Force feedback support for memoryless devices
19 #include <linux/fixp-arith.h>
23 MODULE_DESCRIPTION("Force feedback support for memoryless devices");
38 int count; /* loop count of the effect */
59 switch (effect->type) { in get_envelope()
61 return &effect->u.periodic.envelope; in get_envelope()
64 return &effect->u.constant.envelope; in get_envelope()
76 const struct ff_envelope *envelope = get_envelope(state->effect); in calculate_next_time()
79 if (envelope->attack_length) { in calculate_next_time()
[all …]
/linux/drivers/pci/hotplug/
H A Dcpqphp_nvram.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
11 * Send feedback to <greg@kroah.com>
92 * greg k-h
128 * returns 0 for non-Compaq ROM, 1 for Compaq ROM
149 dbg("%s - returned %d\n", __func__, result); in check_for_compaq_ROM()
161 return -ENODEV; in access_EV()
194 return -ENODEV; in load_HRT()
229 u8 loop; in store_HRT() local
254 rc = add_byte(&pFill, 1 + ctrl->push_flag, &usedbytes, &available); in store_HRT()
[all …]
H A Dcpqphp_core.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 2001 Greg Kroah-Hartman <greg@kroah.com>
11 * Send feedback to <greg@kroah.com>
13 * Jan 12, 2003 - Added 66/100/133MHz PCI-X support,
51 #define DRIVER_AUTHOR "Dan Zink <dan.zink@compaq.com>, Greg Kroah-Hartman <greg@kroah.com>"
68 return (readb(slot->p_sm_slot + SMBIOS_SLOT_WIDTH) == 0x06) ? 1 : 0; in is_slot64bit()
73 return (readb(slot->p_sm_slot + SMBIOS_SLOT_TYPE) == 0x0E) ? 1 : 0; in is_slot66mhz()
77 * detect_SMBIOS_pointer - find the System Management BIOS Table in mem region.
90 endp = (end - sizeof(u32) + 1); in detect_SMBIOS_pointer()
115 * init_SERR - Initializes the per slot SERR generation.
[all …]
H A Dibmphp_core.c1 // SPDX-License-Identifier: GPL-2.0+
7 * Copyright (C) 2001,2003 Greg Kroah-Hartman (greg@kroah.com)
8 * Copyright (C) 2001-2003 IBM Corp.
12 * Send feedback to <gregkh@us.ibm.com>
58 debug("options = %x\n", slot_cur->ctrl->options); in get_cur_bus_info()
59 debug("revision = %x\n", slot_cur->ctrl->revision); in get_cur_bus_info()
61 if (READ_BUS_STATUS(slot_cur->ctrl)) in get_cur_bus_info()
67 slot_cur->bus_on->current_speed = CURRENT_BUS_SPEED(slot_cur->busstatus); in get_cur_bus_info()
68 if (READ_BUS_MODE(slot_cur->ctrl)) in get_cur_bus_info()
69 slot_cur->bus_on->current_bus_mode = in get_cur_bus_info()
[all …]
H A Drpaphp_core.c1 // SPDX-License-Identifier: GPL-2.0+
3 * PCI Hot Plug Controller Driver for RPA-compliant PPC64 platform.
8 * Send feedback to <lxie@us.ibm.com>
23 #include <asm/pci-bridge.h> /* for pci_controller */
46 * set_attention_status - set attention LED
50 * echo 0 > attention -- set LED OFF
51 * echo 1 > attention -- set LED ON
52 * echo 2 > attention -- set LED ID(identify, light is blinking)
69 rc = rtas_set_indicator(DR_INDICATOR, slot->index, value); in set_attention_status()
71 slot->attention_status = value; in set_attention_status()
[all …]
/linux/drivers/video/fbdev/kyro/
H A DSTG4000InitDevice.c101 /* Program SD-RAM interface */ in InitSDRAMRegisters()
134 * The method calculates ~ +- 0.4% (1/256) in ProgramClock()
136 ulMinClock = coreClock - (coreClock >> 8); in ProgramClock()
147 /* loop for pre-divider from min to max */ in ProgramClock()
149 /* estimate required feedback multiplier */ in ProgramClock()
157 F--; in ProgramClock()
186 …ulPhaseScore = (((refClock / R) - (refClock / STG4K3_PLL_MAX_R))) / ((refClock - (refClock / STG4K… in ProgramClock()
188 …ulVcoScore = ((ulVCO - STG4K3_PLL_MINR_VCO)) / ((STG4K3_PLL_MAXR_VCO - STG4K3_PLL_MINR_VCO) >> 10); in ProgramClock()
200 /*-------------------------------------------------------------------------- in ProgramClock()
204 The way this ends up is that we choose the first value in the loop anyway in ProgramClock()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_clock_source.c2 * Copyright 2012-15 Advanced Micro Devices, Inc.
42 (clk_src->regs->reg)
45 clk_src->base.ctx
48 calc_pll_cs->ctx->logger
50 struct calc_pll_clock_source *calc_pll_cs = &clk_src->calc_pll
54 clk_src->cs_shift->field_name, clk_src->cs_mask->field_name
76 ss_parm = clk_src->dvi_ss_params; in get_ss_data_entry()
77 entrys_num = clk_src->dvi_ss_params_cnt; in get_ss_data_entry()
81 ss_parm = clk_src->hdmi_ss_params; in get_ss_data_entry()
82 entrys_num = clk_src->hdmi_ss_params_cnt; in get_ss_data_entry()
[all …]
/linux/samples/bpf/
H A Dxdp_sample.bpf.c1 // SPDX-License-Identifier: GPL-2.0
51 case -EINVAL: in xdp_get_err_key()
53 case -ENETDOWN: in xdp_get_err_key()
55 case -EMSGSIZE: in xdp_get_err_key()
57 case -EOPNOTSUPP: in xdp_get_err_key()
59 case -ENOSPC: in xdp_get_err_key()
83 NO_TEAR_INC(rec->dropped); in xdp_redirect_collect_stat()
85 NO_TEAR_INC(rec->processed); in xdp_redirect_collect_stat()
88 * Returning 1 here would allow e.g. a perf-record tracepoint in xdp_redirect_collect_stat()
90 * in-practice as stopping perf-record also unload this in xdp_redirect_collect_stat()
[all …]
/linux/arch/powerpc/boot/
H A D4xx.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Copyright 2002-2005 MontaVista Software Inc.
34 memsize -= 4096; in chip_11_errata()
162 * Some U-Boot versions set the number of chipselects to two
181 model[sizeof(model)-1] = 0; in ibm4xx_denali_get_cs()
236 row = max_row - row; in ibm4xx_denali_fixup_memsize()
244 col = max_col - col; in ibm4xx_denali_fixup_memsize()
285 ; /* loop until reset takes effect */ in ibm4xx_quiesce_eth()
314 setprop(devp, "ranges", ranges, (p - ranges) * sizeof(u32)); in ibm4xx_fixup_ebc_ranges()
414 /* Feedback path */ in __ibm440eplike_fixup_clocks()
[all …]
/linux/kernel/bpf/
H A Dcpumap.c1 // SPDX-License-Identifier: GPL-2.0-only
14 * CPU will do SKB-allocation and call the normal network stack.
20 * basically allows for 10G wirespeed pre-filtering via bpf.
40 * will maximum be stored/queued for one driver ->poll() call. It is
46 #define CPU_MAP_BULK_SIZE 8 /* 8 == one cacheline on 64-bit archs */
62 /* XDP can run multiple RX-ring queues, need __percpu enqueue store */
65 /* Queue with potential multi-producers, and single-consumer kthread */
85 u32 value_size = attr->value_size; in cpu_map_alloc()
89 if (attr->max_entries == 0 || attr->key_size != 4 || in cpu_map_alloc()
92 attr->map_flags & ~BPF_F_NUMA_NODE) in cpu_map_alloc()
[all …]
/linux/drivers/extcon/
H A Dextcon-intel-cht-wc.c1 // SPDX-License-Identifier: GPL-2.0
7 * Copyright (C) 2013-2015 Intel Corporation. All rights reserved.
10 #include <linux/extcon-provider.h>
24 #include "extcon-intel.h"
67 /* 0 - open drain, 1 - regular push-pull output */
69 /* 0 - pin is controlled by SW, 1 - by HW */
125 * According to the spec. we should read the USB-ID pin ADC value here in cht_wc_extcon_get_id()
126 * to determine the resistance of the used pull-down resister and then in cht_wc_extcon_get_id()
129 * a combination of a charging port with one or more USB-A ports, so in cht_wc_extcon_get_id()
131 * is hard to read / badly-worded so some of them actually indicate in cht_wc_extcon_get_id()
[all …]
/linux/net/sunrpc/auth_gss/
H A Dgss_krb5_keys.c73 * krb5_nfold - n-fold function
79 * This is the n-fold function as described in rfc3961, sec 5.1
104 for (i = ulcm-1; i >= 0; i--) { in krb5_nfold()
109 ((inbits << 3) - 1) in krb5_nfold()
115 + ((inbits - (i % inbits)) << 3) in krb5_nfold()
119 byte += (((in[((inbits - 1) - (msbit >> 3)) % inbits] << 8)| in krb5_nfold()
120 (in[((inbits) - (msbit >> 3)) % inbits])) in krb5_nfold()
134 for (i = outbits - 1; i >= 0; i--) { in krb5_nfold()
158 int ret = -EINVAL; in krb5_DK()
160 keybytes = gk5e->keybytes; in krb5_DK()
[all …]
/linux/kernel/trace/
H A Dtrace_hwlat.c1 // SPDX-License-Identifier: GPL-2.0
3 * trace_hwlat.c - A simple Hardware Latency detector.
20 * Although certain hardware-inducing latencies are necessary (for example,
22 * and remote management) they can wreak havoc upon any OS-level performance
23 * guarantees toward low-latency, especially when the OS is not even made
27 * sampling the built-in CPU timer, looking for discontiguous readings.
31 * environment requiring any kind of low-latency performance
34 * Copyright (C) 2008-2009 Jon Masters, Red Hat, Inc. <jcm@redhat.com>
35 * Copyright (C) 2013-2016 Steven Rostedt, Red Hat, Inc. <srostedt@redhat.com>
37 * Includes useful feedback from Clark Williams <williams@redhat.com>
[all …]
/linux/Documentation/admin-guide/thermal/
H A Dintel_powerclamp.rst6 - Arjan van de Ven <arjan@linux.intel.com>
7 - Jacob Pan <jacob.jun.pan@linux.intel.com>
12 - Goals and Objectives
15 - Idle Injection
16 - Calibration
19 - Effectiveness and Limitations
20 - Power vs Performance
21 - Scalability
22 - Calibration
23 - Comparison with Alternative Techniques
[all …]
/linux/drivers/regulator/
H A Dbd718x7-regulator.c1 // SPDX-License-Identifier: GPL-2.0
3 // bd71837-regulator.c ROHM BD71837MWV/BD71847MWV regulator driver
10 #include <linux/mfd/rohm-bd718x7.h>
51 * controlled by software - or by PMIC internal HW state machine. Whether
52 * regulator should be under SW or HW control can be defined from device-tree.
103 * Note for next hacker - these PMICs have a register where the HW state can be
104 * read. If assuming RUN appears to be false in your use-case - you can
123 ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val); in bd71837_get_buck34_enable_hwctrl()
138 * guarantee minimum of 1ms sleep - it shouldn't matter if we in voltage_change_done()
143 ret = regmap_clear_bits(rdev->regmap, BD718XX_REG_MVRFLTMASK2, in voltage_change_done()
[all …]
/linux/net/dccp/
H A Dinput.c1 // SPDX-License-Identifier: GPL-2.0-or-later
19 /* rate-limit for syncs in reply to sequence-invalid packets; RFC 4340, 7.5.4 */
24 __skb_pull(skb, dccp_hdr(skb)->dccph_doff * 4); in dccp_enqueue_skb()
25 __skb_queue_tail(&sk->sk_receive_queue, skb); in dccp_enqueue_skb()
27 sk->sk_data_ready(sk); in dccp_enqueue_skb()
38 sk->sk_shutdown = SHUTDOWN_MASK; in dccp_fin()
47 switch (sk->sk_state) { in dccp_rcv_close()
50 * - CLOSED (may be a late or duplicate packet) in dccp_rcv_close()
51 * - PASSIVE_CLOSEREQ (the peer has sent a CloseReq earlier) in dccp_rcv_close()
52 * - RESPOND (already handled by dccp_check_req) in dccp_rcv_close()
[all …]

123