| /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 …]
|
| /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 …]
|
| /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 …]
|
| /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 …]
|
| /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 */ 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 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/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 …]
|
| /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 …]
|
| H A D | cyapa.h | 6 * 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 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/drivers/thunderbolt/ |
| H A 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/drivers/net/wireless/ti/wl1251/ |
| H A 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/drivers/net/wireless/intel/iwlwifi/fw/ |
| H A 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 */ 107 /* contains sub-sections like PNVM file does (did) */ 122 /* TLVs 0x1000-0x2000 are for internal driver usage */ 174 * enum iwl_ucode_tlv_flag - ucode API flags 210 * enum iwl_ucode_tlv_api - ucode api [all …]
|
| /linux/drivers/net/ethernet/engleder/ |
| H A 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 …]
|
| /linux/drivers/scsi/csiostor/ |
| H A D | csio_mb.c | 4 * 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 D | nwflash.c | 1 // 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 D | cx24110.c | 1 // 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 D | fc_els.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 5 * Maintained at www.Open-FCoE.org 21 * Fibre Channel Switch - Enhanced Link Services definitions. 22 * From T11 FC-LS Rev 1.2 June 7, 2005. 26 * ELS Command codes - byte 0 of the frame payload 34 ELS_ABTX = 0x06, /* Abort exchange - obsolet 310 __u8 cmd; /* ELS cmd byte */ global() member [all...] |
| /linux/drivers/char/ipmi/ |
| H A D | ssif_bmc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 22 #define DEVICE_NAME "ipmi-ssif-host" 44 * Request-to-Response Time is T6max(250ms) - T1max(20ms) - 3ms = 227ms 45 * Recover ssif_bmc from busy state if it takes up to 500ms 47 #define RESPONSE_TIMEOUT 500 /* ms */ 87 /* Timeout waiting for response */ 90 /* Flag to identify a Multi-part Read Transaction */ 95 /* Block Number of a Multi-part Read Transaction */ 109 return container_of(file->private_data, struct ssif_bmc_ctx, miscdev); in to_ssif_bmc() 140 spin_lock_irqsave(&ssif_bmc->lock, flags); in ssif_bmc_read() [all …]
|
| /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 …]
|
| /linux/drivers/usb/gadget/udc/bdc/ |
| H A D | bdc_cmd.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * bdc_cmd.c - BRCM BDC USB3.0 device controller 16 /* Issues a cmd to cmd processor and waits for cmd completion */ 20 u32 timeout = BDC_CMD_TIMEOUT; in bdc_issue_cmd() local 24 bdc_writel(bdc->regs, BDC_CMDPAR0, param0); in bdc_issue_cmd() 25 bdc_writel(bdc->regs, BDC_CMDPAR1, param1); in bdc_issue_cmd() 26 bdc_writel(bdc->regs, BDC_CMDPAR2, param2); in bdc_issue_cmd() 28 /* Issue the cmd */ in bdc_issue_cmd() 29 /* Make sure the cmd params are written before asking HW to exec cmd */ in bdc_issue_cmd() 31 bdc_writel(bdc->regs, BDC_CMDSC, cmd_sc | BDC_CMD_CWS | BDC_CMD_SRD); in bdc_issue_cmd() [all …]
|