| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/serial/ |
| D | pl011.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rob Herring <robh@kernel.org> 13 - $ref: /schemas/serial.yaml# 21 - arm,pl011 22 - zte,zx296702-uart 24 - compatible 29 - items: 30 - const: arm,pl011 [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/serial/ |
| D | pl011.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rob Herring <robh@kernel.org> 13 - $ref: /schemas/arm/primecell.yaml# 14 - $ref: serial.yaml# 22 - arm,pl011 24 - compatible 29 - const: arm,pl011 30 - const: arm,primecell [all …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | iopoll.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2012-2014 The Linux Foundation. All rights reserved. 17 * read_poll_timeout - Periodically poll an address until a condition is 18 * met or a timeout occurs 23 * tight-loops). Should be less than ~20ms since usleep_range 24 * is used (see Documentation/timers/timers-howto.rst). 25 * @timeout_us: Timeout in us, 0 means never timeout 27 * @args: arguments for @op poll 29 * Returns 0 on success and -ETIMEDOUT upon a timeout. In either 58 (cond) ? 0 : -ETIMEDOUT; \ [all …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | iopoll.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2012-2014 The Linux Foundation. All rights reserved. 17 * read_poll_timeout - Periodically poll an address until a condition is 18 * met or a timeout occurs 23 * tight-loops). Should be less than ~20ms since usleep_range 24 * is used (see Documentation/timers/timers-howto.rst). 25 * @timeout_us: Timeout in us, 0 means never timeout 27 * @args: arguments for @op poll 29 * Returns 0 on success and -ETIMEDOUT upon a timeout. In either 58 (cond) ? 0 : -ETIMEDOUT; \ [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-6.6/sound/soc/intel/common/ |
| D | sst-dsp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <linux/io-64-nonatomic-lo-hi.h> 16 #include "sst-dsp.h" 17 #include "sst-dsp-priv.h" 20 #include <trace/events/intel-sst.h> 22 /* Internal generic low-level SST IO functions - can be overidden */ 52 spin_lock_irqsave(&sst->spinlock, flags); in sst_dsp_shim_write() 53 sst->ops->write(sst->addr.shim, offset, value); in sst_dsp_shim_write() 54 spin_unlock_irqrestore(&sst->spinlock, flags); in sst_dsp_shim_write() 63 spin_lock_irqsave(&sst->spinlock, flags); in sst_dsp_shim_read() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/intel/common/ |
| D | sst-dsp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <linux/io-64-nonatomic-lo-hi.h> 16 #include "sst-dsp.h" 17 #include "sst-dsp-priv.h" 20 #include <trace/events/intel-sst.h> 22 /* Internal generic low-level SST IO functions - can be overidden */ 52 spin_lock_irqsave(&sst->spinlock, flags); in sst_dsp_shim_write() 53 sst->ops->write(sst->addr.shim, offset, value); in sst_dsp_shim_write() 54 spin_unlock_irqrestore(&sst->spinlock, flags); in sst_dsp_shim_write() 63 spin_lock_irqsave(&sst->spinlock, flags); in sst_dsp_shim_read() [all …]
|
| /kernel/linux/linux-6.6/arch/powerpc/include/asm/ |
| D | delay.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 23 * is supposed to take 1ms, the hypervisor could sleep our partition for 24 * longer (eg 10ms). With the right timing these errors can add up. 34 * spin_event_timeout - spin until a condition gets true or a timeout elapses 36 * @timeout: timeout, in microseconds 40 * The process spins until the condition evaluates to true (non-zero) or the 41 * timeout elapses. The return value of this macro is the value of 44 * timeout has occurred. 46 * This primary purpose of this macro is to poll on a hardware register 47 * until a status bit changes. The timeout ensures that the loop still [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
| D | delay.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 23 * is supposed to take 1ms, the hypervisor could sleep our partition for 24 * longer (eg 10ms). With the right timing these errors can add up. 34 * spin_event_timeout - spin until a condition gets true or a timeout elapses 36 * @timeout: timeout, in microseconds 40 * The process spins until the condition evaluates to true (non-zero) or the 41 * timeout elapses. The return value of this macro is the value of 44 * timeout has occurred. 46 * This primary purpose of this macro is to poll on a hardware register 47 * until a status bit changes. The timeout ensures that the loop still [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-5.10/drivers/usb/misc/ |
| D | legousbtower.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * 2001-2004 Juergen Stuber <starblue@users.sourceforge.net> 8 * derived from USB Skeleton driver - 0.5 9 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com) 13 * 2001-10-13 - 0.1 js 14 * - first version 15 * 2001-11-03 - 0.2 js 16 * - simplified buffering, one-shot URBs for writing 17 * 2001-11-10 - 0.3 js 18 * - removed IOCTL (setting power/mode is more complicated, postponed) [all …]
|
| /kernel/linux/linux-6.6/drivers/usb/misc/ |
| D | legousbtower.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * 2001-2004 Juergen Stuber <starblue@users.sourceforge.net> 8 * derived from USB Skeleton driver - 0.5 9 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com) 13 * 2001-10-13 - 0.1 js 14 * - first version 15 * 2001-11-03 - 0.2 js 16 * - simplified buffering, one-shot URBs for writing 17 * 2001-11-10 - 0.3 js 18 * - removed IOCTL (setting power/mode is more complicated, postponed) [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/ti/wl1251/ |
| D | ps.c | 1 // SPDX-License-Identifier: GPL-2.0-only 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 57 cancel_delayed_work(&wl->elp_work); in wl1251_ps_elp_wakeup() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/ti/wl1251/ |
| D | ps.c | 1 // SPDX-License-Identifier: GPL-2.0-only 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 57 cancel_delayed_work(&wl->elp_work); in wl1251_ps_elp_wakeup() [all …]
|
| /kernel/linux/linux-6.6/drivers/rtc/ |
| D | rtc-mc146818-lib.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 * Execute a function while the UIP (Update-in-progress) bit of the RTC is 17 * unset. The timeout is configurable by the caller in ms. 22 int timeout, in mc146818_avoid_UIP() argument 29 for (i = 0; UIP_RECHECK_LOOPS_MS(i) < timeout; i++) { in mc146818_avoid_UIP() 34 * readout is unspecified. The maximum update time is ~2ms. Poll in mc146818_avoid_UIP() 81 pr_warn("Reading current time from RTC took around %li ms\n", in mc146818_avoid_UIP() 91 * If the UIP (Update-in-progress) bit of the RTC is set for more then 92 * 10ms, the RTC is apparently broken or not present. 119 * by the RTC when initially set to a non-zero value. in mc146818_get_time_callback() [all …]
|
| /kernel/linux/linux-5.10/drivers/parport/ |
| D | ieee1284.c | 2 * IEEE-1284 implementation for parport. 5 * Carsten Gross <carsten@sol.wohnheim.uni-ulm.de> 10 * read/write requests to low-level drivers. 38 up (&port->physport->ieee1284.irq); in parport_ieee1284_wakeup() 49 * parport_wait_event - wait for an event on a parallel port 51 * @timeout: time to wait (in jiffies) 53 * This function waits for up to @timeout jiffies for an 54 * interrupt to occur on a parallel port. If the port timeout is 57 * If an interrupt occurs before the timeout period elapses, this 64 int parport_wait_event (struct parport *port, signed long timeout) in parport_wait_event() argument [all …]
|
| /kernel/linux/linux-6.6/drivers/parport/ |
| D | ieee1284.c | 2 * IEEE-1284 implementation for parport. 5 * Carsten Gross <carsten@sol.wohnheim.uni-ulm.de> 10 * read/write requests to low-level drivers. 38 up (&port->physport->ieee1284.irq); in parport_ieee1284_wakeup() 49 * parport_wait_event - wait for an event on a parallel port 51 * @timeout: time to wait (in jiffies) 53 * This function waits for up to @timeout jiffies for an 54 * interrupt to occur on a parallel port. If the port timeout is 57 * If an interrupt occurs before the timeout period elapses, this 64 int parport_wait_event (struct parport *port, signed long timeout) in parport_wait_event() argument [all …]
|
| /kernel/linux/linux-6.6/fs/ |
| D | eventpoll.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 #include <linux/poll.h> 47 * 2) ep->mtx (mutex) 48 * 3) ep->lock (rwlock) 51 * We need a rwlock (ep->lock) because we manipulate objects 52 * from inside the poll callback, that might be triggered from 54 * So we can't sleep inside the poll callback and hence we need 58 * mutex (ep->mtx). It is acquired during the event transfer loop, 67 * It is necessary to acquire multiple "ep->mtx"es at once in the 70 * epoll_ctl(e1, EPOLL_CTL_ADD, e2), e1->mtx will always be acquired [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/i915/ |
| D | intel_pcode.c | 1 // SPDX-License-Identifier: MIT 3 * Copyright © 2013-2021 Intel Corporation 16 return -ENODEV; in gen6_check_mailbox_status() 18 return -ENXIO; in gen6_check_mailbox_status() 21 return -EOVERFLOW; in gen6_check_mailbox_status() 23 return -ETIMEDOUT; in gen6_check_mailbox_status() 36 return -ENXIO; in gen7_check_mailbox_status() 38 return -ETIMEDOUT; in gen7_check_mailbox_status() 40 return -EINVAL; in gen7_check_mailbox_status() 42 return -ENXIO; in gen7_check_mailbox_status() [all …]
|
| /kernel/linux/linux-6.6/drivers/mmc/core/ |
| 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 */ 75 if (!mmc_host_is_spi(card->host)) in __mmc_send_status() 76 cmd.arg = card->rca << 16; in __mmc_send_status() 79 err = mmc_wait_for_cmd(card->host, &cmd, retries); in __mmc_send_status() 106 cmd.arg = card->rca << 16; in _mmc_select_card() 119 return _mmc_select_card(card->host, card); in mmc_select_card() 141 cmd.arg = (host->dsr << 16) | 0xffff; in mmc_set_dsr() 153 * Non-SPI hosts need to prevent chipselect going active during in mmc_go_idle() [all …]
|
| /kernel/linux/linux-6.6/drivers/scsi/qla2xxx/ |
| D | qla_nx2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2003-2014 QLogic Corporation 36 return readl((void __iomem *) (ha->nx_pcibase + addr)); in qla8044_rd_reg() 42 writel(val, (void __iomem *)((ha)->nx_pcibase + addr)); in qla8044_wr_reg() 49 struct qla_hw_data *ha = vha->hw; in qla8044_rd_direct() 62 struct qla_hw_data *ha = vha->hw; in qla8044_wr_direct() 73 struct qla_hw_data *ha = vha->hw; in qla8044_set_win_base() 75 qla8044_wr_reg(ha, QLA8044_CRB_WIN_FUNC(ha->portnum), addr); in qla8044_set_win_base() 76 val = qla8044_rd_reg(ha, QLA8044_CRB_WIN_FUNC(ha->portnum)); in qla8044_set_win_base() 92 struct qla_hw_data *ha = vha->hw; in qla8044_rd_reg_indirect() [all …]
|
| /kernel/linux/linux-5.10/drivers/scsi/qla2xxx/ |
| D | qla_nx2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2003-2014 QLogic Corporation 36 return readl((void __iomem *) (ha->nx_pcibase + addr)); in qla8044_rd_reg() 42 writel(val, (void __iomem *)((ha)->nx_pcibase + addr)); in qla8044_wr_reg() 49 struct qla_hw_data *ha = vha->hw; in qla8044_rd_direct() 62 struct qla_hw_data *ha = vha->hw; in qla8044_wr_direct() 73 struct qla_hw_data *ha = vha->hw; in qla8044_set_win_base() 75 qla8044_wr_reg(ha, QLA8044_CRB_WIN_FUNC(ha->portnum), addr); in qla8044_set_win_base() 76 val = qla8044_rd_reg(ha, QLA8044_CRB_WIN_FUNC(ha->portnum)); in qla8044_set_win_base() 92 struct qla_hw_data *ha = vha->hw; in qla8044_rd_reg_indirect() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/ |
| D | ixgbe_82598.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 25 * ixgbe_set_pcie_completion_timeout - set pci-e completion timeout 28 * The defaults for 82598 should be in the range of 50us to 50ms, 29 * however the hardware default for these parts is 500us to 1ms which is less 30 * than the 10ms recommended by the pci-e spec. To address this we need to 31 * increase the value to either 10ms to 250ms for capability version 1 config, 32 * or 16ms to 55ms for version 2. 39 if (ixgbe_removed(hw->hw_addr)) in ixgbe_set_pcie_completion_timeout() 42 /* only take action if timeout value is defaulted to 0 */ in ixgbe_set_pcie_completion_timeout() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
| D | ixgbe_82598.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 25 * ixgbe_set_pcie_completion_timeout - set pci-e completion timeout 28 * The defaults for 82598 should be in the range of 50us to 50ms, 29 * however the hardware default for these parts is 500us to 1ms which is less 30 * than the 10ms recommended by the pci-e spec. To address this we need to 31 * increase the value to either 10ms to 250ms for capability version 1 config, 32 * or 16ms to 55ms for version 2. 39 if (ixgbe_removed(hw->hw_addr)) in ixgbe_set_pcie_completion_timeout() 42 /* only take action if timeout value is defaulted to 0 */ in ixgbe_set_pcie_completion_timeout() [all …]
|