Home
last modified time | relevance | path

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

12345678910>>...18

/linux/drivers/mmc/core/
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2003-2004 Russell King, All Rights Reserved.
7 * Copyright (C) 2005-2008 Pierre Ossman, All Rights Reserved.
23 #include <linux/fault-inject.h>
32 #include <linux/mmc/slot-gpio.h>
49 /* The max erase timeout, used when host->max_busy_timeout isn't specified */
84 struct mmc_command *cmd = mrq->cmd; in mmc_should_fail_request() local
85 struct mmc_data *data = mrq->data; in mmc_should_fail_request()
87 -ETIMEDOUT, in mmc_should_fail_request()
88 -EILSEQ, in mmc_should_fail_request()
[all …]
/linux/Documentation/devicetree/bindings/peci/
H A Dpeci-controller.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/peci/peci-controller.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Iwona Winiarska <iwona.winiarska@intel.com>
19 pattern: "^peci-controller(@.*)?$"
21 cmd-timeout-ms:
23 Command timeout in units of ms.
28 - |
29 peci-controller@1e78b000 {
[all …]
H A Dnuvoton,npcm-peci.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/peci/nuvoton,npcm-peci.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Tomer Maimon <tmaimon77@gmail.com>
13 - $ref: peci-controller.yaml#
18 - nuvoton,npcm750-peci
19 - nuvoton,npcm845-peci
32 cmd-timeout-ms:
38 - compatible
[all …]
H A Dpeci-aspeed.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/peci/peci-aspeed.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Iwona Winiarska <iwona.winiarska@intel.com>
11 - Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
14 - $ref: peci-controller.yaml#
19 - aspeed,ast2400-peci
20 - aspeed,ast2500-peci
21 - aspeed,ast2600-peci
[all …]
/linux/drivers/watchdog/
H A Drave-sp-wdt.c1 // SPDX-License-Identifier: GPL-2.0+
13 #include <linux/mfd/rave-sp.h>
15 #include <linux/nvmem-consumer.h>
29 * struct rave_sp_wdt_variant - RAVE SP watchdog variant
31 * @max_timeout: Largest possible watchdog timeout setting
32 * @min_timeout: Smallest possible watchdog timeout setting
46 * struct rave_sp_wdt - RAVE SP watchdog
68 return rave_sp_exec(to_rave_sp_wdt(wdd)->sp, in rave_sp_wdt_exec()
74 u8 cmd[] = { in rave_sp_wdt_legacy_configure() local
79 [4] = on ? wdd->timeout : 0, in rave_sp_wdt_legacy_configure()
[all …]
H A Dpnx4008_wdt.c1 // SPDX-License-Identifier: GPL-2.0
12 * 2005-2006 (c) MontaVista Software, Inc.
34 /* WatchDog Timer - Chapter 23 Page 207 */
98 /* the longest pulse period 65541/(13*10^6) seconds ~ 5 ms. */ in pnx4008_wdt_start()
100 writel(wdd->timeout * WDOG_COUNTER_RATE, WDTIM_MATCH0(wdt_base)); in pnx4008_wdt_start()
121 wdd->timeout = new_timeout; in pnx4008_wdt_set_timeout()
126 unsigned long mode, void *cmd) in pnx4008_restart_handler() argument
128 const char *boot_cmd = cmd; in pnx4008_restart_handler()
131 * Verify if a "cmd" passed from the userspace program rebooting in pnx4008_restart_handler()
133 * - For details, see the 'reboot' syscall in kernel/reboot.c in pnx4008_restart_handler()
[all …]
H A Dsc520_wdt.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 * any of this software. This material is provided "AS-IS" in
13 * 9/27 - 2001 [Initial release]
16 * - Fixed formatting
17 * - Removed debug printks
18 * - Fixed SMP built kernel deadlock
19 * - Switched to private locks not lock_kernel
20 * - Used ioremap/writew/readw
21 * - Added NOWAYOUT support
22 * 4/12 - 2002 Changes by Rob Radez <rob@osinvestor.com>
[all …]
/linux/arch/x86/platform/olpc/
H A Dolpc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright © 2007-2008 Andres Salomon <dilinger@debian.org>
19 #include <linux/olpc-ec.h>
29 /* what the timeout *should* be (in ms) */
32 /* the timeout that bugs in the EC might force us to actually use */
39 printk(KERN_ERR "olpc-ec: invalid argument to " in olpc_ec_timeout_set()
42 printk(KERN_DEBUG "olpc-ec: using %d ms delay for EC commands.\n", in olpc_ec_timeout_set()
68 for (timeo = ec_timeout; state != desired && timeo; timeo--) { in __wait_on_ibf()
74 timeo < (ec_timeout - EC_BASE_TIMEOUT)) { in __wait_on_ibf()
75 printk(KERN_WARNING "olpc-ec: %d: waited %u ms for IBF!\n", in __wait_on_ibf()
[all …]
/linux/drivers/nfc/
H A Dtrf7970a.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com
39 * when EN2 is left low. The 'en2-rf-quirk' device tree property
46 * interrupts, however. That is, an interrupt and a timeout could occur
48 * executes. When the timeout handler executes first and blocks the
51 * When the interrupt handler executes first and blocks the timeout handler,
53 * work item (i.e., timeout) and will return zero. That return code is
54 * used by the timer handler to indicate that it should ignore the timeout
62 * has sent the command to the tag, it simply returns -ECANCELED. If the
65 * sending the data upstream, it frees the rx_skb and sends -ECANCELED
[all …]
/linux/drivers/spi/
H A Dspi-sprd-adi.c4 * SPDX-License-Identifier: GPL-2.0
36 #define REG_ADI_CHN_ADDR(id) (0x44 + (id - 2) * 4)
69 /* Timeout (ms) for the trylock of hardware spinlocks */
125 /* Use default timeout 50 ms that converts to watchdog values */
157 if (reg >= sadi->data->slave_addr_size) { in sprd_adi_check_addr()
158 dev_err(sadi->dev, in sprd_adi_check_addr()
161 return -EINVAL; in sprd_adi_check_addr()
169 u32 timeout = ADI_FIFO_DRAIN_TIMEOUT; in sprd_adi_drain_fifo() local
173 sts = readl_relaxed(sadi->base + REG_ADI_ARM_FIFO_STS); in sprd_adi_drain_fifo()
178 } while (--timeout); in sprd_adi_drain_fifo()
[all …]
/linux/drivers/usb/host/
H A 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/drivers/fsi/
H A Dfsi-sbefifo.c1 // SPDX-License-Identifier: GPL-2.0
19 #include <linux/fsi-sbefifo.h>
38 * The SBEFIFO is a pipe-like FSI device for communicating with
50 #define SBEFIFO_UP 0x00 /* FSI -> Host */
51 #define SBEFIFO_DOWN 0x40 /* Host -> FSI */
53 /* Per-bank registers */
85 SBE_STATE_IPLING = 0x1, // IPL'ing - autonomous mode (transient)
86 SBE_STATE_ISTEP = 0x2, // ISTEP - Running IPL by steps (transient)
92 SBE_STATE_QUIESCE = 0x8, // Final state - needs SBE reset to get out
103 #define sbefifo_vacant(sts) (SBEFIFO_FIFO_DEPTH - sbefifo_populated(sts))
[all …]
/linux/drivers/input/mouse/
H A Dcyapa_gen3.c9 * Copyright (C) 2011-2015 Cypress Semiconductor, Inc.
10 * Copyright (C) 2011-2012 Google, Inc.
60 * Used in register 0x00, bit1-0, DeviceStatus field.
88 * bit 7 - 4: high 4 bits of x position value
89 * bit 3 - 0: high 4 bits of y position value
95 /* id range is 1 - 15. It is incremented with every new touch. */
101 * bit 0 - 1: device status
102 * bit 3 - 2: power mode
103 * bit 6 - 4: reserved
108 * bit 7 - 4: number of fingers currently touching pad
[all …]
H A Dcyapa.h6 * Copyright (C) 2014-2015 Cypress Semiconductor, Inc.
20 #define CYAPA_GEN3 0x03 /* support MT-protocol B with tracking ID. */
31 #define SMBUS_ENCODE_IDX(cmd, idx) ((cmd) | (((idx) & 0x03) << 1)) argument
32 #define SMBUS_ENCODE_RW(cmd, rw) ((cmd) | ((rw) & 0x01)) argument
63 * bit 6 - 4: Reserved
64 * bit 3 - 2: Power status
65 * bit 1 - 0: Device status
76 * bit 7 - 4: Number of touched finger
91 * Write-only command file register used to issue commands and
102 * bit 6 - 5: Reserved
[all …]
/linux/drivers/media/tuners/
H A Dsi2157.c1 // SPDX-License-Identifier: GPL-2.0-or-later
17 static int si2157_cmd_execute(struct i2c_client *client, struct si2157_cmd *cmd) in si2157_cmd_execute() argument
21 unsigned long timeout; in si2157_cmd_execute() local
23 mutex_lock(&dev->i2c_mutex); in si2157_cmd_execute()
25 if (cmd->wlen) { in si2157_cmd_execute()
26 /* write cmd and args for firmware */ in si2157_cmd_execute()
27 ret = i2c_master_send(client, cmd->args, cmd->wlen); in si2157_cmd_execute()
30 } else if (ret != cmd->wlen) { in si2157_cmd_execute()
31 ret = -EREMOTEIO; in si2157_cmd_execute()
36 if (cmd->rlen) { in si2157_cmd_execute()
[all …]
/linux/drivers/net/wireless/ti/wl1251/
H A Dps.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #include "cmd.h"
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
[all …]
/linux/drivers/thunderbolt/
H A Dnhi_ops.c1 // SPDX-License-Identifier: GPL-2.0
18 #define ICL_LC_MAILBOX_TIMEOUT 500 /* ms */
27 struct tb *tb = pci_get_drvdata(nhi->pdev); in icl_nhi_is_device_connected()
30 ret = device_for_each_child(&tb->root_switch->dev, NULL, in icl_nhi_is_device_connected()
51 pci_read_config_dword(nhi->pdev, VS_CAP_22, &vs_cap); in icl_nhi_force_power()
59 pci_write_config_dword(nhi->pdev, VS_CAP_22, vs_cap); in icl_nhi_force_power()
67 pci_read_config_dword(nhi->pdev, VS_CAP_9, &val); in icl_nhi_force_power()
71 } while (--retries); in icl_nhi_force_power()
73 return -ETIMEDOUT; in icl_nhi_force_power()
79 static void icl_nhi_lc_mailbox_cmd(struct tb_nhi *nhi, enum icl_lc_mailbox_cmd cmd) in icl_nhi_lc_mailbox_cmd() argument
[all …]
/linux/drivers/input/touchscreen/
H A Dcyttsp_core.c1 // SPDX-License-Identifier: GPL-2.0-only
46 #define CY_DELAY_DFLT 20 /* ms */
52 #define CY_ACT_INTRVL_DFLT 0x00 /* ms */
54 #define CY_LP_INTRVL_DFLT 0x0A /* ms */
55 /* touch timeout for the Active power */
56 #define CY_TCH_TMOUT_DFLT 0xFF /* ms */
84 error = ts->bus_ops->read(ts->dev, ts->xfer_buf, command, in ttsp_read_block_data()
92 return -EIO; in ttsp_read_block_data()
102 error = ts->bus_ops->write(ts->dev, ts->xfer_buf, command, in ttsp_write_block_data()
110 return -EIO; in ttsp_write_block_data()
[all …]
/linux/drivers/nvme/host/
H A Dioctl.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2011-2014, Intel Corporation.
4 * Copyright (c) 2017-2021 Christoph Hellwig.
6 #include <linux/blk-integrity.h>
9 #include <linux/io_uring/cmd.h>
33 if (c->common.opcode >= nvme_cmd_vendor_start || in nvme_cmd_allowed()
34 c->common.opcode == nvme_fabrics_command) in nvme_cmd_allowed()
44 if (c->common.opcode == nvme_admin_identify) { in nvme_cmd_allowed()
45 switch (c->identify.cns) { in nvme_cmd_allowed()
62 effects = nvme_command_effects(ns->ctrl, ns, c->common.opcode); in nvme_cmd_allowed()
[all …]
/linux/drivers/net/ethernet/engleder/
H A Dtsnep_selftests.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (C) 2021 Gerhard Engleder <gerhard@engleder-embedded.com> */
16 "Enable timeout (offline)",
26 iowrite8(TSNEP_GC_ENABLE_TIMEOUT, adapter->addr + TSNEP_GC); in enable_gc_timeout()
27 if (!(ioread32(adapter->addr + TSNEP_GC) & TSNEP_GC_TIMEOUT_ACTIVE)) in enable_gc_timeout()
35 if (ioread32(adapter->addr + TSNEP_GC) & TSNEP_GC_TIMEOUT_SIGNAL) in gc_timeout_signaled()
43 iowrite8(TSNEP_GC_ENABLE_TIMEOUT, adapter->addr + TSNEP_GC); in ack_gc_timeout()
44 if (ioread32(adapter->addr + TSNEP_GC) & in ack_gc_timeout()
63 iowrite8(enable, adapter->addr + TSNEP_GC); in enable_gc()
64 if (!(ioread32(adapter->addr + TSNEP_GC) & active)) in enable_gc()
[all …]
/linux/drivers/scsi/csiostor/
H A Dcsio_mb.c4 * Copyright (c) 2008-2012 Chelsio Communications, Inc. All rights reserved.
16 * - Redistributions of source code must retain the above
20 * - Redistributions in binary form must reproduce the above
51 * csio_mb_fw_retval - FW return value from a mailbox response.
60 hdr = (struct fw_cmd_hdr *)(mbp->mb); in csio_mb_fw_retval()
62 return FW_CMD_RETVAL_G(ntohl(hdr->lo)); in csio_mb_fw_retval()
66 * csio_mb_hello - FW HELLO command helper
80 struct fw_hello_cmd *cmdp = (struct fw_hello_cmd *)(mbp->mb); in csio_mb_hello()
84 cmdp->op_to_write = htonl(FW_CMD_OP_V(FW_HELLO_CMD) | in csio_mb_hello()
86 cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); in csio_mb_hello()
[all …]
/linux/drivers/char/
H A Dnwflash.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * 22/05/2001 RMK - Lock read against write
9 * - merge printk level changes (with mods) from Alan Cox.
10 * - use *ppos as the file position, not file->f_pos.
11 * - fix check for out of range pos and r/w size
34 #include <asm/mach-types.h>
53 static bool flashdebug; //if set - we will display progress msgs
96 static long flash_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in flash_ioctl() argument
99 switch (cmd) { in flash_ioctl()
117 return -EINVAL; in flash_ioctl()
[all …]
/linux/drivers/media/dvb-frontends/
H A Dcx24110.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 cx24110 - Single Chip Satellite Channel Receiver driver module
5 Copyright (C) 2002 Peter Hettkamp <peter.hettkamp@htp-tel.de> based on
45 {0x01,0xe8}, /* MSB of code rate 27.5MS/s */
61 gives approx. 2.6 sec at 27.5MS/s, rate 3/4 */
72 approx. 38ms at 27.5MS/s, rate 3/4 */
74 /* leave front-end AGC parameters at default values */
82 {0x41,0x00}, /* @ MSB of front-end derotator frequency */
88 /* the cx24108 data sheet for symbol rates above 15MS/s */
90 {0x61,0x95}, /* GPIO pins 1-4 have special function */
[all …]
/linux/include/uapi/scsi/fc/
H A Dfc_els.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
5 * Maintained at www.Open-FCoE.org
15 * Fibre Channel Switch - Enhanced Link Services definitions.
16 * From T11 FC-LS Rev 1.2 June 7, 2005.
20 * ELS Command codes - byte 0 of the frame payload
28 ELS_ABTX = 0x06, /* Abort exchange - obsolete */
36 ELS_RTV = 0x0e, /* read timeout value */
56 ELS_NACT = 0x33, /* N-port activate alias_id */
57 ELS_NDACT = 0x34, /* N-port deactivate alias_id */
72 ELS_RNFT = 0x63, /* report node FC-4 types */
[all …]
/linux/drivers/peci/controller/
H A Dpeci-npcm.c1 // SPDX-License-Identifier: GPL-2.0
31 /* NPCM_PECI_CTL_STS - 0x00 : Control Register */
38 /* NPCM_PECI_RD_LENGTH - 0x04 : Command Register */
41 /* NPCM_PECI_CMD - 0x10 : Command Register */
44 /* NPCM_PECI_WR_LENGTH - 0x1C : Command Register */
47 /* NPCM_PECI_PDDR - 0x2C : Command Register */
75 struct npcm_peci *priv = dev_get_drvdata(controller->dev.parent); in npcm_peci_xfer()
76 unsigned long timeout = msecs_to_jiffies(priv->cmd_timeout_ms); in npcm_peci_xfer() local
82 ret = regmap_read_poll_timeout(priv->regmap, NPCM_PECI_CTL_STS, cmd_sts, in npcm_peci_xfer()
87 return ret; /* -ETIMEDOUT */ in npcm_peci_xfer()
[all …]

12345678910>>...18