| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/serial/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A 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 57 (cond) ? 0 : -ETIMEDOUT; \ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/ide/ |
| H A 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 …]
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkisp_demo/demo/iio/lib/ |
| HD | libserialport.so.0 | ... . Writing %d bytes to port %s, timeout %d ms. Writing %d bytes to port ... |
| H A D | libserialport.so | ... . Writing %d bytes to port %s, timeout %d ms. Writing %d bytes to port ... |
| /OK3568_Linux_fs/kernel/sound/soc/intel/common/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-at91/ |
| H A D | phy.c | 2 * (C) Copyright 2007-2008 12 * SPDX-License-Identifier: GPL-2.0+ 25 unsigned long const timeout = 1000; /* 1000ms */ in at91_phy_reset() local 28 erstl = readl(&rstc->mr) & AT91_RSTC_MR_ERSTL_MASK; in at91_phy_reset() 31 * Need to reset PHY -> 500ms reset in at91_phy_reset() 32 * Reset PHY by pulling the NRST line for 500ms to low. To do so in at91_phy_reset() 33 * disable user reset for low level on NRST pin and poll the NRST in at91_phy_reset() 37 AT91_RSTC_MR_URSTEN, &rstc->mr); in at91_phy_reset() 39 writel(AT91_RSTC_KEY | AT91_RSTC_CR_EXTRST, &rstc->cr); in at91_phy_reset() 42 while (!(readl(&rstc->sr) & AT91_RSTC_SR_NRSTL)) { in at91_phy_reset() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/ddr/fsl/ |
| H A D | mpc85xx_ddr_gen3.c | 2 * Copyright 2008-2012 Freescale Semiconductor, Inc. 4 * SPDX-License-Identifier: GPL-2.0 17 * regs has the to-be-set values for DDR controller registers 32 int timeout; in fsl_ddr_set_memctl_regs() local 37 int csn = -1; in fsl_ddr_set_memctl_regs() 70 if (regs->ddr_eor) in fsl_ddr_set_memctl_regs() 71 out_be32(&ddr->eor, regs->ddr_eor); in fsl_ddr_set_memctl_regs() 75 cs_sa = (regs->cs[i].bnds >> 16) & 0xfff; in fsl_ddr_set_memctl_regs() 76 cs_ea = regs->cs[i].bnds & 0xfff; in fsl_ddr_set_memctl_regs() 79 csn_bnds_backup = regs->cs[i].bnds; in fsl_ddr_set_memctl_regs() [all …]
|
| /OK3568_Linux_fs/external/mpp/inc/ |
| H A D | mpp_task.h | 8 * http://www.apache.org/licenses/LICENSE-2.0 69 * a - poll(input) 70 * b - dequeue(input, *task) 71 * c - task_set_item(packet/frame) 72 * d - enqueue(input, task) // when enqueue return the task is not done yet 75 * a - poll(output) 76 * b - dequeue(output, *task) 77 * c - task_get_item(frame/packet) 78 * d - enqueue(output, task) 84 * a - poll(input) [all …]
|
| /OK3568_Linux_fs/external/rknpu2/examples/3rdparty/mpp/include/rockchip/ |
| H A D | mpp_task.h | 8 * http://www.apache.org/licenses/LICENSE-2.0 69 * a - poll(input) 70 * b - dequeue(input, *task) 71 * c - task_set_item(packet/frame) 72 * d - enqueue(input, task) // when enqueue return the task is not done yet 75 * a - poll(output) 76 * b - dequeue(output, *task) 77 * c - task_get_item(frame/packet) 78 * d - enqueue(output, task) 84 * a - poll(input) [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/u-boot/drivers/fpga/ |
| H A D | socfpga_arria10.c | 4 * SPDX-License-Identifier: GPL-2.0 23 #define FPGA_TIMEOUT_MSEC 1000 /* timeout in ms */ 40 reg = readl(&fpga_manager_base->imgcfg_stat); in fpgamgr_get_msel() 50 setbits_le32(&fpga_manager_base->imgcfg_ctrl_02, in fpgamgr_set_cfgwdth() 53 clrbits_le32(&fpga_manager_base->imgcfg_ctrl_02, in fpgamgr_set_cfgwdth() 59 return (readl(&fpga_manager_base->imgcfg_stat) & in is_fpgamgr_user_mode() 65 return wait_for_bit_le32(&fpga_manager_base->imgcfg_stat, in wait_for_user_mode() 72 return (readl(&fpga_manager_base->imgcfg_stat) & in is_fpgamgr_early_user_mode() 84 cd_ratio = (readl(&fpga_manager_base->imgcfg_ctrl_02) & in fpgamgr_wait_early_user_mode() 93 return -ETIMEDOUT; in fpgamgr_wait_early_user_mode() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/spi/ |
| H A D | spi-rockchip.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Author: Addy Ke <addy.ke@rock-chips.com> 22 #define DRIVER_NAME "rockchip-spi" 164 * SPI_CTRLR1 is 16-bits, so we should support lengths of 0xffff + 1. However, 169 /* 2 for native cs, 2 for cs-gpio */ 216 bool poll; /* only support transfer data by cpu polling */ member 223 bool cs_high_supported; /* native CS supports active-high polarity */ 236 writel_relaxed((enable ? 1U : 0U), rs->regs + ROCKCHIP_SPI_SSIENR); in spi_enable_chip() 241 unsigned long timeout = jiffies + msecs_to_jiffies(5); in wait_for_tx_idle() local 246 if (slave_mode && rs->version == ROCKCHIP_SPI_VER2_TYPE2) { in wait_for_tx_idle() [all …]
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/xcore/ |
| H A D | poll_thread.cpp | 2 * poll_thread.cpp - poll thread for event and buffer 4 * Copyright (c) 2014-2015 Intel Corporation 10 * http://www.apache.org/licenses/LICENSE-2.0 45 IspPollThread (PollThread *poll, int type) in IspPollThread() argument 47 , _poll (poll) in IspPollThread() 53 XCamReturn ret = _poll->poll_buffer_loop (_type); in loop() 70 EventPollThread (PollThread *poll) in EventPollThread() argument 72 , _poll (poll) in EventPollThread() 77 XCamReturn ret = _poll->poll_subdev_event_loop (); in loop() 88 const int PollThread::default_poll_timeout = 300; // ms [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/u-boot/include/ |
| H A D | regmap.h | 5 * SPDX-License-Identifier: GPL-2.0+ 12 * struct regmap_range - a register map range 23 * struct regmap - a way of accessing hardware/bus registers 44 regmap_write(map, (uint32_t *)(ptr)->member - (uint32_t *)(ptr), val) 47 regmap_read(map, (uint32_t *)(ptr)->member - (uint32_t *)(ptr), valp) 50 * regmap_read_poll_timeout - Poll until a condition is met or a timeout occurs 53 * @addr: Offset to poll 56 * @sleep_us: Maximum time to sleep between reads in us (0 tight-loops). 57 * @timeout_ms: Timeout in ms, 0 means never timeout 59 * Returns 0 on success and -ETIMEDOUT upon a timeout or the regmap_read [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/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. */ 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 …]
|
| /OK3568_Linux_fs/external/rknpu2/runtime/RK3588/Android/rknn_server/arm/ |
| HD | rknn_server | ... AFFINE 1.5.0 (17e11b1 build: 2023-05-18 21:43:35) Invalid ... |
| /OK3568_Linux_fs/external/rknpu2/runtime/RK356X/Android/rknn_server/arm/ |
| HD | rknn_server | ... AFFINE 1.5.0 (17e11b1 build: 2023-05-18 21:43:15) Invalid ... |
| /OK3568_Linux_fs/u-boot/board/keymile/kmp204x/ |
| H A D | pci.c | 5 * Copyright 2007-2011 Freescale Semiconductor, Inc. 7 * SPDX-License-Identifier: GPL-2.0+ 36 /* approx 10ms */ in trigger_fpga_config() 37 u32 timeout = 10000; in trigger_fpga_config() local 54 if (timeout-- == 0) { in trigger_fpga_config() 55 printf("FPGA_INIT timeout\n"); in trigger_fpga_config() 56 ret = -EFAULT; in trigger_fpga_config() 68 /* poll the FPGA_DONE signal and give the EEPROM back to the QorIQ */ 73 u32 timeout = 500000; in wait_for_fpga_config() local 78 if (timeout-- == 0) { in wait_for_fpga_config() [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|