/linux/Documentation/devicetree/bindings/input/touchscreen/ |
H A D | adi,ad7879.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Analog Devices AD7879(-1)/AD7889(-1) touchscreen interface (SPI/I2C) 10 - Frank Li <Frank.Li@nxp.com> 16 for I2C slave, use "adi,ad7879-1" 18 - adi,ad7879 19 - adi,ad7879-1 27 touchscreen-max-pressure: 31 adi,resistance-plate-x: [all …]
|
/linux/include/linux/ |
H A D | timekeeper_internal.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 15 * struct tk_read_base - base structure for timekeeping readout 19 * @mult: (NTP adjusted) multiplier for scaled math conversion 20 * @shift: Shift value for scaled math conversion 46 * struct timekeeper - Structure holding internal timekeeping values. 51 * @offs_real: Offset clock monotonic -> clock realtime 52 * @offs_boot: Offset clock monotonic -> clock boottime 53 * @offs_tai: Offset clock monotonic -> clock tai 60 * @cycle_interval: Number of clock cycles in one NTP interval 62 * interval. [all …]
|
H A D | timecounter.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 14 #define CYCLECOUNTER_MASK(bits) (u64)((bits) < 64 ? ((1ULL<<(bits))-1) : -1) 17 * struct cyclecounter - hardware abstraction for a free running counter 18 * Provides completely state-free accessors to the underlying hardware. 25 * subtraction of non-64-bit counters, 38 * struct timecounter - layer above a &struct cyclecounter which counts nanoseconds 64 * cyclecounter_cyc2ns - converts cycle counter cycles to nanoseconds 77 ns = (ns * cc->mult) + *frac; in cyclecounter_cyc2ns() 79 return ns >> cc->shift; in cyclecounter_cyc2ns() 83 * timecounter_adjtime - Shifts the time of the clock. [all …]
|
/linux/Documentation/hwmon/ |
H A D | ina2xx.rst | 10 Addresses: I2C 0x40 - 0x4f 20 Addresses: I2C 0x40 - 0x4f 30 Addresses: I2C 0x40 - 0x4f 40 Addresses: I2C 0x40 - 0x4f 50 Addresses: I2C 0x40 - 0x4f 60 Addresses: I2C 0x40 - 0x4f 70 Addresses: I2C 0x40 - 0x4f 80 ----------- 82 The INA219 is a high-side current shunt and power monitor with an I2C 84 programmable conversion times and filtering. [all …]
|
H A D | sysfs-interface.rst | 5 through the sysfs interface. Since lm-sensors 3.0.0, libsensors is 6 completely chip-independent. It assumes that all the kernel drivers 10 This is a major improvement compared to lm-sensors 2. 22 For this reason, even if we aim at a chip-independent libsensors, it will 24 values conversion, labeling of inputs and hiding of unused inputs. 30 will have to implement conversion, labeling and hiding of inputs. For 37 Up to lm-sensors 3.0.0, libsensors looks for hardware monitoring attributes 38 in the "physical" device directory. Since lm-sensors 3.0.1, attributes found 61 to cause an alarm) is chip-dependent. 69 ---------------- [all …]
|
H A D | bt1-pvt.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 3 Kernel driver bt1-pvt 8 * Baikal-T1 PVT sensor (in SoC) 10 Prefix: 'bt1-pvt' 12 Addresses scanned: - 21 ----------- 24 embedded into Baikal-T1 process, voltage and temperature sensors. PVT IP-core 29 compile-time configurable due to the hardware interface implementation 32 thresholds checking synchronously with the data conversion procedure. Due to 40 in alarm-less configuration the data conversion is performed by the driver [all …]
|
/linux/drivers/hwmon/ |
H A D | stts751.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2016-2017 Istituto Italiano di Tecnologia - RBCS - EDL 17 #include <linux/hwmon-sysfs.h> 32 0x48, 0x49, 0x38, 0x39, /* STTS751-0 */ 33 0x4A, 0x4B, 0x3A, 0x3B, /* STTS751-1 */ 89 u8 interval; member 104 * vice-vers. They are (mostly) taken from lm90 driver. Unit is in mC. 120 switch (priv->interval) { in stts751_adjust_resolution() 135 if (priv->res == res) in stts751_adjust_resolution() 138 priv->config &= ~STTS751_CONF_RES_MASK; in stts751_adjust_resolution() [all …]
|
H A D | w83773g.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 13 #include <linux/hwmon-sysfs.h> 129 val = clamp_val(val, -127825, 127825); in set_offset() 160 * For valid rates, interval can be calculated as in set_update_interval() 161 * interval = (1 << (8 - rate)) * 62.5; in set_update_interval() 163 * rate = 8 - __fls(interval * 8 / (62.5 * 7)); in set_update_interval() 168 rate = 8 - __fls((val * 8 / (625 * 7))); in set_update_interval() 180 return -EOPNOTSUPP; in w83773_read() 187 return get_remote_temp(regmap, channel - 1, val); in w83773_read() 189 return get_fault(regmap, channel - 1, val); in w83773_read() [all …]
|
H A D | ina2xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Zero Drift Bi-Directional Current/Power Monitor with I2C Interface 10 * Bi-Directional Current/Power Monitor with I2C Interface 14 * Bi-Directional Current/Power Monitor with I2C Interface 18 * Bi-directional Current/Power Monitor with I2C Interface 59 /* settings - depend on use case */ 95 * Both bus voltage and shunt voltage conversion times for ina226 are set 223 * Multiply the total conversion time by the number of averages. in ina226_reg_to_interval() 233 static u16 ina226_interval_to_reg(long interval) in ina226_interval_to_reg() argument 238 * The maximum supported interval is 1,024 * (2 * 8.244ms) ~= 16.8s. in ina226_interval_to_reg() [all …]
|
/linux/drivers/thermal/ti-soc-thermal/ |
H A D | ti-bandgap.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ 26 * +----------+----------------+ 28 * +---------------------------+ 32 * +-------------------+ +-----------------+ 33 * | struct ti_bandgap |-->| struct device * | 34 * +----------+--------+ +-----------------+ 38 * +------------------------+ 40 * +------------------------+ 44 * +------------+------------------------------------------------------+ [all …]
|
/linux/kernel/time/ |
H A D | clocksource.c | 1 // SPDX-License-Identifier: GPL-2.0+ 20 #include "tick-internal.h" 27 u64 delta = clocksource_delta(end, start, cs->mask, cs->max_raw_delta); in cycles_to_nsec_safe() 29 if (likely(delta < cs->max_cycles)) in cycles_to_nsec_safe() 30 return clocksource_cyc2ns(delta, cs->mult, cs->shift); in cycles_to_nsec_safe() 32 return mul_u64_u32_shr(delta, cs->mult, cs->shift); in cycles_to_nsec_safe() 36 * clocks_calc_mult_shift - calculate mult/shift factors for scaled math of clocks 41 * @maxsec: guaranteed runtime conversion range in seconds 50 * The @maxsec conversion range argument controls the time frame in 51 * seconds which must be covered by the runtime conversion with the [all …]
|
H A D | timekeeping.c | 1 // SPDX-License-Identifier: GPL-2.0 28 #include "tick-internal.h" 62 * struct tk_fast - NMI safe timekeeper 75 /* Suspend-time cycles value for halted fast timekeeper. */ 92 * returns nanoseconds already so no conversion is required, hence mult=1 130 * Multigrain timestamps require tracking the latest fine-grained timestamp 131 * that has been issued, and never returning a coarse-grained timestamp that is 134 * mg_floor represents the latest fine-grained time that has been handed out as 136 * converted to a realtime clock value on an as-needed basis. 148 while (tk->tkr_mono.xtime_nsec >= ((u64)NSEC_PER_SEC << tk->tkr_mono.shift)) { in tk_normalize_xtime() [all …]
|
/linux/drivers/iio/adc/ |
H A D | max1118.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * MAX1117/MAX1118/MAX1119 8-bit, dual-channel ADCs driver 7 * Datasheet: https://datasheets.maximintegrated.com/en/ds/MAX1117-MAX1119.pdf 13 * --- [all...] |
H A D | ina2xx-adc.c | 11 * Copyright 2010-2011 Analog Devices Inc. 14 * Copyright 2012 Lothar Felten <l-felten@ti.com> 16 * Licensed under the GPL-2 or later. 18 * IIO driver for INA219-220-226-230-231 20 * Configurable 7-bit I2C slave address from 0x40 to 0x4F 51 /* settings - depend on use case */ 98 #define SAMPLING_PERIOD(c) ((c->int_time_vbu [all...] |
H A D | at91-sama5d2_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <linux/dma-mapping.h> 31 #include <linux/nvmem-consumer.h> 36 #include <dt-bindings/iio/adc/at91-sama5d2_adc.h> 43 /* Start Conversion */ 110 /* Interrupt Enable Register - TS X measurement ready */ 112 /* Interrupt Enable Register - TS Y measurement ready */ 114 /* Interrupt Enable Register - TS pressure measurement ready */ 116 /* Interrupt Enable Register - Data ready */ 118 /* Interrupt Enable Register - general overrun error */ [all …]
|
/linux/drivers/auxdisplay/ |
H A D | line-display.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 23 * enum linedisp_map_type - type of the character mapping 33 * struct linedisp_map - character mapping 35 * @map: conversion character mapping 48 * struct linedisp_ops - character line display operations 58 * struct linedisp - character line display private data structure 67 * @scroll_rate: scroll interval in jiffies
|
/linux/Documentation/networking/ |
H A D | gen_stats.rst | 1 .. SPDX-License-Identifier: GPL-2.0 20 ----------- 30 Update statistics, in dequeue() methods only, (while owning qdisc->running):: 32 mystruct->tstats.packet++; 33 mystruct->qstats.backlog += skb->pkt_len; 37 --------------------------- 45 if (gnet_stats_start_copy(skb, TCA_STATS2, &mystruct->lock, &dump, 49 if (gnet_stats_copy_basic(&dump, &mystruct->bstats) < 0 || 50 gnet_stats_copy_queue(&dump, &mystruct->qstats) < 0 || 60 -------------------------------------------- [all …]
|
/linux/sound/core/oss/ |
H A D | mulaw.c | 2 * Mu-Law conversion Plug-In Interface 4 * Uros Bizjak <uros@kss-loka.si> 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 29 #define SIGN_BIT (0x80) /* Sign bit for a u-law byte. */ 31 #define NSEGS (8) /* Number of u-law segments. */ 55 * linear2ulaw() - Convert a linear PCM value to u-law 58 * is biased by adding 33 which shifts the encoding range from (0 - 8158) to 59 * (33 - 8191). The result can be seen in the following encoding table: 62 * ------------------------ --------------- 74 * of leading 0's. The quantization interval is directly available as the [all …]
|
/linux/drivers/staging/media/imx/ |
H A D | imx-ic-prp.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * for resizing, colorspace conversion, and rotation. 9 * Copyright (c) 2012-2017 Mentor Graphics Inc. 18 #include <media/v4l2-ctrls.h> 19 #include <media/v4l2-device.h> 20 #include <media/v4l2-ioctl.h> 21 #include <media/v4l2-subdev.h> 23 #include "imx-media.h" 24 #include "imx-ic.h" 61 return ic_priv->task_priv; in sd_to_priv() [all …]
|
/linux/Documentation/admin-guide/media/ |
H A D | imx.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 ------------ 15 - Image DMA Controller (IDMAC) 16 - Camera Serial Interface (CSI) 17 - Image Converter (IC) 18 - Sensor Multi-FIFO Controller (SMFC) 19 - Image Rotator (IRT) 20 - Video De-Interlacing or Combining Block (VDIC) 26 re-ordering (for example UYVY to YUYV) within the same colorspace, and 27 packed <--> planar conversion. The IDMAC can also perform a simple [all …]
|
/linux/drivers/net/wireless/ath/ath10k/ |
H A D | wmi.h | 1 /* SPDX-License-Identifier: ISC */ 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. 5 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 6 * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved. 29 * 1. Add new WMI commands ONLY within the specified range - 0x9000 - 0x9fff 45 * variable is already 4-byte aligned by virtue of being a u32 527 * for wmi_services is 64 as target is using only 4-bits of each 32-bit 533 __le32_to_cpu((wmi_svc_bmap)[((svc_id) - (len)) / 28]) & \ 534 BIT(((((svc_id) - (len)) % 28) & 0x1f) + 4)) [all …]
|
/linux/Documentation/timers/ |
H A D | highres.rst | 8 https://www.kernel.org/doc/ols/2006/ols2006v1-pages-333-346.pdf 11 http://www.cs.columbia.edu/~nahum/w6998/papers/ols2006-hrtimers-slides.pdf 23 - hrtimer base infrastructure 24 - timeofday and clock source management 25 - clock event management 26 - high resolution timer functionality 27 - dynamic ticks 31 --------------------------- 40 - time ordered enqueueing into a rb-tree 41 - independent of ticks (the processing is based on nanoseconds) [all …]
|
/linux/drivers/input/touchscreen/ |
H A D | ad7879.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2008-2010 Michael Hennerich, Analog Devices Inc. 13 * - corgi_ts.c 14 * Copyright (C) 2004-2005 Richard Purdie 15 * - omap_ts.[hc], ads7846.h, ts_osk.c 19 * - ad7877.c 20 * Copyright (C) 2006-2008 Analog Devices Inc. 57 #define AD7879_MODE_SCC (1 << 10) /* Single channel conversion */ 67 #define AD7879_SER (1 << 9) /* non-differential */ 103 #define MAX_12BIT ((1<<12)-1) [all …]
|
/linux/drivers/comedi/drivers/ |
H A D | usbdux.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Copyright (C) 2003-2014 Bernd Porr, mail@berndporr.me.uk 10 * Devices: [ITL] USB-DUX (usbdux) 26 * wrote the driver for AT-MIO-16d. I used some parts of this 46 * | kernel | registration | usbdux-usb | usbdux-comedi | comedi | 66 * Thanks to Jan-Matthias Braun and Ian to spot the bug and fix it. 97 /* timeout for the USB-transfer in ms */ 110 * Size of the input-buffer IN BYTES 122 * Size of the output-buffer in bytes 134 /* Number of in-URBs which receive the data: min=2 */ [all …]
|
H A D | s626.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * COMEDI - Linux Control and Measurement Device Interface 10 * Copyright (C) 2002-2004 Sensoray Co., Inc. 68 * struct s626_private - Working data for s626 driver. 69 * @ai_cmd_running: non-zero if ai_cmd is running. 71 * @ai_convert_count: conversion counter. 72 * @ai_convert_timer: time between conversion in units of the timer. 98 #define S626_INDXMASK(C) (1 << (((C) > 2) ? ((C) * 2 - 1) : ((C) * 2 + 4))) 110 writel(val, dev->mmio + reg); in s626_mc_enable() 116 writel(cmd << 16, dev->mmio + reg); in s626_mc_disable() [all …]
|