/linux/arch/arm/boot/dts/microchip/ |
H A D | at91-natte.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * at91-natte.dts - Device Tree include file for the Natte board 11 mux: mux-controller { 12 compatible = "gpio-mux"; 13 #mux-control-cells = <0>; 15 mux-gpios = <&ioexp 0 GPIO_ACTIVE_HIGH>, 20 batntc-mux { 21 compatible = "io-channel-mux"; 22 io-channels = <&adc 5>; 23 io-channel-names = "parent"; [all …]
|
/linux/Documentation/devicetree/bindings/input/ |
H A D | clps711x-keypad.txt | 4 - compatible: Shall contain "cirrus,ep7209-keypad". 5 - row-gpios: List of GPIOs used as row lines. 6 - poll-interval: Poll interval time in milliseconds. 7 - linux,keymap: The definition can be found at 8 bindings/input/matrix-keymap.txt. 11 - autorepeat: Enable autorepeat feature. 15 compatible = "cirrus,ep7312-keypad", "cirrus,ep7209-keypad"; 17 poll-interval = <120>; 18 row-gpios = <&porta 0 0>,
|
H A D | gpio-keys.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/input/gpio-keys.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rob Herring <robh@kernel.org> 15 - gpio-keys 16 - gpio-keys-polled 23 poll-interval: true 26 …"^(button|event|key|switch|(button|event|key|switch)-[a-z0-9-]+|[a-z0-9-]+-(button|event|key|switc… 35 - items: [all …]
|
H A D | input.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Dmitry Torokhov <dmitry.torokhov@gmail.com> 21 $ref: /schemas/types.yaml#/definitions/uint32-array 34 linux,input-type: 37 - 1 # EV_KEY 38 - 2 # EV_REL 39 - 3 # EV_ABS 40 - 5 # EV_SW [all …]
|
H A D | fsl,mpr121-touchkey.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/input/fsl,mpr121-touchkey.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Dmitry Torokhov <dmitry.torokhov@gmail.com> 15 https://www.nxp.com/docs/en/data-sheet/MPR121.pdf 18 - $ref: input.yaml# 21 - required: [ interrupts ] 22 - required: [ poll-interval ] 26 const: fsl,mpr121-touchkey [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 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() 111 y = le16_to_cpu(acc_data[tj9->pdata.axis_map_y]); in kxtj9_report_acceleration_data() [all …]
|
/linux/Documentation/virt/kvm/ |
H A D | halt-polling.rst | 1 .. SPDX-License-Identifier: GPL-2.0 16 the order of a few micro-seconds, although performance benefits are workload 18 interval or some other task on the runqueue is runnable the scheduler is 27 The powerpc kvm-hv specific case is implemented in: 31 Halt Polling Interval 34 The maximum time for which to poll before invoking the scheduler, referred to 35 as the halt polling interval, is increased and decreased based on the perceived 39 kvm_vcpu->halt_poll_ns 41 or in the case of powerpc kvm-hv, in the vcore struct: 43 kvmppc_vcore->halt_poll_ns [all …]
|
/linux/drivers/hwmon/ |
H A D | aht10.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * aht10.c - Linux hwmon driver for AHT10/AHT20 Temperature and Humidity sensors 21 * Poll intervals (in milliseconds) 61 * struct aht10_data - All the data required to operate an AHT10/AHT20 chip 65 * @min_poll_interval: the minimum poll interval 66 * While the poll rate limit is not 100% necessary, 98 * aht10_init() - Initialize an AHT10/AHT20 chip 108 struct i2c_client *client = data->client; in aht10_init() 119 return -ENODATA; in aht10_init() 122 return -EBUSY; in aht10_init() [all …]
|
H A D | lochnagar-hwmon.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2016-2019 Cirrus Logic, Inc. and 13 #include <linux/hwmon-sysfs.h> 57 * float_to_long - Convert ieee754 reading from hardware to an integer 66 * will convert that into an integer in a smaller unit such as micro-amps 67 * or milli-celsius. The hardware does not return NaN, so consideration of 73 int exp = ((data & 0x7F800000) >> 23) - 127 - 23; in float_to_long() 79 if (fls64(man) + exp > (int)sizeof(long) * 8 - 1) in float_to_long() 82 result = (man + (1ull << (-exp - 1))) >> -exp; in float_to_long() 86 return negative ? -result : result; in float_to_long() [all …]
|
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 */ 89 u8 interval; member 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() 138 priv->config &= ~STTS751_CONF_RES_MASK; in stts751_adjust_resolution() [all …]
|
/linux/Documentation/hwmon/ |
H A D | acpi_power_meter.rst | 17 ----------- 21 features--a power meter that returns average power use over a configurable 22 interval, an optional capping mechanism, and a couple of trip points. The 24 of Documentation/hwmon/sysfs-interface.rst. 27 ---------------- 29 The `power[1-*]_is_battery` knob indicates if the power supply is a battery. 30 Both `power[1-*]_average_{min,max}` must be set before the trip points will work. 32 socket and a poll notification will be sent to the appropriate 33 `power[1-*]_average` sysfs file. 35 The `power[1-*]_{model_number, serial_number, oem_info}` fields display [all …]
|
/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | charger-manager.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/charger-manager.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 18 const: charger-manager 20 cm-chargers: 22 $ref: /schemas/types.yaml#/definitions/string-array 24 cm-num-chargers: 28 cm-fuel-gauge: [all …]
|
H A D | bq24735.yaml | 1 # SPDX-License-Identifier: GPL-2.0 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: TI BQ24735 Li-Ion Battery Charger 11 - Sebastian Reichel <sre@kernel.org> 14 - $ref: power-supply.yaml# 27 ti,ac-detect-gpios: 35 ti,charge-current: 43 ti,charge-voltage: 51 ti,input-current: [all …]
|
/linux/include/linux/input/ |
H A D | kxtj9.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 13 unsigned int min_interval; /* minimum poll interval (in milli-seconds) */ 14 unsigned int init_interval; /* initial poll interval (in milli-seconds) */ 32 /* CTRL_REG1: set resolution, g-range, data ready enable */ 33 /* Output resolution: 8-bit valid or 12-bit valid */ 37 /* Output g-range: +/-2g, 4g, or 8g */
|
/linux/tools/testing/selftests/damon/ |
H A D | damos_apply_interval.py | 2 # SPDX-License-Identifier: GPL-2.0 23 nr_accesses=[5, 20], age=[2, 2**64 - 1]), 24 # aggregation interval (100 ms) is used 26 # use 10ms apply interval 30 nr_accesses=[5, 20], age=[2, 2**64 - 1]), 31 # explicitly set 10 ms apply interval 44 while proc.poll() == None: 56 # Because the second scheme was having the apply interval that is ten times
|
/linux/tools/perf/scripts/python/ |
H A D | parallel-perf.py | 2 # SPDX-License-Identifier: GPL-2.0 5 # options --cpu and --time so that each job processes a different chunk 20 glb_prog_name = "parallel-perf.py" 88 return [ f"Non-empty error file {self.stderr_name}" ] 97 return p.poll() 99 def Poll(self, wait=False): member in Work 116 return self.Poll(wait=True) 139 x = "0" * (10 - len(x)) + x 140 return x[:len(x) - 9] + "." + x[-9:] 150 max_len = len(str(cpus[-1])) [all …]
|
/linux/block/ |
H A D | disk-events.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Disk events - monitor disk events like media change and eject request. 20 long poll_msecs; /* interval, -1 for default */ 38 /* disable in-kernel polling by default */ 43 struct disk_events *ev = disk->ev; in disk_events_poll_jiffies() 47 * If device-specific poll interval is set, always use it. If in disk_events_poll_jiffies() 48 * the default is being used, poll if the POLL flag is set. in disk_events_poll_jiffies() 50 if (ev->poll_msecs >= 0) in disk_events_poll_jiffies() 51 intv_msecs = ev->poll_msecs; in disk_events_poll_jiffies() 52 else if (disk->event_flags & DISK_EVENT_FLAG_POLL) in disk_events_poll_jiffies() [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-hwmon | 16 The contents of the label are free-form. 22 The interval at which the chip will update readings. 27 Some devices have a variable update rate or interval. 135 this voltage channel is being used for, and user-space 137 user-space. 145 When disabled the sensor read will return -ENODATA. 147 - 1: Enable 148 - 0: Disable 156 - 1: Failed 157 - 0: Ok [all …]
|
/linux/Documentation/userspace-api/media/v4l/ |
H A D | user-func.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _user-func: 13 func-close 14 func-ioctl 15 vidioc-create-bufs 16 vidioc-cropcap 17 vidioc-dbg-g-chip-info 18 vidioc-dbg-g-register 19 vidioc-decoder-cmd 20 vidioc-dqevent [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dcn20/ |
H A D | dcn20_vmid.c | 32 vmid->regs->reg 35 vmid->ctx 39 vmid->shifts->field_name, vmid->masks->field_name 42 CTX->logger 46 /* According the hardware spec, we need to poll for the lowest in dcn20_wait_for_vmid_ready() 51 * TODO: Confirm timeout / poll interval with hardware team in dcn20_wait_for_vmid_ready() 79 VM_CONTEXT0_START_LOGICAL_PAGE_NUMBER_HI4, (config->page_table_start_addr >> 32) & 0xF); in dcn20_vmid_setup() 81 VM_CONTEXT0_START_LOGICAL_PAGE_NUMBER_LO32, config->page_table_start_addr & 0xFFFFFFFF); in dcn20_vmid_setup() 84 VM_CONTEXT0_END_LOGICAL_PAGE_NUMBER_HI4, (config->page_table_end_addr >> 32) & 0xF); in dcn20_vmid_setup() 86 VM_CONTEXT0_END_LOGICAL_PAGE_NUMBER_LO32, config->page_table_end_addr & 0xFFFFFFFF); in dcn20_vmid_setup() [all …]
|
/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 80 used to wait for trigger events using select(), poll() or epoll(). 92 file descriptor is required to be able to poll it separately from others, 103 monitoring update interval is 50ms and max is 1s. Min limit is set to 116 Notifications to the userspace are rate-limited to one per tracking window. [all …]
|
/linux/drivers/input/tests/ |
H A D | input_test.c | 1 // SPDX-License-Identifier: GPL-2.0 23 input_dev->name = "Test input device"; in input_test_init() 24 input_dev->id.bustype = BUS_VIRTUAL; in input_test_init() 25 input_dev->id.vendor = 1; in input_test_init() 26 input_dev->id.product = 1; in input_test_init() 27 input_dev->id.version = 1; in input_test_init() 37 test->priv = input_dev; in input_test_init() 44 struct input_dev *input_dev = test->priv; in input_test_exit() 54 struct input_dev *input_dev = test->priv; in input_test_polling() 56 /* Must fail because a poll handler has not been set-up yet */ in input_test_polling() [all …]
|
/linux/samples/bpf/ |
H A D | xdp_router_ipv4_user.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 #include <poll.h> 33 "Usage: xdp_router_ipv4 <IFNAME-0> ... <IFNAME-N>\n"; 42 static int interval = 5; variable 51 { "skb-mode", no_argument, NULL, 'S' }, 53 { "interval", required_argument, NULL, 'i' }, 69 len = recv(sock, buf_ptr, sizeof(buf) - nll, 0); in recv_msg() 75 if (nh->nlmsg_type == NLMSG_DONE) in recv_msg() 119 rtm_family = rt_msg->rtm_family; in read_route() 121 if (rt_msg->rtm_table != RT_TABLE_MAIN) in read_route() [all …]
|
/linux/arch/x86/platform/geode/ |
H A D | geode-common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Shared helpers to register GPIO-connected buttons and LEDs 15 #include "geode-common.h" 18 .name = "cs5535-gpio", 22 PROPERTY_ENTRY_U32("poll-interval", 20), 27 .name = "geode-gpio-keys", 35 PROPERTY_ENTRY_U32("debounce-interval", 100), 52 * Creates gpio-keys-polled device for the restart key. 55 * because it registers gpiochip software node used by both gpio-keys and 56 * leds-gpio devices. [all …]
|
/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 273 * Range: bit 0: Truncate - when set, FW attempts to send a frame stop [all …]
|