| /linux/drivers/clk/mmp/ |
| H A D | clk-apbc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/delay.h> 27 unsigned int delay; member 42 if (apbc->lock) in clk_apbc_prepare() 43 spin_lock_irqsave(apbc->lock, flags); in clk_apbc_prepare() 45 data = readl_relaxed(apbc->base); in clk_apbc_prepare() 46 if (apbc->flags & APBC_POWER_CTRL) in clk_apbc_prepare() 49 writel_relaxed(data, apbc->base); in clk_apbc_prepare() 51 if (apbc->lock) in clk_apbc_prepare() 52 spin_unlock_irqrestore(apbc->lock, flags); in clk_apbc_prepare() [all …]
|
| H A D | clk-apmu.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/delay.h> 32 if (apmu->lock) in clk_apmu_enable() 33 spin_lock_irqsave(apmu->lock, flags); in clk_apmu_enable() 35 data = readl_relaxed(apmu->base) | apmu->enable_mask; in clk_apmu_enable() 36 writel_relaxed(data, apmu->base); in clk_apmu_enable() 38 if (apmu->lock) in clk_apmu_enable() 39 spin_unlock_irqrestore(apmu->lock, flags); in clk_apmu_enable() 50 if (apmu->lock) in clk_apmu_disable() 51 spin_lock_irqsave(apmu->lock, flags); in clk_apmu_disable() [all …]
|
| /linux/tools/testing/selftests/net/netfilter/ |
| H A D | conntrack_sctp_collision.sh | 2 # SPDX-License-Identifier: GPL-2.0 6 # 14:35:47.655279 IP CLIENT_IP.PORT > SERVER_IP.PORT: sctp (1) [INIT] [init tag: 2017837359] 7 # 14:35:48.353250 IP SERVER_IP.PORT > CLIENT_IP.PORT: sctp (1) [INIT] [init tag: 1187206187] 8 # 14:35:48.353275 IP CLIENT_IP.PORT > SERVER_IP.PORT: sctp (1) [INIT ACK] [init tag: 2017837359] 11 # 14:35:48.855335 IP SERVER_IP.PORT > CLIENT_IP.PORT: sctp (1) [INIT ACK] [init tag: 164579970] 13 # TOPO: SERVER_NS (link0)<--->(link1) ROUTER_NS (link2)<--->(link3) CLIENT_NS 29 ip -n "$SERVER_NS" link add link0 type veth peer name link1 netns "$ROUTER_NS" 30 ip -n "$CLIENT_NS" link add link3 type veth peer name link2 netns "$ROUTER_NS" 32 ip -n "$SERVER_NS" link set link0 up 33 ip -n "$SERVER_NS" addr add $SERVER_IP/24 dev link0 [all …]
|
| /linux/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | dwmac-meson8b.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/clk-provider.h> 35 /* TX clock delay in ns = "8ns / 4 * tx_dly_val" (where 8ns are exactly one 57 * the automatically delay and skew automatically (internally). 60 /* An internal counter based on the "timing-adjustment" clock. The counter is 62 * delay (= the counter value) when to start sampling RXEN and RXD[3:0]. 66 * large input delay, the bit for that signal (RXEN = bit 0, RXD[3] = bit 1, 67 * ...) can be configured to be 1 to compensate for a delay of about 1ns. 73 /* Defined for adding a delay to the input RX_CLK for better timing. 112 data = readl(dwmac->regs + reg); in meson8b_dwmac_mask_bits() [all …]
|
| /linux/drivers/clk/imx/ |
| H A D | clk-lpcg-scu.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 #include <linux/clk-provider.h> 9 #include <linux/delay.h> 16 #include "clk-scu.h" 25 * struct clk_lpcg_scu - Description of LPCG clock 46 /* e10858 -LPCG clock gating register synchronization errata */ 54 * through the interconnect is longer than the minimum delay in lpcg_e10858_writel() 56 * Adding a readl will provide sufficient delay to prevent in lpcg_e10858_writel() 57 * back-to-back writes. in lpcg_e10858_writel() 77 reg = readl_relaxed(clk->reg); in clk_lpcg_scu_enable() [all …]
|
| /linux/drivers/clk/sunxi/ |
| H A D | clk-mod0.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 #include <linux/clk-provider.h> 15 #include "clk-factors.h" 18 * sun4i_a10_get_mod0_factors() - calculates m, n factors for MOD0-style clocks 29 if (req->rate > req->parent_rate) in sun4i_a10_get_mod0_factors() 30 req->rate = req->parent_rate; in sun4i_a10_get_mod0_factors() 32 div = DIV_ROUND_UP(req->parent_rate, req->rate); in sun4i_a10_get_mod0_factors() 45 req->rate = (req->parent_rate >> calcp) / calcm; in sun4i_a10_get_mod0_factors() 46 req->m = calcm - 1; in sun4i_a10_get_mod0_factors() 47 req->p = calcp; in sun4i_a10_get_mod0_factors() [all …]
|
| /linux/arch/mips/boot/dts/cavium-octeon/ |
| H A D | octeon_3xxx.dts | 1 // SPDX-License-Identifier: GPL-2.0 6 * use. Because of this, it contains a super-set of the available 15 phy0: ethernet-phy@0 { 17 marvell,reg-init = 21 <3 0x11 0 0x442a>, /* Reg 3,17 <- 0442a */ 22 /* irq, blink-activity, blink-link */ 23 <3 0x10 0 0x0242>; /* Reg 3,16 <- 0x0242 */ 27 phy1: ethernet-phy@1 { 29 marvell,reg-init = 33 <3 0x11 0 0x442a>, /* Reg 3,17 <- 0442a */ [all …]
|
| /linux/drivers/clk/ |
| H A D | clk-palmas.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Copyright (c) 2013-2014 Texas Instruments, Inc. 13 #include <linux/clk-provider.h> 30 int delay; member 57 ret = palmas_update_bits(cinfo->palmas, PALMAS_RESOURCE_BASE, in palmas_clks_prepare() 58 cinfo->clk_desc->control_reg, in palmas_clks_prepare() 59 cinfo->clk_desc->enable_mask, in palmas_clks_prepare() 60 cinfo->clk_desc->enable_mask); in palmas_clks_prepare() 62 dev_err(cinfo->dev, "Reg 0x%02x update failed, %d\n", in palmas_clks_prepare() 63 cinfo->clk_desc->control_reg, ret); in palmas_clks_prepare() [all …]
|
| /linux/drivers/media/i2c/ |
| H A D | bt819.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * bt819 - BT819A VideoStream Decoder (Rockwell Part) 12 * - moved over to linux>=2.4.x i2c protocol (9/9/2002) 21 #include <linux/delay.h> 25 #include <media/v4l2-device.h> 26 #include <media/v4l2-ctrls.h> 29 MODULE_DESCRIPTION("Brooktree-819 video decoder driver"); 35 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 38 /* ----------------------------------------------------------------------- */ 57 return &container_of(ctrl->handler, struct bt819, hdl)->sd; in to_sd() [all …]
|
| /linux/lib/ |
| H A D | test_objpool.c | 1 // SPDX-License-Identifier: GPL-2.0 16 #include <linux/delay.h> 53 int delay; /* ms */ member 61 /* per-cpu worker */ 73 int delay; member 90 atomic_long_add(size, &test->data.kmalloc.alloc); in ot_kzalloc() 98 atomic_long_add(size, &test->data.kmalloc.free); in ot_kfree() 106 pr_info("memory allocation summary for %s\n", test->name); in ot_mem_report() 108 alloc = atomic_long_read(&test->data.kmalloc.alloc); in ot_mem_report() 109 free = atomic_long_read(&test->data.kmalloc.free); in ot_mem_report() [all …]
|
| /linux/drivers/media/test-drivers/vidtv/ |
| H A D | vidtv_tuner.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 20 * struct vidtv_tuner_config - Configuration used to init the tuner. 22 * @mock_power_up_delay_msec: Simulate a power-up delay. 23 * @mock_tune_delay_msec: Simulate a tune delay. 24 * @vidtv_valid_dvb_t_freqs: The valid DVB-T frequencies to simulate. 25 * @vidtv_valid_dvb_c_freqs: The valid DVB-C frequencies to simulate. 26 * @vidtv_valid_dvb_s_freqs: The valid DVB-S frequencies to simulate. 30 * The configuration used to init the tuner module, usually filled
|
| /linux/drivers/clk/actions/ |
| H A D | owl-pll.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 6 // Author: David Liu <liuwei@actions-semi.com> 14 #include "owl-common.h" 32 u8 delay; member 51 .delay = _delay, \ 63 .hw.init = CLK_HW_INIT(_name, \ 78 .hw.init = CLK_HW_INIT_NO_PARENT(_name, \ 93 .hw.init = CLK_HW_INIT_NO_PARENT(_name, \ 99 #define mul_mask(m) ((1 << ((m)->width)) - 1)
|
| /linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
| H A D | dp.c | 32 #include <subdev/bios/init.h> 42 #define AMPERE_IED_HACK(disp) ((disp)->engine.subdev.device->card_type >= GA100) 53 *pid = BIT(outp->index); in nvkm_dp_mst_id_get() 60 int ret = nvkm_i2c_aux_acquire(outp->dp.aux); in nvkm_dp_aux_xfer() 65 ret = nvkm_i2c_aux_xfer(outp->dp.aux, false, type, addr, data, size); in nvkm_dp_aux_xfer() 66 nvkm_i2c_aux_release(outp->dp.aux); in nvkm_dp_aux_xfer() 73 outp->dp.enabled = pu; in nvkm_dp_aux_pwr() 74 nvkm_dp_enable(outp, outp->dp.enabled); in nvkm_dp_aux_pwr() 92 nvkm_dp_train_sense(struct lt_state *lt, bool pc, u32 delay) in nvkm_dp_train_sense() argument 94 struct nvkm_outp *outp = lt->outp; in nvkm_dp_train_sense() [all …]
|
| /linux/arch/arm/lib/ |
| H A D | delay.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Delay loops based on the OpenRISC implementation. 11 #include <linux/delay.h> 12 #include <linux/init.h> 18 * Default to the loop-based delay implementation. 21 .delay = __loop_delay, 33 return -ENXIO; in read_current_timer() 35 *timer_val = delay_timer->read_current_timer(); in read_current_timer() 49 while ((get_cycles() - start) < cycles) in __timer_delay() 70 clocks_calc_mult_shift(&new_mult, &new_shift, timer->freq, in register_current_timer_delay() [all …]
|
| /linux/init/ |
| H A D | calibrate.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* calibrate.c: default delay calibration 4 * Excised from init/main.c 9 #include <linux/delay.h> 10 #include <linux/init.h> 28 * loops per jiffy directly, instead of guessing it using delay(). 29 * Also, this code tries to handle non-maskable asynchronous events 44 int max = -1; /* index of measured_times with max/min values or not set */ in calibrate_delay_direct() 45 int min = -1; in calibrate_delay_direct() 60 * 1. pre_start <- When we are sure that jiffy switch hasn't happened in calibrate_delay_direct() [all …]
|
| /linux/drivers/hwmon/pmbus/ |
| H A D | max15301.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * extensive empirical testing has revealed that auto-detection of 9 * limit-registers will fail in a random fashion unless the delay 10 * parameter is set to above about 80us. The default delay is set 16 #include <linux/init.h> 21 #include <linux/delay.h> 42 static ushort delay = MAX15301_WAIT_TIME; variable 43 module_param(delay, ushort, 0644); 44 MODULE_PARM_DESC(delay, "Delay between chip accesses in us"); 64 if (!i2c_check_functionality(client->adapter, in max15301_probe() [all …]
|
| /linux/kernel/locking/ |
| H A D | locktorture.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Module-based torture test facility for locking 28 #include <linux/delay.h> 38 torture_param(int, call_rcu_chains, 0, "Self-propagate call_rcu() chains during test (0=disable)."); 41 torture_param(int, nreaders_stress, -1, "Number of read-locking stress-test threads"); 42 torture_param(int, nwriters_stress, - 137 void (*init)(void); global() member [all...] |
| /linux/arch/parisc/lib/ |
| H A D | delay.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Precise Delay Loops for parisc 17 #include <linux/init.h> 19 #include <asm/delay.h> 23 /* CR16 based delay: */ 40 if ((now - bclock) >= loops) in __cr16_delay() 51 * since CR16's are per-cpu we need to calculate in __cr16_delay() 52 * that. The delay must guarantee that we wait "at in __cr16_delay() 59 loops -= (now - bclock); in __cr16_delay()
|
| /linux/arch/x86/include/asm/ |
| H A D | i8259.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 #include <linux/delay.h> 33 /* the PIC may need a careful delay on some platforms, hence specific calls */ 39 * delay for some accesses to PIC on motherboard or in chipset in inb_pic() 51 * delay for some accesses to PIC on motherboard or in chipset in outb_pic() 66 void (*init)(int auto_eoi); member 84 return legacy_pic->nr_legacy_irqs; in nr_legacy_irqs()
|
| /linux/Documentation/fb/ |
| H A D | deferred_io.rst | 5 Deferred IO is a way to delay and repurpose IO. It uses host memory as a 10 - userspace app like Xfbdev mmaps framebuffer 11 - deferred IO and driver sets up fault and page_mkwrite handlers 12 - userspace app tries to write to mmapped vaddress 13 - we get pagefault and reach fault handler 14 - fault handler finds and returns physical page 15 - we get page_mkwrite where we add this page to a list 16 - schedule a workqueue task to be run after a delay 17 - app continues writing to that page with no additional cost. this is 19 - the workqueue task comes in and mkcleans the pages on the list, then [all …]
|
| /linux/drivers/accessibility/speakup/ |
| H A D | spk_types.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 #include <linux/delay.h> 12 #include <linux/init.h> /* for __init */ 44 DELAY, TRIGGER, JIFFY, FULL, /* all timers must be together */ enumerator 87 #define spk_shut_up (speakup_console[vc->vc_num]->shut_up) 88 #define spk_killed (speakup_console[vc->vc_num]->shut_up & 0x40) 89 #define spk_x (speakup_console[vc->vc_num]->reading_x) 90 #define spk_cx (speakup_console[vc->vc_num]->cursor_x) 91 #define spk_y (speakup_console[vc->vc_num]->reading_y) 92 #define spk_cy (speakup_console[vc->vc_num]->cursor_y) [all …]
|
| /linux/drivers/scsi/qla4xxx/ |
| 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() 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() 169 flash_offset = addr & (QLA83XX_FLASH_SECTOR_SIZE - 1); in qla4_83xx_lockless_flash_read_u32() 188 (QLA83XX_FLASH_SECTOR_SIZE - 1)) { in qla4_83xx_lockless_flash_read_u32() [all …]
|
| /linux/Documentation/devicetree/bindings/bus/ |
| H A D | ti-sysc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/bus/ti-sysc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Tony Lindgren <tony@atomide.com> 31 pattern: "^target-module(@[0-9a-f]+)?$" 35 - items: 36 - enum: 37 - ti,sysc-omap2 38 - ti,sysc-omap4 [all …]
|
| /linux/drivers/phy/intel/ |
| H A D | phy-intel-keembay-emmc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/delay.h> 66 ret = regmap_update_bits(priv->syscfg, PHY_CFG_0, PWR_DOWN_MASK, in keembay_emmc_phy_power() 69 dev_err(&phy->dev, "CALIO power down bar failed: %d\n", ret); in keembay_emmc_phy_power() 73 ret = regmap_update_bits(priv->syscfg, PHY_CFG_0, DLL_EN_MASK, in keembay_emmc_phy_power() 76 dev_err(&phy->dev, "turn off the dll failed: %d\n", ret); in keembay_emmc_phy_power() 84 mhz = DIV_ROUND_CLOSEST(clk_get_rate(priv->emmcclk), 1000000); in keembay_emmc_phy_power() 100 dev_warn(&phy->dev, "Unsupported rate: %d MHz\n", mhz); in keembay_emmc_phy_power() 109 ret = regmap_update_bits(priv->syscfg, PHY_CFG_0, PWR_DOWN_MASK, in keembay_emmc_phy_power() 112 dev_err(&phy->dev, "CALIO power down bar failed: %d\n", ret); in keembay_emmc_phy_power() [all …]
|
| /linux/drivers/clk/mxs/ |
| H A D | clk-pll.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 #include <linux/clk-provider.h> 7 #include <linux/delay.h> 14 * struct clk_pll - mxs pll clock 36 writel_relaxed(1 << pll->power, pll->base + SET); in clk_pll_prepare() 47 writel_relaxed(1 << pll->power, pll->base + CLR); in clk_pll_unprepare() 54 writel_relaxed(1 << 31, pll->base + CLR); in clk_pll_enable() 63 writel_relaxed(1 << 31, pll->base + SET); in clk_pll_disable() 71 return pll->rate; in clk_pll_recalc_rate() 87 struct clk_init_data init; in mxs_clk_pll() local [all …]
|