Home
last modified time | relevance | path

Searched +full:poll +full:- +full:period (Results 1 – 25 of 256) sorted by relevance

1234567891011

/linux/drivers/mmc/core/
H A Dsdio_irq.c1 // SPDX-License-Identifier: GPL-2.0-or-later
32 struct mmc_card *card = host->card; in sdio_get_pending_irqs()
35 WARN_ON(!host->claimed); in sdio_get_pending_irqs()
45 !(host->caps & MMC_CAP_SDIO_IRQ)) { in sdio_get_pending_irqs()
48 /* A fake interrupt could be created when we poll SDIO_CCCR_INTx in sdio_get_pending_irqs()
60 struct mmc_card *card = host->card; in process_sdio_pending_irqs()
62 bool sdio_irq_pending = host->sdio_irq_pending; in process_sdio_pending_irqs()
71 host->sdio_irq_pending = false; in process_sdio_pending_irqs()
78 func = card->sdio_single_irq; in process_sdio_pending_irqs()
80 func->irq_handler(func); in process_sdio_pending_irqs()
[all …]
/linux/include/sound/
H A Dpcm_oss.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
6 * Digital Audio (PCM) - OSS compatibility abstract layer
35 size_t period_bytes; /* requested period size */
36 size_t period_frames; /* period frames for poll */
37 size_t period_ptr; /* actual write pointer to period */
42 char *buffer; /* vmallocated period */
43 size_t buffer_used; /* used length from period buffer */
/linux/Documentation/userspace-api/media/v4l/
H A Dfunc-read.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
4 .. _func-read:
13 v4l2-read - Read from a V4L2 device
18 .. code-block:: c
52 :c:func:`poll()` functions can always be used to suspend
55 :c:func:`poll()`.
64 only the period of the vertical blanking interval is available for
69 period or the vertical blanking separating the top and bottom field
101 :c:func:`read()` was interrupted by a signal. On error, -1 is
107 Non-blocking I/O has been selected using O_NONBLOCK and no data was
/linux/drivers/net/ethernet/moxa/
H A Dmoxart_ether.h58 #define TX_DESC_NUM_MASK (TX_DESC_NUM - 1)
65 #define RX_DESC_NUM_MASK (RX_DESC_NUM - 1)
148 #define TXINT_TIME_SEL BIT(15) /* TX cycle time period */
151 #define RXINT_TIME_SEL BIT(7) /* RX cycle time period */
156 #define TXPOLL_TIME_SEL BIT(12) /* TX poll time period */
159 #define RXPOLL_TIME_SEL BIT(4) /* RX poll time period */
184 #define LOOP_EN BIT(3) /* internal loop-back */
/linux/Documentation/userspace-api/gpio/
H A Dsysfs.rst6 been moved to Documentation/ABI/obsolete/sysfs-gpio.
12 This interface will continue to be maintained for the migration period,
16 ----------------------
27 then changing its output state, then updating the code before re-enabling
38 Please read Documentation/driver-api/gpio/drivers-on-gpio.rst
44 --------------
47 - Control interfaces used to get userspace control over GPIOs;
49 - GPIOs themselves; and
51 - GPIO controllers ("gpio_chip" instances).
55 The control interfaces are write-only:
[all …]
/linux/Documentation/virt/kvm/
H A Dhalt-polling.rst1 .. SPDX-License-Identifier: GPL-2.0
9 for some time period after the guest has elected to no longer run by cedeing.
16 the order of a few micro-seconds, although performance benefits are workload
27 The powerpc kvm-hv specific case is implemented in:
34 The maximum time for which to poll before invoking the scheduler, referred to
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
63 interval then the host will never poll for long enough (limited by the global
86 arch/powerpc/kvm/book3s_hv.c in the powerpc kvm-hv case.
[all …]
/linux/tools/power/cpupower/man/
H A Dcpupower-idle-info.11 .TH "CPUPOWER-IDLE-INFO" "1" "0.1" "" "cpupower Manual"
4 cpupower\-idle\-info \- Utility to retrieve cpu idle kernel information
7 cpupower [ \-c cpulist ] idle\-info [\fIoptions\fP]
14 \fB\-f\fR \fB\-\-silent\fR
15 Only print a summary of all available C-states in the system.
17 \fB\-e\fR \fB\-\-proc\fR
23 .SH IDLE\-INFO DESCRIPTIONS
38 cpupower monitor tool (cpupower\-monitor(1)) can be used to show real sleep
42 .SH IDLE\-INFO ARCHITECTURE SPECIFIC DESCRIPTIONS
44 POLL idle state
[all …]
/linux/rust/kernel/sync/
H A Dpoll.rs1 // SPDX-License-Identifier: GPL-2.0
15 /// Creates a [`PollCondVar`] initialiser with the given name and a newly-created lock class.
19 $crate::sync::poll::PollCondVar::new(
42 pub unsafe fn from_raw(table: *mut bindings::poll_table) -> Self { in from_raw()
58 // waiters and then waits for an rcu grace period, it's guaranteed that in register_wait()
59 // `cv.wait_queue_head` remains valid for at least an rcu grace period after the removal in register_wait()
76 pub fn new(name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> { in new()
78 inner <- CondVar::new(name, key), in new()
87 fn deref(&self) -> &CondVar { in deref()
/linux/drivers/clocksource/
H A Dtimer-stm32-lp.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) STMicroelectronics 2019 - All Rights Reserved
12 #include <linux/mfd/stm32-lptimer.h>
27 unsigned long period; member
44 regmap_write(priv->reg, STM32_LPTIM_CR, 0); in stm32_clkevent_lp_shutdown()
45 regmap_write(priv->reg, STM32_LPTIM_IER, 0); in stm32_clkevent_lp_shutdown()
47 regmap_write(priv->reg, STM32_LPTIM_ICR, STM32_LPTIM_ARRMCF); in stm32_clkevent_lp_shutdown()
57 regmap_read(priv->reg, STM32_LPTIM_CR, &val); in stm32mp25_clkevent_lp_set_evt()
60 regmap_write(priv->reg, STM32_LPTIM_CR, STM32_LPTIM_ENABLE); in stm32mp25_clkevent_lp_set_evt()
64 * 62.5 micro-seconds, round it up. in stm32mp25_clkevent_lp_set_evt()
[all …]
/linux/Documentation/devicetree/bindings/input/touchscreen/
H A Dti.tsc2007.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Frank Li <Frank.Li@nxp.com>
22 ti,x-plate-ohms:
23 description: X-plate resistance in ohms.
27 pendown-gpio: true
29 ti,max-rt:
37 If set, it will permit noise in the data up to +- the value given to the fuzz
48 ti,poll-period:
[all …]
/linux/Documentation/admin-guide/
H A Dmd.rst5 ---------------------------------
49 -1 linear mode
58 (raid-0 and raid-1 only)
78 --------------------------------------
87 that all auto-detected arrays are assembled as partitionable.
90 -------------------------------------------
102 mdadm --assemble --force ....
112 md-mod.start_dirty_degraded=1
116 ------------------
119 Currently, it supports superblock formats ``0.90.0`` and the ``md-1`` format
[all …]
/linux/tools/perf/tests/shell/
H A Drecord_offcpu.sh3 # SPDX-License-Identifier: GPL-2.0
5 set -e
14 rm -f ${perfdata}
15 rm -f ${perfdata}.old
16 trap - EXIT TERM INT
29 echo "Checking off-cpu privilege"
31 if [ "$(id -u)" != 0 ]
33 echo "off-cpu test [Skipped permission]"
37 if perf version --build-options 2>&1 | grep HAVE_BPF_SKEL | grep -q OFF
39 echo "off-cpu test [Skipped missing BPF support]"
[all …]
/linux/drivers/gpu/drm/i915/
H A Di915_perf_types.h1 /* 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
339 * @poll_oa_period: The period in nanoseconds at which the OA
[all …]
/linux/drivers/ptp/
H A Dptp_chardev.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * PTP 1588 clock support - character device implementation.
9 #include <linux/posix-clock.h>
10 #include <linux/poll.h>
34 err = ops->enable(ops, &rq, 0); in ptp_disable_pinfunc()
39 err = ops->enable(ops, &rq, 0); in ptp_disable_pinfunc()
44 return -EINVAL; in ptp_disable_pinfunc()
53 struct ptp_clock_info *info = ptp->info; in ptp_set_pinfunc()
54 struct ptp_pin_desc *pin1 = NULL, *pin2 = &info->pin_config[pin]; in ptp_set_pinfunc()
58 for (i = 0; i < info->n_pins; i++) { in ptp_set_pinfunc()
[all …]
/linux/drivers/usb/serial/
H A Dgeneric.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2010 - 2013 Johan Hovold (jhovold@gmail.com)
6 * Copyright (C) 1999 - 2002 Greg Kroah-Hartman (greg@kroah.com)
40 struct device *dev = &serial->interface->dev; in usb_serial_generic_probe()
42 dev_info(dev, "The \"generic\" usb-serial driver is only for testing and one-off prototypes.\n"); in usb_serial_generic_probe()
43 dev_info(dev, "Tell linux-usb@vger.kernel.org to add your device to a proper driver.\n"); in usb_serial_generic_probe()
51 struct device *dev = &serial->interface->dev; in usb_serial_generic_calc_num_ports()
54 num_ports = max(epds->num_bulk_in, epds->num_bulk_out); in usb_serial_generic_calc_num_ports()
58 return -ENODEV; in usb_serial_generic_calc_num_ports()
109 clear_bit(USB_SERIAL_THROTTLED, &port->flags); in usb_serial_generic_open()
[all …]
/linux/drivers/fpga/
H A Dsocfpga.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2013-2015 Altera Corporation
9 #include <linux/fpga/fpga-mgr.h>
96 /* In power-up order. Reverse for power-down. */
98 "FPGA-1.5V",
99 "FPGA-1.1V",
100 "FPGA-2.5V",
136 return readl(priv->fpga_base_addr + reg_offset); in socfpga_fpga_readl()
142 writel(value, priv->fpga_base_addr + reg_offset); in socfpga_fpga_writel()
148 return __raw_readl(priv->fpga_base_addr + reg_offset); in socfpga_fpga_raw_readl()
[all …]
/linux/include/net/
H A Dmac80211.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * mac80211 <-> driver interface
5 * Copyright 2002-2005, Devicescape Software, Inc.
6 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz>
7 * Copyright 2007-2010 Johannes Berg <johannes@sipsolutions.net>
8 * Copyright 2013-2014 Intel Mobile Communications GmbH
9 * Copyright (C) 2015 - 2017 Intel Deutschland GmbH
10 * Copyright (C) 2018 - 2025 Intel Corporation
31 * only partial functionality in hard- or firmware. This document
32 * defines the interface between mac80211 and low-level hardware
[all …]
/linux/drivers/platform/chrome/
H A Dcros_ec_debugfs.c1 // SPDX-License-Identifier: GPL-2.0+
16 #include <linux/poll.h>
21 #define DRV_NAME "cros-ec-debugfs"
27 #define CIRC_ADD(idx, size, value) (((idx) + (value)) & ((size) - 1))
31 MODULE_PARM_DESC(log_poll_period_ms, "EC log polling period(ms)");
37 * struct cros_ec_debugfs - EC debugging information.
44 * @log_poll_work: recurring task to poll EC for new console log data
72 struct cros_ec_dev *ec = debug_info->ec; in cros_ec_console_log_work()
73 struct circ_buf *cb = &debug_info->log_buffer; in cros_ec_console_log_work()
75 .command = EC_CMD_CONSOLE_SNAPSHOT + ec->cmd_offset, in cros_ec_console_log_work()
[all …]
/linux/Documentation/RCU/
H A Dchecklist.rst1 .. SPDX-License-Identifier: GPL-2.0
12 over a rather long period of time, but improvements are always welcome!
14 0. Is RCU being applied to a read-mostly situation? If the data
18 tool for the job. Yes, RCU does reduce read-side overhead by
19 increasing write-side overhead, which is exactly why normal uses
27 Yet another exception is where the low real-time latency of RCU's
28 read-side primitives is critically important.
33 counter-intuitive situation where rcu_read_lock() and
49 them -- even x86 allows later loads to be reordered to precede
59 2. Do the RCU read-side critical sections make proper use of
[all …]
/linux/drivers/net/ethernet/cavium/liquidio/
H A Dresponse_manager.h7 * Copyright (c) 2003-2016 Cavium, Inc.
14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
32 * process before it returns control to the poll thread.
37 * system. One for each response order- Unordered, ordered
68 /** Error codes used in Octeon Host-Core communication.
71 * ---------------------------------
73 * ---------------------------------
74 * Error codes are 32-bit wide. The upper 16-bits, called Major Error Number,
76 * lower 16-bits, called Minor Error Number, carry the actual code.
81 /*------------ Error codes used by host driver -----------------*/
[all …]
/linux/Documentation/driver-api/
H A Drfkill.rst2 rfkill - RF kill switch support
25 - hard block
26 read-only radio block that cannot be overridden by software
28 - soft block
34 admin-guide/kernel-parameters.rst.
43 * the deprecated rfkill-input module (an input layer handler, being
49 the system know about hardware-disabled states that may be implemented on
56 When the device is hard-blocked (either by a call to rfkill_set_hw_state()
83 to ensure the driver cannot be built-in when rfkill is modular. The !RFKILL
89 rfkill drivers that control devices that can be hard-blocked unless they also
[all …]
H A Dptp.rst1 .. SPDX-License-Identifier: GPL-2.0
18 - Set time
19 - Get time
20 - Shift the clock by a given offset atomically
21 - Adjust clock frequency
24 - Time stamp external events
25 - Period output signals configurable from user space
26 - Low Pass Filter (LPF) access from user space
27 - Synchronization of the Linux system time via the PPS subsystem
56 events via blocking read() and poll().
[all …]
/linux/kernel/rcu/
H A Dtree_nocb.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Read-Copy Update mechanism for mutual exclusion (tree-based version)
4 * Internal non-public definitions that provide either classic
18 static bool __read_mostly rcu_nocb_poll; /* Offload kthread are to poll. */
23 if (!rdp->nocb_cb_kthread || !rdp->nocb_gp_kthread) in rcu_current_is_nocb_kthread()
26 if (current == rdp->nocb_cb_kthread || current == rdp->nocb_gp_kthread) in rcu_current_is_nocb_kthread()
33 * Offload callback processing from the boot-time-specified set of CPUs
36 * a grace period to elapse, and invoke the callbacks. These kthreads
39 * invoke callbacks. Each GP kthread invokes its own CBs. The no-CBs CPUs
46 * adaptive-idle work, which would seriously reduce OS jitter on CPUs
[all …]
/linux/include/linux/
H A Drtc.h1 /* SPDX-License-Identifier: GPL-2.0 */
6 * Struct rtc_time and first 12 ioctl by Paul Gortmaker, 1996 - separated out
9 * Copyright (C) 1999 Hewlett-Packard Co.
18 #include <linux/nvmem-provider.h>
30 * rtc_tm_sub - Return the difference in seconds.
34 return rtc_tm_to_time64(lhs) - rtc_tm_to_time64(rhs); in rtc_tm_sub()
40 #include <linux/poll.h>
57 * - the proc() hook for procfs
77 ktime_t period; member
117 * tsched t1 write(t2.tv_sec - 1sec)) t2 RTC increments seconds
[all …]
/linux/drivers/char/
H A Dhpet.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * (c) Copyright 2004 Hewlett-Packard Development Company, L.P.
19 #include <linux/io-64-nonatomic-lo-hi.h>
20 #include <linux/poll.h>
52 /* WARNING -- don't get confused. These macros are never used
110 isr = 1 << (devp - devp->hd_hpets->hp_dev); in hpet_interrupt()
112 if ((devp->hd_flags & HPET_SHARED_IRQ) && in hpet_interrupt()
113 !(isr & readl(&devp->hd_hpet->hpet_isr))) in hpet_interrupt()
117 devp->hd_irqdata++; in hpet_interrupt()
120 * For non-periodic timers, increment the accumulator. in hpet_interrupt()
[all …]

1234567891011