/linux/Documentation/accounting/ |
H A D | psi.rst | 4 PSI - Pressure Stall Information 14 either play it safe and under-utilize their hardware resources, or 23 scarcity aids users in sizing workloads to hardware--or provisioning 38 respective file in /proc/pressure/ -- cpu, memory, and io. 48 The "full" line indicates the share of time in which all non-idle 70 Users can register triggers and use poll() to be woken up when resource 74 time window, e.g. 100ms of total stall time within any 500ms window to 80 used to wait for trigger events using select(), poll() or epoll(). 86 would add 150ms threshold for partial memory stall measured within 88 would add 50ms threshold for full io stall measured within 1sec time window. [all …]
|
/linux/tools/testing/selftests/damon/ |
H A D | damos_apply_interval.py | 2 # SPDX-License-Identifier: GPL-2.0 14 # Set quota up to 1 MiB per 100 ms 22 # >= 25% access rate, >= 200ms age 23 nr_accesses=[5, 20], age=[2, 2**64 - 1]), 24 # aggregation interval (100 ms) is used 26 # use 10ms apply interval 29 # >= 25% access rate, >= 200ms age 30 nr_accesses=[5, 20], age=[2, 2**64 - 1]), 31 # explicitly set 10 ms apply interval 44 while proc.poll() == None:
|
H A D | damos_quota.py | 2 # SPDX-License-Identifier: GPL-2.0 14 # Set quota up to 1 MiB per 100 ms 16 quota_reset_interval = 100 # 100 ms 23 # >= 25% access rate, >= 200ms age 24 nr_accesses=[5, 20], age=[2, 2**64 - 1]), 38 while proc.poll() == None:
|
H A D | sysfs_update_schemes_tried_regions_wss_estimation.py | 2 # SPDX-License-Identifier: GPL-2.0 19 # >= 25% access rate, >= 200ms age 20 nr_accesses=[5, 20], age=[2, 2**64 - 1]))] # schemes 30 while proc.poll() == None: 44 error_rate = abs(sample - sz_region) / sz_region 45 print('%d-th percentile (%d) error %f' % 48 print('the error rate is not acceptable (> %f)' %
|
/linux/drivers/net/wireless/ti/wlcore/ |
H A D | conf.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 117 * Range: 0 - 0xFFFFFFFF 130 * after a PS-poll has been transmitted. 132 * Range: 0 - 200000 139 * Range: 0 - 200000 147 * Range: 0 - 4096 161 * Occupied Rx mem-blocks number which requires interrupting the host 177 * Max time in msec the FW may delay RX-Complete interrupt. 179 * Range: 1 - 100 203 * of the 22Mbps rate. There is a FW limitation on 12 rates so we must drop [all …]
|
/linux/drivers/input/misc/ |
H A D | kxtj9.c | 1 // SPDX-License-Identifier: GPL-2.0-only 53 * The following table lists the maximum appropriate poll interval for each 54 * available output data rate. 84 .addr = tj9->client->addr, in kxtj9_i2c_read() 85 .flags = tj9->client->flags, in kxtj9_i2c_read() 90 .addr = tj9->client->addr, in kxtj9_i2c_read() 91 .flags = tj9->client->flags | I2C_M_RD, in kxtj9_i2c_read() 97 return i2c_transfer(tj9->client->adapter, msgs, 2); in kxtj9_i2c_read() 108 dev_err(&tj9->client->dev, "accelerometer data read failed\n"); in kxtj9_report_acceleration_data() 110 x = le16_to_cpu(acc_data[tj9->pdata.axis_map_x]); in kxtj9_report_acceleration_data() [all …]
|
/linux/include/uapi/linux/ |
H A D | fd.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28 #define FD_SECTBASE(floppy) ((((floppy)->stretch & FD_SECTBASEMASK) >> 2) ^ 1) 32 rate, /* data rate. |= 0x40 for perpendicular */ member 35 #define FD_SIZECODE(floppy) (((((floppy)->rate&FD_SIZECODEMASK)>> 3)+ 2) %8) 36 #define FD_SECTSIZE(floppy) ( (floppy)->rate & FD_2M ? \ 40 spec1, /* stepping rate, head unload time */ 50 /* clear user-defined parameters */ 54 /* set user-defined parameters for current media */ 100 * ultra cheap floppies ;-) 130 /* Spec2 is (HLD<<1 | ND), where HLD is head load time (1=2ms, 2=4 ms [all …]
|
/linux/drivers/input/mouse/ |
H A D | synaptics_i2c.c | 29 * after soft reset, we should wait for 1 ms 33 /* and after hard reset, we should wait for max 500ms */ 182 * reduce the polling rate to NO_DATA_SLEEP_MSECS 212 /* Control Polling Rate */ 215 MODULE_PARM_DESC(scan_rate, "Polling rate in times/sec. Default = 80"); 232 touch->scan_ms = MSEC_PER_SEC / scan_rate; in set_scan_rate() 233 touch->scan_rate_param = scan_rate; in set_scan_rate() 279 /* set Report Rate to Device Highest (>=80) and Sleep to normal */ in synaptics_i2c_config() 311 dev_err(&client->dev, "Unable to reset device\n"); in synaptics_i2c_reset_config() 316 dev_err(&client->dev, "Unable to config device\n"); in synaptics_i2c_reset_config() [all …]
|
H A D | psmouse-base.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 1999-2002 Vojtech Pavlik 6 * Copyright (c) 2003-2004 Dmitry Torokhov 62 module_param_named(rate, psmouse_rate, uint, 0644); 63 MODULE_PARM_DESC(rate, "Report rate, in reports per second."); 84 PSMOUSE_DEFINE_ATTR(rate, S_IWUSR | S_IRUGO, 85 (void *) offsetof(struct psmouse, rate), 110 * (connecting, disconnecting, changing rate or resolution via 111 * sysfs). We could use a per-device semaphore but since there 137 x = packet[1] ? packet[1] - ((packet[0] << 4) & 0x100) : 0; in psmouse_report_standard_motion() [all …]
|
/linux/drivers/iio/pressure/ |
H A D | dps310.c | 1 // SPDX-License-Identifier: GPL-2.0+ 14 * - Optionally support the FIFO 60 /* Make sure sleep time is <= 30ms for usleep_range */ 62 /* Silently handle error in rate value here */ 119 rc = regmap_bulk_read(data->regmap, DPS310_COEF_BASE, coef, in dps310_get_coefs() 126 * numbers are 12-bit 2's complement numbers. in dps310_get_coefs() 129 data->c0 = sign_extend32(c0, 11); in dps310_get_coefs() 132 data->c1 = sign_extend32(c1, 11); in dps310_get_coefs() 140 data->c00 = sign_extend32(c00, 19); in dps310_get_coefs() 143 data->c10 = sign_extend32(c10, 19); in dps310_get_coefs() [all …]
|
/linux/drivers/media/usb/dvb-usb/ |
H A D | dvb-usb-remote.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* dvb-usb-remote.c is part of the DVB USB library. 4 * Copyright (C) 2004-6 Patrick Boettcher (patrick.boettcher@posteo.de) 5 * see dvb-usb-init.c for copyright information. 7 …* This file contains functions for initializing the input-device and for handling remote-control-q… 9 #include "dvb-usb-common.h" 20 if (ke->flags & INPUT_KEYMAP_BY_INDEX) { in legacy_dvb_usb_get_keymap_index() 21 index = ke->index; in legacy_dvb_usb_get_keymap_index() 49 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in legacy_dvb_usb_getkeycode() 50 unsigned int keymap_size = d->props.rc.legacy.rc_map_size; in legacy_dvb_usb_getkeycode() [all …]
|
/linux/drivers/staging/rtl8723bs/hal/ |
H A D | rtl8723b_cmd.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved. 30 } while ((!read_down) && (retry_cnts--)); in _is_fw_read_cmd_down() 39 *| 31 - 8 |7-5 | 4 - 0 | 41 *| 31-0 | 57 if (mutex_lock_interruptible(&(adapter_to_dvobj(padapter)->h2c_fwcmd_mutex))) in FillH2CCmd8723B() 66 if (padapter->bSurpriseRemoved) in FillH2CCmd8723B() 71 h2c_box_num = pHalData->LastHMEBoxNum; in FillH2CCmd8723B() 80 memcpy((u8 *)(&h2c_cmd_ex), pCmdBuffer+3, CmdLen-3); in FillH2CCmd8723B() 93 pHalData->LastHMEBoxNum = (h2c_box_num+1) % MAX_H2C_BOX_NUMS; in FillH2CCmd8723B() [all …]
|
/linux/drivers/gpu/drm/i915/ |
H A D | i915_perf_types.h | 1 /* SPDX-License-Identifier: MIT */ 13 #include <linux/poll.h> 101 * struct i915_perf_stream_ops - the OPs to support a specific stream type 144 * Only write complete records; returning -%ENOSPC if there isn't room 148 * -%ENOSPC or -%EFAULT, even though these may be squashed before 165 * struct i915_perf_stream - state for a single open stream FD 203 * @ctx: %NULL if measuring system-wide across all contexts or a 258 * (e.g. during a read() or poll()). 305 * hrtimer callbacks (5ms period) and that reads typically only 346 * struct i915_oa_ops - Gen specific implementation of an OA unit stream [all …]
|
/linux/Documentation/driver-api/thermal/ |
H A D | intel_dptf.rst | 1 .. SPDX-License-Identifier: GPL-2.0 12 ------------ 31 ---------------------------- 43 "42A441D6-AE6A-462b-A84B-4A8CE79027D3" : Passive 1 45 "3A95C389-E4B8-4629-A526-C52C88626BAE" : Active 47 "97C68AE7-15FA-499c-B8C9-5DA81D606E0A" : Critical 49 "63BE270F-1C11-48FD-A6F7-3AF253FF3E2D" : Adaptive performance 51 "5349962F-71E6-431D-9AE8-0A635B710AEE" : Emergency call 53 "9E04115A-AE87-4D1C-9500-0F3E340BFE75" : Passive 2 55 "F5A35014-C209-46A4-993A-EB56DE7530A1" : Power Boss [all …]
|
/linux/drivers/net/wireless/ath/ath10k/ |
H A D | wmi.h | 1 /* SPDX-License-Identifier: ISC */ 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. 5 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 6 * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved. 29 * 1. Add new WMI commands ONLY within the specified range - 0x9000 - 0x9fff 45 * variable is already 4-byte aligned by virtue of being a u32 527 * for wmi_services is 64 as target is using only 4-bits of each 32-bit 533 __le32_to_cpu((wmi_svc_bmap)[((svc_id) - (len)) / 28]) & \ 534 BIT(((((svc_id) - (len)) % 28) & 0x1f) + 4)) [all …]
|
H A D | htt_rx.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. 38 hash_for_each_possible(ar->htt.rx_ring.skb_table, rxcb, hlist, paddr) in ath10k_htt_rx_find_skb_paddr() 39 if (rxcb->paddr == paddr) in ath10k_htt_rx_find_skb_paddr() 53 if (htt->rx_ring.in_ord_rx) { in ath10k_htt_rx_ring_free() 54 hash_for_each_safe(htt->rx_ring.skb_table, i, n, rxcb, hlist) { in ath10k_htt_rx_ring_free() 56 dma_unmap_single(htt->ar->dev, rxcb->paddr, in ath10k_htt_rx_ring_free() 57 skb->len + skb_tailroom(skb), in ath10k_htt_rx_ring_free() 59 hash_del(&rxcb->hlist); in ath10k_htt_rx_ring_free() [all …]
|
/linux/Documentation/driver-api/media/drivers/ |
H A D | vidtv.rst | 1 .. SPDX-License-Identifier: GPL-2.0 10 ---------- 18 - A fake tuner driver, which will report a bad signal quality if the chosen 22 - A fake demod driver, which will constantly poll the fake signal quality 26 - A fake bridge driver, which is the module responsible for modprobing the 31 - Code responsible for encoding a valid MPEG Transport Stream, which is then 33 For now, we have a single, audio-only channel containing a single MPEG 34 Elementary Stream, which in turn contains a SMPTE 302m encoded sine-wave. 39 -------------- 45 - Enable **DVB_TEST_DRIVERS**, then [all …]
|
/linux/drivers/hwmon/ |
H A D | stts751.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2016-2017 Istituto Italiano di Tecnologia - RBCS - EDL 17 #include <linux/hwmon-sysfs.h> 32 0x48, 0x49, 0x38, 0x39, /* STTS751-0 */ 33 0x4A, 0x4B, 0x3A, 0x3B, /* STTS751-1 */ 65 * Possible update intervals are (in mS): 68 * approx value in mS. 104 * vice-vers. They are (mostly) taken from lm90 driver. Unit is in mC. 120 switch (priv->interval) { in stts751_adjust_resolution() 135 if (priv->res == res) in stts751_adjust_resolution() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A D | tx.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2012-2014, 2018-2025 Intel Corporation 4 * Copyright (C) 2016-2017 Intel Deutschland GmbH 11 * enum iwl_tx_flags - bitmasks for tx_flags in TX command 12 * @TX_CMD_FLG_PROT_REQUIRE: use RTS or CTS-to-self to protect the frame 28 * Should be set for mgmt, non-QOS data, mcast, bcast and in scan command 29 * @TX_CMD_FLG_MORE_FRAG: this frame is non-last MPDU 38 * @TX_CMD_FLG_DUR: disable duration overwriting used in PS-Poll Assoc-id 73 * enum iwl_tx_cmd_flags - bitmasks for tx_flags in TX command for 22000 74 * @IWL_TX_FLAGS_CMD_RATE: use rate from the TX command [all …]
|
/linux/Documentation/driver-api/ |
H A D | xillybus.rst | 10 - Introduction 11 -- Background 12 -- Xillybus Overview 14 - Usage 15 -- User interface 16 -- Synchronization 17 -- Seekable pipes 19 - Internals 20 -- Source code organization 21 -- Pipe attributes [all …]
|
/linux/drivers/tty/serial/ |
H A D | amba-pl011.c | 1 // SPDX-License-Identifier: GPL-2.0+ 9 * Copyright (C) 2010 ST-Ericsson SA 11 * This is a generic driver for ARM AMBA-type serial ports. They 12 * have a lot of 16550-like features, but are not register compatible. 35 #include <linux/dma-mapping.h> 82 /* The size of the array - must be last */ 268 unsigned int fifosize; /* vendor-specific */ 269 unsigned int fixed_baud; /* vendor-set fixed baud rate */ 292 return uap->reg_offset[reg]; in pl011_reg_to_offset() 298 void __iomem *addr = uap->port.membase + pl011_reg_to_offset(uap, reg); in pl011_read() [all …]
|
/linux/drivers/net/phy/ |
H A D | sfp.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include <linux/mdio/mdio-i2c.h> 149 "mod-def0", 151 "tx-fault", 152 "tx-disable", 153 "rate-select0", 154 "rate-select1", 166 /* t_start_up (SFF-8431) or t_init (SFF-8472) is the time required for a 167 * non-cooled module to initialise its laser safety circuitry. We wait 199 * The SFF-8472 specifies t_serial ("Time from power on until module is [all …]
|
/linux/drivers/net/ethernet/marvell/ |
H A D | sky2.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 30 /* Yukon-2 */ 32 PCI_Y2_PIG_ENA = 1<<31, /* Enable Plug-in-Go (YUKON-2) */ 33 PCI_Y2_DLL_DIS = 1<<30, /* Disable PCI DLL (YUKON-2) */ 34 PCI_SW_PWR_ON_RST= 1<<30, /* SW Power on Reset (Yukon-EX) */ 35 PCI_Y2_PHY2_COMA = 1<<29, /* Set PHY 2 to Coma Mode (YUKON-2) */ 36 PCI_Y2_PHY1_COMA = 1<<28, /* Set PHY 1 to Coma Mode (YUKON-2) */ 37 PCI_Y2_PHY2_POWD = 1<<27, /* Set PHY 2 to Power Down (YUKON-2) */ 38 PCI_Y2_PHY1_POWD = 1<<26, /* Set PHY 1 to Power Down (YUKON-2) */ 60 /* PCI_OUR_REG_3 32 bit Our Register 3 (Yukon-ECU only) */ [all …]
|
/linux/drivers/net/wireless/ath/ath9k/ |
H A D | ar9003_phy.c | 2 * Copyright (c) 2010-2011 Atheros Communications Inc. 39 { -4, -2, 0, 2, 4, 6, 8, 10, 12 }; /* lvl 0-8, default 2 */ 43 { -6, -4, -2, 0, 2, 4, 6, 8 }; /* lvl 0-7, default 3 */ 125 * ar9003_hw_set_channel - set channel on single-chip device 129 * This is the function to change channel on single-chip devices, that is 163 if (ah->is_clk_25mhz) in ar9003_hw_set_channel() 172 if (ah->is_clk_25mhz) { in ar9003_hw_set_channel() 187 ah->is_clk_25mhz) { in ar9003_hw_set_channel() 223 ah->curchan = chan; in ar9003_hw_set_channel() 229 * ar9003_hw_spur_mitigate_mrc_cck - convert baseband spur frequency [all …]
|
/linux/drivers/iio/magnetometer/ |
H A D | rm3100-core.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * PNI RM3100 3-axis geomagnetic sensor driver core. 8 * <https://www.pnicorp.com/download/rm3100-user-manual/> 34 /* Poll Measurement Mode register. */ 47 /* TiMe Rate Configuration register. */ 134 regmap_write(data->regmap, RM3100_REG_POLL, 0); in rm3100_thread_fn() 145 complete(&data->measuring_done); in rm3100_irq_handler() 147 iio_trigger_poll(data->drdy_trig); in rm3100_irq_handler() 154 struct regmap *regmap = data->regmap; in rm3100_wait_measurement() 162 * can reach 1.7ms, it may be possible for data to arrive just in rm3100_wait_measurement() [all …]
|