/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 } 27 [AD3542R_CH_OUTPUT_RANGE_NEG_5__5V] = { -5000, 5000 }, 28 [AD3542R_CH_OUTPUT_RANGE_NEG_2P5__7P5V] = { -2500, 7500 } 32 /* Gain * AD3552R_GAIN_SCALE */ 40 u16 ad3552r_calc_custom_gain(u8 p, u8 n, s16 goffs) in ad3552r_calc_custom_gain() argument 43 FIELD_PREP(AD3552R_MASK_CH_GAIN_SCALING_P, p) | in ad3552r_calc_custom_gain() 57 * Vmax = 2.5 - [(GainP + Offset / 1024) * 2.5 * Rfb * 1.03] in ad3552r_get_custom_range() [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/Documentation/userspace-api/media/v4l/ |
H A D | vidioc-queryctrl.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 VIDIOC_QUERYCTRL - VIDIOC_QUERY_EXT_CTRL - VIDIOC_QUERYMENU - Enumerate controls and menu control i… 42 of a struct :ref:`v4l2_queryctrl <v4l2-queryctrl>` and call the 60 driver returns the next supported non-compound control, or ``EINVAL`` if 72 :ref:`v4l2_queryctrl <v4l2-queryctrl>` since that structure is full. 80 fields of struct :ref:`v4l2_querymenu <v4l2-querymenu>` and call the 85 :ref:`v4l2_queryctrl <v4l2-queryctrl>` ``minimum`` to ``maximum``, 97 .. tabularcolumns:: |p{1.2cm}|p{3.6cm}|p{12.5cm}| 99 .. _v4l2-queryctrl: 103 .. flat-table:: struct v4l2_queryctrl [all …]
|
/linux/drivers/misc/echo/ |
H A D | echo.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * SpanDSP - a series of DSP components for telephony 5 * echo.c - A line echo canceller. This code is being developed 30 especially for double talk - there were always cases where my DTD 50 on 4 real-world samples. 54 on the real-world samples. I have no idea why, perhaps a scaling 59 dot product) compared to the current sample-by-sample update. 66 Path Models", IEEE Transactions on communications, COM-25, 78 Part 1: http://www.rowetel.com/blog/?p=18 87 Thanks to Steve Underwood, Jean-Marc Valin, and Ramakrishnan [all …]
|
/linux/drivers/media/test-drivers/vivid/ |
H A D | vivid-kthread-cap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * vivid-kthread-cap.h - video/vbi capture thread support functions. 20 #include <linux/v4l2-dv-timings.h> 23 #include <media/videobuf2-vmalloc.h> 24 #include <media/v4l2-dv-timings.h> 25 #include <media/v4l2-ioctl.h> 26 #include <media/v4l2-fh.h> 27 #include <media/v4l2-event.h> 28 #include <media/v4l2-rect.h> 30 #include "vivid-core.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 | max44000.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * 7-bit I2C slave address 0x4a 88 /* Scale can be multiplied by up to 128x via ALSPGA for measurement gain */ 95 * This scaling factor is hidden from userspace and instead accounted for when 165 .scan_index = -1, 174 ret = regmap_read(data->regmap, MAX44000_REG_CFG_RX, &val); in max44000_read_alstim() 182 return regmap_write_bits(data->regma in max44000_write_alstim() 491 max44000_trigger_handler(int irq,void * p) max44000_trigger_handler() argument [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/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/drivers/gpu/drm/sti/ |
H A D | sti_hqvdp.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include <linux/dma-mapping.h> 31 #define HQVDP_FMW_NAME "hqvdp-stih407.bin" 258 /* Default Contrast & Brightness gain = 256 */ 260 /* Default Saturation gain = 256 */ 376 * -1 in error cases 381 u32 cmd = hqvdp->hqvdp_cmd_paddr; in sti_hqvdp_get_free_cmd() 384 curr_cmd = readl(hqvdp->regs + HQVDP_MBX_CURRENT_CMD); in sti_hqvdp_get_free_cmd() 385 next_cmd = readl(hqvdp->regs + HQVDP_MBX_NEXT_CMD); in sti_hqvdp_get_free_cmd() 393 return -1; in sti_hqvdp_get_free_cmd() [all …]
|
/linux/sound/soc/sof/ |
H A D | ipc4-topology.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 13 #include <sound/intel-nhlt.h> 14 #include "sof-priv.h" 15 #include "sof-audio.h" 16 #include "ipc4-priv.h" 17 #include "ipc4-topology.h" 24 * message and it is used for clock scaling. 26 * deactivating the clock scaling. 31 "Ignore CPC values. This option will disable clock scaling in firmware."); 166 [SOF_GAIN_TOKENS] = {"Gain tokens", gain_tokens, ARRAY_SIZE(gain_tokens)}, [all …]
|
/linux/drivers/staging/media/ipu3/include/uapi/ |
H A D | intel-ipu3.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 /* Copyright (C) 2017 - 2018 Intel Corporation */ 11 /* Vendor specific - used for IPU3 camera sub-system */ 13 #define V4L2_META_FMT_IPU3_PARAMS v4l2_fourcc('i', 'p', '3', 'p') 15 #define V4L2_META_FMT_IPU3_STAT_3A v4l2_fourcc('i', 'p', '3', 's') 17 /* from include/uapi/linux/v4l2-controls.h */ 26 #define IPU3_UAPI_GRID_START_MASK ((1 << 12) - 1) 34 * struct ipu3_uapi_grid_config - Grid plane config 56 * create a grid-based output, and the data is then divided into "slices". 71 * struct ipu3_uapi_awb_set_item - Memory layout for each cell in AWB [all …]
|
/linux/include/linux/ |
H A D | sched.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 41 #include <linux/posix-timers_types.h> 91 * We have two separate sets of flags: task->__state 92 * is about runnability, while task->exit_state are 98 /* Used in tsk->__state: */ 104 /* Used in tsk->exit_state: */ 108 /* Used in tsk->__state again: */ 121 #define TASK_ANY (TASK_STATE_MAX-1) 144 #define task_is_running(task) (READ_ONCE((task)->__state) == TASK_RUNNING) 146 #define task_is_traced(task) ((READ_ONCE(task->jobctl) & JOBCTL_TRACED) != 0) [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 …]
|