Home
last modified time | relevance | path

Searched +full:y +full:- +full:min (Results 1 – 25 of 758) sorted by relevance

12345678910>>...31

/linux/drivers/platform/x86/
H A Dtouchscreen_dmi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
24 /* The EFI embedded-fw code expects this to be the first member! */
33 PROPERTY_ENTRY_U32("touchscreen-size-x", 1850),
34 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
35 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
36 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
37 PROPERTY_ENTRY_BOOL("silead,home-button"),
38 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-archos-101-cesium-educ.fw"),
48 PROPERTY_ENTRY_U32("touchscreen-size-x", 1850),
49 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
[all …]
/linux/scripts/coccinelle/misc/
H A Dminmax.cocci1 // SPDX-License-Identifier: GPL-2.0-only
3 /// Check for opencoded min(), max() implementations.
9 // Options: --no-includes --includ
[all...]
/linux/include/linux/
H A Dminmax.h1 /* SPDX-License-Identifier: GPL-2.0 */
11 * min()/max()/clamp() macros must accomplish three things:
13 * - Avoid multiple evaluations of the arguments (so side-effects like
14 * "x++" happen only once) when non-constant.
15 * - Retain result as a constant expressions when called with only
18 * - Perform signed v unsigned type-checking (to generate compile
20 * - Unsigned char/short are always promoted to signed int and can be
22 * - Unsigned arguments can be compared against non-negative signed constants.
23 * - Comparison of a signed argument against an unsigned constant fails
26 #define __typecheck(x, y) \ argument
[all …]
/linux/drivers/input/rmi4/
H A Drmi_2d_sensor.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2011-2016 Synaptics Incorporated
16 #define RMI_2D_REL_POS_MIN -128
26 struct rmi_2d_axis_alignment *axis_align = &sensor->axis_align; in rmi_2d_sensor_abs_process()
29 if (obj->type == RMI_2D_OBJECT_NONE) in rmi_2d_sensor_abs_process()
32 if (axis_align->flip_x) in rmi_2d_sensor_abs_process()
33 obj->x = sensor->max_x - obj->x; in rmi_2d_sensor_abs_process()
35 if (axis_align->flip_y) in rmi_2d_sensor_abs_process()
36 obj->y = sensor->max_y - obj->y; in rmi_2d_sensor_abs_process()
38 if (axis_align->swap_axes) in rmi_2d_sensor_abs_process()
[all …]
/linux/Documentation/devicetree/bindings/iio/accel/
H A Dlis302.txt8 - 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/Documentation/userspace-api/media/v4l/
H A Dmetafmt-vsp1-hgo.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
3 .. _v4l2-meta-fmt-vsp1-hgo:
9 Renesas R-Car VSP1 1-D Histogram Data
15 This format describes histogram data generated by the Renesas R-Car VSP1 1-D
20 computes the minimum, maximum and sum of all pixels as well as per-channel
24 three channels (RGB data only) or on the Y channel only (YCbCr only). It can
28 - In *64 bins normal mode*, the HGO operates on the three channels independently
29 to compute three 64-bins histograms. RGB, YCbCr and HSV image formats are
31 - In *64 bins maximum mode*, the HGO operates on the maximum of the (R, G, B)
32 channels to compute a single 64-bins histogram. Only the RGB image format is
[all …]
/linux/Documentation/devicetree/bindings/input/touchscreen/
H A Dresistive-adc-touch.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/input/touchscreen/resistive-adc-touch.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Oleksij Rempel <o.rempel@pengutronix.de>
18 - $ref: touchscreen.yaml#
22 const: resistive-adc-touch
24 io-channels:
27 - description: x
28 - description: y
[all …]
H A Dti,ads7843.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Alexander Stein <alexander.stein@ew.tq-group.com>
11 - Dmitry Torokhov <dmitry.torokhov@gmail.com>
12 - Marek Vasut <marex@denx.de>
21 - ti,ads7843
22 - ti,ads7845
23 - ti,ads7846
24 - ti,ads7873
[all …]
H A Dtouchscreen.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Dmitry Torokhov <dmitry.torokhov@gmail.com>
20 touchscreen-min-x:
25 touchscreen-min-y:
26 description: minimum y coordinate reported
30 touchscreen-size-x:
34 touchscreen-size-y:
35 description: vertical resolution of touchscreen (maximum y coordinate reported + 1)
[all …]
H A Dtoradex,vf50-touchscreen.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/input/touchscreen/toradex,vf50-touchscreen.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Dmitry Torokhov <dmitry.torokhov@gmail.com>
11 - Sanchayan Maity <maitysanchayan@gmail.com>
15 const: toradex,vf50-touchscreen
20 io-channels:
24 IIO ADC for Y-, X-, Y+, X+ connections
26 xp-gpios:
[all …]
/linux/arch/arm/boot/dts/ti/omap/
H A Domap3-overo-common-peripherals.dtsi1 // 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 Domap3-gta04a3.dts1 // 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 …]
/linux/drivers/input/
H A Dtouchscreen.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Generic helper functions for touchscreens and other two-dimensional
35 int min, int max, int fuzz) in touchscreen_set_params() argument
39 if (!test_bit(axis, dev->absbit)) { in touchscreen_set_params()
40 dev_warn(&dev->dev, in touchscreen_set_params()
46 absinfo = &dev->absinfo[axis]; in touchscreen_set_params()
47 absinfo->minimum = min; in touchscreen_set_params()
48 absinfo->maximum = max; in touchscreen_set_params()
49 absinfo->fuzz = fuzz; in touchscreen_set_params()
53 * touchscreen_parse_properties - parse common touchscreen properties
[all …]
/linux/tools/include/linux/
H A Dkernel.h1 /* SPDX-License-Identifier: GPL-2.0 */
21 #define PERF_ALIGN(x, a) __PERF_ALIGN_MASK(x, (typeof(x))(a)-1)
25 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
30 * container_of - cast a member of a structure out to the containing structure
37 const typeof(((type *)0)->member) * __mptr = (ptr); \
38 (type *)((char *)__mptr - offsetof(type, member)); })
42 #define max(x, y) ({ \ argument
44 typeof(y) _max2 = (y); \
49 #ifndef min
50 #define min(x, y) ({ \ macro
[all …]
/linux/scripts/
H A DMakefile.compiler1 # SPDX-License-Identifier: GPL-2.0-only
3 # cc-cross-prefix
4 # Usage: CROSS_COMPILE := $(call cc-cross-prefix, m68k-linux-gnu- m68k-linux-)
12 cc-cross-prefix = $(firstword $(foreach c, $(1), \
13 $(if $(shell command -v -- $(c)gcc 2>/dev/null), $(c))))
18 # try-run
19 # Usage: option = $(call try-run, $(CC)...-o "$$TMP",option-ok,otherwise)
22 try-run = $(shell set -e; \
24 trap "rm -rf $(TMPOUT)" EXIT; \
25 mkdir -p $(TMPOUT); \
[all …]
/linux/sound/usb/
H A Dmixer_us16x08.h1 /* 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/net/atm/
H A Datm_misc.c1 // 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 Dieee754.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Copyright (C) 1994-2000 Algorithmics Ltd.
50 union ieee754sp ieee754sp_add(union ieee754sp x, union ieee754sp y);
51 union ieee754sp ieee754sp_sub(union ieee754sp x, union ieee754sp y);
52 union ieee754sp ieee754sp_mul(union ieee754sp x, union ieee754sp y);
53 union ieee754sp ieee754sp_div(union ieee754sp x, union ieee754sp y);
63 int ieee754sp_cmp(union ieee754sp x, union ieee754sp y, int cop, int sig);
68 union ieee754sp y);
70 union ieee754sp y);
72 union ieee754sp y);
[all …]
H A Ddp_fmin.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * double precision: MIN{,A}.f
5 * MIN : Scalar Floating-Point Minimum
6 * MINA: Scalar Floating-Point argument with Minimum Absolute Value
8 * MIN.D : FPR[fd] = minNum(FPR[fs],FPR[ft])
18 union ieee754dp ieee754dp_fmin(union ieee754dp x, union ieee754dp y) in ieee754dp_fmin() argument
37 return ieee754dp_nanxcpt(y); in ieee754dp_fmin()
71 return y; in ieee754dp_fmin()
81 return xs ? x : y; in ieee754dp_fmin()
89 return ys ? y : x; in ieee754dp_fmin()
[all …]
H A Ddp_fmax.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * double precision: MIN{,A}.f
5 * MIN : Scalar Floating-Point Minimum
6 * MINA: Scalar Floating-Point argument with Minimum Absolute Value
8 * MIN.D : FPR[fd] = minNum(FPR[fs],FPR[ft])
18 union ieee754dp ieee754dp_fmax(union ieee754dp x, union ieee754dp y) in ieee754dp_fmax() argument
37 return ieee754dp_nanxcpt(y); in ieee754dp_fmax()
71 return y; in ieee754dp_fmax()
81 return xs ? y : x; in ieee754dp_fmax()
89 return ys ? x : y; in ieee754dp_fmax()
[all …]
H A Dsp_fmin.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * single precision: MIN{,A}.f
5 * MIN : Scalar Floating-Point Minimum
6 * MINA: Scalar Floating-Point argument with Minimum Absolute Value
8 * MIN.S : FPR[fd] = minNum(FPR[fs],FPR[ft])
18 union ieee754sp ieee754sp_fmin(union ieee754sp x, union ieee754sp y) in ieee754sp_fmin() argument
37 return ieee754sp_nanxcpt(y); in ieee754sp_fmin()
71 return y; in ieee754sp_fmin()
81 return xs ? x : y; in ieee754sp_fmin()
89 return ys ? y : x; in ieee754sp_fmin()
[all …]
/linux/drivers/hid/
H A Dhid-udraw-ps3.c1 // 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
50 int min; member
[all …]
/linux/scripts/kconfig/
H A Dnconf.gui.c1 // SPDX-License-Identifier: GPL-2.0
36 #define COLOR_DEFAULT -1
107 for (; p->attr; p++) { in set_colors()
108 int attr = p->highlight; in set_colors()
110 if (p->has_color) { in set_colors()
112 init_pair(pair, p->color_fg, p->color_bg); in set_colors()
116 *p->attr = attr; in set_colors()
121 void print_in_middle(WINDOW *win, int y, int width, const char *str, int attrs) in print_in_middle() argument
124 mvwprintw(win, y, (width - strlen(str)) / 2, "%s", str); in print_in_middle()
168 int x, y; in fill_window() local
[all …]
/linux/arch/powerpc/boot/
H A Dtypes.h1 /* SPDX-License-Identifier: GPL-2.0 */
18 /* required for opal-api.h */
28 #define min(x,y) ({ \ macro
30 typeof(y) _y = (y); \
34 #define max(x,y) ({ \ argument
36 typeof(y) _y = (y); \
40 #define min_t(type, a, b) min(((type) a), ((type) b))
/linux/drivers/gpu/drm/xe/
H A Dxe_hwmon.c1 // SPDX-License-Identifier: MIT
6 #include <linux/hwmon-sysfs.h>
43 * SF_* - scale factors for particular quantities according to hwmon spec.
52 * struct xe_hwmon_energy_info - to accumulate energy
62 * struct xe_hwmon - xe hwmon data structure
84 struct xe_device *xe = hwmon->xe; in xe_hwmon_get_reg()
88 if (xe->info.platform == XE_BATTLEMAGE) { in xe_hwmon_get_reg()
93 } else if (xe->info.platform == XE_PVC && channel == CHANNEL_PKG) { in xe_hwmon_get_reg()
95 } else if ((xe->info.platform == XE_DG2) && (channel == CHANNEL_PKG)) { in xe_hwmon_get_reg()
100 if (xe->info.platform == XE_BATTLEMAGE) in xe_hwmon_get_reg()
[all …]

12345678910>>...31