/openbmc/linux/sound/soc/codecs/ |
H A D | da7219-aad.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * da7219-aad.c - Dialog DA7219 ALSA SoC AAD Driver 24 #include "da7219-aad.h" 35 da7219->aad->jack = jack; in da7219_aad_jack_det() 36 da7219->aad->jack_inserted = false; in da7219_aad_jack_det() 38 /* Send an initial empty report */ in da7219_aad_jack_det() 41 /* Enable/Disable jack detection */ in da7219_aad_jack_det() 55 struct snd_soc_component *component = da7219_aad->component; in da7219_aad_btn_det_work() 83 dev_warn(component->dev, "Mic bias status check timed out"); in da7219_aad_btn_det_work() 85 da7219->micbias_on_event = true; in da7219_aad_btn_det_work() [all …]
|
H A D | wcd-mbhc-v2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright (c) 2015-2021, The Linux Foundation. All rights reserved. 14 #include "wcd-mbhc-v2.h" 53 /* Delayed work to report long button press */ 72 /* Holds type of Headset - Mono/Stereo */ 74 /* Holds mbhc detection method - ADC/Legacy */ 81 if (!mbhc->fields[field].reg) in wcd_mbhc_write_field() 84 return snd_soc_component_write_field(mbhc->component, in wcd_mbhc_write_field() 85 mbhc->fields[field].reg, in wcd_mbhc_write_field() 86 mbhc->fields[field].mask, val); in wcd_mbhc_write_field() [all …]
|
H A D | arizona-jack.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * extcon-arizona.c - Extcon driver Wolfson Arizona devices 5 * Copyright (C) 2012-2014 Wolfson Microelectronics plc 26 #include <dt-bindings/mfd/arizona.h> 33 * The hardware supports 8 ranges / buttons, but the snd-jack interface 34 * only supports 6 buttons (button 0-5). 100 struct arizona *arizona = info->arizona; in arizona_extcon_hp_clamp() 101 unsigned int mask = 0, val = 0; in arizona_extcon_hp_clamp() local 105 switch (arizona->type) { in arizona_extcon_hp_clamp() 108 mask = 0; in arizona_extcon_hp_clamp() [all …]
|
/openbmc/linux/kernel/kcsan/ |
H A D | kcsan.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * see Documentation/dev-tools/kcsan.rst. 24 * Globally enable and disable KCSAN. 36 * slow-paths. 99 * Value-change states. 103 * Did not observe a value-change, however, it is valid to report the 109 * Did not observe a value-change, and it is invalid to report the race. 121 * to be consumed by the reporting thread. No report is printed yet. 128 * consumed: print the full report based on information set by the racing 133 int watchpoint_idx, u64 old, u64 new, u64 mask); [all …]
|
H A D | report.c | 1 // SPDX-License-Identifier: GPL-2.0 24 * Max. number of stack entries to show in the report. 40 * up the watchpoint, which then prints the complete report atomically. 69 * as we have watchpoints (upper bound on concurrent races to report). 71 static struct other_info other_infos[CONFIG_KCSAN_NUM_WATCHPOINTS + NUM_SLOTS-1]; 95 * Therefore, we use a fixed-size array, which at most will occupy a page. This 108 * Spinlock serializing report generation, and access to @other_infos. Although 109 * it could make sense to have a finer-grained locking story for @other_infos, 110 * report generation needs to be serialized either way, so not much is gained. 116 * been reported since (now - KCSAN_REPORT_ONCE_IN_MS). [all …]
|
/openbmc/linux/Documentation/admin-guide/laptops/ |
H A D | thinkpad-acpi.rst | 9 - Borislav Deianov <borislav@users.sf.net> 10 - Henrique de Moraes Holschuh <hmh@hmh.eng.br> 12 http://ibm-acpi.sf.net/ 19 This driver used to be named ibm-acpi until kernel 2.6.21 and release 20 0.13-20070314. It used to be in the drivers/acpi tree, but it was 21 moved to the drivers/misc tree and renamed to thinkpad-acpi for kernel 25 The driver is named "thinkpad-acpi". In some places, like module 29 "tpacpi" is used as a shorthand where "thinkpad-acpi" would be too 33 ------ 38 - Fn key combinations [all …]
|
/openbmc/linux/drivers/gpu/drm/vboxvideo/ |
H A D | vboxvideo.h | 1 /* SPDX-License-Identifier: MIT */ 2 /* Copyright (C) 2006-2016 Oracle Corporation */ 18 * Last 4096 bytes - Adapter information area. 20 * Slack - what left after dividing the VRAM. 41 * to disable the mode. 74 * len_and_flags & ~VBVA_F_RECORD_PARTIAL >= VBVA_RING_BUFFER_SIZE - 80 #define VBVA_RING_BUFFER_SIZE (4194304 - 1024) 146 /* guest->host commands */ 165 /* G->H DMA command */ 170 * Report the guest virtual desktop position and size for mapping host and [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | pmu.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 21 #define PMU_ADB_POLL_OFF 0x21 /* disable ADB auto-poll */ 23 #define PMU_WRITE_NVRAM 0x33 /* write non-volatile RAM */ 25 #define PMU_READ_NVRAM 0x3b /* read non-volatile RAM */ 26 #define PMU_SET_RTC 0x30 /* set real-time clock */ 27 #define PMU_READ_RTC 0x38 /* read real-time clock */ 31 #define PMU_PCEJECT 0x4c /* eject PC-card from slot */ 32 #define PMU_BATTERY_STATE 0x6b /* report battery state etc. */ 33 #define PMU_SMART_BATTERY_STATE 0x6f /* report battery state (new way) */ 34 #define PMU_SET_INTR_MASK 0x70 /* set PMU interrupt mask */ [all …]
|
/openbmc/linux/arch/x86/coco/tdx/ |
H A D | tdx.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (C) 2021-2022 Intel Corporation */ 15 #include <asm/insn-eval.h> 77 /* Read TD-scoped metadata */ 91 /* Write TD-scoped metadata */ 92 static inline u64 tdg_vm_wr(u64 field, u64 value, u64 mask) in tdg_vm_wr() argument 97 .r9 = mask, in tdg_vm_wr() 104 * tdx_mcall_get_report0() - Wrapper to get TDREPORT0 (a.k.a. TDREPORT 105 * subtype 0) using TDG.MR.REPORT TDCALL. 106 * @reportdata: Address of the input buffer which contains user-defined [all …]
|
/openbmc/linux/include/linux/regulator/ |
H A D | driver.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * driver.h -- SoC Regulator driver support. 62 * struct regulator_ops - regulator operations. 65 * @disable: Configure the regulator as disabled. 75 * return -ENOTRECOVERABLE if regulator can't be read at 78 * regulator; return -ENOTRECOVERABLE if regulator can't 85 * @set_current_limit: Configure a limit for a current-limited regulator. 87 * @get_current_limit: Get the configured limit for a current-limited regulator. 94 * - REGULATOR_SEVERITY_PROT should automatically shut down the regulator(s). 96 * - REGULATOR_SEVERITY_ERR should indicate that over-current situation is [all …]
|
/openbmc/linux/drivers/regulator/ |
H A D | rt5190a-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 #include <dt-bindings/regulator/richtek,rt5190a-regulator.h> 40 #define RT5190A_BUCK23_STEPNUM ((1400000 - 600000) / 10000 + 1) 83 unsigned int mask = RT5190A_RID_BITMASK(rid), val; in rt5190a_fixed_buck_set_mode() local 87 val = mask; in rt5190a_fixed_buck_set_mode() 93 return -EINVAL; in rt5190a_fixed_buck_set_mode() 96 return regmap_update_bits(regmap, RT5190A_REG_DCDCCNTL, mask, val); in rt5190a_fixed_buck_set_mode() 108 dev_err(&rdev->dev, "Failed to get mode [%d]\n", ret); in rt5190a_fixed_buck_get_mode() 120 .disable = regulator_disable_regmap, 131 .disable = regulator_disable_regmap, [all …]
|
/openbmc/linux/tools/perf/Documentation/ |
H A D | perf-record.txt | 1 perf-record(1) 5 ---- 6 perf-record - Run a command and record its profile into perf.data 9 -------- 11 'perf record' [-e <EVENT> | --event=EVENT] [-a] <command> 12 'perf record' [-e <EVENT> | --event=EVENT] [-a] \-- <command> [<options>] 15 ----------- 17 from it, into perf.data - without displaying anything. 19 This file can then be inspected later on, using 'perf report'. 23 ------- [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtw89/ |
H A D | wow.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2019-2022 Realtek Corporation 22 struct ieee80211_vif *wow_vif = rtwdev->wow.wow_vif; in rtw89_wow_enter_deep_ps() 23 struct rtw89_vif *rtwvif = (struct rtw89_vif *)wow_vif->drv_priv; in rtw89_wow_enter_deep_ps() 30 struct ieee80211_vif *wow_vif = rtwdev->wow.wow_vif; in rtw89_wow_enter_lps() 31 struct rtw89_vif *rtwvif = (struct rtw89_vif *)wow_vif->drv_priv; in rtw89_wow_enter_lps() 43 const struct rtw89_mac_gen_def *mac = rtwdev->chip->mac_def; in rtw89_wow_config_mac() 53 rtw89_write32_clr(rtwdev, mac->rx_fltr, B_AX_SNIFFER_MODE); in rtw89_wow_config_mac() 87 enum rtw89_core_chip_id chip_id = rtwdev->chip->chip_id; in rtw89_wow_show_wakeup_reason() 90 .pattern_idx = -1, in rtw89_wow_show_wakeup_reason() [all …]
|
/openbmc/linux/drivers/s390/cio/ |
H A D | io_sch.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 29 dev_get_drvdata(&(n)->dev)) 30 #define set_io_private(n, p) (dev_set_drvdata(&(n)->dev, p)) 35 return priv ? priv->cdev : NULL; in sch_get_cdev() 43 priv->cdev = cdev; in sch_set_cdev() 61 * ccw_request - Internal CCW request. 65 * @lpm: mask of paths to use 69 * @data: user-defined pointer passed to all callbacks 71 * @cancel: non-zero if request was cancelled 72 * @done: non-zero if request was finished [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/ |
H A D | i915_perf.c | 2 * Copyright © 2015-2016 Intel Corporation 44 * without special privileges. Access to system-wide metrics requires root 58 * might sample sets of tightly-coupled counters, depending on the 70 * interleaved with event-type specific members. 76 * would be acceptable to expose them to unprivileged applications - to hide 96 * side-band OA data captured via MI_REPORT_PERF_COUNT commands; we're 102 * For posterity, in case we might re-visit trying to adapt core perf to be 106 * - The perf based OA PMU driver broke some significant design assumptions: 110 * implications, the need to fake cpu-related data (such as user/kernel 112 * as a way to forward device-specific status records. [all …]
|
/openbmc/linux/drivers/net/ipa/ |
H A D | gsi.c | 1 // SPDX-License-Identifier: GPL-2.0 3 /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. 4 * Copyright (C) 2018-2023 Linaro Ltd. 31 * providing a well-defined communication layer between the AP subsystem 34 * -------- --------- 36 * | AP +<---. .----+ Modem | 37 * | +--. | | .->+ | 39 * -------- | | | | --------- 41 * --+-+---+-+-- 43 * |-----------| [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/input/ |
H A D | syna,rmi4.yaml | 1 # 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/usb/host/ |
H A D | uhci-hub.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * (C) Copyright 1999-2002 Johannes Erdfelt, johannes@erdfelt.com 19 USB_DT_HUB, /* __u8 bDescriptorType; Hub-descriptor */ 22 HUB_CHAR_INDV_PORT_OCPM, /* (per-port OC, no power switching) */ 41 /* A port that either is connected or has a changed-bit set will prevent 48 for (port = 0; port < uhci->rh_numports; ++port) { in any_ports_active() 51 test_bit(port, &uhci->port_c_suspend)) in any_ports_active() 60 int mask = RWC_BITS; in get_hub_status_data() local 62 /* Some boards (both VIA and Intel apparently) report bogus in get_hub_status_data() 69 mask &= ~USBPORTSC_OCC; in get_hub_status_data() [all …]
|
/openbmc/linux/drivers/ata/ |
H A D | pata_hpt3x2n.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * Copyright (C) 1999-2003 Andre Hedrick <andre@linux-ide.org> 12 * Portions Copyright (C) 2005-2010 MontaVista Software, Inc. 85 * hpt3x2n_find_mode - reset the hpt3x2n bus 99 while (clocks->xfer_speed) { in hpt3x2n_find_mode() 100 if (clocks->xfer_speed == speed) in hpt3x2n_find_mode() 101 return clocks->timing; in hpt3x2n_find_mode() 109 * hpt372n_filter - mode selection filter 111 * @mask: mode mask 116 static unsigned int hpt372n_filter(struct ata_device *adev, unsigned int mask) in hpt372n_filter() argument [all …]
|
/openbmc/linux/drivers/input/touchscreen/ |
H A D | da9052_tsi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 30 da9052_reg_update(tsi->da9052, DA9052_TSI_CONT_A_REG, 1 << 0, on); in da9052_ts_adc_toggle() 31 tsi->adc_on = on; in da9052_ts_adc_toggle() 38 if (!tsi->stopped) { in da9052_ts_pendwn_irq() 39 /* Mask PEN_DOWN event and unmask TSI_READY event */ in da9052_ts_pendwn_irq() 40 da9052_disable_irq_nosync(tsi->da9052, DA9052_IRQ_PENDOWN); in da9052_ts_pendwn_irq() 41 da9052_enable_irq(tsi->da9052, DA9052_IRQ_TSIREADY); in da9052_ts_pendwn_irq() 45 schedule_delayed_work(&tsi->ts_pen_work, HZ / 50); in da9052_ts_pendwn_irq() 53 struct input_dev *input = tsi->dev; in da9052_ts_read() 58 ret = da9052_reg_read(tsi->da9052, DA9052_TSI_X_MSB_REG); in da9052_ts_read() [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/ |
H A D | sky2.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 30 /* Yukon-2 */ 32 PCI_Y2_PIG_ENA = 1<<31, /* Enable Plug-in-Go (YUKON-2) */ 33 PCI_Y2_DLL_DIS = 1<<30, /* Disable PCI DLL (YUKON-2) */ 34 PCI_SW_PWR_ON_RST= 1<<30, /* SW Power on Reset (Yukon-EX) */ 35 PCI_Y2_PHY2_COMA = 1<<29, /* Set PHY 2 to Coma Mode (YUKON-2) */ 36 PCI_Y2_PHY1_COMA = 1<<28, /* Set PHY 1 to Coma Mode (YUKON-2) */ 37 PCI_Y2_PHY2_POWD = 1<<27, /* Set PHY 2 to Power Down (YUKON-2) */ 38 PCI_Y2_PHY1_POWD = 1<<26, /* Set PHY 1 to Power Down (YUKON-2) */ 60 /* PCI_OUR_REG_3 32 bit Our Register 3 (Yukon-ECU only) */ [all …]
|
/openbmc/linux/include/linux/mfd/wm831x/ |
H A D | pdata.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * include/linux/mfd/wm831x/pdata.h -- Platform data for WM831x 23 int no_constant_voltage; /** Disable constant voltage charging */ 31 int off_mask; /** Mask OFF while charging */ 40 * Configuration for the WM831x DC-DC BuckWise convertors. This 76 int pressure; /** Report pressure (boolean) */ 116 /** Disable the touchscreen */
|
/openbmc/linux/drivers/net/wwan/iosm/ |
H A D | iosm_ipc_mux.h | 1 /* SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2020-21 Intel Corporation. 26 /* open session request (AP->CP) */ 29 /* response to open session request (CP->AP) */ 32 /* close session request (AP->CP) */ 35 /* response to close session request (CP->AP) */ 38 /* Flow control command with mask of the flow per queue/flow. */ 46 /* Command for report packet indicating link quality metrics. */ 49 /* Response to a report packet */ 131 __le32 mask; /* indicating the desired flow control */ member [all …]
|
/openbmc/linux/Documentation/netlink/specs/ |
H A D | rt_link.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 name: rt-link 4 protocol: netlink-raw 11 - 12 name: ifinfo-flags 15 - 17 - 19 - 21 - 23 - [all …]
|
/openbmc/u-boot/drivers/ddr/marvell/a38x/ |
H A D | ddr_ml_wrapper.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 62 * Debug (Enable/Disable modules) and Error report 87 #define MV_ERROR (-1) 123 #define MV_INVALID (int)(-1) 138 static inline void reg_bit_set(u32 addr, u32 mask) in reg_bit_set() argument 140 setbits_le32(INTER_REGS_BASE + addr, mask); in reg_bit_set() 143 static inline void reg_bit_clr(u32 addr, u32 mask) in reg_bit_clr() argument 145 clrbits_le32(INTER_REGS_BASE + addr, mask); in reg_bit_clr()
|