Home
last modified time | relevance | path

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

12345678910>>...42

/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/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/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/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/scheduler/
H A Dsched-pelt.c6 * 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/Documentation/devicetree/bindings/input/touchscreen/
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 Dti,tsc2005.yaml1 # 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 Dcypress,cy8ctma140.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Linus Walleij <linus.walleij@linaro.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 …]
H A Dbu21013.txt4 - compatible : "rohm,bu21013_tp"
5 - reg : I2C device address
6 - reset-gpios : GPIO pin enabling (selecting) chip (CS)
7 - interrupt-parent : the phandle for the gpio controller
8 - interrupts : (gpio) interrupt to which the chip is connected
11 - touch-gpios : GPIO pin registering a touch event
12 - <supply_name>-supply : Phandle to a regulator supply
13 - touchscreen-size-x : General touchscreen binding, see [1].
14 - touchscreen-size-y : General touchscreen binding, see [1].
15 - touchscreen-inverted-x : General touchscreen binding, see [1].
[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/drivers/gpu/drm/imagination/
H A Dpvr_rogue_cr_defs_client.h1 /* 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 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/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)); })
41 #ifndef max
42 #define max(x, y) ({ \ macro
44 typeof(y) _max2 = (y); \
50 #define min(x, y) ({ \ 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/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/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 …]
/linux/arch/mips/math-emu/
H A Dsp_fmax.c1 // 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/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A Dppevvmath.h29 …/* Change this value to change the number of decimal places in the final output - 5 is a good defa…
34 /* 32767 - Might change in the future */
35 MAX = (1 << (SHIFT_AMOUNT - 1)) - 1, enumerator
38 /* -------------------------------------------------------------------------------
39 * NEW TYPE - fINT
40 * -------------------------------------------------------------------------------
51 int real: 32 - SHIFT_AMOUNT;
55 /* -------------------------------------------------------------------------------
57 * -------------------------------------------------------------------------------
64 static fInt fNegate(fInt); /* Returns -1 * input fInt value */
[all …]
/linux/drivers/gpu/drm/i915/
H A Di915_hwmon.c1 // SPDX-License-Identifier: MIT
7 #include <linux/hwmon-sysfs.h>
20 * SF_* - scale factors for particular quantities according to hwmon spec.
21 * - voltage - millivolts
22 * - power - microwatts
23 * - curr - milliamperes
24 * - energy - microjoules
25 * - time - milliseconds
79 struct i915_hwmon *hwmon = ddat->hwmon; in hwm_locked_with_pm_intel_uncore_rmw()
80 struct intel_uncore *uncore = ddat->uncore; in hwm_locked_with_pm_intel_uncore_rmw()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcore_extern.c1 // 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 Dtypes.h1 /* 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 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/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/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
51 int max; member
[all …]

12345678910>>...42