Home
last modified time | relevance | path

Searched +full:clip +full:- +full:x +full:- +full:low (Results 1 – 25 of 54) sorted by relevance

123

/openbmc/linux/Documentation/devicetree/bindings/input/
H A Dsyna,rmi4.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jason A. Donenfeld <Jason@zx2c4.com>
11 - Matthias Schiffer <matthias.schiffer@ew.tq-group.com
12 - Vincent Huang <vincent.huang@tw.synaptics.com>
22 - syna,rmi4-i2c
23 - syna,rmi4-spi
28 '#address-cells':
31 '#size-cells':
[all …]
/openbmc/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 …]
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_hw_util.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
4 * Copyright (c) 2015-2021, The Linux Foundation. All rights reserved.
15 #define REG_MASK(n) ((BIT(n)) - 1)
35 * struct dpu_hw_blk - opaque hardware block object
46 * @ clip: clip shift
50 * @ thr_high: low threshold
53 * @ adjust_a: A-coefficients for mapping curve
54 * @ adjust_b: B-coefficients for mapping curve
55 * @ adjust_c: C-coefficients for mapping curve
[all …]
/openbmc/linux/drivers/net/wireless/broadcom/b43/
H A Dphy_n.h1 /* SPDX-License-Identifier: GPL-2.0 */
9 /* N-PHY registers. */
18 #define B43_NPHY_4WI_ADDR B43_PHY_N(0x00B) /* Four-wire bus address */
19 #define B43_NPHY_4WI_DATAHI B43_PHY_N(0x00C) /* Four-wire bus data high */
20 #define B43_NPHY_4WI_DATALO B43_PHY_N(0x00D) /* Four-wire bus data low */
21 #define B43_NPHY_BIST_STAT0 B43_PHY_N(0x00E) /* Built-in self test status 0 */
22 #define B43_NPHY_BIST_STAT1 B43_PHY_N(0x00F) /* Built-in self test status 1 */
26 #define B43_NPHY_C1_BCLIPBKOFF B43_PHY_N(0x01A) /* Core 1 barely clip backoff */
27 #define B43_NPHY_C1_CCK_BCLIPBKOFF B43_PHY_N(0x01B) /* Core 1 CCK barely clip backoff */
31 #define B43_NPHY_C1_CGAINI_CLIPGBKOFF 0x03E0 /* Clip gain backoff */
[all …]
/openbmc/linux/arch/arm64/boot/dts/qcom/
H A Dmsm8994-msft-lumia-octagon.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/input/gpio-keys.h>
14 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
20 /delete-node/ &adsp_mem;
21 /delete-node/ &audio_mem;
22 /delete-node/ &cont_splash_mem;
23 /delete-node/ &mba_mem;
24 /delete-node/ &mpss_mem;
25 /delete-node/ &peripheral_region;
[all …]
H A Dsdm845-xiaomi-polaris.dts1 // SPDX-License-Identifier: BSD-3-Clause
7 /dts-v1/;
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
11 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
12 #include <dt-bindings/input/linux-event-codes.h>
13 #include <dt-bindings/sound/qcom,q6afe.h>
14 #include <dt-bindings/sound/qcom,q6asm.h>
16 #include "sdm845-wcd9340.dtsi"
25 /delete-node/ &rmtfs_mem;
[all …]
/openbmc/linux/drivers/gpu/drm/udl/
H A Dudl_modeset.c1 // SPDX-License-Identifier: GPL-2.0-only
82 * In 24bpp modes, the low 323 RGB bits go in the 8bpp framebuffer
127 while (actual_count--) { in udl_lfsr16()
151 u16 reg01 = mode->crtc_htotal - mode->crtc_hsync_start; in udl_set_display_mode()
152 u16 reg03 = reg01 + mode->crtc_hdisplay; in udl_set_display_mode()
153 u16 reg05 = mode->crtc_vtotal - mode->crtc_vsync_start; in udl_set_display_mode()
154 u16 reg07 = reg05 + mode->crtc_vdisplay; in udl_set_display_mode()
155 u16 reg09 = mode->crtc_htotal - 1; in udl_set_display_mode()
157 u16 reg0d = mode->crtc_hsync_end - mode->crtc_hsync_start + 1; in udl_set_display_mode()
158 u16 reg0f = mode->hdisplay; in udl_set_display_mode()
[all …]
/openbmc/linux/drivers/gpu/drm/tiny/
H A Drepaper.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * DRM driver for Pervasive Displays RePaper branded e-ink panels
5 * Copyright 2013-2017 Pervasive Displays, Inc.
51 enum repaper_stage { /* Image pixel -> Display pixel */
52 REPAPER_COMPENSATE, /* B -> W, W -> B (Current Image) */
53 REPAPER_WHITE, /* B -> N, W -> W (Current Image) */
54 REPAPER_INVERSE, /* B -> N, W -> B (New Image) */
55 REPAPER_NORMAL /* B -> B, W -> W (New Image) */
111 return -ENOMEM; in repaper_spi_transfer()
121 ret = -ENOMEM; in repaper_spi_transfer()
[all …]
/openbmc/linux/sound/soc/codecs/
H A Dmt6660.c1 // SPDX-License-Identifier: GPL-2.0
53 reg_data[size - i - 1] = (val >> (8 * i)) & 0xff; in mt6660_reg_write()
55 return i2c_smbus_write_i2c_block_data(chip->i2c, reg, size, reg_data); in mt6660_reg_write()
66 ret = i2c_smbus_read_i2c_block_data(chip->i2c, reg, size, data); in mt6660_reg_read()
96 snd_soc_dapm_to_component(w->dapm); in mt6660_codec_classd_event()
101 dev_dbg(component->dev, in mt6660_codec_classd_event()
107 dev_err(component->dev, "config mode adaptive fail\n"); in mt6660_codec_classd_event()
116 dev_err(component->dev, in mt6660_codec_classd_event()
120 dev_dbg(component->dev, "Amp on\n"); in mt6660_codec_classd_event()
123 dev_dbg(component->dev, "Amp off\n"); in mt6660_codec_classd_event()
[all …]
/openbmc/ipmitool/lib/
H A Dipmi_event.c22 * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
66 sel_event.sel_type.standard_type.evm_rev = pmsg->evm_rev; in ipmi_event_msg_print()
67 sel_event.sel_type.standard_type.sensor_type = pmsg->sensor_type; in ipmi_event_msg_print()
68 sel_event.sel_type.standard_type.sensor_num = pmsg->sensor_num; in ipmi_event_msg_print()
69 sel_event.sel_type.standard_type.event_type = pmsg->event_type; in ipmi_event_msg_print()
70 sel_event.sel_type.standard_type.event_dir = pmsg->event_dir; in ipmi_event_msg_print()
71 sel_event.sel_type.standard_type.event_data[0] = pmsg->event_data[0]; in ipmi_event_msg_print()
72 sel_event.sel_type.standard_type.event_data[1] = pmsg->event_data[1]; in ipmi_event_msg_print()
73 sel_event.sel_type.standard_type.event_data[2] = pmsg->event_data[2]; in ipmi_event_msg_print()
100 rqdata[0] = 0x41; // As per Fig. 29-2 and Table 5-4 in ipmi_send_platform_event()
[all …]
/openbmc/linux/arch/arm64/mm/
H A Dinit.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 1995-2005 Russell King
23 #include <linux/dma-direct.h>
24 #include <linux/dma-map-ops.h>
38 #include <asm/kernel-pgtable.h>
47 #include <asm/xen/swiotlb-xen.h>
55 s64 memstart_addr __ro_after_init = -1;
60 * and ZONE_DMA32. By default ZONE_DMA covers the 32-bit addressable memory
61 * unless restricted on specific platforms (e.g. 30-bit on Raspberry Pi 4).
62 * In such case, ZONE_DMA32 covers the rest of the 32-bit addressable memory,
[all …]
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_atomic_plane.c28 * implement legacy plane updates (i.e., drm_plane->update_plane() and
29 * drm_plane->disable_plane()). This allows plane updates to use the
55 __drm_atomic_helper_plane_state_reset(&plane_state->uapi, &plane->base); in intel_plane_state_reset()
57 plane_state->scaler_id = -1; in intel_plane_state_reset()
67 return ERR_PTR(-ENOMEM); in intel_plane_alloc()
72 return ERR_PTR(-ENOMEM); in intel_plane_alloc()
77 plane->base.state = &plane_state->uapi; in intel_plane_alloc()
84 intel_plane_destroy_state(&plane->base, plane->base.state); in intel_plane_free()
89 * intel_plane_duplicate_state - duplicate plane state
93 * Intel-specific) for the specified plane.
[all …]
H A Dintel_psr.c44 * Since Haswell Display controller supports Panel Self-Refresh on display
58 * The implementation uses the hardware-based PSR support which automatically
59 * enters/exits self-refresh mode. The hardware takes care of sending the
62 * changes to know when to exit self-refresh mode again. Unfortunately that
67 * issues the self-refresh re-enable code is done from a work queue, which
75 * entry/exit allows the HW to enter a low-power state even when page flipping
91 * EDP_PSR_DEBUG[16]/EDP_PSR_DEBUG_MASK_DISP_REG_WRITE (hsw-skl):
155 * In standby mode (as opposed to link-off) this makes no difference
169 * The rest of the bits are more self-explanatory and/or
175 struct intel_connector *connector = intel_dp->attached_connector; in psr_global_enabled()
[all …]
/openbmc/linux/drivers/media/i2c/
H A Dov8858.c1 // SPDX-License-Identifier: GPL-2.0
22 #include <media/media-entity.h>
23 #include <media/v4l2-async.h>
24 #include <media/v4l2-common.h>
25 #include <media/v4l2-ctrls.h>
26 #include <media/v4l2-device.h>
27 #include <media/v4l2-event.h>
28 #include <media/v4l2-fwnode.h>
29 #include <media/v4l2-mediabus.h>
30 #include <media/v4l2-subdev.h>
[all …]
H A Dar0521.c1 // SPDX-License-Identifier: GPL-2.0
4 * - Przemysłowy Instytut Automatyki i Pomiarów PIAP
12 #include <media/v4l2-ctrls.h>
13 #include <media/v4l2-fwnode.h>
14 #include <media/v4l2-subdev.h>
147 return &container_of(ctrl->handler, struct ar0521_dev, in ctrl_to_sd()
148 ctrls.handler)->sd; in ctrl_to_sd()
158 return div_u64(v + d - 1, d); in div64_round_up()
163 switch (sensor->fmt.code) { in ar0521_code_to_bpp()
168 return -EINVAL; in ar0521_code_to_bpp()
[all …]
H A Dov772x.c1 // SPDX-License-Identifier: GPL-2.0
12 * Copyright 2006-7 Jonathan Corbet <corbet@lwn.net>
26 #include <linux/v4l2-mediabus.h>
31 #include <media/v4l2-ctrls.h>
32 #include <media/v4l2-device.h>
33 #include <media/v4l2-event.h>
34 #include <media/v4l2-fwnode.h>
35 #include <media/v4l2-image-sizes.h>
36 #include <media/v4l2-subdev.h>
41 #define GAIN 0x00 /* AGC - Gain control gain setting */
[all …]
/openbmc/linux/arch/arm64/include/asm/
H A Dmemory.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (C) 2000-2002 Russell King
8 * Note: this file should not be included by non-asm/.h files
15 #include <asm/page-def.h>
19 * IO_SPACE_LIMIT acts as a mask for the low bits of I/O addresses.
24 * VMEMMAP_SIZE - allows the whole linear region to be covered by
27 * If we are configured with a 52-bit kernel VA then our VMEMMAP_SIZE
28 * needs to cover the memory region from the beginning of the 52-bit
29 * PAGE_OFFSET all the way to PAGE_END for 48-bit. This allows us to
31 * of the VMEMMAP where 52-bit support is not available in hardware.
[all …]
/openbmc/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 …]
/openbmc/linux/include/sound/
H A Demu10k1.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
16 #include <sound/pcm-indirect.h>
25 /* ------------------- DEFINES -------------------- */
33 /* FIXME? - according to the OSS driver the EMU10K1 needs a 29 bit DMA mask */
41 // This is used to define hardware bit-fields (sub-registers) by combining
44 // The non-concatenating (_NC) variant should be used directly only for
45 // sub-registers that do not follow the <register>_<field> naming pattern.
55 // Macros for manipulating values of bit-fields declared using the above macros.
59 // single sub-register at a time.
62 #define REG_MASK0(r) ((1U << REG_SIZE(r)) - 1U)
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce60/
H A Ddce60_hw_sequencer.c56 struct resource_context *res_ctx = &context->res_ctx; in dce60_should_enable_fbc()
57 unsigned int underlay_idx = dc->res_pool->underlay_pipe_index; in dce60_should_enable_fbc()
60 ASSERT(dc->fbc_compressor); in dce60_should_enable_fbc()
63 if (!dc->ctx->fbc_gpu_addr) in dce60_should_enable_fbc()
67 if (context->stream_count != 1) in dce60_should_enable_fbc()
70 for (i = 0; i < dc->res_pool->pipe_count; i++) { in dce60_should_enable_fbc()
71 if (res_ctx->pipe_ctx[i].stream) { in dce60_should_enable_fbc()
73 pipe_ctx = &res_ctx->pipe_ctx[i]; in dce60_should_enable_fbc()
79 if (pipe_ctx->pipe_idx != underlay_idx) { in dce60_should_enable_fbc()
86 if (i == dc->res_pool->pipe_count) in dce60_should_enable_fbc()
[all …]
/openbmc/linux/drivers/usb/serial/
H A Dbelkin_sa.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 2000-2001 Greg Kroah-Hartman (greg@kroah.com)
9 * This program is largely derived from work by the linux-usb group
13 * See Documentation/usb/usb-serial.rst for more information on using this
17 * -- Add true modem control line query capability. Currently we track the
19 * -- Add support for flush commands
109 #define BSA_USB_CMD(c, v) usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), \
115 struct usb_device *dev = port->serial->dev; in belkin_sa_port_probe()
120 return -ENOMEM; in belkin_sa_port_probe()
122 spin_lock_init(&priv->lock); in belkin_sa_port_probe()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_resource.c2 * Copyright 2012-15 Advanced Micro Devices, Inc.
86 #define UNABLE_TO_SPLIT -1
206 init_data->num_virtual_links, dc); in dc_create_resource_pool()
210 init_data->num_virtual_links, dc); in dc_create_resource_pool()
214 init_data->num_virtual_links, dc); in dc_create_resource_pool()
219 init_data->num_virtual_links, dc); in dc_create_resource_pool()
223 init_data->num_virtual_links, dc); in dc_create_resource_pool()
227 init_data->num_virtual_links, dc); in dc_create_resource_pool()
231 init_data->num_virtual_links, dc); in dc_create_resource_pool()
235 init_data->num_virtual_links, dc, in dc_create_resource_pool()
[all …]
/openbmc/linux/drivers/net/wireless/intel/iwlegacy/
H A D3945.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved.
8 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
16 #include <linux/dma-mapping.h>
94 * il3945_disable_events - Disable selected events in uCode event log
99 * Use for only special debugging. This function is just a placeholder as-is,
107 u32 disable_ptr; /* SRAM address of event-disable bitmap array */ in il3945_disable_events()
110 0x00000000, /* 31 - 0 Event id numbers */ in il3945_disable_events()
111 0x00000000, /* 63 - 32 */ in il3945_disable_events()
112 0x00000000, /* 95 - 64 */ in il3945_disable_events()
[all …]
/openbmc/linux/drivers/staging/media/ipu3/include/uapi/
H A Dintel-ipu3.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 /* Copyright (C) 2017 - 2018 Intel Corporation */
11 /* Vendor specific - used for IPU3 camera sub-system */
17 /* from include/uapi/linux/v4l2-controls.h */
26 #define IPU3_UAPI_GRID_START_MASK ((1 << 12) - 1)
34 * struct ipu3_uapi_grid_config - Grid plane config
50 * @x_start: X value of top left corner of Region of Interest(ROI).
52 * @x_end: X value of bottom right corner of ROI
56 * create a grid-based output, and the data is then divided into "slices".
71 * struct ipu3_uapi_awb_set_item - Memory layout for each cell in AWB
[all …]
/openbmc/linux/tools/power/x86/intel-speed-select/
H A Disst-display.c1 // SPDX-License-Identifier: GPL-2.0
3 * Intel dynamic_speed_select -- Enumerate and control features
26 str_len - curr_index, ","); in printcpulist()
31 index = snprintf(&str[curr_index], str_len - curr_index, "%d", in printcpulist()
67 for (i = size - 1; i >= 0; --i) { in printcpumask()
68 index = snprintf(&str[curr_index], str_len - curr_index, "%08x", in printcpumask()
74 strncat(&str[curr_index], ",", str_len - curr_index); in printcpumask()
97 for (i = 0; i < level - 1; ++i) in format_and_print_txt()
98 j += snprintf(&delimiters[j], sizeof(delimiters) - j, in format_and_print_txt()
133 j += snprintf(&delimiters[j], sizeof(delimiters) - j, in format_and_print()
[all …]

123