/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
D | Kconfig.profile | 2 int "Timeout for unsignaled foreign fences (ms, jiffy granularity)" 14 int "Runtime autosuspend delay for userspace GGTT mmaps (ms)" 21 that complements the runtime-pm autosuspend and provides a lower 22 floor on the autosuspend delay. 24 May be 0 to disable the extra delay and solely use the device level 25 runtime pm autosuspend delay tunable. 28 int "Interval between heartbeat pulses (ms)" 32 check the health of the GPU and undertake regular house-keeping of 42 int "Preempt timeout (ms, jiffy granularity)" 66 take a non-negligible time to setup, we do a short spin first to [all …]
|
/kernel/linux/linux-5.10/Documentation/power/ |
D | runtime_pm.rst | 5 (C) 2009-2011 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc. 18 put their PM-related work items. It is strongly recommended that pm_wq be 20 them to be synchronized with system-wide power transitions (suspend to RAM, 53 The ->runtime_suspend(), ->runtime_resume() and ->runtime_idle() callbacks 57 1. PM domain of the device, if the device's PM domain object, dev->pm_domain, 60 2. Device type of the device, if both dev->type and dev->type->pm are present. 62 3. Device class of the device, if both dev->class and dev->class->pm are 65 4. Bus type of the device, if both dev->bus and dev->bus->pm are present. 69 dev->driver->pm directly (if present). 73 and bus type. Moreover, the high-priority one will always take precedence over [all …]
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/remoteproc/ |
D | ti,omap-remoteproc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/remoteproc/ti,omap-remoteproc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Suman Anna <s-anna@ti.com> 13 The OMAP family of SoCs usually have one or more slave processor sub-systems 14 that are used to offload some of the processor-intensive tasks, or to manage 17 The processor cores in the sub-system are usually behind an IOMMU, and may 18 contain additional sub-modules like Internal RAM and/or ROMs, L1 and/or L2 21 The OMAP SoCs usually have a DSP processor sub-system and/or an IPU processor [all …]
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/spi/ |
D | spi-pl022.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/spi/spi-pl022.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Linus Walleij <linus.walleij@linaro.org> 13 - $ref: "spi-controller.yaml#" 22 - compatible 27 - const: arm,pl022 28 - const: arm,primecell 39 clock-names: [all …]
|
/kernel/linux/linux-5.10/drivers/iio/accel/ |
D | kxsd9.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (c) 2008-2009 Jonathan Cameron <jic23@kernel.org> 21 #include <linux/delay.h> 60 #define KXSD9_CTRL_B_ST BIT(5) /* Self-test */ 65 * struct kxsd9_state - device related storage 88 #define KXSD9_ZERO_G_OFFSET -2048 108 return -EINVAL; in kxsd9_write_scale() 110 ret = regmap_update_bits(st->map, in kxsd9_write_scale() 118 st->scale = i; in kxsd9_write_scale() 141 int ret = -EINVAL; in kxsd9_write_raw() [all …]
|
D | bmc150-accel-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * 3-axis accelerometer driver supporting following Bosch-Sensortec chips: 4 * - BMC150 5 * - BMI055 6 * - BMA255 7 * - BMA250E 8 * - BMA222E 9 * - BMA280 17 #include <linux/delay.h> 31 #include "bmc150-accel.h" [all …]
|
/kernel/linux/linux-5.10/drivers/iio/light/ |
D | bh1780.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <linux/delay.h> 34 /* power on settling time in ms */ 36 /* max time before value available in ms */ 45 int ret = i2c_smbus_write_byte_data(bh1780->client, in bh1780_write() 49 dev_err(&bh1780->client->dev, in bh1780_write() 58 int ret = i2c_smbus_read_byte_data(bh1780->client, in bh1780_read() 61 dev_err(&bh1780->client->dev, in bh1780_read() 70 int ret = i2c_smbus_read_word_data(bh1780->client, in bh1780_read_word() 73 dev_err(&bh1780->client->dev, in bh1780_read_word() [all …]
|
D | gp2ap002.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 * https://lore.kernel.org/lkml/1315556546-7445-1-git-send-email-dg77.kim@samsung.com/ 17 * https://lore.kernel.org/linux-input/20190125175045.22576-1-pawel.mikolaj.chmiel@gmail.com/ 18 * Based partly on code from the Samsung GT-S7710 by <mjchen@sta.samsung.com> 31 #include <linux/delay.h> 42 /* ------------------------------------------------------------------------ */ 45 /* ------------------------------------------------------------------------ */ 52 /* ------------------------------------------------------------------------ */ 54 /* LED0 :Select switch for LED driver's On-registence(0:2x higher, 1:normal)*/ 57 /* CYCL :Determine the detection cycle(typically 8ms, up to 128x) */ [all …]
|
/kernel/linux/linux-5.10/drivers/usb/core/ |
D | hub.c | 1 // SPDX-License-Identifier: GPL-2.0 55 /* Protect struct usb_device->state and ->children members 56 * Note: Both are also protected by ->dev.sem, except that ->state can 64 /* synchronize hub-port add/remove and peering operations */ 74 * 10 seconds to send reply for the initial 64-byte descriptor request. 76 /* define initial 64-byte descriptor request timeout in milliseconds */ 80 "initial 64-byte descriptor request timeout in milliseconds " 81 "(default 5000 - 5.0 seconds)"); 126 if (hub_is_superspeedplus(hub->hdev)) in portspeed() 128 if (hub_is_superspeed(hub->hdev)) in portspeed() [all …]
|
/kernel/linux/linux-5.10/drivers/iio/gyro/ |
D | mpu3050-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 #include <linux/delay.h> 37 * Register map: anything suffixed *_H is a big-endian high byte and always 74 /* Bits 8-11 select memory bank */ 161 * Fullscale precision is (for finest precision) +/- 250 deg/s, so the full 182 if (mpu3050->lpf == MPU3050_DLPF_CFG_256HZ_NOLPF2) in mpu3050_get_freq() 186 freq /= (mpu3050->divisor + 1); in mpu3050_get_freq() 198 ret = regmap_update_bits(mpu3050->map, MPU3050_PWR_MGM, in mpu3050_start_sampling() 203 /* Turn on the Z-axis PLL */ in mpu3050_start_sampling() 204 ret = regmap_update_bits(mpu3050->map, MPU3050_PWR_MGM, in mpu3050_start_sampling() [all …]
|
D | bmg160_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/delay.h> 142 struct device *dev = regmap_get_device(data->regmap); in bmg160_set_mode() 145 ret = regmap_write(data->regmap, BMG160_REG_PMU_LPW, mode); in bmg160_set_mode() 163 return -EINVAL; in bmg160_convert_freq_to_bit() 168 struct device *dev = regmap_get_device(data->regmap); in bmg160_set_bw() 176 ret = regmap_write(data->regmap, BMG160_REG_PMU_BW, bw_bits); in bmg160_set_bw() 187 struct device *dev = regmap_get_device(data->regmap); in bmg160_get_filter() 192 ret = regmap_read(data->regmap, BMG160_REG_PMU_BW, &bw_bits); in bmg160_get_filter() 214 struct device *dev = regmap_get_device(data->regmap); in bmg160_set_filter() [all …]
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
D | i2c-sprd.c | 4 * SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 #include <linux/delay.h> 73 /* timeout (ms) for pm runtime autosuspend */ 75 /* timeout (ms) for transfer message */ 96 writel(count, i2c_dev->base + I2C_COUNT); in sprd_i2c_set_count() 101 u32 tmp = readl(i2c_dev->base + I2C_CTL); in sprd_i2c_send_stop() 104 writel(tmp & ~STP_EN, i2c_dev->base + I2C_CTL); in sprd_i2c_send_stop() 106 writel(tmp | STP_EN, i2c_dev->base + I2C_CTL); in sprd_i2c_send_stop() 111 u32 tmp = readl(i2c_dev->base + I2C_CTL); in sprd_i2c_clear_start() 113 writel(tmp & ~I2C_START, i2c_dev->base + I2C_CTL); in sprd_i2c_clear_start() [all …]
|
D | i2c-davinci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 * ---------------------------------------------------------------------------- 12 * ---------------------------------------------------------------------------- 16 #include <linux/delay.h> 29 #include <linux/platform_data/i2c-davinci.h> 32 /* ----- global defines ----------------------------------------------- */ 117 /* timeout for pm runtime autosuspend */ 118 #define DAVINCI_I2C_PM_TIMEOUT 1000 /* ms */ 147 writew_relaxed(val, i2c_dev->base + reg); in davinci_i2c_write_reg() 152 return readw_relaxed(i2c_dev->base + reg); in davinci_i2c_read_reg() [all …]
|
D | i2c-omap.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright (C) 2004 - 2007 Texas Instruments. 19 #include <linux/delay.h> 30 #include <linux/platform_data/i2c-omap.h> 46 /* timeout for pm runtime autosuspend */ 47 #define OMAP_I2C_PM_TIMEOUT 1000 /* ms */ 203 unsigned bb_valid:1; /* true when BB-bit reflects 268 writew_relaxed(val, omap->base + in omap_i2c_write_reg() 269 (omap->regs[reg] << omap->reg_shift)); in omap_i2c_write_reg() 274 return readw_relaxed(omap->base + in omap_i2c_read_reg() [all …]
|
D | i2c-cadence.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2009 - 2014 Xilinx, Inc. 9 #include <linux/delay.h> 112 /* timeout for pm runtime autosuspend */ 113 #define CNDS_I2C_PM_TIMEOUT 1000 /* ms */ 117 #define CDNS_I2C_DATA_INTR_DEPTH (CDNS_I2C_FIFO_DEPTH - 2) 120 #define CDNS_I2C_TRANSFER_SIZE (CDNS_I2C_MAX_TRANSFER_SIZE - 3) 122 #define DRIVER_NAME "cdns-i2c" 131 #define cdns_i2c_readreg(offset) readl_relaxed(id->membase + offset) 132 #define cdns_i2c_writereg(val, offset) writel_relaxed(val, id->membase + offset) [all …]
|
/kernel/linux/linux-5.10/drivers/iio/pressure/ |
D | zpa2326.c | 1 // SPDX-License-Identifier: GPL-2.0-only 34 * - get device out of low power mode, 35 * - setup hardware sampling period, 36 * - at end of period, upon data ready interrupt: pop pressure samples out of 38 * - when no longer needed, stop sampling process by putting device into 56 #include <linux/delay.h> 70 /* 200 ms should be enough for the longest conversion time in one-shot mode. */ 73 /* There should be a 1 ms delay (Tpup) after getting out of reset. */ 78 * struct zpa2326_frequency - Hardware sampling frequency descriptor 102 ARRAY_SIZE(zpa2326_sampling_frequencies) - 1]; in zpa2326_highest_frequency() [all …]
|
D | bmp280-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 * https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BMP180-DS000-121.pdf 13 * https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BMP280-DS001-12.pdf 14 * https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BME280_DS001-11.pdf 22 #include <linux/delay.h> 158 struct device *dev = data->dev; in bmp280_read_calib() 163 ret = regmap_bulk_read(data->regmap, BMP280_REG_COMP_TEMP_START, in bmp280_read_calib() 166 dev_err(data->dev, in bmp280_read_calib() 174 calib->T1 = le16_to_cpu(t_buf[T1]); in bmp280_read_calib() 175 calib->T2 = le16_to_cpu(t_buf[T2]); in bmp280_read_calib() [all …]
|
/kernel/linux/linux-5.10/drivers/phy/motorola/ |
D | phy-mapphone-mdm6600.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <linux/delay.h> 111 struct gpio_desc *enable_gpio = ddata->ctrl_gpios[PHY_MDM6600_ENABLE]; in phy_mdm6600_init() 113 if (!ddata->enabled) in phy_mdm6600_init() 114 return -EPROBE_DEFER; in phy_mdm6600_init() 124 struct gpio_desc *enable_gpio = ddata->ctrl_gpios[PHY_MDM6600_ENABLE]; in phy_mdm6600_power_on() 127 if (!ddata->enabled) in phy_mdm6600_power_on() 128 return -ENODEV; in phy_mdm6600_power_on() 130 error = pinctrl_pm_select_default_state(ddata->dev); in phy_mdm6600_power_on() 132 dev_warn(ddata->dev, "%s: error with default_state: %i\n", in phy_mdm6600_power_on() [all …]
|
/kernel/linux/linux-5.10/drivers/nfc/ |
D | trf7970a.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com 19 #include <linux/delay.h> 39 * when EN2 is left low. The 'en2-rf-quirk' device tree property 62 * has sent the command to the tag, it simply returns -ECANCELED. If the 65 * sending the data upstream, it frees the rx_skb and sends -ECANCELED 73 * those cases, the timeout mechanism is used to wait 20 ms in case more 74 * data arrives. After 20 ms, it is assumed that all of the data has been 79 * been received and there isn't an error). The delay is 20 ms since delays 80 * of ~16 ms have been observed during testing. [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | usb.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 14 #include <linux/errno.h> /* for -ENODEV */ 15 #include <linux/delay.h> /* for mdelay() */ 30 /*-------------------------------------------------------------------------*/ 33 * Host-side wrappers for standard USB descriptors ... these are parsed 37 * - devices have one (usually) or more configs; 38 * - configs have one (often) or more interfaces; 39 * - interfaces have one (usually) or more settings; 40 * - each interface setting has zero or (usually) more endpoints. 41 * - a SuperSpeed endpoint has a companion descriptor [all …]
|
/kernel/linux/linux-5.10/drivers/usb/host/ |
D | isp116x-hcd.c | 1 // SPDX-License-Identifier: GPL-2.0 21 * The driver passes all usbtests 1-14. 40 2. Implement platform-specific delay function possibly 42 include/linux/usb-isp116x.h for more info. Some broken 60 #include <linux/delay.h> 83 static const char hcd_name[] = "isp116x-hcd"; 85 /*-----------------------------------------------------------------*/ 88 Write len bytes to fifo, pad till 32-bit boundary 103 for (; len > 1; len -= 2) { in write_ptddata_to_fifo() 112 for (; len > 1; len -= 2) { in write_ptddata_to_fifo() [all …]
|
D | uhci-hcd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 48 #define USBSOF_DEFAULT 64 /* Frame length is exactly 1 ms */ 61 #define USBPORTSC_DMINUS 0x0020 /* D- high (line status) */ 80 /* PCI Intel-specific resume-enable register */ 97 /* When no queues need Full-Speed Bandwidth Reclamation, 98 * delay this long before turning FSBR off */ 110 * To facilitate the strongest possible byte-order checking from "sparse" 127 * with each endpoint, and qh->element (updated by the HC) is either: 128 * - the next unprocessed TD in the endpoint's queue, or 129 * - UHCI_PTR_TERM (when there's no more traffic for this endpoint). [all …]
|
/kernel/linux/linux-5.10/drivers/remoteproc/ |
D | omap_remoteproc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2011-2020 Texas Instruments Incorporated - http://www.ti.com/ 8 * Ohad Ben-Cohen <ohad@wizery.com> 12 * Suman Anna <s-anna@ti.com> 13 * Hari Kanigeri <h-kanigeri2@ti.com> 26 #include <linux/dma-mapping.h> 30 #include <linux/omap-iommu.h> 31 #include <linux/omap-mailbox.h> 35 #include <clocksource/timer-ti-dm.h> 37 #include <linux/platform_data/dmtimer-omap.h> [all …]
|
/kernel/linux/linux-5.10/drivers/net/usb/ |
D | usbnet.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2000-2005 by David Brownell 5 * Copyright (C) 2003-2005 David Hollis <dhollis@davehollis.com> 10 * kinds of full and high speed networking devices: host-to-host cables, 37 /*-------------------------------------------------------------------------*/ 40 * Nineteen USB 1.1 max size bulk transactions per frame (ms), max. 51 #define RX_QLEN(dev) ((dev)->rx_qlen) 52 #define TX_QLEN(dev) ((dev)->tx_qlen) 65 /*-------------------------------------------------------------------------*/ 71 static int msg_level = -1; [all …]
|
/kernel/linux/linux-5.10/drivers/tty/serial/8250/ |
D | 8250_omap.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * 8250-core based driver for the OMAP internal UART 5 * based on omap-serial.c, Copyright (C) 2010 Texas Instruments. 24 #include <linux/delay.h> 29 #include <linux/dma-mapping.h> 157 return readl(up->port.membase + (reg << up->port.regshift)); in uart_read() 167 struct omap8250_priv *priv = up->port.private_data; in __omap8250_set_mctrl() 172 if (!mctrl_gpio_to_gpiod(up->gpios, UART_GPIO_RTS)) { in __omap8250_set_mctrl() 179 if ((mctrl & TIOCM_RTS) && (port->status & UPSTAT_AUTORTS)) in __omap8250_set_mctrl() 180 priv->efr |= UART_EFR_RTS; in __omap8250_set_mctrl() [all …]
|