Home
last modified time | relevance | path

Searched +full:ld +full:- +full:pulse +full:- +full:delay +full:- +full:us (Results 1 – 22 of 22) sorted by relevance

/Linux-v5.10/Documentation/devicetree/bindings/regulator/
Drichtek,rtmv20-regulator.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/regulator/richtek,rtmv20-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - ChiYuan Huang <cy_huang@richtek.com>
27 wakeup-source: true
32 enable-gpios:
36 richtek,ld-pulse-delay-us:
38 load current pulse delay in microsecond after strobe pin pulse high.
43 richtek,ld-pulse-width-us:
[all …]
/Linux-v5.10/drivers/regulator/
Drtmv20-regulator.c1 // SPDX-License-Identifier: GPL-2.0+
3 #include <linux/delay.h>
74 gpiod_set_value(priv->enable_gpio, 1); in rtmv20_lsw_enable()
79 /* HW re-enable, disable cache only and sync regcache here */ in rtmv20_lsw_enable()
80 regcache_cache_only(priv->regmap, false); in rtmv20_lsw_enable()
81 ret = regcache_sync(priv->regmap); in rtmv20_lsw_enable()
98 regcache_cache_only(priv->regmap, true); in rtmv20_lsw_disable()
99 regcache_mark_dirty(priv->regmap); in rtmv20_lsw_disable()
101 gpiod_set_value(priv->enable_gpio, 0); in rtmv20_lsw_disable()
133 ret = regmap_read(priv->regmap, RTMV20_REG_LDIRQ, &val); in rtmv20_irq_handler()
[all …]
/Linux-v5.10/drivers/iio/adc/
Dhx711.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (c) 2016 Andreas Klinger <ak@it-klinger.de>
15 #include <linux/delay.h>
24 /* gain to pulse and scale conversion */
76 return -EINVAL; in hx711_get_scale_to_gain()
89 * 2x32-bit channel + 64-bit timestamp
93 * delay after a rising edge on SCK until the data is ready DOUT
107 * if preempted for more then 60us while PD_SCK is high: in hx711_cycle()
112 gpiod_set_value(hx711_data->gpiod_pd_sck, 1); in hx711_cycle()
119 ndelay(hx711_data->data_ready_delay_ns); in hx711_cycle()
[all …]
/Linux-v5.10/drivers/media/rc/
Dite-cir.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * skeleton provided by the nuvoton-cir driver.
10 * The lirc_it87 driver was originally written by Hans-Gunter Lutke Uphues
13 * <jimbo-lirc@edwardsclan.net>.
16 * <spmf2004-lirc@yahoo.fr> in 2008.
25 #include <linux/delay.h>
29 #include <media/rc-core.h>
32 #include "ite-cir.h"
59 MODULE_PARM_DESC(tx_duty_cycle, "Override TX duty cycle, 1-100");
64 MODULE_PARM_DESC(sample_period, "Override carrier sample period, us");
[all …]
/Linux-v5.10/drivers/iio/proximity/
Dsrf04.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (c) 2017 Andreas Klinger <ak@it-klinger.de>
8 * https://www.robot-electronics.co.uk/htm/srf04tech.htm
12 * +---+
14 * trig: --+ +------------------------------------------------------
16 * |<->|
19 * ultra +-+ +-+ +-+
21 * burst: ---------+ +-+ +-+ +-----------------------------------------
23 * ultra . +-+ +-+ +-+
25 * echo: ----------------------------------+ +-+ +-+ +----------------
[all …]
/Linux-v5.10/kernel/time/
Dntp.c1 // SPDX-License-Identifier: GPL-2.0
49 * phase-lock loop variables
82 /* constant (boot-param configurable) NTP tick adjustment (upscaled) */
91 * The following variables are used when a pulse-per-second (PPS) signal
142 * pps_clear - Clears the PPS state variables
161 pps_valid--; in pps_dec_valid()
195 txc->ppsfreq = shift_right((pps_freq >> PPM_SCALE_INV_SHIFT) * in pps_fill_timex()
197 txc->jitter = pps_jitter; in pps_fill_timex()
199 txc->jitter = pps_jitter / NSEC_PER_USEC; in pps_fill_timex()
200 txc->shift = pps_shift; in pps_fill_timex()
[all …]
/Linux-v5.10/drivers/gpu/drm/i915/display/
Dintel_dsi_vbt.c34 #include <asm/intel-mid.h>
132 struct drm_i915_private *dev_priv = to_i915(intel_dsi->base.base.dev); in mipi_exec_send_packet()
138 drm_dbg_kms(&dev_priv->drm, "\n"); in mipi_exec_send_packet()
153 if (intel_dsi->ports == (1 << PORT_C)) in mipi_exec_send_packet()
158 dsi_device = intel_dsi->dsi_hosts[port]->device; in mipi_exec_send_packet()
160 drm_dbg_kms(&dev_priv->drm, "no dsi device for port %c\n", in mipi_exec_send_packet()
166 dsi_device->mode_flags &= ~MIPI_DSI_MODE_LPM; in mipi_exec_send_packet()
168 dsi_device->mode_flags |= MIPI_DSI_MODE_LPM; in mipi_exec_send_packet()
170 dsi_device->channel = (flags >> MIPI_VIRTUAL_CHANNEL_SHIFT) & 3; in mipi_exec_send_packet()
185 drm_dbg(&dev_priv->drm, in mipi_exec_send_packet()
[all …]
/Linux-v5.10/sound/soc/codecs/
Dtas571x.c1 // SPDX-License-Identifier: GPL-2.0-or-later
16 #include <linux/delay.h>
62 return priv->chip->vol_reg_size; in tas571x_register_size()
88 for (i = size; i >= 1; --i) { in tas571x_reg_write()
99 return -EIO; in tas571x_reg_write()
116 msgs[0].addr = client->addr; in tas571x_reg_read()
121 msgs[1].addr = client->addr; in tas571x_reg_read()
126 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in tas571x_reg_read()
130 return -EIO; in tas571x_reg_read()
143 * register write for 8- and 20-byte registers
[all …]
/Linux-v5.10/drivers/scsi/ufs/
Dufs-qcom.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2013-2016, Linux Foundation. All rights reserved.
12 #include <linux/reset-controller.h>
16 #include "ufshcd-pltfrm.h"
18 #include "ufs-qcom.h"
64 dev_err(hba->dev, "%s: couldn't read PA_CONNECTEDTXDATALANES %d\n", in ufs_qcom_get_connected_tx_lanes()
84 if (optional && err == -ENOENT) { in ufs_qcom_host_clk_get()
89 if (err != -EPROBE_DEFER) in ufs_qcom_host_clk_get()
109 if (!host->is_lane_clks_enabled) in ufs_qcom_disable_lane_clks()
112 clk_disable_unprepare(host->tx_l1_sync_clk); in ufs_qcom_disable_lane_clks()
[all …]
/Linux-v5.10/drivers/media/i2c/
Dmax9286.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (C) 2017-2019 Jacopo Mondi
6 * Copyright (C) 2017-2019 Kieran Bingham
7 * Copyright (C) 2017-2019 Laurent Pinchart
8 * Copyright (C) 2017-2019 Niklas Söderlund
13 #include <linux/delay.h>
19 #include <linux/i2c-mux.h>
26 #include <media/v4l2-async.h>
27 #include <media/v4l2-ctrls.h>
28 #include <media/v4l2-device.h>
[all …]
/Linux-v5.10/drivers/gpu/drm/mcde/
Dmcde_dsi.c1 // SPDX-License-Identifier: GPL-2.0+
4 #include <linux/delay.h>
73 d = host_to_mcde_dsi(mdsi->host); in mcde_dsi_irq()
75 dev_dbg(d->dev, "%s called\n", __func__); in mcde_dsi_irq()
77 val = readl(d->regs + DSI_DIRECT_CMD_STS_FLAG); in mcde_dsi_irq()
79 dev_dbg(d->dev, "DSI_DIRECT_CMD_STS_FLAG = %08x\n", val); in mcde_dsi_irq()
81 dev_dbg(d->dev, "direct command write completed\n"); in mcde_dsi_irq()
84 dev_dbg(d->dev, "direct command TE received\n"); in mcde_dsi_irq()
87 dev_err(d->dev, "direct command ACK ERR received\n"); in mcde_dsi_irq()
89 dev_err(d->dev, "direct command read ERR received\n"); in mcde_dsi_irq()
[all …]
/Linux-v5.10/drivers/usb/chipidea/
Dcore.c1 // SPDX-License-Identifier: GPL-2.0
3 * core.c - ChipIdea USB IP core family device controller
5 * Copyright (C) 2008 Chipidea - MIPS Technologies, Inc. All rights reserved.
12 * - Four transfers are supported, usbtest is passed
13 * - USB Certification for gadget: CH9 and Mass Storage are passed
14 * - Low power mode
15 * - USB wakeup
17 #include <linux/delay.h>
19 #include <linux/dma-mapping.h>
103 ci->hw_bank.regmap[i] = in hw_alloc_regmap()
[all …]
/Linux-v5.10/drivers/block/
Damiflop.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * - now no bugs(?) any more for both HD & DD
10 * - added support for 40 Track 5.25" drives, 80-track hopefully behaves
11 * like 3.5" dd (no way to test - are there any 5.25" drives out there
13 * - wrote formatting routine (maybe dirty, but works)
15 * june/july 1995 added ms-dos support by Joerg Dorchain
17 * - currently only 9 and 18 sector disks
19 * - fixed a bug with the internal trackbuffer when using multiple
21 * - made formatting a bit safer
22 * - added command line and machine based default for "silent" df0
[all …]
/Linux-v5.10/drivers/isdn/hardware/mISDN/
Dhfcmulti.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * hfcmulti.c low level driver for hfc-4s/hfc-8s/hfc-e1 based cards
7 * Peter Sprenger (sprengermoving-bytes.de)
9 * inspired by existing hfc-pci driver:
10 * Copyright 1999 by Werner Cornelius (werner@isdn-development.de)
22 * Bit 0-7 = 0x00001 = HFC-E1 (1 port)
23 * or Bit 0-7 = 0x00004 = HFC-4S (4 ports)
24 * or Bit 0-7 = 0x00008 = HFC-8S (8 ports)
26 * Bit 9 = 0x00200 = Disable DTMF detect on all B-channels via hardware
38 * example: 0x20204 one HFC-4S with dtmf detection and 128 timeslots on PCM
[all …]
/Linux-v5.10/drivers/clk/bcm/
Dclk-bcm2835.c1 // SPDX-License-Identifier: GPL-2.0+
27 #include <linux/clk-provider.h>
31 #include <linux/delay.h>
37 #include <dt-bindings/clock/bcm2835.h>
44 # define CM_DIV_FRAC_MASK GENMASK(CM_DIV_FRAC_BITS - 1, 0)
252 # define A2W_PLL_FRAC_MASK ((1 << A2W_PLL_FRAC_BITS) - 1)
336 writel(CM_PASSWORD | val, cprman->regs + reg); in cprman_write()
341 return readl(cprman->regs + reg); in cprman_read()
354 spin_lock(&cprman->regs_lock); in bcm2835_measure_tcnt_mux()
364 /* do a kind delay at the start */ in bcm2835_measure_tcnt_mux()
[all …]
/Linux-v5.10/drivers/usb/gadget/udc/
Domap_udc.c1 // SPDX-License-Identifier: GPL-2.0+
3 * omap_udc.c -- for OMAP full speed udc; most chips support OTG.
6 * Copyright (C) 2004-2005 David Brownell
19 #include <linux/delay.h>
31 #include <linux/dma-mapping.h>
40 #include <asm/mach-types.h>
42 #include <linux/omap-dma.h>
73 * initialization to choose among a set of pre-defined endpoint configs.
112 /*-------------------------------------------------------------------------*/
120 u16 num = ep->bEndpointAddress & 0x0f; in use_ep()
[all …]
/Linux-v5.10/drivers/media/pci/bt8xx/
Dbttv-driver.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 bttv - Bt848 frame grabber driver
6 Copyright (C) 1996,97,98 Ralph Metzler <rjkm@thp.uni-koeln.de>
7 & Marcus Metzler <mocm@thp.uni-koeln.de>
8 (c) 1999-2002 Gerd Knorr <kraxel@bytesex.org>
14 (c) 2005-2006 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
29 #include <linux/delay.h>
38 #include <media/v4l2-common.h>
39 #include <media/v4l2-ioctl.h>
40 #include <media/v4l2-event.h>
[all …]
/Linux-v5.10/drivers/scsi/aic7xxx/
Daic79xx_core.c4 * Copyright (c) 1994-2002 Justin T. Gibbs.
5 * Copyright (c) 2000-2003 Adaptec Inc.
19 * 3. Neither the names of the above-listed copyright holders nor the names
68 { DPARERR, "Data-path Parity Error" },
76 { P_DATAOUT, MSG_NOOP, "in Data-out phase" },
77 { P_DATAIN, MSG_INITIATOR_DET_ERR, "in Data-in phase" },
78 { P_DATAOUT_DT, MSG_NOOP, "in DT Data-out phase" },
79 { P_DATAIN_DT, MSG_INITIATOR_DET_ERR, "in DT Data-in phase" },
81 { P_MESGOUT, MSG_NOOP, "in Message-out phase" },
83 { P_MESGIN, MSG_PARITY_ERROR, "in Message-in phase" },
[all …]
/Linux-v5.10/drivers/scsi/
Dipr.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * ipr.c -- driver for IBM Power Linux RAID adapters
5 * Written By: Brian King <brking@us.ibm.com>, IBM Corporation
17 * IBM pSeries: PCI-X Dual Channel Ultra 320 SCSI RAID Adapter
18 * PCI-X Dual Channel Ultra 320 SCSI Adapter
19 * PCI-X Dual Channel Ultra 320 SCSI RAID Enablement Card
23 * - Ultra 320 SCSI controller
24 * - PCI-X host interface
25 * - Embedded PowerPC RISC Processor and Hardware XOR DMA Engine
26 * - Non-Volatile Write Cache
[all …]
/Linux-v5.10/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_link.c1 /* Copyright 2008-2013 Broadcom Corporation
8 * at http://www.gnu.org/licenses/gpl-2.0.html (the "GPL").
25 #include <linux/delay.h>
43 #define I2C_WA_PWR_ITER (I2C_WA_RETRY_CNT - 1)
205 (_phy)->def_md_devad, \
211 (_phy)->def_md_devad, \
239 * bnx2x_check_lfa - This function checks if link reinitialization is required,
251 struct bnx2x *bp = params->bp; in bnx2x_check_lfa()
254 REG_RD(bp, params->lfa_base + in bnx2x_check_lfa()
257 /* NOTE: must be first condition checked - in bnx2x_check_lfa()
[all …]
Dbnx2x_main.c3 * Copyright (c) 2007-2013 Broadcom Corporation
37 #include <linux/dma-mapping.h>
40 #include <linux/delay.h>
77 #define FW_FILE_NAME_E1 "bnx2x/bnx2x-e1-" FW_FILE_VERSION ".fw"
78 #define FW_FILE_NAME_E1H "bnx2x/bnx2x-e1h-" FW_FILE_VERSION ".fw"
79 #define FW_FILE_NAME_E2 "bnx2x/bnx2x-e2-" FW_FILE_VERSION ".fw"
105 MODULE_PARM_DESC(int_mode, " Force interrupt mode other than MSI-X "
112 static int mrrs = -1;
367 pci_write_config_dword(bp->pdev, PCICFG_GRC_ADDRESS, addr); in bnx2x_reg_wr_ind()
368 pci_write_config_dword(bp->pdev, PCICFG_GRC_DATA, val); in bnx2x_reg_wr_ind()
[all …]
/Linux-v5.10/drivers/net/usb/
Dr8152.c1 // SPDX-License-Identifier: GPL-2.0-only
30 /* Information for net-next */
487 #define LPM_TIMER_500US 0x0c /* 500 us */
669 #define RTL8153_MAX_MTU (RTL8153_MAX_PACKET - VLAN_ETH_HLEN - \
873 * struct fw_block - block type and total length
884 * struct fw_header - header of the firmware file
898 * struct fw_mac - a firmware block used by RTL_FW_PLA and RTL_FW_USB.
937 * struct fw_phy_patch_key - a firmware block used by RTL_FW_PHY_START.
950 * struct fw_phy_nc - a firmware block used by RTL_FW_PHY_NC.
1024 /* Maximum number of multicast addresses to filter (vs. Rx-all-multicast).
[all …]