/linux/Documentation/devicetree/bindings/iio/dac/ |
H A D | adi,ad3552r.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Nuno Sá <nuno.sa@analog.com> 16 https://www.analog.com/media/en/technical-documentation/data-sheets/ad3541r.pdf 17 https://www.analog.com/media/en/technical-documentation/data-sheets/ad3542r.pdf 18 https://www.analog.com/media/en/technical-documentation/data-sheets/ad3551r.pdf 19 https://www.analog.com/media/en/technical-documentation/data-sheets/ad3552r.pdf 24 - adi,ad3541r 25 - adi,ad3542r [all …]
|
/linux/drivers/iio/dac/ |
H A D | ad3552r-common.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // Copyright (c) 2010-2024 Analog Devices Inc. 18 [AD3552R_CH_OUTPUT_RANGE_NEG_5__5V] = { -5000, 5000 }, 19 [AD3552R_CH_OUTPUT_RANGE_NEG_10__10V] = { -10000, 10000 } 26 [AD3542R_CH_OUTPUT_RANGE_NEG_5__5V] = { -5000, 5000 }, 27 [AD3542R_CH_OUTPUT_RANGE_NEG_2P5__7P5V] = { -2500, 7500 } 30 /* Gain * AD3552R_GAIN_SCALE */ 86 u16 ad3552r_calc_custom_gain(u8 p, u8 n, s16 goffs) in ad3552r_calc_custom_gain() argument 89 FIELD_PREP(AD3552R_MASK_CH_GAIN_SCALING_P, p) | in ad3552r_calc_custom_gain() 103 * Vmax = 2.5 - [(GainP + Offset / 1024) * 2.5 * Rfb * 1.03] in ad3552r_get_custom_range() [all …]
|
H A D | ad3552r.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * AD3552R Digital <-> Analog converters common header 5 * Copyright 2021-2024 Analog Devices Inc. 101 #define AD3552R_REG_ADDR_CH_DAC_16B(ch) (0x2C - (1 - (ch)) * 2) 106 #define AD3552R_REG_ADDR_CH_INPUT_16B(ch) (0x36 - (1 - (ch)) * 2) 110 #define AD3552R_REG_ADDR_CH_DAC_24B(ch) (0x3D - (1 - (ch)) * 3) 115 #define AD3552R_REG_ADDR_CH_INPUT_24B(ch) (0x4B - (1 - (ch)) * 3) 170 u8 p; member 176 /* Gain scaling of 1 */ 178 /* Gain scaling of 0.5 */ [all …]
|
/linux/drivers/media/i2c/ |
H A D | saa711x_regs.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * saa711x - Philips SAA711x video decoder register specifications 10 /* Video Decoder - Frontend part */ 16 /* Video Decoder - Decoder part */ 112 /* Horizontal phase scaling */ 120 /* Vertical scaling */ 159 /* Horizontal phase scaling */ 166 /* Vertical scaling */ 196 /* SAA7113 bit-masks */ 230 /* Video Decoder - Frontend part: R_01_INC_DELAY to R_05_INPUT_CNTL_4 */ [all …]
|
H A D | saa7115.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 // saa711x - Philips SAA711x video decoder driver 23 // Copyright (c) 2005-2006 Mauro Carvalho Chehab <mchehab@kernel.org> 33 #include <media/v4l2-device.h> 34 #include <media/v4l2-ctrls.h> 35 #include <media/v4l2-mc.h> 49 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 76 /* chroma gain control cluster */ 78 struct v4l2_ctrl *gain; member 104 return &container_of(ctrl->handler, struct saa711x_state, hdl)->sd; in to_sd() [all …]
|
H A D | saa717x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * saa717x - Philips SAA717xHL video decoder driver 8 * - Apply to SAA717x,NEC uPD64031,uPD64083. (1/31/2004) 10 * Changes by T.Adachi (tadachi@tadachi-net.com) 11 * - support audio, video scaler etc, and checked the initialize sequence. 27 #include <media/v4l2-device.h> 28 #include <media/v4l2-ctrls.h> 36 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 70 return &container_of(ctrl->handler, struct saa717x_state, hdl)->sd; in to_sd() 73 /* ----------------------------------------------------------------------- */ [all …]
|
H A D | s5k5baf.c | 1 // SPDX-License-Identifier: GPL-2.0-only 24 #include <media/media-entity.h> 25 #include <media/v4l2-ctrls.h> 26 #include <media/v4l2-device.h> 27 #include <media/v4l2-subdev.h> 28 #include <media/v4l2-mediabus.h> 29 #include <media/v4l2-fwnode.h> 38 #define S5K5BAF_FW_FILENAME "s5k5baf-cfg.bin" 50 /* Default number of MIPI CSI-2 data lanes used */ 199 /* Auto-algorithms enable mask */ [all …]
|
H A D | mt9m114.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2020-2023 Laurent Pinchart <laurent.pinchart@ideasonboard.com> 26 #include <media/v4l2-async.h> 27 #include <media/v4l2-cci.h> 28 #include <media/v4l2-ctrls.h> 29 #include <media/v4l2-device.h> 30 #include <media/v4l2-fwnode.h> 31 #include <media/v4l2-mediabus.h> 32 #include <media/v4l2-subdev.h> 75 /* Auto-Exposure Track registers */ [all …]
|
H A D | adv7842.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * adv7842 - Analog Devices ADV7842 video decoder driver 9 * References (c = chapter, p = page): 10 * REF_01 - Analog devices, ADV7842, 12 * REF_02 - Analog devices, Software User Guide, UG-206, 14 * REF_03 - Analog devices, Hardware User Guide, UG-214, 15 * ADV7842 Fast Switching 2:1 HDMI 1.4 Receiver with 3D-Comb 27 #include <linux/v4l2-dv-timings.h> 30 #include <media/v4l2-device.h> 31 #include <media/v4l2-event.h> [all …]
|
/linux/drivers/media/v4l2-core/ |
H A D | v4l2-ctrls-defs.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2010-2021 Hans Verkuil <hverkuil-cisco@xs4all.nl> 9 #include <media/v4l2-ctrls.h> 26 "MPEG-1/2 Layer I", in v4l2_ctrl_get_menu() 27 "MPEG-1/2 Layer II", in v4l2_ctrl_get_menu() 28 "MPEG-1/2 Layer III", in v4l2_ctrl_get_menu() 29 "MPEG-2/4 AAC", in v4l2_ctrl_get_menu() 30 "AC-3", in v4l2_ctrl_get_menu() 128 "16-bit CRC", in v4l2_ctrl_get_menu() 141 "MPEG-1", in v4l2_ctrl_get_menu() [all …]
|
/linux/Documentation/driver-api/media/drivers/ccs/ |
H A D | ccs-regs.asc | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause 2 # Copyright (C) 2019--2020 Intel Corporation 5 # - f field LSB MSB rflags 6 # - e enum value # after a field 7 # - e enum value [LSB MSB] 8 # - b bool bit 9 # - l arg name min max elsize [discontig...] 23 - e GRBG 0 24 - e RGGB 1 25 - e BGGR 2 [all …]
|
/linux/drivers/media/common/saa7146/ |
H A D | saa7146_hlp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include <media/drv-intf/saa7146_vv.h> 26 hyo = vv->standard->v_offset; in calculate_hxo_and_hyo() 27 hxo = vv->standard->h_offset; in calculate_hxo_and_hyo() 36 /* helper functions for the calculation of the horizontal- and vertical 37 scaling registers, clip-format-register etc ... 38 these functions take pointers to the (most-likely read-out 39 original-values) and manipulate them according to the requested 43 /* hps_coeff used for CXY and CXUV; scale 1/1 -> scale 1/64 */ 63 /* table of attenuation values for horizontal scaling */ [all …]
|
/linux/drivers/iio/light/ |
H A D | tsl2583.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright (c) 2016-2017 Brian Masney <masneyb@onstation.org> 61 /* Per-device data */ 113 /* Index = (0 - 3) Used to validate the gain selection index */ 131 chip->als_settings.als_time = 100; in tsl2583_defaults() 137 chip->als_settings.als_gain = 0; in tsl2583_defaults() 139 /* Default gain trim to account for aperture effects */ in tsl2583_defaults() 140 chip->als_settings.als_gain_trim = 1000; in tsl2583_defaults() 143 chip->als_settings.als_cal_target = 130; in tsl2583_defaults() 146 memcpy(chip->als_settings.als_device_lux, tsl2583_default_lux, in tsl2583_defaults() [all …]
|
H A D | tsl2772.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * Copyright (c) 2017-2018 Brian Masney <masneyb@onstation.org> 41 * TAOS Register definitions - Note: depending on device, some of these register 145 /* Per-device data */ 326 ret = i2c_smbus_read_byte_data(chip->client, in tsl2772_read_status() 329 dev_err(&chip->client->dev, in tsl2772_read_status() 340 ret = i2c_smbus_write_byte_data(chip->client, in tsl2772_write_control_reg() 343 dev_err(&chip->client->dev, in tsl2772_write_control_reg() 357 ret = i2c_smbus_write_byte(chip->client, in tsl2772_read_autoinc_regs() 361 dev_err(&chip->client->dev, in tsl2772_read_autoinc_regs() [all …]
|
/linux/Documentation/scheduler/ |
H A D | schedutil.rst | 15 individual tasks to task-group slices to CPU runqueues. As the basis for this 31 Note that blocked tasks still contribute to the aggregates (task-group slices 51 Dynamic Voltage and Frequency Scaling (DVFS) ratio and one microarch ratio. 57 r_dvfs := ----- 61 hardware counters (Intel APERF/MPERF, ARMv8.4-AMU) to provide us this ratio. 65 f_cur := ----- * P0 68 4C-turbo; if available and turbo enabled 69 f_max := { 1C-turbo; if turbo enabled 73 r_dvfs := min( 1, ----- ) 88 - kernel/sched/pelt.h:update_rq_clock_pelt() [all …]
|
/linux/net/ipv4/ |
H A D | tcp_bbr.c | 21 * +---> STARTUP ----+ 24 * | DRAIN ----+ 27 * +---> PROBE_BW ----+ 30 * | +----+ | 32 * +---- PROBE_RTT <--+ 37 * A long-lived BBR flow spends the vast majority of its time remaining 42 * it briefly enters PROBE_RTT to cut inflight to a minimum value to re-probe 43 * the path's two-way propagation delay (min_rtt). When exiting PROBE_RTT, if 48 * "BBR: Congestion-Based Congestion Control", 50 * Van Jacobson. ACM Queue, Vol. 14 No. 5, September-October 2016. [all …]
|
/linux/drivers/net/wireless/intel/iwlegacy/ |
H A D | common.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved. 8 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 31 #define IL_ERR(f, a...) dev_err(&il->pci_dev->dev, f, ## a) 32 #define IL_WARN(f, a...) dev_warn(&il->pci_dev->dev, f, ## a) 33 #define IL_WARN_ONCE(f, a...) dev_warn_once(&il->pci_dev->dev, f, ## a) 34 #define IL_INFO(f, a...) dev_info(&il->pci_dev->dev, f, ## a) 46 #define U32_PAD(n) ((4-(n))&0x3) 48 /* CT-KILL constants */ 56 * Use default noise value of -127 ... this is below the range of measurable [all …]
|
H A D | 4965-mac.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved. 11 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 22 #include <linux/dma-mapping.h> 71 if (!test_bit(S_EXIT_PENDING, &il->status)) in il4965_check_abort_status() 72 queue_work(il->workqueue, &il->tx_flush); in il4965_check_abort_status() 89 spin_lock_irqsave(&rxq->lock, flags); in il4965_rx_queue_reset() 90 INIT_LIST_HEAD(&rxq->rx_free); in il4965_rx_queue_reset() 91 INIT_LIST_HEAD(&rxq->rx_used); in il4965_rx_queue_reset() 96 if (rxq->pool[i].page != NULL) { in il4965_rx_queue_reset() [all …]
|
/linux/drivers/iio/magnetometer/ |
H A D | hmc5843_core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Device driver for the HMC5843 multi-chip module designed 11 * Split to multiple files by Josef Gajdusek <atx@atx.name> - 2014 26 * Range gain settings in (+-)Ga 28 * ranges; default corresponds to +-1.0 Ga and +-1.3 Ga, respectively 64 * 0 - Normal measurement configuration (default): In normal measurement 68 * 1 - Positive bias configuration: In positive bias configuration, a 72 * 2 - Negative bias configuration. In negative bias configuration, a 76 * 3 - Only available on HMC5983. Magnetic sensor is disabled. 86 /* Scaling factors: 10000000/Gain */ [all …]
|
/linux/sound/soc/sof/ |
H A D | ipc4-topology.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 14 #include <sound/intel-nhlt.h> 15 #include "sof-priv.h" 16 #include "sof-audio.h" 17 #include "ipc4-priv.h" 18 #include "ipc4-topology.h" 25 * message and it is used for clock scaling. 27 * deactivating the clock scaling. 32 "Ignore CPC values. This option will disable clock scaling in firmware."); 175 [SOF_GAIN_TOKENS] = {"Gain tokens", gain_tokens, ARRAY_SIZE(gain_tokens)}, [all …]
|
/linux/include/linux/ |
H A D | sched.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 42 #include <linux/posix-timers_types.h> 49 #include <linux/tracepoint-defs.h> 93 * We have two separate sets of flags: task->__state 94 * is about runnability, while task->exit_state are 100 /* Used in tsk->__state: */ 106 /* Used in tsk->exit_state: */ 110 /* Used in tsk->__state again: */ 123 #define TASK_ANY (TASK_STATE_MAX-1) 146 #define task_is_running(task) (READ_ONCE((task)->__state) == TASK_RUNNING) [all …]
|
/linux/include/uapi/linux/ |
H A D | soundcard.h | 2 * Copyright by Hannu Savolainen 1993-1997 228 #define WAVE_UNSIGNED 0x02 /* bit 1 = Signed - Unsigned data. */ 229 #define WAVE_LOOPING 0x04 /* bit 2 = looping enabled-1. */ 233 #define WAVE_ENVELOPES 0x40 /* bit 6 = Enable envelopes - 1 */ 239 #define WAVE_SCALE 0x00040000 /* The scaling info is valid */ 269 int panning; /* -128=left, 127=right */ 378 /* undefined 0x14 - 0x1f */ 395 /* undefined 0x46 - 0x4f */ 401 /* undefined 0x54 - 0x5a */ 414 /* undefined 0x66 - 0x78 */ [all …]
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
H A D | dm.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2009-2010 Realtek Corporation.*/ 17 0x081, /* 0, -12.0dB */ 18 0x088, /* 1, -11.5dB */ 19 0x090, /* 2, -11.0dB */ 20 0x099, /* 3, -10.5dB */ 21 0x0A2, /* 4, -10.0dB */ 22 0x0AC, /* 5, -9.5dB */ 23 0x0B6, /* 6, -9.0dB */ 24 0x0C0, /* 7, -8.5dB */ [all …]
|
/linux/drivers/media/usb/gspca/ |
H A D | ov519.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2008-2011 Jean-François Moine <moinejf@free.fr> 8 * This module is adapted from the ov51x-jpeg package, which itself 13 * Copyright (c) 1999-2006 Mark W. McClelland 17 * OV7620 fixes by Charl P. Botha <cpbotha@ieee.org> 20 * ov51x-jpeg original copyright is: 22 * Copyright (c) 2004-2007 Romain Beauxis <toots@rastageeks.org> 38 MODULE_AUTHOR("Jean-Francois Moine <http://moinejf.free.fr>"); 482 /*jfm: this value does not work for 800x600 - see isoc_init */ 501 #define OV7610_REG_GAIN 0x00 /* gain setting (5:0) */ [all …]
|
/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_legacy_crtc.c | 2 * Copyright 2007-8 Advanced Micro Devices, Inc. 40 struct drm_device *dev = crtc->dev; in radeon_overscan_setup() 41 struct radeon_device *rdev = dev->dev_private; in radeon_overscan_setup() 44 WREG32(RADEON_OVR_CLR + radeon_crtc->crtc_offset, 0); in radeon_overscan_setup() 45 WREG32(RADEON_OVR_WID_LEFT_RIGHT + radeon_crtc->crtc_offset, 0); in radeon_overscan_setup() 46 WREG32(RADEON_OVR_WID_TOP_BOTTOM + radeon_crtc->crtc_offset, 0); in radeon_overscan_setup() 52 struct drm_device *dev = crtc->dev; in radeon_legacy_rmx_mode_set() 53 struct radeon_device *rdev = dev->dev_private; in radeon_legacy_rmx_mode_set() 55 int xres = mode->hdisplay; in radeon_legacy_rmx_mode_set() 56 int yres = mode->vdisplay; in radeon_legacy_rmx_mode_set() [all …]
|