Home
last modified time | relevance | path

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

12345678910>>...44

/linux-6.12.1/drivers/platform/x86/
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-6.12.1/drivers/gpu/drm/i915/gt/
Dselftest_rps.c1 // SPDX-License-Identifier: MIT
26 #define CPU_LATENCY 0 /* -1 to disable pm_qos, 0 to disable cstates */
37 return -1; in cmp_u64()
49 return -1; in cmp_u32()
68 #define CS_GPR(x) GEN8_RING_CS_GPR(engine->mmio_base, x) in create_spin_counter() argument
76 obj = i915_gem_object_create_internal(vm->i915, 64 << 10); in create_spin_counter()
80 end = obj->base.size / sizeof(u32) - 1; in create_spin_counter()
113 loop = cs - base; in create_spin_counter()
134 GEM_BUG_ON(cs - base > end); in create_spin_counter()
190 mutex_lock(&rps->lock); in rps_set_check()
[all …]
/linux-6.12.1/scripts/coccinelle/misc/
Dminmax.cocci1 // SPDX-License-Identifier: GPL-2.0-only
3 /// Check for opencoded min(), max() implementations.
9 // Options: --no-includes --include-headers
11 // Keywords: min, max
22 expression x, y;
30 * ((x) cmp@p (y) ? (x) : (y))
36 expression x, y;
45 * if ((x) cmp@p (y)) {
46 * max_val = (x);
57 expression x;
[all …]
/linux-6.12.1/include/linux/
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 …]
Ddelay.h1 /* SPDX-License-Identifier: GPL-2.0 */
8 * Delay routines, using a pre-computed "loops_per_jiffy" value.
19 * https://lists.openwall.net/linux-kernel/2011/01/09/56
34 * specific values can be defined in asm-???/delay.h as an override.
36 * while loop for the common cases where n <= MAX_UDELAY_MS -- Paul G.
46 ({unsigned long __ms=(n); while (__ms--) udelay(1000);}))
50 static inline void ndelay(unsigned long x) in ndelay() argument
52 udelay(DIV_ROUND_UP(x, 1000)); in ndelay()
54 #define ndelay(x) ndelay(x) argument
63 void usleep_range_state(unsigned long min, unsigned long max,
[all …]
/linux-6.12.1/arch/riscv/boot/dts/allwinner/
Dsun20i-d1-clockworkpi-v3.14.dts1 // SPDX-License-Identifier: (GPL-2.0+ or MIT)
4 #include <dt-bindings/gpio/gpio.h>
6 /dts-v1/;
8 #include "sun20i-d1.dtsi"
9 #include "sun20i-common-regulators.dtsi"
12 model = "ClockworkPi v3.14 (R-01)";
13 compatible = "clockwork,r-01-clockworkpi-v3.14", "allwinner,sun20i-d1";
21 stdout-path = "serial0:115200n8";
25 * This regulator is PWM-controlled, but the PWM controller is not
28 reg_vdd_cpu: vdd-cpu {
[all …]
/linux-6.12.1/drivers/input/rmi4/
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-6.12.1/drivers/rtc/
Drtc-sunxi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
47 #define SUNXI_GET(x, mask, shift) (((x) & ((mask) << (shift))) \ argument
50 #define SUNXI_SET(x, mask, shift) (((x) & (mask)) << (shift)) argument
55 #define SUNXI_DATE_GET_DAY_VALUE(x) SUNXI_GET(x, SUNXI_MASK_DH, 0) argument
56 #define SUNXI_DATE_GET_MON_VALUE(x) SUNXI_GET(x, SUNXI_MASK_M, 8) argument
57 #define SUNXI_DATE_GET_YEAR_VALUE(x, mask) SUNXI_GET(x, mask, 16) argument
62 #define SUNXI_TIME_GET_SEC_VALUE(x) SUNXI_GET(x, SUNXI_MASK_SM, 0) argument
63 #define SUNXI_TIME_GET_MIN_VALUE(x) SUNXI_GET(x, SUNXI_MASK_SM, 8) argument
64 #define SUNXI_TIME_GET_HOUR_VALUE(x) SUNXI_GET(x, SUNXI_MASK_DH, 16) argument
69 #define SUNXI_ALRM_GET_SEC_VALUE(x) SUNXI_GET(x, SUNXI_MASK_SM, 0) argument
[all …]
/linux-6.12.1/drivers/iio/dac/
Dad5770r.c1 // SPDX-License-Identifier: GPL-2.0+
38 #define ADI_SPI_IF_SW_RESET_SEL(x) ((x) & ADI_SPI_IF_SW_RESET_MSK) argument
40 #define ADI_SPI_IF_ADDR_ASC_SEL(x) (((x) << 2) & ADI_SPI_IF_ADDR_ASC_MSK) argument
44 #define ADI_SPI_IF_SINGLE_INS_SEL(x) FIELD_PREP(ADI_SPI_IF_SINGLE_INS_MSK, x) argument
46 #define ADI_SPI_IF_SHORT_INS_SEL(x) FIELD_PREP(ADI_SPI_IF_SINGLE_INS_MSK, x) argument
50 #define ADI_SPI_IF_STRICT_REG_GET(x) FIELD_GET(ADI_SPI_IF_STRICT_REG_MSK, x) argument
63 #define AD5770R_CFG_CH0_SINK_EN(x) (((x) & 0x1) << 7) argument
64 #define AD5770R_CFG_SHUTDOWN_B(x, ch) (((x) & 0x1) << (ch)) argument
67 #define AD5770R_RANGE_OUTPUT_SCALING(x) (((x) & GENMASK(5, 0)) << 2) argument
68 #define AD5770R_RANGE_MODE(x) ((x) & GENMASK(1, 0)) argument
[all …]
Dad5758.c1 // SPDX-License-Identifier: GPL-2.0
52 #define AD5758_DAC_CONFIG_RANGE_MODE(x) (((x) & 0xF) << 0) argument
54 #define AD5758_DAC_CONFIG_INT_EN_MODE(x) (((x) & 0x1) << 5) argument
56 #define AD5758_DAC_CONFIG_OUT_EN_MODE(x) (((x) & 0x1) << 6) argument
58 #define AD5758_DAC_CONFIG_SR_EN_MODE(x) (((x) & 0x1) << 8) argument
60 #define AD5758_DAC_CONFIG_SR_CLOCK_MODE(x) (((x) & 0xF) << 9) argument
62 #define AD5758_DAC_CONFIG_SR_STEP_MODE(x) (((x) & 0x7) << 13) argument
73 #define AD5758_DCDC_CONFIG1_DCDC_VPROG_MODE(x) (((x) & 0x1F) << 0) argument
75 #define AD5758_DCDC_CONFIG1_DCDC_MODE_MODE(x) (((x) & 0x3) << 5) argument
79 #define AD5758_DCDC_CONFIG2_ILIMIT_MODE(x) (((x) & 0x7) << 1) argument
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/iio/accel/
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-6.12.1/drivers/gpu/drm/gma500/
Dcdv_intel_display.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright © 2006-2011 Intel Corporation
37 .dot = {.min = 20000, .max = 115500},
38 .vco = {.min = 1800000, .max = 3600000},
39 .n = {.min = 2, .max = 6},
40 .m = {.min = 60, .max = 160},
41 .m1 = {.min = 0, .max = 0},
42 .m2 = {.min = 58, .max = 158},
43 .p = {.min = 28, .max = 140},
44 .p1 = {.min = 2, .max = 10},
[all …]
/linux-6.12.1/arch/arm/boot/dts/ti/omap/
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 …]
/linux-6.12.1/Documentation/input/devices/
Dcma3000_d0x.rst1 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 -------------
50 Noise on X Axis
74 ---------------
78 Input device name: "cma3000-accelerometer"
[all …]
/linux-6.12.1/arch/arm64/boot/dts/allwinner/
Dsun50i-h616-orangepi-zero2.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
8 #include "sun50i-h616-orangepi-zero.dtsi"
9 #include "sun50i-h616-cpu-opp.dtsi"
13 compatible = "xunlong,orangepi-zero2", "allwinner,sun50i-h616";
17 cpu-supply = <&reg_dcdca>;
21 allwinner,rx-delay-ps = <3100>;
22 allwinner,tx-delay-ps = <700>;
23 phy-mode = "rgmii";
24 phy-supply = <&reg_dcdce>;
[all …]
Dsun50i-h616-x96-mate.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
8 #include "sun50i-h616.dtsi"
9 #include "sun50i-h616-cpu-opp.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/interrupt-controller/arm-gic.h>
16 compatible = "hechuang,x96-mate", "allwinner,sun50i-h616";
23 stdout-path = "serial0:115200n8";
28 compatible = "regulator-fixed";
29 regulator-name = "vcc-5v";
[all …]
/linux-6.12.1/arch/arm/boot/dts/allwinner/
Dsun8i-a83t-allwinner-h8homlet-v2.dts5 * This file is dual-licensed: you can use it either under the terms
44 /dts-v1/;
45 #include "sun8i-a83t.dtsi"
47 #include <dt-bindings/gpio/gpio.h>
51 compatible = "allwinner,h8homlet-v2", "allwinner,sun8i-a83t";
58 stdout-path = "serial0:115200n8";
61 reg_usb0_vbus: reg-usb0-vbus {
62 compatible = "regulator-fixed";
63 regulator-name = "usb0-vbus";
64 regulator-min-microvolt = <5000000>;
[all …]
Dsun8i-a83t-tbs-a711.dts5 * This file is dual-licensed: you can use it either under the terms
44 /dts-v1/;
45 #include "sun8i-a83t.dtsi"
47 #include <dt-bindings/gpio/gpio.h>
48 #include <dt-bindings/pwm/pwm.h>
49 #include <dt-bindings/input/input.h>
53 compatible = "tbs-biometrics,a711", "allwinner,sun8i-a83t";
61 stdout-path = "serial0:115200n8";
65 compatible = "pwm-backlight";
67 enable-gpios = <&pio 3 29 GPIO_ACTIVE_HIGH>;
[all …]
Dsun8i-a83t-cubietruck-plus.dts2 * Copyright 2015 Chen-Yu Tsai
4 * Chen-Yu Tsai <wens@csie.org>
6 * This file is dual-licensed: you can use it either under the terms
45 /dts-v1/;
46 #include "sun8i-a83t.dtsi"
48 #include <dt-bindings/gpio/gpio.h>
52 compatible = "cubietech,cubietruck-plus", "allwinner,sun8i-a83t";
60 stdout-path = "serial0:115200n8";
63 hdmi-connector {
64 compatible = "hdmi-connector";
[all …]
/linux-6.12.1/tools/include/linux/
Dkernel.h1 /* SPDX-License-Identifier: GPL-2.0 */
21 #define PERF_ALIGN(x, a) __PERF_ALIGN_MASK(x, (typeof(x))(a)-1) argument
22 #define __PERF_ALIGN_MASK(x, mask) (((x)+(mask))&~(mask)) argument
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
43 typeof(x) _max1 = (x); \
49 #ifndef min
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/input/touchscreen/
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 …]
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 …]
/linux-6.12.1/drivers/hwmon/
Demc6w201.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * emc6w201.c - Hardware monitoring driver for the SMSC EMC6W201
13 #include <linux/hwmon-sysfs.h>
39 enum subfeature { input, min, max }; enumerator
42 * Per-device data
59 * Locking: must be called with data->update_lock held
68 dev_err(&client->dev, "%d-bit %s failed at 0x%02x\n", in emc6w201_read16()
77 * Write 16-bit value to LSB and MSB registers
78 * Locking: must be called with data->update_lock held
88 dev_err(&client->dev, "%d-bit %s failed at 0x%02x\n", in emc6w201_write16()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_kms.c58 if (gpu_instance->adev == adev) { in amdgpu_unregister_gpu_instance()
60 mgpu_info.gpu_ins[mgpu_info.num_gpu - 1]; in amdgpu_unregister_gpu_instance()
61 mgpu_info.num_gpu--; in amdgpu_unregister_gpu_instance()
62 if (adev->flags & AMD_IS_APU) in amdgpu_unregister_gpu_instance()
63 mgpu_info.num_apu--; in amdgpu_unregister_gpu_instance()
65 mgpu_info.num_dgpu--; in amdgpu_unregister_gpu_instance()
74 * amdgpu_driver_unload_kms - Main unload function for KMS.
90 if (adev->rmmio == NULL) in amdgpu_driver_unload_kms()
113 gpu_instance->adev = adev; in amdgpu_register_gpu_instance()
114 gpu_instance->mgpu_fan_enabled = 0; in amdgpu_register_gpu_instance()
[all …]
/linux-6.12.1/drivers/infiniband/sw/rdmavt/
Drc.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
47 * rvt_compute_aeth - compute the AETH (syndrome + MSN)
54 u32 aeth = qp->r_msn & IB_MSN_MASK; in rvt_compute_aeth()
56 if (qp->ibqp.srq) { in rvt_compute_aeth()
63 u32 min, max, x; in rvt_compute_aeth() local
68 credits = READ_ONCE(qp->r_rq.kwq->count); in rvt_compute_aeth()
71 if (qp->ip) { in rvt_compute_aeth()
72 head = RDMA_READ_UAPI_ATOMIC(qp->r_rq.wq->head); in rvt_compute_aeth()
73 tail = RDMA_READ_UAPI_ATOMIC(qp->r_rq.wq->tail); in rvt_compute_aeth()
75 head = READ_ONCE(qp->r_rq.kwq->head); in rvt_compute_aeth()
[all …]

12345678910>>...44