| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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> 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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/drivers/net/wimax/i2400m/ |
| D | control.c | 6 * Copyright (C) 2007-2008 Intel Corporation. All rights reserved. 35 * Intel Corporation <linux-wimax@intel.com> 36 * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> 37 * - Initial implementation 59 * i2400m_{cmd,get,set}_*() 86 #include "debug-levels.h" 116 * @tlv_size: expected size of the TLV we are looking for (if -1, 127 if (le16_to_cpu(tlv->type) != tlv_type) /* Not our type? skip */ in i2400m_tlv_match() 128 return -1; in i2400m_tlv_match() 129 if (tlv_size != -1 in i2400m_tlv_match() [all …]
|
| /kernel/linux/linux-5.10/include/linux/mmc/ |
| 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 …]
|
| /kernel/linux/linux-6.6/include/linux/mmc/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/crypto/ccp/ |
| D | tee-dev.c | 1 // SPDX-License-Identifier: MIT 5 * Author: Rijo Thomas <Rijo-john.Thomas@amd.com> 16 #include <linux/psp-sev.h> 17 #include <linux/psp-tee.h> 19 #include "psp-dev.h" 20 #include "tee-dev.h" 26 struct ring_buf_manager *rb_mgr = &tee->rb_mgr; in tee_alloc_ring() 30 return -EINVAL; in tee_alloc_ring() 37 return -ENOMEM; in tee_alloc_ring() 40 rb_mgr->ring_start = start_addr; in tee_alloc_ring() [all …]
|
| /kernel/linux/linux-6.6/drivers/crypto/ccp/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/ide/ |
| D | ide-eh.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 ide_hwif_t *hwif = drive->hwif; in ide_ata_error() 14 ((stat & ATA_DF) && (drive->dev_flags & IDE_DFLAG_NOWERR) == 0)) { in ide_ata_error() 16 scsi_req(rq)->result |= ERROR_RESET; in ide_ata_error() 20 if ((drive->dev_flags & IDE_DFLAG_LBA) && in ide_ata_error() 22 hwif->tp_ops->read_status(hwif) == ATA_CMD_INIT_DEV_PARAMS) in ide_ata_error() 26 drive->crc_count++; in ide_ata_error() 29 scsi_req(rq)->result = ERROR_MAX; in ide_ata_error() 32 scsi_req(rq)->result |= ERROR_RECAL; in ide_ata_error() 37 (hwif->host_flags & IDE_HFLAG_ERROR_STOPS_FIFO) == 0) { in ide_ata_error() [all …]
|
| /kernel/linux/linux-5.10/drivers/spi/ |
| D | spi-sprd-adi.c | 4 * SPDX-License-Identifier: GPL-2.0 37 #define REG_ADI_CHN_ADDR(id) (0x44 + (id - 2) * 4) 60 /* Timeout (ms) for the trylock of hardware spinlocks */ 105 /* Use default timeout 50 ms that converts to watchdog values */ 122 if (paddr < sadi->slave_pbase || paddr > in sprd_adi_check_paddr() 123 (sadi->slave_pbase + ADI_SLAVE_ADDR_SIZE)) { in sprd_adi_check_paddr() 124 dev_err(sadi->dev, in sprd_adi_check_paddr() 127 return -EINVAL; in sprd_adi_check_paddr() 135 return (paddr - sadi->slave_pbase + sadi->slave_vbase); in sprd_adi_to_vaddr() 140 u32 timeout = ADI_FIFO_DRAIN_TIMEOUT; in sprd_adi_drain_fifo() local [all …]
|
| /kernel/linux/linux-6.6/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 */ 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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|