Home
last modified time | relevance | path

Searched +full:poll +full:- +full:timeout +full:- +full:ms (Results 1 – 25 of 322) sorted by relevance

12345678910>>...13

/Linux-v6.1/Documentation/devicetree/bindings/serial/
Dpl011.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Rob Herring <robh@kernel.org>
13 - $ref: serial.yaml#
21 - arm,pl011
23 - compatible
28 - const: arm,pl011
29 - const: arm,primecell
37 pinctrl-0: true
[all …]
/Linux-v6.1/include/linux/
Diopoll.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2012-2014 The Linux Foundation. All rights reserved.
17 * read_poll_timeout - Periodically poll an address until a condition is
18 * met or a timeout occurs
23 * tight-loops). Should be less than ~20ms since usleep_range
24 * is used (see Documentation/timers/timers-howto.rst).
25 * @timeout_us: Timeout in us, 0 means never timeout
27 * @args: arguments for @op poll
29 * Returns 0 on success and -ETIMEDOUT upon a timeout. In either
57 (cond) ? 0 : -ETIMEDOUT; \
[all …]
/Linux-v6.1/sound/soc/intel/common/
Dsst-dsp.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <linux/io-64-nonatomic-lo-hi.h>
16 #include "sst-dsp.h"
17 #include "sst-dsp-priv.h"
20 #include <trace/events/intel-sst.h>
22 /* Internal generic low-level SST IO functions - can be overidden */
52 spin_lock_irqsave(&sst->spinlock, flags); in sst_dsp_shim_write()
53 sst->ops->write(sst->addr.shim, offset, value); in sst_dsp_shim_write()
54 spin_unlock_irqrestore(&sst->spinlock, flags); in sst_dsp_shim_write()
63 spin_lock_irqsave(&sst->spinlock, flags); in sst_dsp_shim_read()
[all …]
/Linux-v6.1/arch/powerpc/include/asm/
Ddelay.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
23 * is supposed to take 1ms, the hypervisor could sleep our partition for
24 * longer (eg 10ms). With the right timing these errors can add up.
34 * spin_event_timeout - spin until a condition gets true or a timeout elapses
36 * @timeout: timeout, in microseconds
40 * The process spins until the condition evaluates to true (non-zero) or the
41 * timeout elapses. The return value of this macro is the value of
44 * timeout has occurred.
46 * This primary purpose of this macro is to poll on a hardware register
47 * until a status bit changes. The timeout ensures that the loop still
[all …]
/Linux-v6.1/drivers/usb/host/
Dehci-timer.c1 // SPDX-License-Identifier: GPL-2.0+
6 /* This file is part of ehci-hcd.c */
8 /*-------------------------------------------------------------------------*/
13 ehci->command |= bit; in ehci_set_command_bit()
14 ehci_writel(ehci, ehci->command, &ehci->regs->command); in ehci_set_command_bit()
17 ehci_readl(ehci, &ehci->regs->command); in ehci_set_command_bit()
23 ehci->command &= ~bit; in ehci_clear_command_bit()
24 ehci_writel(ehci, ehci->command, &ehci->regs->command); in ehci_clear_command_bit()
27 ehci_readl(ehci, &ehci->regs->command); in ehci_clear_command_bit()
30 /*-------------------------------------------------------------------------*/
[all …]
/Linux-v6.1/drivers/usb/misc/
Dlegousbtower.c1 // SPDX-License-Identifier: GPL-2.0+
6 * 2001-2004 Juergen Stuber <starblue@users.sourceforge.net>
8 * derived from USB Skeleton driver - 0.5
9 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
13 * 2001-10-13 - 0.1 js
14 * - first version
15 * 2001-11-03 - 0.2 js
16 * - simplified buffering, one-shot URBs for writing
17 * 2001-11-10 - 0.3 js
18 * - removed IOCTL (setting power/mode is more complicated, postponed)
[all …]
/Linux-v6.1/drivers/net/wireless/ti/wl1251/
Dps.c1 // SPDX-License-Identifier: GPL-2.0-only
13 /* in ms */
26 mutex_lock(&wl->mutex); in wl1251_elp_work()
28 if (wl->elp || wl->station_mode == STATION_ACTIVE_MODE) in wl1251_elp_work()
33 wl->elp = true; in wl1251_elp_work()
36 mutex_unlock(&wl->mutex); in wl1251_elp_work()
46 if (wl->station_mode != STATION_ACTIVE_MODE) { in wl1251_ps_elp_sleep()
48 ieee80211_queue_delayed_work(wl->hw, &wl->elp_work, delay); in wl1251_ps_elp_sleep()
54 unsigned long timeout, start; in wl1251_ps_elp_wakeup() local
57 cancel_delayed_work(&wl->elp_work); in wl1251_ps_elp_wakeup()
[all …]
/Linux-v6.1/drivers/parport/
Dieee1284.c2 * IEEE-1284 implementation for parport.
5 * Carsten Gross <carsten@sol.wohnheim.uni-ulm.de>
10 * read/write requests to low-level drivers.
38 up (&port->physport->ieee1284.irq); in parport_ieee1284_wakeup()
49 * parport_wait_event - wait for an event on a parallel port
51 * @timeout: time to wait (in jiffies)
53 * This function waits for up to @timeout jiffies for an
54 * interrupt to occur on a parallel port. If the port timeout is
57 * If an interrupt occurs before the timeout period elapses, this
64 int parport_wait_event (struct parport *port, signed long timeout) in parport_wait_event() argument
[all …]
/Linux-v6.1/drivers/gpu/drm/i915/
Dintel_pcode.c1 // SPDX-License-Identifier: MIT
3 * Copyright © 2013-2021 Intel Corporation
16 return -ENODEV; in gen6_check_mailbox_status()
18 return -ENXIO; in gen6_check_mailbox_status()
21 return -EOVERFLOW; in gen6_check_mailbox_status()
23 return -ETIMEDOUT; in gen6_check_mailbox_status()
36 return -ENXIO; in gen7_check_mailbox_status()
38 return -ETIMEDOUT; in gen7_check_mailbox_status()
40 return -EINVAL; in gen7_check_mailbox_status()
42 return -ENXIO; in gen7_check_mailbox_status()
[all …]
/Linux-v6.1/fs/
Deventpoll.c1 // SPDX-License-Identifier: GPL-2.0-or-later
18 #include <linux/poll.h>
47 * 2) ep->mtx (mutex)
48 * 3) ep->lock (rwlock)
51 * We need a rwlock (ep->lock) because we manipulate objects
52 * from inside the poll callback, that might be triggered from
54 * So we can't sleep inside the poll callback and hence we need
58 * mutex (ep->mtx). It is acquired during the event transfer loop,
73 * It is necessary to acquire multiple "ep->mtx"es at once in the
76 * epoll_ctl(e1, EPOLL_CTL_ADD, e2), e1->mtx will always be acquired
[all …]
/Linux-v6.1/drivers/mmc/core/
Dmmc_ops.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright 2006-2007 Pierre Ossman
24 #define MMC_OP_COND_PERIOD_US (4 * 1000) /* 4ms */
75 if (!mmc_host_is_spi(card->host)) in __mmc_send_status()
76 cmd.arg = card->rca << 16; in __mmc_send_status()
79 err = mmc_wait_for_cmd(card->host, &cmd, retries); in __mmc_send_status()
106 cmd.arg = card->rca << 16; in _mmc_select_card()
119 return _mmc_select_card(card->host, card); in mmc_select_card()
141 cmd.arg = (host->dsr << 16) | 0xffff; in mmc_set_dsr()
153 * Non-SPI hosts need to prevent chipselect going active during in mmc_go_idle()
[all …]
/Linux-v6.1/drivers/scsi/qla2xxx/
Dqla_nx2.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (c) 2003-2014 QLogic Corporation
36 return readl((void __iomem *) (ha->nx_pcibase + addr)); in qla8044_rd_reg()
42 writel(val, (void __iomem *)((ha)->nx_pcibase + addr)); in qla8044_wr_reg()
49 struct qla_hw_data *ha = vha->hw; in qla8044_rd_direct()
62 struct qla_hw_data *ha = vha->hw; in qla8044_wr_direct()
73 struct qla_hw_data *ha = vha->hw; in qla8044_set_win_base()
75 qla8044_wr_reg(ha, QLA8044_CRB_WIN_FUNC(ha->portnum), addr); in qla8044_set_win_base()
76 val = qla8044_rd_reg(ha, QLA8044_CRB_WIN_FUNC(ha->portnum)); in qla8044_set_win_base()
92 struct qla_hw_data *ha = vha->hw; in qla8044_rd_reg_indirect()
[all …]
/Linux-v6.1/drivers/net/ethernet/intel/ixgbe/
Dixgbe_82598.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 1999 - 2018 Intel Corporation. */
25 * ixgbe_set_pcie_completion_timeout - set pci-e completion timeout
28 * The defaults for 82598 should be in the range of 50us to 50ms,
29 * however the hardware default for these parts is 500us to 1ms which is less
30 * than the 10ms recommended by the pci-e spec. To address this we need to
31 * increase the value to either 10ms to 250ms for capability version 1 config,
32 * or 16ms to 55ms for version 2.
39 if (ixgbe_removed(hw->hw_addr)) in ixgbe_set_pcie_completion_timeout()
42 /* only take action if timeout value is defaulted to 0 */ in ixgbe_set_pcie_completion_timeout()
[all …]
Dixgbe_82599.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 1999 - 2018 Intel Corporation. */
65 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_mac_link_ops_82599()
70 if ((mac->ops.get_media_type(hw) == ixgbe_media_type_fiber) && in ixgbe_init_mac_link_ops_82599()
72 mac->ops.disable_tx_laser = in ixgbe_init_mac_link_ops_82599()
74 mac->ops.enable_tx_laser = in ixgbe_init_mac_link_ops_82599()
76 mac->ops.flap_tx_laser = &ixgbe_flap_tx_laser_multispeed_fiber; in ixgbe_init_mac_link_ops_82599()
78 mac->ops.disable_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
79 mac->ops.enable_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
80 mac->ops.flap_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
[all …]
/Linux-v6.1/drivers/staging/media/deprecated/saa7146/common/
Dsaa7146_i2c.c1 // SPDX-License-Identifier: GPL-2.0
8 /* DEB_I2C("'%s'\n", adapter->name); */ in saa7146_i2c_func()
16 /* this function returns the status-register of our i2c-device */
24 /* this function runs through the i2c-messages and prepares the data to be
26 to understand this. it returns the number of u32s to send, or -1
41 mem = 1 + ((mem-1) / 3); in saa7146_i2c_msg_prepare()
47 /* DEB_I2C("cannot prepare i2c-message\n"); */ in saa7146_i2c_msg_prepare()
48 return -ENOMEM; in saa7146_i2c_msg_prepare()
51 /* be careful: clear out the i2c-mem first */ in saa7146_i2c_msg_prepare()
59 op[h1] |= cpu_to_le32( (u8)addr << ((3-h2)*8)); in saa7146_i2c_msg_prepare()
[all …]
/Linux-v6.1/include/linux/mmc/
Dcore.h1 /* SPDX-License-Identifier: GPL-2.0-only */
40 #define MMC_CMD_MASK (3 << 5) /* non-SPI command type */
66 /* Can be used by core to poll after switch to MMC HS mode */
69 #define mmc_resp_type(cmd) ((cmd)->flags & (MMC_RSP_PRESENT|MMC_RSP_136|MMC_RSP_CRC|MMC_RSP_BUSY|MM…
84 #define mmc_spi_resp_type(cmd) ((cmd)->flags & \
90 #define mmc_cmd_type(cmd) ((cmd)->flags & MMC_CMD_MASK)
109 unsigned int busy_timeout; /* busy detect timeout in ms */
115 unsigned int timeout_ns; /* data timeout (in ns, max 80ms) */
116 unsigned int timeout_clks; /* data timeout (in clocks) */
/Linux-v6.1/drivers/media/tuners/
Dit913x.c1 // SPDX-License-Identifier: GPL-2.0-or-later
28 struct it913x_dev *dev = fe->tuner_priv; in it913x_init()
29 struct platform_device *pdev = dev->pdev; in it913x_init()
34 unsigned long timeout; in it913x_init() local
36 dev_dbg(&pdev->dev, "role %u\n", dev->role); in it913x_init()
38 ret = regmap_write(dev->regmap, 0x80ec4c, 0x68); in it913x_init()
44 ret = regmap_read(dev->regmap, 0x80ec86, &utmp); in it913x_init()
51 dev->clk_mode = utmp; in it913x_init()
52 dev->xtal = 2000; in it913x_init()
53 dev->fdiv = 3; in it913x_init()
[all …]
/Linux-v6.1/drivers/input/touchscreen/
Dwm9713.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm9713.c -- Codec touch driver for Wolfson WM9713 AC97 Codec.
73 * Long delays > 1ms are supported for completeness, but are not
87 MODULE_PARM_DESC(five_wire, "Set to '1' to use 5-wire touchscreen.");
110 * for every poll.
139 * Delay after issuing a POLL command.
163 dev_info(wm->dev, "setting pen detect pull-up to %d Ohms\n", in wm9713_phy_init()
170 dev_info(wm->dev, "setting 5-wire touchscreen mode."); in wm9713_phy_init()
173 dev_warn(wm->dev, in wm9713_phy_init()
183 dev_info(wm->dev, in wm9713_phy_init()
[all …]
Dwm9712.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm9712.c -- Codec driver for Wolfson WM9712 AC97 Codecs.
73 * Long delays > 1ms are supported for completeness, but are not
87 MODULE_PARM_DESC(five_wire, "Set to '1' to use 5-wire touchscreen.");
110 * for every poll.
139 * Delay after issuing a POLL command.
160 dev_dbg(wm->dev, "setting pen detect pull-up to %d Ohms\n", in wm9712_phy_init()
167 dev_dbg(wm->dev, "setting 5-wire touchscreen mode.\n"); in wm9712_phy_init()
170 dev_warn(wm->dev, "pressure measurement is not " in wm9712_phy_init()
171 "supported in 5-wire mode\n"); in wm9712_phy_init()
[all …]
Dwm9705.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm9705.c -- Codec driver for Wolfson WM9705 AC97 Codec.
60 * Long delays > 1ms are supported for completeness, but are not
121 * Delay after issuing a POLL command.
147 dev_dbg(wm->dev, in wm9705_phy_init()
150 dev_dbg(wm->dev, in wm9705_phy_init()
158 dev_dbg(wm->dev, "supplied delay out of range."); in wm9705_phy_init()
164 dev_dbg(wm->dev, "setting adc sample delay to %d u Secs.", in wm9705_phy_init()
169 dev_dbg(wm->dev, "setting pdd to Vmid/%d", 1 - (pdd & 0x000f)); in wm9705_phy_init()
182 wm->dig[2] | WM97XX_PRP_DET_DIG); in wm9705_dig_enable()
[all …]
/Linux-v6.1/drivers/usb/musb/
Dam35x.c1 // SPDX-License-Identifier: GPL-2.0
9 * Copyright (c) 2008-2009, MontaVista Software, Inc. <source@mvista.com>
19 #include <linux/dma-mapping.h>
21 #include <linux/platform_data/usb-omap.h>
79 * am35x_musb_enable - enable interrupts
83 void __iomem *reg_base = musb->ctrl_base; in am35x_musb_enable()
87 epmask = ((musb->epmask & AM35X_TX_EP_MASK) << AM35X_INTR_TX_SHIFT) | in am35x_musb_enable()
88 ((musb->epmask & AM35X_RX_EP_MASK) << AM35X_INTR_RX_SHIFT); in am35x_musb_enable()
99 * am35x_musb_disable - disable HDRC and flush interrupts
103 void __iomem *reg_base = musb->ctrl_base; in am35x_musb_disable()
[all …]
/Linux-v6.1/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_minidump.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (c) 2009-2013 QLogic Corporation
79 u16 timeout; member
81 u16 timeout; member
274 return hdr->saved_state[index]; in qlcnic_82xx_get_saved_state()
282 hdr->saved_state[index] = value; in qlcnic_82xx_set_saved_state()
289 hdr = fw_dump->tmpl_hdr; in qlcnic_82xx_cache_tmpl_hdr_values()
290 fw_dump->tmpl_hdr_size = hdr->size; in qlcnic_82xx_cache_tmpl_hdr_values()
291 fw_dump->version = hdr->version; in qlcnic_82xx_cache_tmpl_hdr_values()
292 fw_dump->num_entries = hdr->num_entries; in qlcnic_82xx_cache_tmpl_hdr_values()
[all …]
Dqlcnic_83xx_init.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (c) 2009-2013 QLogic Corporation
83 /* Generic poll command */
136 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE); in qlcnic_83xx_idc_check_driver_presence_reg()
146 cur = adapter->ahw->idc.curr_state; in qlcnic_83xx_idc_log_state_history()
147 prev = adapter->ahw->idc.prev_state; in qlcnic_83xx_idc_log_state_history()
149 dev_info(&adapter->pdev->dev, in qlcnic_83xx_idc_log_state_history()
151 adapter->ahw->idc.name[cur], in qlcnic_83xx_idc_log_state_history()
152 adapter->ahw->idc.name[prev]); in qlcnic_83xx_idc_log_state_history()
163 return -EBUSY; in qlcnic_83xx_idc_update_audit_reg()
[all …]
/Linux-v6.1/drivers/net/wireless/ti/wlcore/
Dconf.h1 /* 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 …]
/Linux-v6.1/drivers/iio/pressure/
Ddps310.c1 // SPDX-License-Identifier: GPL-2.0+
14 * - Optionally support the FIFO
60 /* Make sure sleep time is <= 20ms for usleep_range */
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()
146 data->c01 = sign_extend32(c01, 15); in dps310_get_coefs()
[all …]

12345678910>>...13