/Linux-v6.1/drivers/iio/imu/inv_icm42600/ |
D | inv_icm42600_timestamp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 15 /* allow a jitter of +/- 2% */ 19 (((_p) * (100 - INV_ICM42600_TIMESTAMP_JITTER)) / 100) 23 /* Add a new value inside an accumulator and update the estimate value */ 29 acc->values[acc->idx++] = val; in inv_update_acc() 30 if (acc->idx >= ARRAY_SIZE(acc->values)) in inv_update_acc() 31 acc->idx = 0; in inv_update_acc() 34 for (i = 0; i < ARRAY_SIZE(acc->values); ++i) { in inv_update_acc() 35 if (acc->values[i] == 0) in inv_update_acc() 37 sum += acc->values[i]; in inv_update_acc() [all …]
|
/Linux-v6.1/drivers/thermal/ti-soc-thermal/ |
D | ti-bandgap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2011-2012 Texas Instruments Incorporated - http://www.ti.com/ 6 * Author: J Keerthy <j-keerthy@ti.com> 7 * Author: Moiz Sonasath <m-sonasath@ti.com> 36 #include "ti-bandgap.h" 47 * ti_bandgap_readl() - simple read helper function 56 return readl(bgp->base + reg); in ti_bandgap_readl() 60 * ti_bandgap_writel() - simple write helper function 69 writel(val, bgp->base + reg); in ti_bandgap_writel() 73 * DOC: macro to update bits. [all …]
|
/Linux-v6.1/net/dccp/ccids/lib/ |
D | loss_interval.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (c) 2005-7 The University of Waikato, Hamilton, New Zealand. 5 * Copyright (c) 2005-7 Ian McDonald <ian.mcdonald@jandi.co.nz> 12 /* Loss Interval weights from [RFC 3448, 5.4], scaled by 10 */ 18 return LIH_SIZE - 1 - (ctr % LIH_SIZE); in LIH_INDEX() 24 return lh->counter ? lh->ring[LIH_INDEX(lh->counter - 1)] : NULL; in tfrc_lh_peek() 30 BUG_ON(i >= lh->counter); in tfrc_lh_get_interval() 31 return lh->ring[LIH_INDEX(lh->counter - i - 1)]->li_length; in tfrc_lh_get_interval() 35 * On-demand allocation and de-allocation of entries 39 if (lh->ring[LIH_INDEX(lh->counter)] == NULL) in tfrc_lh_demand_next() [all …]
|
/Linux-v6.1/kernel/time/ |
D | timekeeping.c | 1 // SPDX-License-Identifier: GPL-2.0 28 #include "tick-internal.h" 37 /* Update timekeeper when a tick has passed */ 40 /* Update timekeeper on a direct frequency change */ 63 * struct tk_fast - NMI safe timekeeper 76 /* Suspend-time cycles value for halted fast timekeeper. */ 119 while (tk->tkr_mono.xtime_nsec >= ((u64)NSEC_PER_SEC << tk->tkr_mono.shift)) { in tk_normalize_xtime() 120 tk->tkr_mono.xtime_nsec -= (u64)NSEC_PER_SEC << tk->tkr_mono.shift; in tk_normalize_xtime() 121 tk->xtime_sec++; in tk_normalize_xtime() 123 while (tk->tkr_raw.xtime_nsec >= ((u64)NSEC_PER_SEC << tk->tkr_raw.shift)) { in tk_normalize_xtime() [all …]
|
D | ntp.c | 1 // 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 97 #define PPS_INTMIN 2 /* min freq interval (s) (shift) */ 98 #define PPS_INTMAX 8 /* max freq interval (s) (shift) */ 107 static struct timespec64 pps_fbase; /* beginning of the last freq interval */ 108 static int pps_shift; /* current interval duration (s) (shift) */ 109 static int pps_intcnt; /* interval counter */ 135 /* the PPS calibration interval may end in pps_reset_freq_interval() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/power/supply/ |
D | dlg,da9150-fuel-gauge.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/dlg,da9150-fuel-gauge.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Dialog Semiconductor DA9150 Fuel-Gauge Power Supply bindings 10 - Sebastian Reichel <sre@kernel.org> 13 - $ref: power-supply.yaml# 17 const: dlg,da9150-fuel-gauge 19 dlg,update-interval: 21 description: Interval time (milliseconds) between battery level checks. [all …]
|
/Linux-v6.1/Documentation/hwmon/ |
D | sht3x.rst | 6 * Sensirion SHT3x-DIS 16 - David Frey <david.frey@sensirion.com> 17 - Pascal Sachs <pascal.sachs@sensirion.com> 20 ----------- 22 This driver implements support for the Sensirion SHT3x-DIS chip, a humidity 29 Documentation/i2c/instantiating-devices.rst for methods to instantiate the device. 34 non-blocking mode. Blocking mode will guarantee the fastest result but 35 the I2C bus will be busy during that time. By default, non-blocking mode 36 is used. Make sure clock-stretching works properly on your device if you 55 with the configured update interval on the chip. When a temperature or humidity [all …]
|
D | lm95245.rst | 22 Author: Alexander Stein <alexander.stein@systec-electronic.com> 25 ----------- 27 LM95235 and LM95245 are 11-bit digital temperature sensors with a 2-wire System 34 is given within a range of -127 to +127.875 degrees. Remote temperatures are 35 given within a range of -127 to +255 degrees. Resolution depends on 40 user-space applications, two absolute values are exported, one for each 42 can be set from user-space, and the same delta applies to the remote 45 The lm95245 driver can change its update interval to a fixed set of values. 46 It will round up to the next selectable interval. See the datasheet for exact
|
D | lm95234.rst | 22 Author: Guenter Roeck <linux@roeck-us.net> 25 ----------- 27 LM95233 and LM95234 are 11-bit digital temperature sensors with a 2-wire 32 graphics processors or diode-connected 2N3904s. The chip's TruTherm 37 is provided within a range of -127 to +255 degrees (+127.875 degrees for 45 The lm95234 driver can change its update interval to a fixed set of values. 46 It will round up to the next selectable interval. See the datasheet for exact
|
/Linux-v6.1/Documentation/mm/damon/ |
D | design.rst | 1 .. SPDX-License-Identifier: GPL-2.0 42 VMA-based Target Address Range Construction 43 ------------------------------------------- 49 Only small parts in the super-huge virtual address space of the processes are 61 heap and the uppermost mmap()-ed region, and the gap between the lowermost 62 mmap()-ed region and the stack in most of the cases. Because these gaps are 64 to make a reasonable trade-off. Below shows this in detail:: 68 <uppermost mmap()-ed region> 69 (small mmap()-ed regions and munmap()-ed regions) 70 <lowermost mmap()-ed region> [all …]
|
/Linux-v6.1/arch/s390/kernel/ |
D | vtime.c | 1 // SPDX-License-Identifier: GPL-2.0 52 S390_lowcore.system_timer += S390_lowcore.last_update_timer - timer; in set_vtimer() 77 delta = cycles_new[i] - cycles_old[i]; in update_mt_scaling() 85 /* Update scaling factor */ in update_mt_scaling() 98 delta = new - *tsk_vtime; in update_tsk_timer() 117 p->stimescaled += cputime_to_nsecs(scale_vtime(cputime)); in account_system_index_scaled() 122 * Update process times based on virtual cpu times stored by entry.S 137 clock = S390_lowcore.last_update_clock - clock; in do_account_vtime() 138 timer -= S390_lowcore.last_update_timer; in do_account_vtime() 145 /* Update MT utilization calculation */ in do_account_vtime() [all …]
|
/Linux-v6.1/Documentation/admin-guide/mm/damon/ |
D | usage.rst | 1 .. SPDX-License-Identifier: GPL-2.0 9 - *DAMON user space tool.* 11 system administrators who want a just-working human-friendly interface. 12 Using this, users can use the DAMON’s major features in a human-friendly way. 17 - *sysfs interface.* 28 - *debugfs interface.* 32 - *Kernel Space Programming Interface.* 60 --------------- 63 figure, parents-children relations are represented with indentations, each 96 ---- [all …]
|
/Linux-v6.1/samples/bpf/ |
D | xdp_redirect_map_multi_user.c | 1 // SPDX-License-Identifier: GPL-2.0 40 { "skb-mode", no_argument, NULL, 'S' }, 42 { "load-egress", no_argument, NULL, 'X' }, 44 { "interval", required_argument, NULL, 'i' }, 54 int i, ret = -1; in update_mac_map() 68 fprintf(stderr, "Failed to update mac address for ifindex %d\n", in update_mac_map() 85 unsigned long interval = 2; in main() local 95 long_options, NULL)) != -1) { in main() 110 interval = strtoul(optarg, NULL, 0); in main() 141 fprintf(stderr, "Failed to sample_init_pre_load: %s\n", strerror(-ret)); in main() [all …]
|
D | cpustat_kern.c | 1 // SPDX-License-Identifier: GPL-2.0 29 * timestamp (Idx, Ts), when new event incoming we need to update 33 * interval for the previous state: Duration(Idx) = Ts` - Ts. 38 * +--------------------------+ 40 * +--------------------------+ 42 * +--------------------------+ 44 * +--------------------------+ 46 * +--------------------------+ 110 if (ctx->cpu_id > MAX_CPU) in bpf_prog1() 113 cpu = ctx->cpu_id; in bpf_prog1() [all …]
|
/Linux-v6.1/include/linux/ |
D | damon.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 18 /* Max priority score for DAMON-based operation schemes */ 24 return l + prandom_u32_max(r - l); in damon_rand() 28 * struct damon_addr_range - Represents an address region of [@start, @end). 38 * struct damon_region - Represents a monitoring target region. 45 * @age is initially zero, increased for each aggregation interval, and reset 48 * region are set as region size-weighted average of those of the two regions. 62 * struct damon_target - Represents a monitoring target. 81 * enum damos_action - Represents an action of a Data Access Monitoring-based 107 * struct damos_quota - Controls the aggressiveness of the given scheme. [all …]
|
D | timekeeper_internal.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 15 * struct tk_read_base - base structure for timekeeping readout 18 * @cycle_last: @clock cycle value at last update 46 * struct timekeeper - Structure holding internal timekeeping values. 52 * @offs_real: Offset clock monotonic -> clock realtime 53 * @offs_boot: Offset clock monotonic -> clock boottime 54 * @offs_tai: Offset clock monotonic -> clock tai 58 * @next_leap_ktime: CLOCK_MONOTONIC time value of a pending leap-second 61 * @cycle_interval: Number of clock cycles in one NTP interval 63 * interval. [all …]
|
/Linux-v6.1/drivers/media/platform/mediatek/vcodec/ |
D | venc_drv_if.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 16 * enum venc_yuv_fmt - The type of input yuv format 17 * (VPU related: If you change the order, you must also update the VPU codes.) 31 * enum venc_start_opt - encode frame option used in venc_if_encode() 41 * enum venc_set_param_type - The type of set parameter used in 43 * (VPU related: If you change the order, you must also update the VPU codes.) 48 * @VENC_SET_PARAM_GOP_SIZE: set IDR interval 49 * @VENC_SET_PARAM_INTRA_PERIOD: set I frame interval 67 * struct venc_enc_prm - encoder settings for VENC_SET_PARAM_ENC used in 96 * struct venc_frame_info - per-frame information to pass to the firmware. [all …]
|
/Linux-v6.1/drivers/hwmon/ |
D | nzxt-smart2.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Reverse-engineered NZXT RGB & Fan Controller/Smart Device v2 driver. 77 * a 2-byte output report { 0x60, 0x03 }. 90 * The device sends these reports at a fixed interval (update interval) - 92 * FAN_STATUS_REPORT_VOLTAGE per update interval. 112 * Fan duty cycle, in percent. Non-zero even for 117 * Exactly the same values as duty_percent[], non-zero 127 * Voltage, in millivolts. Non-zero even when fan is 132 * Current, in milliamperes. Near-zero when 161 /* To change fan speed on i-th channel, set i-th bit here */ [all …]
|
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 */ 65 * Possible update intervals are (in mS): 89 u8 interval; member 105 * vice-vers. They are (mostly) taken from lm90 driver. Unit is in mC. 121 switch (priv->interval) { in stts751_adjust_resolution() 136 if (priv->res == res) in stts751_adjust_resolution() [all …]
|
/Linux-v6.1/drivers/auxdisplay/ |
D | line-display.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 15 * struct linedisp - character line display private data structure 18 * @update: function called to update the display 24 * @scroll_rate: scroll interval in jiffies 29 void (*update)(struct linedisp *linedisp); member 40 void (*update)(struct linedisp *linedisp));
|
/Linux-v6.1/sound/pci/ctxfi/ |
D | cttimer.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 MODULE_PARM_DESC(use_system_timer, "Force to use system-timer"); 29 /* timer instance -- assigned to each PCM stream */ 60 * system-timer-based updates 66 struct snd_pcm_substream *substream = ti->substream; in ct_systimer_callback() 67 struct snd_pcm_runtime *runtime = substream->runtime; in ct_systimer_callback() 68 struct ct_atc_pcm *apcm = ti->apcm; in ct_systimer_callback() 69 unsigned int period_size = runtime->period_size; in ct_systimer_callback() 70 unsigned int buffer_size = runtime->buffer_size; in ct_systimer_callback() 72 unsigned int position, dist, interval; in ct_systimer_callback() local [all …]
|
/Linux-v6.1/drivers/leds/ |
D | leds-bcm6328.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Driver for BCM6328 memory-mapped LEDs, based on leds-syscon.c 59 * struct bcm6328_led - state container for bcm6328 based LEDs 98 * bits [31:0] -> LEDs 8-23 99 * bits [47:32] -> LEDs 0-7 100 * bits [63:48] -> unused 105 return pin + 16; /* LEDs 0-7 (bits 47:32) */ in bcm6328_pin2shift() 107 return pin - 8; /* LEDs 8-23 (bits 31:0) */ in bcm6328_pin2shift() 115 shift = bcm6328_pin2shift(led->pin); in bcm6328_led_mode() 117 mode = led->mem + BCM6328_REG_MODE_HI; in bcm6328_led_mode() [all …]
|
/Linux-v6.1/drivers/media/i2c/ |
D | ov9650.c | 1 // SPDX-License-Identifier: GPL-2.0-only 25 #include <media/media-entity.h> 26 #include <media/v4l2-async.h> 27 #include <media/v4l2-ctrls.h> 28 #include <media/v4l2-device.h> 29 #include <media/v4l2-event.h> 30 #include <media/v4l2-image-sizes.h> 31 #include <media/v4l2-subdev.h> 32 #include <media/v4l2-mediabus.h> 37 MODULE_PARM_DESC(debug, "Debug level (0-2)"); [all …]
|
/Linux-v6.1/drivers/iio/imu/inv_mpu6050/ |
D | inv_mpu_ring.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 * inv_mpu6050_update_period() - Update chip internal period estimation 33 (NSEC_PER_MSEC * (100 - INV_MPU6050_TS_PERIOD_JITTER)) / 100; in inv_mpu6050_update_period() 37 s64 delta, interval; in inv_mpu6050_update_period() local 40 if (st->it_timestamp == 0) { in inv_mpu6050_update_period() 51 delta = div_s64(timestamp - st->it_timestamp, divider); in inv_mpu6050_update_period() 53 /* update chip period and use it timestamp */ in inv_mpu6050_update_period() 54 st->chip_period = (st->chip_period + delta) / 2; in inv_mpu6050_update_period() 65 interval = (nb - 1) * st->chip_period * divider; in inv_mpu6050_update_period() 66 st->data_timestamp = timestamp - interval; in inv_mpu6050_update_period() [all …]
|
/Linux-v6.1/fs/ext4/ |
D | mmp.c | 1 // SPDX-License-Identifier: GPL-2.0 17 csum = ext4_chksum(sbi, sbi->s_csum_seed, (char *)mmp, offset); in ext4_mmp_csum() 27 return mmp->mmp_checksum == ext4_mmp_csum(sb, mmp); in ext4_mmp_csum_verify() 35 mmp->mmp_checksum = ext4_mmp_csum(sb, mmp); in ext4_mmp_csum_set() 39 * Write the MMP block using REQ_SYNC to try to get the block on-disk 44 struct mmp_struct *mmp = (struct mmp_struct *)(bh->b_data); in write_mmp_block() 53 bh->b_end_io = end_buffer_write_sync; in write_mmp_block() 59 return -EIO; in write_mmp_block() 83 ret = -ENOMEM; in read_mmp_block() 93 mmp = (struct mmp_struct *)((*bh)->b_data); in read_mmp_block() [all …]
|