| /linux/scripts/coccinelle/misc/ |
| H A D | minmax.cocci | 1 // SPDX-License-Identifier: GPL-2.0-only 3 /// Check for opencoded min(), max() implementations. 9 // Options: --no-includes --includ [all...] |
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | metafmt-vsp1-hgo.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 4 .. _v4l2-meta-fmt-vsp1-hgo: 10 Renesas R-Car VSP1 1-D Histogram Data 16 This format describes histogram data generated by the Renesas R-Car VSP1 1-D 21 computes the minimum, maximum and sum of all pixels as well as per-channel 25 three channels (RGB data only) or on the Y channel only (YCbCr only). It can 29 - In *64 bins normal mode*, the HGO operates on the three channels independently 30 to compute three 64-bins histograms. RGB, YCbCr and HSV image formats are 32 - In *64 bins maximum mode*, the HGO operates on the maximum of the (R, G, B) 33 channels to compute a single 64-bins histogram. Only the RGB image format is [all …]
|
| /linux/Documentation/devicetree/bindings/iio/accel/ |
| H A D | lis302.txt | 8 - compatible: should be set to "st,lis3lv02d-spi" 9 - reg: the chipselect index 10 - spi-max-frequency: maximal bus speed, should be set to 1000000 unless 12 - interrupts: the interrupt generated by the device 15 - compatible: should be set to "st,lis3lv02d" 16 - reg: i2c slave address 17 - Vdd-supply: The input supply for Vdd 18 - Vdd_IO-supply: The input supply for Vdd_IO 23 - st,click-single-{x,y,z}: if present, tells the device to issue an 25 x/y/z axis. [all …]
|
| /linux/include/linux/ |
| H A D | minmax.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 * min()/max()/clamp() macros must accomplish several things: 13 * - Avoid multiple evaluations of the arguments (so side-effects like 14 * "x++" happen only once) when non-constant. 15 * - Perform signed v unsigned type-checking (to generate compile 17 * - Unsigned char/short are always promoted to signed int and can be 19 * - Unsigned arguments can be compared against non-negative signed constants. 20 * - Comparison of a signed argument against an unsigned constant fails 23 #define __typecheck(x, y) \ argument 24 (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) [all …]
|
| /linux/Documentation/scheduler/ |
| H A D | sched-pelt.c | 6 * C program (compile with -lm) 16 double y; variable 23 /* To silence -Wunused-but-set-variable warnings. */ in calc_runnable_avg_yN_inv() 26 x = ((1UL<<32)-1)*pow(y, i); in calc_runnable_avg_yN_inv() 43 sum *= y; in calc_runnable_avg_yN_sum() 45 sum = sum*y + 1024*y; in calc_runnable_avg_yN_sum() 55 int n = -1; 57 long max = 1024; variable 61 long last = 0, y_inv = ((1UL<<32)-1)*y; in calc_converged_max() 64 if (n > -1) in calc_converged_max() [all …]
|
| /linux/drivers/gpu/drm/imagination/ |
| H A D | pvr_rogue_cr_defs_client.h | 1 /* SPDX-License-Identifier: GPL-2.0-only OR MIT */ 7 /* clang-format off */ 10 * This register controls the anti-aliasing mode of the Tiling Co-Processor, independent control is 11 * provided in both X & Y axis. 15 * 2xmsaa is achieved by enabling Y - TE does AA on Y plane only 16 * 4xmsaa is achieved by enabling Y and X - TE does AA on X and Y plane 20 * 2xmsaa is achieved by enabling X2 - does not affect TE 21 * 4xmsaa is achieved by enabling Y and X2 - TE does AA on Y plane only 22 * 8xmsaa is achieved by enabling Y, X and X2 - TE does AA on X and Y plane 26 * 2xmsaa is achieved by enabling X2 - does not affect TE [all …]
|
| /linux/arch/arm/boot/dts/ti/omap/ |
| H A D | omap3-overo-common-peripherals.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 11 lis33_3v3: lis33-3v3-reg { 12 compatible = "regulator-fixed"; 13 regulator-name = "lis33-3v3-reg"; 14 regulator-min-microvolt = <3300000>; 15 regulator-max-microvolt = <3300000>; 18 lis33_1v8: lis33-1v8-reg { 19 compatible = "regulator-fixed"; 20 regulator-name = "lis33-1v8-reg"; 21 regulator-min-microvolt = <1800000>; [all …]
|
| H A D | omap3-gta04a3.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include "omap3-gta04.dtsi" 18 interrupt-parent = <&gpio3>; 20 Vdd-supply = <&vaux2>; 21 Vdd_IO-supply = <&vaux2>; 23 st,click-single-x; 24 st,click-single-y; 25 st,click-single-z; 26 st,click-thresh-x = <8>; 27 st,click-thresh-y = <8>; [all …]
|
| H A D | omap3-panel-sharp-ls037v7dw01.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 6 * at minimum the GPIO enable-gpios for display, and 7 * gpios for gpio-backlight. 16 compatible = "gpio-backlight"; 17 default-on; 21 lcd_3v3: regulator-lcd-3v3 { 22 compatible = "regulator-fixed"; 23 regulator-name = "lcd_3v3"; 24 regulator-min-microvolt = <3300000>; 25 regulator-max-microvolt = <3300000>; [all …]
|
| H A D | omap3-n9.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * omap3-n9.dts - Device Tree file for Nokia N9 8 /dts-v1/; 10 #include "omap3-n950-n9.dtsi" 11 #include <dt-bindings/input/input.h> 15 compatible = "nokia,omap3-n9", "ti,omap3630", "ti,omap3"; 23 vana-supply = <&vaux3>; 25 clock-frequency = <9600000>; 26 flash-leds = <&as3645a_flash &as3645a_indicator>; 29 link-frequencies = /bits/ 64 <199200000 210000000 499200000>; [all …]
|
| /linux/Documentation/devicetree/bindings/input/touchscreen/ |
| H A D | ti,tsc2005.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Marek Vasut <marex@denx.de> 11 - Michael Welling <mwelling@ieee.org> 19 - ti,tsc2004 20 - ti,tsc2005 31 reset-gpios: 35 spi-max-frequency: 39 ti,x-plate-ohms: [all …]
|
| H A D | cypress,cy8ctma140.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Linus Walleij <linusw@kernel.org> 13 - $ref: touchscreen.yaml# 22 clock-frequency: 30 vcpin-supply: 33 vdd-supply: 36 touchscreen-inverted-x: true 37 touchscreen-inverted-y: true [all …]
|
| /linux/net/atm/ |
| H A D | atm_misc.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* net/atm/atm_misc.c - Various functions for use by ATM drivers */ 4 /* Written 1995-2000 by Werner Almesberger, EPFL ICA */ 18 if (atomic_read(&sk_atm(vcc)->sk_rmem_alloc) <= sk_atm(vcc)->sk_rcvbuf) in atm_charge() 21 atomic_inc(&vcc->stats->rx_drop); in atm_charge() 33 if (atomic_read(&sk->sk_rmem_alloc) <= sk->sk_rcvbuf) { in atm_alloc_charge() 37 atomic_add(skb->truesize-guess, in atm_alloc_charge() 38 &sk->sk_rmem_alloc); in atm_alloc_charge() 43 atomic_inc(&vcc->stats->rx_drop); in atm_alloc_charge() 54 * The rules are as follows (* = maximum, - = absent (0), x = value "x", [all …]
|
| /linux/arch/mips/math-emu/ |
| H A D | sp_fmax.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * single precision: MAX{,A}.f 5 * MAX : Scalar Floating-Point Maximum 6 * MAXA: Scalar Floating-Point argument with Maximum Absolute Value 8 * MAX.S : FPR[fd] = maxNum(FPR[fs],FPR[ft]) 18 union ieee754sp ieee754sp_fmax(union ieee754sp x, union ieee754sp y) in ieee754sp_fmax() argument 37 return ieee754sp_nanxcpt(y); in ieee754sp_fmax() 71 return y; in ieee754sp_fmax() 81 return xs ? y : x; in ieee754sp_fmax() 89 return ys ? x : y; in ieee754sp_fmax() [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | core_extern.c | 1 // SPDX-License-Identifier: GPL-2.0 34 "CONFIG_BOOL=y\n" 54 { .name = "tristate (y)", .cfg = CFG"CONFIG_TRISTATE=y\n", 63 { .name = "bool (y)", .cfg = CFG"CONFIG_BOOL=y\n", 74 { .name = "char (str)", .fails = 1, .cfg = CFG"CONFIG_CHAR=\"y\"\n" }, 90 "CONFIG_INT=-100\n" 95 .int_val = -100, 103 { .name = "int (max)", .cfg = CFG"CONFIG_INT=2147483647", 105 { .name = "int (min)", .cfg = CFG"CONFIG_INT=-2147483648", 106 .data = { .int_val = -2147483648 } }, [all …]
|
| /linux/arch/powerpc/boot/ |
| H A D | types.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 18 /* required for opal-api.h */ 28 #define min(x,y) ({ \ argument 30 typeof(y) _y = (y); \ 34 #define max(x,y) ({ \ macro 36 typeof(y) _y = (y); \ 41 #define max_t(type, a, b) max(((type) a), ((type) b))
|
| /linux/sound/usb/ |
| H A D | mixer_us16x08.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 /* define some bias, cause some alsa-mixers wont work with 8 * negative ranges or if mixer-min != 0 18 #define SND_US16X08_KCBIAS(x) (((x)->private_value >> 24) & 0xff) 19 #define SND_US16X08_KCSTEP(x) (((x)->private_value >> 16) & 0xff) 20 #define SND_US16X08_KCMIN(x) (((x)->private_value >> 8) & 0xff) 21 #define SND_US16X08_KCMAX(x) (((x)->private_value >> 0) & 0xff) 23 #define SND_US16X08_KCSET(bias, step, min, max) \ argument 24 (((bias) << 24) | ((step) << 16) | ((min) << 8) | (max)) 34 #define MUA0(x, y) ((x)[(y) * 10 + 4]) argument [all …]
|
| /linux/drivers/hid/ |
| H A D | hid-udraw-ps3.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include "hid-ids.h" 21 * https://vvvv.org/contribution/udraw-hid 26 * - the touch area which works as a touchpad 27 * - the tablet area which works as a touchpad/drawing tablet 28 * - a joypad with a d-pad, and 7 buttons 29 * - an accelerometer device 46 * Accelerometer min/max values 47 * in order, X, Y and Z 51 int max; member [all …]
|
| /linux/arch/arm/boot/dts/nxp/imx/ |
| H A D | imx7d-pico-hobbit.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 5 #include "imx7d-pico.dtsi" 8 model = "TechNexion PICO-IMX7D Board using Hobbit baseboard"; 9 compatible = "technexion,imx7d-pico-hobbit", "fsl,imx7d"; 12 compatible = "gpio-leds"; 13 pinctrl-names = "default"; 14 pinctrl-0 = <&pinctrl_gpio_leds>; 17 label = "gpio-led"; 23 compatible = "simple-audio-card"; 24 simple-audio-card,name = "imx7-sgtl5000"; [all …]
|
| H A D | imx53-sk-imx53-atm0700d4.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 5 /dts-v1/; 7 #include <dt-bindings/pwm/pwm.h> 8 #include "imx53-sk-imx53.dts" 11 panel: panel-rgb { 12 compatible = "powertip,ph800480t013-idf02"; 21 compatible = "spi-gpio"; 22 #address-cells = <0x1>; 23 #size-cells = <0x0>; 25 num-chipselects = <1>; [all …]
|
| /linux/Documentation/input/ |
| H A D | multi-touch-protocol.rst | 4 Multi-touch (MT) Protocol 7 :Copyright: |copy| 2009-2010 Henrik Rydberg <rydberg@euromail.se> 11 ------------ 13 In order to utilize the full power of the new multi-touch and multi-user 16 document describes the multi-touch (MT) protocol which allows kernel 30 -------------- 34 packet. Since these events are ignored by current single-touch (ST) 48 All drivers mark the end of a multi-touch transfer by calling the usual 67 the ABS_MT_TRACKING_ID of the associated slot. A non-negative tracking id 68 is interpreted as a contact, and the value -1 denotes an unused slot. A [all …]
|
| /linux/sound/core/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 2 # ALSA soundcard-configuration 56 to the KUnit documentation in Documentation/dev-tools/kunit/. 72 default y if INPUT=y || INPUT=SND 84 To enable OSS mixer API emulation (/dev/mixer*), say Y here 85 and read <file:Documentation/sound/designs/oss-emulation.rst>. 87 Many programs still use the OSS API, so say Y. 90 will be called snd-mixer-oss. 97 To enable OSS digital audio (PCM) emulation (/dev/dsp*), say Y 98 here and read <file:Documentation/sound/designs/oss-emulation.rst>. [all …]
|
| /linux/Documentation/input/devices/ |
| H A D | cma3000_d0x.rst | 1 CMA3000-D0x Accelerometer 5 * VTI CMA3000-D0x 8 CMA3000-D0X Product Family Specification 8281000A.02.pdf 15 ----------- 17 CMA3000 Tri-axis accelerometer supports Motion detect, Measurement and 25 This mode is used to read the acceleration data on X,Y,Z 47 ------------- 53 Noise on Y Axis 74 --------------- 78 Input device name: "cma3000-accelerometer" [all …]
|
| /linux/arch/arm/boot/dts/st/ |
| H A D | ste-href-stuib.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright 2012 ST-Ericsson AB 6 #include <dt-bindings/interrupt-controller/irq.h> 10 compatible = "gpio-keys"; 11 #address-cells = <1>; 12 #size-cells = <0>; 13 vdd-supply = <&ab8500_ldo_aux1_reg>; 14 pinctrl-names = "default"; 15 pinctrl-0 = <&prox_stuib_mode>, <&hall_stuib_mode>; 33 stmpe1601: port-expander@40 { [all …]
|
| /linux/Documentation/gpu/ |
| H A D | kms-properties.csv | 2 ,DVI-I,“subconnector”,ENUM,"{ “Unknown”, “DVI-D”, “DVI-A” }",Connector,TBD 3 ,,“select subconnector”,ENUM,"{ “Automatic”, “DVI-D”, “DVI-A” }",Connector,TBD 7 ,,“left margin”,RANGE,"Min=0, Max=100",Connector,TBD 8 ,,“right margin”,RANGE,"Min=0, Max=100",Connector,TBD 9 ,,“top margin”,RANGE,"Min=0, Max=100",Connector,TBD 10 ,,“bottom margin”,RANGE,"Min=0, Max=100",Connector,TBD 11 ,,“brightness”,RANGE,"Min=0, Max=100",Connector,TBD 12 ,,“contrast”,RANGE,"Min=0, Max=100",Connector,TBD 13 ,,“flicker reduction”,RANGE,"Min=0, Max=100",Connector,TBD 14 ,,“overscan”,RANGE,"Min=0, Max=100",Connector,TBD [all …]
|