/openbmc/linux/Documentation/devicetree/bindings/peci/ |
H A D | peci-controller.yaml | 1 # 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 D | nuvoton,npcm-peci.yaml | 1 # 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 D | peci-aspeed.yaml | 1 # 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 …]
|
/openbmc/linux/drivers/mmc/core/ |
H A D | core.c | 1 // 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. 24 #include <linux/fault-inject.h> 33 #include <linux/mmc/slot-gpio.h> 50 /* The max erase timeout, used when host->max_busy_timeout isn't specified */ 85 struct mmc_command *cmd = mrq->cmd; in mmc_should_fail_request() local 86 struct mmc_data *data = mrq->data; in mmc_should_fail_request() 88 -ETIMEDOUT, in mmc_should_fail_request() 89 -EILSEQ, in mmc_should_fail_request() [all …]
|
H A D | mmc_ops.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2006-2007 Pierre Ossman 24 #define MMC_OP_COND_PERIOD_US (4 * 1000) /* 4ms */ 66 struct mmc_command *cmd; member 72 struct mmc_command cmd = {}; in __mmc_send_status() local 74 cmd.opcode = MMC_SEND_STATUS; in __mmc_send_status() 75 if (!mmc_host_is_spi(card->host)) in __mmc_send_status() 76 cmd.arg = card->rca << 16; in __mmc_send_status() 77 cmd.flags = MMC_RSP_SPI_R2 | MMC_RSP_R1 | MMC_CMD_AC; in __mmc_send_status() 79 err = mmc_wait_for_cmd(card->host, &cmd, retries); in __mmc_send_status() [all …]
|
/openbmc/u-boot/drivers/mmc/ |
H A D | sdhci.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * Murray.Jensen@cmst.csiro.au, 27-Jan-01. 24 unsigned long timeout; in sdhci_reset() local 26 /* Wait max 100 ms */ in sdhci_reset() 27 timeout = 100; in sdhci_reset() 30 if (timeout == 0) { in sdhci_reset() 35 timeout--; in sdhci_reset() 40 static void sdhci_cmd_done(struct sdhci_host *host, struct mmc_cmd *cmd) in sdhci_cmd_done() argument 43 if (cmd->resp_type & MMC_RSP_136) { in sdhci_cmd_done() 46 cmd->response[i] = sdhci_readl(host, in sdhci_cmd_done() [all …]
|
H A D | fsl_esdhc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright 2007, 2010-2011 Freescale Semiconductor, Inc 8 * Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.net 25 #include <asm-generic/gpio.h> 54 uint autoc12err; /* Auto CMD error status register */ 110 * @non_removable: 0: removable; 1: non-removable 153 static uint esdhc_xfertyp(struct mmc_cmd *cmd, struct mmc_data *data) in esdhc_xfertyp() argument 162 if (data->blocks > 1) { in esdhc_xfertyp() 170 if (data->flags & MMC_DATA_READ) in esdhc_xfertyp() 174 if (cmd->resp_type & MMC_RSP_CRC) in esdhc_xfertyp() [all …]
|
H A D | tegra_mmc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Portions Copyright 2011-2016 NVIDIA Corporation 16 #include <asm/arch-tegra/tegra_mmc.h> 40 if (power != (unsigned short)-1) { in tegra_mmc_set_power() 58 writeb(pwr, &priv->reg->pwrcon); in tegra_mmc_set_power() 64 writeb(pwr, &priv->reg->pwrcon); in tegra_mmc_set_power() 74 debug("buf: %p (%p), data->blocks: %u, data->blocksize: %u\n", in tegra_mmc_prepare_data() 75 bbstate->bounce_buffer, bbstate->user_buffer, data->blocks, in tegra_mmc_prepare_data() 76 data->blocksize); in tegra_mmc_prepare_data() 78 writel((u32)(unsigned long)bbstate->bounce_buffer, &priv->reg->sysad); in tegra_mmc_prepare_data() [all …]
|
/openbmc/linux/drivers/watchdog/ |
H A D | rave-sp-wdt.c | 1 // 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 D | pnx4008_wdt.c | 1 // 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 D | sc520_wdt.c | 1 // 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 …]
|
/openbmc/linux/arch/x86/platform/olpc/ |
H A D | olpc.c | 1 // 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 …]
|
/openbmc/qemu/hw/misc/ |
H A D | mac_via.c | 4 * Copyright (c) 2011-2018 Laurent Vivier 5 * Copyright (c) 2018 Mark Cave-Ayland 9 * Copyright (c) 2004-2007 Fabrice Bellard 12 * some parts from linux-2.6.29, arch/m68k/include/asm/mac_via.h 15 * See the COPYING file in the top-level directory. 19 #include "exec/address-spaces.h" 30 #include "hw/qdev-properties.h" 31 #include "hw/qdev-properties-system.h" 32 #include "sysemu/block-backend.h" 77 * state-control line SEL" on all but IIfx [all …]
|
/openbmc/linux/include/linux/mmc/ |
H A D | core.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 40 #define MMC_CMD_MASK (3 << 5) /* non-SPI command type */ 69 #define mmc_resp_type(cmd) ((cmd)->flags & (MMC_RSP_PRESENT|MMC_RSP_136|MMC_RSP_CRC|MMC_RSP_BUSY|MM… argument 84 #define mmc_spi_resp_type(cmd) ((cmd)->flags & \ argument 90 #define mmc_cmd_type(cmd) ((cmd)->flags & MMC_CMD_MASK) argument 109 unsigned int busy_timeout; /* busy detect timeout in ms */ 110 struct mmc_data *data; /* data segment associated with cmd */ 115 unsigned int timeout_ns; /* data timeout (in ns, max 80ms) */ 116 unsigned int timeout_clks; /* data timeout (in clocks) */ 146 struct mmc_command *cmd; member [all …]
|
/openbmc/linux/drivers/crypto/ccp/ |
H A D | tee-dev.c | 1 // SPDX-License-Identifier: MIT 5 * Author: Rijo Thomas <Rijo-john.Thomas@amd.com> 18 #include <linux/psp-tee.h> 20 #include "psp-dev.h" 21 #include "tee-dev.h" 27 struct ring_buf_manager *rb_mgr = &tee->rb_mgr; in tee_alloc_ring() 31 return -EINVAL; in tee_alloc_ring() 38 return -ENOMEM; in tee_alloc_ring() 41 rb_mgr->ring_start = start_addr; in tee_alloc_ring() 42 rb_mgr->ring_size = ring_size; in tee_alloc_ring() [all …]
|
/openbmc/linux/drivers/spi/ |
H A D | spi-sprd-adi.c | 4 * 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 */ 142 unsigned long mode, void *cmd); 159 if (reg >= sadi->data->slave_addr_size) { in sprd_adi_check_addr() 160 dev_err(sadi->dev, in sprd_adi_check_addr() 163 return -EINVAL; in sprd_adi_check_addr() 171 u32 timeout = ADI_FIFO_DRAIN_TIMEOUT; in sprd_adi_drain_fifo() local 175 sts = readl_relaxed(sadi->base + REG_ADI_ARM_FIFO_STS); in sprd_adi_drain_fifo() [all …]
|
/openbmc/linux/drivers/nfc/ |
H A D | trf7970a.c | 1 // 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 …]
|
/openbmc/linux/drivers/usb/host/ |
H A D | ehci-timer.c | 1 // 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 …]
|
/openbmc/linux/drivers/fsi/ |
H A D | fsi-sbefifo.c | 1 // 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 …]
|
/openbmc/linux/drivers/platform/x86/ |
H A D | ideapad-laptop.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * ideapad-laptop.h - Lenovo IdeaPad ACPI Extras 58 return -EIO; in eval_int_with_arg() 66 static inline int eval_vpcr(acpi_handle handle, unsigned long cmd, unsigned long *res) in eval_vpcr() argument 68 return eval_int_with_arg(handle, "VPCR", cmd, res); in eval_vpcr() 71 static inline int eval_vpcw(acpi_handle handle, unsigned long cmd, unsigned long data) in eval_vpcw() argument 80 in_obj[0].integer.value = cmd; in eval_vpcw() 86 return -EIO; in eval_vpcw() 91 #define IDEAPAD_EC_TIMEOUT 200 /* in ms */ 93 static inline int read_ec_data(acpi_handle handle, unsigned long cmd, unsigned long *data) in read_ec_data() argument [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-highlander.c | 1 // SPDX-License-Identifier: GPL-2.0 56 iowrite16(ioread16(dev->base + SMCR) | SMCR_IEIC, dev->base + SMCR); in highlander_i2c_irq_enable() 61 iowrite16(ioread16(dev->base + SMCR) & ~SMCR_IEIC, dev->base + SMCR); in highlander_i2c_irq_disable() 66 iowrite16(ioread16(dev->base + SMCR) | SMCR_START, dev->base + SMCR); in highlander_i2c_start() 71 iowrite16(ioread16(dev->base + SMCR) | SMCR_IRIC, dev->base + SMCR); in highlander_i2c_done() 78 smmr = ioread16(dev->base + SMMR); in highlander_i2c_setup() 86 iowrite16(smmr, dev->base + SMMR); in highlander_i2c_setup() 91 for (; len > 1; len -= 2) { in smbus_write_data() 102 for (; len > 1; len -= 2) { in smbus_read_data() 115 u16 cmd = (command << 8) | command; in highlander_i2c_command() local [all …]
|
/openbmc/linux/drivers/net/wireless/intersil/orinoco/ |
H A D | orinoco_pci.c | 4 * (i.e. these are not PCMCIA cards in a PCMCIA-to-PCI bridge). 14 * Some of this code is "inspired" by linux-wlan-ng-0.1.10, but nothing 15 * has been copied from it. linux-wlan-ng-0.1.10 is originally : 20 * (C) Copyright David Gibson, IBM Corp. 2002-2003. 63 * Those times are straight from wlan-ng, and it is claimed that they 65 #define HERMES_PCI_COR_ONT (250) /* ms */ 66 #define HERMES_PCI_COR_OFFT (500) /* ms */ 67 #define HERMES_PCI_COR_BUSYT (500) /* ms */ 72 * This is the part of the code that is strongly inspired from wlan-ng 77 * need only around 245 iteration of the loop to do 250 ms delay. [all …]
|
/openbmc/qemu/hw/block/ |
H A D | pflash_cfi02.c | 23 * - flash read 24 * - flash write 25 * - flash ID read 26 * - sector erase 27 * - chip erase 28 * - unlock bypass command 29 * - CFI queries 38 #include "hw/qdev-properties.h" 39 #include "hw/qdev-properties-system.h" 41 #include "qemu/error-report.h" [all …]
|
/openbmc/linux/drivers/input/mouse/ |
H A D | cyapa_gen3.c | 9 * 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 …]
|
/openbmc/linux/drivers/media/tuners/ |
H A D | si2157.c | 1 // 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 …]
|