| /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/arch/powerpc/include/asm/ |
| H A 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 …]
|
| /linux/drivers/usb/misc/ |
| H A 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 …]
|
| /linux/drivers/net/wireless/ti/wl1251/ |
| H A 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 …]
|
| /linux/drivers/rtc/ |
| H A 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 …]
|
| /linux/drivers/parport/ |
| H A 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 …]
|
| /linux/fs/ |
| H A D | eventpoll.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 #include <linux/poll.h> 48 * 2) ep->mtx (mutex) 49 * 3) ep->lock (spinlock) 52 * We need a spinlock (ep->lock) because we manipulate objects 53 * from inside the poll callback, that might be triggered from 55 * So we can't sleep inside the poll callback and hence we need 59 * mutex (ep->mtx). It is acquired during the event transfer loop, 68 * It is necessary to acquire multiple "ep->mtx"es at once in the 71 * epoll_ctl(e1, EPOLL_CTL_ADD, e2), e1->mtx will always be acquired [all …]
|
| /linux/drivers/scsi/qla2xxx/ |
| H A 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 …]
|
| /linux/tools/perf/tests/shell/common/ |
| H A D | patterns.sh | 1 # SPDX-License-Identifier: GPL-2.0 3 export RE_NUMBER="[0-9\.]+" 9 export RE_NUMBER_HEX="[0-9A-Fa-f]+" 18 …xport RE_DATE_YYYYMMDD="[0-9]{4}-(?:(?:01|03|05|07|08|10|12)-(?:[0-2][0-9]|3[0-1])|02-[0-2][0-9]|(… 19 # Date in YYYY-MM-DD form 21 # 1990-02-29 22 # 0015-07-31 23 # 2456-12-31 24 #! 2012-13-01 25 #! 1963-09-31 [all …]
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_82598.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 26 * ixgbe_set_pcie_completion_timeout - set pci-e completion timeout 29 * The defaults for 82598 should be in the range of 50us to 50ms, 30 * however the hardware default for these parts is 500us to 1ms which is less 31 * than the 10ms recommended by the pci-e spec. To address this we need to 32 * increase the value to either 10ms to 250ms for capability version 1 config, 33 * or 16ms to 55ms for version 2. 40 if (ixgbe_removed(hw->hw_addr)) in ixgbe_set_pcie_completion_timeout() 43 /* only take action if timeout value is defaulted to 0 */ in ixgbe_set_pcie_completion_timeout() [all …]
|
| /linux/drivers/media/common/saa7146/ |
| H A D | saa7146_i2c.c | 1 // SPDX-License-Identifier: GPL-2.0 4 #include <media/drv-intf/saa7146_vv.h> 8 /* DEB_I2C("'%s'\n", adapter->name); */ in saa7146_i2c_func() 16 /* this function returns the status-register of our i2c-device */ 24 /* this function runs through the i2c-messages and prepares the data to be 26 to understand this. it returns the number of u32s to send, or -1 41 mem = 1 + ((mem-1) / 3); in saa7146_i2c_msg_prepare() 47 /* DEB_I2C("cannot prepare i2c-message\n"); */ in saa7146_i2c_msg_prepare() 48 return -ENOMEM; in saa7146_i2c_msg_prepare() 51 /* be careful: clear out the i2c-mem first */ in saa7146_i2c_msg_prepare() [all …]
|
| /linux/tools/testing/selftests/thermal/intel/workload_hint/ |
| H A D | workload_hint_test.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <poll.h> 66 printf("Setting notification delay to %d ms\n", delay); in main() 129 ret = poll(&ufd, 1, -1); in main() 131 perror("poll error"); in main() 134 printf("Poll Timeout\ in main() [all...] |
| /linux/drivers/usb/musb/ |
| H A D | mpfs.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2020-2022 Microchip Corporation. All rights reserved. 11 #include <linux/dma-mapping.h> 61 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in mpfs_musb_set_vbus() 64 musb->is_active = 1; in mpfs_musb_set_vbus() 65 musb->xceiv->otg->default_a = 1; in mpfs_musb_set_vbus() 66 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in mpfs_musb_set_vbus() 70 musb->is_active = 0; in mpfs_musb_set_vbus() 73 * NOTE: skipping A_WAIT_VFALL -> A_IDLE and in mpfs_musb_set_vbus() 76 musb->xceiv->otg->default_a = 0; in mpfs_musb_set_vbus() [all …]
|
| /linux/drivers/net/ethernet/qlogic/qlcnic/ |
| H A D | qlcnic_minidump.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2009-2013 QLogic Corporation 79 u16 timeout; member 81 u16 timeout; member 274 return hdr->saved_state[index]; in qlcnic_82xx_get_saved_state() 282 hdr->saved_state[index] = value; in qlcnic_82xx_set_saved_state() 289 hdr = fw_dump->tmpl_hdr; in qlcnic_82xx_cache_tmpl_hdr_values() 290 fw_dump->tmpl_hdr_size = hdr->size; in qlcnic_82xx_cache_tmpl_hdr_values() 291 fw_dump->version = hdr->version; in qlcnic_82xx_cache_tmpl_hdr_values() 292 fw_dump->num_entries = hdr->num_entries; in qlcnic_82xx_cache_tmpl_hdr_values() [all …]
|
| H A D | qlcnic_83xx_init.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2009-2013 QLogic Corporation 83 /* Generic poll command */ 136 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE); in qlcnic_83xx_idc_check_driver_presence_reg() 146 cur = adapter->ahw->idc.curr_state; in qlcnic_83xx_idc_log_state_history() 147 prev = adapter->ahw->idc.prev_state; in qlcnic_83xx_idc_log_state_history() 149 dev_info(&adapter->pdev->dev, in qlcnic_83xx_idc_log_state_history() 151 adapter->ahw->idc.name[cur], in qlcnic_83xx_idc_log_state_history() 152 adapter->ahw->idc.name[prev]); in qlcnic_83xx_idc_log_state_history() 163 return -EBUSY; in qlcnic_83xx_idc_update_audit_reg() [all …]
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_pcode.c | 1 // SPDX-License-Identifier: MIT 10 #include <linux/error-injection.h> 29 * - PCODE hw metrics 30 * - PCODE for display operations 37 [PCODE_ILLEGAL_CMD] = {-ENXIO, "Illegal Command"}, in pcode_mailbox_status() 38 [PCODE_TIMEOUT] = {-ETIMEDOUT, "Timed out"}, in pcode_mailbox_status() 39 [PCODE_ILLEGAL_DATA] = {-EINVAL, "Illegal Data"}, in pcode_mailbox_status() 40 [PCODE_ILLEGAL_SUBCOMMAND] = {-ENXIO, "Illegal Subcommand"}, in pcode_mailbox_status() 41 [PCODE_LOCKED] = {-EBUSY, "PCODE Locked"}, in pcode_mailbox_status() 42 [PCODE_GT_RATIO_OUT_OF_RANGE] = {-EOVERFLOW, in pcode_mailbox_status() [all …]
|
| /linux/drivers/net/wireless/ti/wlcore/ |
| H A D | conf.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 117 * Range: 0 - 0xFFFFFFFF 130 * after a PS-poll has been transmitted. 132 * Range: 0 - 200000 139 * Range: 0 - 200000 147 * Range: 0 - 4096 161 * Occupied Rx mem-blocks number which requires interrupting the host 177 * Max time in msec the FW may delay RX-Complete interrupt. 179 * Range: 1 - 100 273 * Range: bit 0: Truncate - when set, FW attempts to send a frame stop [all …]
|
| /linux/drivers/iio/pressure/ |
| H A D | dps310.c | 1 // SPDX-License-Identifier: GPL-2.0+ 14 * - Optionally support the FIFO 60 /* Make sure sleep time is <= 30ms for usleep_range */ 119 rc = regmap_bulk_read(data->regmap, DPS310_COEF_BASE, coef, in dps310_get_coefs() 126 * numbers are 12-bit 2's complement numbers. in dps310_get_coefs() 129 data->c0 = sign_extend32(c0, 11); in dps310_get_coefs() 132 data->c1 = sign_extend32(c1, 11); in dps310_get_coefs() 140 data->c00 = sign_extend32(c00, 19); in dps310_get_coefs() 143 data->c10 = sign_extend32(c10, 19); in dps310_get_coefs() 146 data->c01 = sign_extend32(c01, 15); in dps310_get_coefs() [all …]
|
| /linux/drivers/media/dvb-core/ |
| H A D | dvb_ca_en50221.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 13 * Copyright (C) 1999-2002 Ralph Metzler 109 unsigned long timeout; member 112 /* Private CA-interface information */ 147 * Slot to start looking for data to read from in the next user-space 166 dvb_device_put(ca->dvbdev); in dvb_ca_private_free() 167 for (i = 0; i < ca->slot_count; i++) in dvb_ca_private_free() 168 vfree(ca->slot_info[i].rx_buffer.data); in dvb_ca_private_free() 170 kfree(ca->slot_info); in dvb_ca_private_free() 184 kref_get(&ca->refcount); in dvb_ca_private_get() [all …]
|
| /linux/drivers/net/wireless/ath/ath6kl/ |
| H A D | hif.c | 2 * Copyright (c) 2007-2011 Atheros Communications Inc. 3 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc. 23 #include "hif-ops.h" 29 #define ATH6KL_TIME_QUANTUM 10 /* in ms */ 37 buf = req->virt_dma_buf; in ath6kl_hif_cp_scat_dma_buf() 39 for (i = 0; i < req->scat_entries; i++) { in ath6kl_hif_cp_scat_dma_buf() 41 memcpy(req->scat_list[i].buf, buf, in ath6kl_hif_cp_scat_dma_buf() 42 req->scat_list[i].len); in ath6kl_hif_cp_scat_dma_buf() 44 memcpy(buf, req->scat_list[i].buf, in ath6kl_hif_cp_scat_dma_buf() 45 req->scat_list[i].len); in ath6kl_hif_cp_scat_dma_buf() [all …]
|
| /linux/drivers/net/dsa/mv88e6xxx/ |
| H A D | smi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 * When ADDR is all zero, the chip uses Single-chip Addressing Mode, assuming it 20 * When ADDR is non-zero, the chip uses Multi-chip Addressing Mode, allowing 34 ret = mdiobus_read_nested(chip->bus, dev, reg); in mv88e6xxx_smi_direct_read() 48 ret = mdiobus_write_nested(chip->bus, dev, reg, data); in mv88e6xxx_smi_direct_write() 58 const unsigned long timeout = jiffies + msecs_to_jiffies(50); in mv88e6xxx_smi_direct_wait() local 63 /* Even if the initial poll takes longer than 50ms, always do in mv88e6xxx_smi_direct_wait() 66 for (i = 0; time_before(jiffies, timeout) || (i < 2); i++) { in mv88e6xxx_smi_direct_wait() 80 return -ETIMEDOUT; in mv88e6xxx_smi_direct_wait() 91 return mv88e6xxx_smi_direct_read(chip, chip->sw_addr + dev, reg, data); in mv88e6xxx_smi_dual_direct_read() [all …]
|
| /linux/include/linux/usb/ |
| H A D | rndis_host.h | 1 // SPDX-License-Identifier: GPL-2.0+ 14 * - control-out: SEND_ENCAPSULATED 15 * - interrupt-in: RESPONSE_AVAILABLE 16 * - control-in: GET_ENCAPSULATED 32 /* MS-Windows uses this strange size, but RNDIS spec says 1024 minimum */ 35 /* RNDIS defines an (absurdly huge) 10 second control timeout, 36 * but ActiveSync seems to use a more usual 5 second timeout 44 __le32 data_offset; /* 36 -- right after header */ 185 #define RNDIS_DRIVER_DATA_POLL_STATUS 1 /* poll status before control */
|
| /linux/drivers/scsi/qla4xxx/ |
| H A D | ql4_nx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2003-2013 QLogic Corporation 14 #include <linux/io-64-nonatomic-lo-hi.h> 40 if ((off < ha->first_page_group_end) && in qla4_8xxx_pci_base_offsetfset() 41 (off >= ha->first_page_group_start)) in qla4_8xxx_pci_base_offsetfset() 42 return (void __iomem *)(ha->nx_pcibase + off); in qla4_8xxx_pci_base_offsetfset() 100 qla4_8xxx_crb_addr_transform(MS); in qla4_82xx_crb_addr_transform_setup() 219 {{{1, 0x1d00000, 0x1d10000, 0x190000} } },/* 29: MS */ 363 ha->crb_win = CRB_HI(*off); in qla4_82xx_pci_set_crbwindow_2M() 364 writel(ha->crb_win, in qla4_82xx_pci_set_crbwindow_2M() [all …]
|
| H A D | ql4_83xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2003-2013 QLogic Corporation 17 return readl((void __iomem *)(ha->nx_pcibase + addr)); in qla4_83xx_rd_reg() 22 writel(val, (void __iomem *)(ha->nx_pcibase + addr)); in qla4_83xx_wr_reg() 30 qla4_83xx_wr_reg(ha, QLA83XX_CRB_WIN_FUNC(ha->func_num), addr); in qla4_83xx_set_win_base() 31 val = qla4_83xx_rd_reg(ha, QLA83XX_CRB_WIN_FUNC(ha->func_num)); in qla4_83xx_set_win_base() 78 int timeout = 0; in qla4_83xx_flash_lock() local 87 if (++timeout >= QLA83XX_FLASH_LOCK_TIMEOUT / 20) { in qla4_83xx_flash_lock() 91 __func__, ha->func_num, lock_owner); in qla4_83xx_flash_lock() 98 qla4_83xx_wr_reg(ha, QLA83XX_FLASH_LOCK_ID, ha->func_num); in qla4_83xx_flash_lock() [all …]
|
| /linux/include/uapi/linux/ |
| H A D | fd.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28 #define FD_SECTBASE(floppy) ((((floppy)->stretch & FD_SECTBASEMASK) >> 2) ^ 1) 35 #define FD_SIZECODE(floppy) (((((floppy)->rate&FD_SIZECODEMASK)>> 3)+ 2) %8) 36 #define FD_SECTSIZE(floppy) ( (floppy)->rate & FD_2M ? \ 50 /* clear user-defined parameters */ 54 /* set user-defined parameters for current media */ 100 * ultra cheap floppies ;-) 130 /* Spec2 is (HLD<<1 | ND), where HLD is head load time (1=2ms, 2=4 ms 131 * etc) and ND is set means no DMA. Hardcoded to 6 (HLD=6ms, use DMA). 141 unsigned long spindown; /* timeout needed for spindown */ [all …]
|