Home
last modified time | relevance | path

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

12345678910>>...44

/linux/drivers/gpu/drm/i915/gt/
H A 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/net/netfilter/
H A Dnf_log_syslog.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* (C) 1999-2001 Paul `Rusty' Russell
3 * (C) 2002-2004 Netfilter Core Team <coreteam@netfilter.org>
57 nf_log_buf_add(m, "VPROTO=%04x VID=%u ", ntohs(skb->vlan_proto), vid); in nf_log_dump_vlan()
76 if (info->type == NF_LOG_TYPE_LOG) in dump_arp_packet()
77 logflags = info->u.log.logflags; in dump_arp_packet()
83 eth_hdr(skb)->h_source, eth_hdr(skb)->h_dest); in dump_arp_packet()
85 nf_log_buf_add(m, "MACPROTO=%04x ", in dump_arp_packet()
86 ntohs(eth_hdr(skb)->h_proto)); in dump_arp_packet()
89 nf_log_buf_add(m, "ARP HTYPE=%d PTYPE=0x%04x OPCODE=%d", in dump_arp_packet()
[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/Documentation/scheduler/
H A Dsched-pelt.c6 * C program (compile with -lm)
21 unsigned int x; in calc_runnable_avg_yN_inv() local
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()
29 printf("0x%8x, ", x); in calc_runnable_avg_yN_inv()
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()
65 max = ((max*y_inv)>>SHIFT) + 1024; in calc_converged_max()
[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/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 …]
/linux/arch/riscv/boot/dts/allwinner/
H A 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/sound/firewire/fireworks/
H A Dfireworks_proc.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * fireworks_proc.c - a part of driver for Fireworks based devices
5 * Copyright (c) 2009-2010 Clemens Ladisch
6 * Copyright (c) 2013-2014 Takashi Sakamoto
19 if (grp->type < ARRAY_SIZE(ch_type)) in get_phys_name()
20 return ch_type[grp->type]; in get_phys_name()
30 struct snd_efw *efw = entry->private_data; in proc_read_hwinfo()
41 snd_iprintf(buffer, "guid_hi: 0x%X\n", hwinfo->guid_hi); in proc_read_hwinfo()
42 snd_iprintf(buffer, "guid_lo: 0x%X\n", hwinfo->guid_lo); in proc_read_hwinfo()
43 snd_iprintf(buffer, "type: 0x%X\n", hwinfo->type); in proc_read_hwinfo()
[all …]
/linux/drivers/infiniband/hw/cxgb4/
H A Dresource.c2 * Copyright (c) 2009-2010 Chelsio, Inc. All rights reserved.
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
42 if (c4iw_id_table_alloc(&rdev->resource.qid_table, in c4iw_init_qid_table()
43 rdev->lldi.vr->qp.start, in c4iw_init_qid_table()
44 rdev->lldi.vr->qp.size, in c4iw_init_qid_table()
45 rdev->lldi.vr->qp.size, 0)) in c4iw_init_qid_table()
46 return -ENOMEM; in c4iw_init_qid_table()
48 for (i = rdev->lldi.vr->qp.start; in c4iw_init_qid_table()
49 i < rdev->lldi.vr->qp.start + rdev->lldi.vr->qp.size; i++) in c4iw_init_qid_table()
[all …]
/linux/net/mac80211/
H A Ddebugfs_sta.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright 2003-2005 Devicescape Software, Inc.
6 * Copyright 2013-2014 Intel Mobile Communications GmbH
8 * Copyright (C) 2018 - 2023 Intel Corporation
17 #include "driver-ops.h"
26 struct sta_info *sta = file->private_data; \
28 format_string, sta->field); \
90 char *end = buf + sizeof(buf) - 1; in sta_flags_read()
91 struct sta_info *sta = file->private_data; in sta_flags_read()
98 pos += scnprintf(pos, end - pos, "%s\n", in sta_flags_read()
[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/pci/
H A Dprobe.c1 // SPDX-License-Identifier: GPL-2.0
51 if (r->domain_nr == domain_nr) in get_pci_domain_busn_res()
52 return &r->res; in get_pci_domain_busn_res()
58 r->domain_nr = domain_nr; in get_pci_domain_busn_res()
59 r->res.start = 0; in get_pci_domain_busn_res()
60 r->res.end = 0xff; in get_pci_domain_busn_res()
61 r->res.flags = IORESOURCE_BUS | IORESOURCE_PCI_FIXED; in get_pci_domain_busn_res()
63 list_add_tail(&r->list, &pci_domain_busn_res_list); in get_pci_domain_busn_res()
65 return &r->res; in get_pci_domain_busn_res()
92 put_device(pci_bus->bridge); in release_pcibus_dev()
[all …]
/linux/sound/isa/gus/
H A Dgusmax.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Driver for Gravis UltraSound MAX soundcard
22 MODULE_DESCRIPTION("Gravis UltraSound MAX");
25 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
32 static int joystick_dac[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 29};
33 /* 0 to 31, (0.59V-4.52V or 0.389V-2.98V) */
34 static int channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 24};
35 static int pcm_channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2};
38 MODULE_PARM_DESC(index, "Index value for GUS MAX soundcard.");
40 MODULE_PARM_DESC(id, "ID string for GUS MAX soundcard.");
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/
H A Ddebug.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2009-2012 Realtek Corporation.*/
14 if (unlikely((comp & rtlpriv->cfg->mod_params->debug_mask) && in _rtl_dbg_print()
15 level <= rtlpriv->cfg->mod_params->debug_level)) { in _rtl_dbg_print()
35 if (unlikely(((comp) & rtlpriv->cfg->mod_params->debug_mask) && in _rtl_dbg_print_data()
36 ((level) <= rtlpriv->cfg->mod_params->debug_level))) { in _rtl_dbg_print_data()
38 current->comm, current->pid, titlestring); in _rtl_dbg_print_data()
57 struct rtl_debugfs_priv *debugfs_priv = m->private; in rtl_debug_get_common()
59 return debugfs_priv->cb_read(m, v); in rtl_debug_get_common()
64 return single_open(file, rtl_debug_get_common, inode->i_private); in dl_debug_open_common()
[all …]
/linux/drivers/hid/
H A Dhid-samsung.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright (c) 2000-2005 Vojtech Pavlik <vojtech@suse.cz>
7 * Copyright (c) 2005 Michael Haboustak <mike-@cinci.rr.com> for Concept2, Inc
8 * Copyright (c) 2006-2007 Jiri Kosina
30 #include "hid-ids.h"
85 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, (c))
89 unsigned long **bit, int *max) in samsung_kbd_mouse_input_mapping() argument
91 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in samsung_kbd_mouse_input_mapping()
92 unsigned short ifnum = intf->cur_altsetting->desc.bInterfaceNumber; in samsung_kbd_mouse_input_mapping()
94 if (ifnum != 1 || HID_UP_CONSUMER != (usage->hid & HID_USAGE_PAGE)) in samsung_kbd_mouse_input_mapping()
[all …]
/linux/drivers/gpu/drm/gma500/
H A 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/Documentation/input/devices/
H A 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/drivers/mtd/nand/raw/
H A Drenesas-nand-controller.c1 // SPDX-License-Identifier: GPL-2.0
3 * Evatronix/Renesas R-Car Gen3, RZ/N1D, RZ/N1S, RZ/N1L NAND controller driver
11 #include <linux/dma-mapping.h>
23 #define COMMAND_SEQ(x) FIELD_PREP(GENMASK(5, 0), (x)) argument
36 #define COMMAND_0(x) FIELD_PREP(GENMASK(15, 8), (x)) argument
37 #define COMMAND_1(x) FIELD_PREP(GENMASK(23, 16), (x)) argument
38 #define COMMAND_2(x) FIELD_PREP(GENMASK(31, 24), (x)) argument
42 #define CONTROL_ECC_BLOCK_SIZE(x) FIELD_PREP(GENMASK(2, 1), (x)) argument
48 #define CONTROL_BLOCK_SIZE(x) FIELD_PREP(GENMASK(7, 6), (x)) argument
59 #define ECC_CTRL_CAP(x) FIELD_PREP(GENMASK(2, 0), (x)) argument
[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 …]
/linux/Documentation/ABI/testing/
H A Dsysfs-class-powercap4 Contact: linux-pm@vger.kernel.org
13 Contact: linux-pm@vger.kernel.org
22 Contact: linux-pm@vger.kernel.org
30 Contact: linux-pm@vger.kernel.org
35 E.g. intel-rapl:0:1:1.
40 Contact: linux-pm@vger.kernel.org
51 Contact: linux-pm@vger.kernel.org
58 Contact: linux-pm@vger.kernel.org
60 Current energy counter in micro-joules. Write "0" to reset.
62 read-only.
[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) 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)); })
41 #ifndef max
42 #define max(x, y) ({ \ macro
43 typeof(x) _max1 = (x); \
[all …]
/linux/drivers/usb/phy/
H A Dphy.c1 // SPDX-License-Identifier: GPL-2.0+
3 * phy.c -- USB phy handling
5 * Copyright (C) 2004-2013 Texas Instruments
57 if (phy->type != type) in __usb_find_phy()
63 return ERR_PTR(-ENODEV); in __usb_find_phy()
71 return ERR_PTR(-ENODEV); in __of_usb_find_phy()
74 if (node != phy->dev->of_node) in __of_usb_find_phy()
80 return ERR_PTR(-EPROBE_DEFER); in __of_usb_find_phy()
88 if (usb_phy->dev == dev) in __device_to_usb_phy()
97 usb_phy->chg_cur.sdp_min = DEFAULT_SDP_CUR_MIN; in usb_phy_set_default_current()
[all …]
/linux/Documentation/admin-guide/pm/
H A Dintel-speed-select.rst1 .. SPDX-License-Identifier: GPL-2.0
14 - https://www.intel.com/content/www/us/en/architecture-and-technology/speed-select-technology-artic…
15 - https://builders.intel.com/docs/networkbuilders/intel-speed-select-technology-base-frequency-enha…
19 dynamically without pre-configuring via BIOS setup options. This dynamic
29 intel-speed-select configuration tool
32 Most Linux distribution packages may include the "intel-speed-select" tool. If not,
38 # cd tools/power/x86/intel-speed-select/
43 ------------
47 # intel-speed-select --help
49 The top-level help describes arguments and features. Notice that there is a
[all …]

12345678910>>...44