/linux-6.12.1/Documentation/devicetree/bindings/peci/ |
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 …]
|
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 …]
|
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 …]
|
/linux-6.12.1/drivers/mmc/core/ |
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 …]
|
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 …]
|
/linux-6.12.1/drivers/watchdog/ |
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 …]
|
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 …]
|
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 …]
|
/linux-6.12.1/arch/x86/platform/olpc/ |
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 …]
|
/linux-6.12.1/include/linux/mmc/ |
D | core.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 27 #define MMC_CMD_MASK (3 << 5) /* non-SPI command type */ 56 #define mmc_resp_type(cmd) ((cmd)->flags & (MMC_RSP_PRESENT|MMC_RSP_136|MMC_RSP_CRC|MMC_RSP_BUSY|MM… argument 71 #define mmc_spi_resp_type(cmd) ((cmd)->flags & \ argument 77 #define mmc_cmd_type(cmd) ((cmd)->flags & MMC_CMD_MASK) argument 96 unsigned int busy_timeout; /* busy detect timeout in ms */ 97 struct mmc_data *data; /* data segment associated with cmd */ 102 unsigned int timeout_ns; /* data timeout (in ns, max 80ms) */ 103 unsigned int timeout_clks; /* data timeout (in clocks) */ 133 struct mmc_command *cmd; member [all …]
|
/linux-6.12.1/drivers/nfc/ |
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 …]
|
/linux-6.12.1/drivers/spi/ |
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 */ 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-6.12.1/drivers/usb/host/ |
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 …]
|
/linux-6.12.1/drivers/fsi/ |
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 …]
|
/linux-6.12.1/drivers/i2c/busses/ |
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 …]
|
/linux-6.12.1/drivers/input/mouse/ |
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 …]
|
/linux-6.12.1/drivers/media/tuners/ |
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 …]
|
/linux-6.12.1/drivers/mmc/host/ |
D | mxs-mmc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Portions copyright (C) 2004-2005 Pierre Ossman, W83L51xD SD/MMC driver 7 * Copyright 2009-2011 Freescale Semiconductor, Inc. 17 #include <linux/dma-mapping.h> 19 #include <linux/dma/mxs-dma.h> 27 #include <linux/mmc/slot-gpio.h> 31 #include <linux/spi/mxs-spi.h> 33 #define DRIVER_NAME "mxs-mmc" 44 /* card detect polling timeout */ 52 struct mmc_command *cmd; member [all …]
|
D | sdhci.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * linux/drivers/mmc/host/sdhci.h - Secure Digital Host Controller Interface driver 7 * Copyright (C) 2005-2008 Pierre Ossman, All Rights Reserved. 103 * VDD2 - UHS2 or PCIe/NVMe 174 #define SDHCI_INT_ALL_MASK ((unsigned int)-1) 196 #define SDHCI_CTRL_HS400 0x0005 /* Non-standard */ 243 #define SDHCI_SUPPORT_HS400 0x80000000 /* Non-standard */ 252 /* 4C-4F reserved for more max current */ 259 /* 55-57 reserved */ 264 /* 60-FB reserved */ [all …]
|
/linux-6.12.1/drivers/net/wireless/ti/wl1251/ |
D | ps.c | 1 // 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-6.12.1/drivers/thunderbolt/ |
D | nhi_ops.c | 1 // 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-6.12.1/drivers/input/touchscreen/ |
D | cyttsp_core.c | 1 // 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-6.12.1/drivers/nvme/host/ |
D | ioctl.c | 1 // 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-6.12.1/drivers/net/wireless/intel/iwlwifi/fw/ |
D | file.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2008-2014, 2018-2024 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 55 IWL_UCODE_TLV_PAN = 7, /* deprecated -- only used in DVM */ 56 IWL_UCODE_TLV_MEM_DESC = 7, /* replaces PAN in non-DVM */ 117 /* TLVs 0x1000-0x2000 are for internal driver usage */ 169 * enum iwl_ucode_tlv_flag - ucode API flags 205 * enum iwl_ucode_tlv_api - ucode api 209 * @IWL_UCODE_TLV_API_LQ_SS_PARAMS: Configure STBC/BFER via LQ CMD ss_params [all …]
|
/linux-6.12.1/drivers/net/ethernet/engleder/ |
D | tsnep_selftests.c | 1 // 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 …]
|