/openbmc/linux/drivers/hwmon/ |
H A D | nzxt-kraken2.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * nzxt-kraken2.c - hwmon driver for NZXT Kraken X42/X52/X62/X72 coolers 6 * communicate current fan speed, pump speed and coolant temperature. The 7 * device does not respond to Get_Report requests for this status report. 9 * Copyright 2019-2021 Jonas Malaco <jonas@protocubo.io> 50 if (time_after(jiffies, priv->updated + STATUS_VALIDITY * HZ)) in kraken2_read() 51 return -ENODATA; in kraken2_read() 55 *val = priv->temp_input[channel]; in kraken2_read() 58 *val = priv->fan_input[channel]; in kraken2_read() 61 return -EOPNOTSUPP; /* unreachable */ in kraken2_read() [all …]
|
H A D | aquacomputer_d5next.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Aquacomputer devices send HID reports (with ID 0x01) every second to report 62 #define STATUS_UPDATE_INTERVAL (2 * HZ) /* In seconds */ 70 /* The HID report that the official software always sends 80 /* Secondary HID report values for Aquaero */ 88 /* Report IDs for legacy devices */ 122 /* Sensor report offsets for Aquaero fan controllers */ 133 /* Control report offsets for the Aquaero fan controllers */ 146 /* Sensor report offsets for the D5 Next pump */ 156 /* Control report offsets for the D5 Next pump */ [all …]
|
H A D | lineage-pem.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 #include <linux/hwmon-sysfs.h> 27 * status reporting commands are non-standard. For this reason, a standard 30 * All Lineage CPL devices have a built-in I2C bus master selector (PCA9541). 58 /* Virtual entries, to report constants */ 140 result = -EIO; in pem_read_block() 152 struct i2c_client *client = data->client; in pem_update_device() 155 mutex_lock(&data->update_lock); in pem_update_device() 157 if (time_after(jiffies, data->last_updated + HZ) || !data->valid) { in pem_update_device() 162 data->data_string, in pem_update_device() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/input/touchscreen/ |
H A D | hycon,hy46xx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 Glass: 0.3mm--4.0mm 12 PET/PMMA: 0.2mm--2.0mm 13 HY4613(B)-N048 < 6" 14 HY4614(B)-N068 7" .. 10.1" 15 HY4621-NS32 < 5" 16 HY4623-NS48 5.1" .. 7" 17 Glass: 0.3mm--8.0mm [all …]
|
/openbmc/linux/Documentation/hwmon/ |
H A D | f71805f.rst | 44 ----------- 57 The Fintek F71806F/FG Super-I/O chip is essentially the same as the 65 ------------------ 67 Voltages are sampled by an 8-bit ADC with a LSB of 8 mV. The supported 84 in1 VIN1 VTT1.2V 10K - 1.00 1.20 V 89 in6 VIN6 VCC1.5V 10K - 1.00 1.50 V 90 in7 VIN7 VCORE 10K - 1.00 ~1.40 V [1]_ 111 -------------- 113 Fan rotation speeds are reported as 12-bit values from a gated clock 119 The chip assumes 2 pulse-per-revolution fans. [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/Documentation/ABI/testing/ |
H A D | sysfs-class-hwmon | 16 The contents of the label are free-form. 48 least, it should report a fault. 68 least, it should report a fault. 89 thumb: drivers should report the voltage values at the 135 this voltage channel is being used for, and user-space 137 user-space. 145 When disabled the sensor read will return -ENODATA. 147 - 1: Enable 148 - 0: Disable 226 affects the measurable speed range, not the read value. [all …]
|
/openbmc/linux/drivers/hid/ |
H A D | hid-magicmouse.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 21 #include "hid-ids.h" 27 static int middle_button_start = -350; 37 unsigned long speed; in param_set_scroll_speed() local 38 if (!val || kstrtoul(val, 0, &speed) || speed > 63) in param_set_scroll_speed() 39 return -EINVAL; in param_set_scroll_speed() 40 scroll_speed = speed; in param_set_scroll_speed() 44 MODULE_PARM_DESC(scroll_speed, "Scroll speed, value from 0 (slow) to 63 (fast)"); 52 MODULE_PARM_DESC(report_undeciphered, "Report undeciphered multi-touch state field using a MSC_RAW … 66 * to be some kind of bit mask -- 0x20 may be a near-field reading, [all …]
|
/openbmc/linux/Documentation/spi/ |
H A D | spidev.rst | 5 SPI devices have a limited userspace API, supporting basic half-duplex 19 * Prototyping in an environment that's not crash-prone; stray pointers 38 - struct spi_device_id spidev_spi_ids[]: list of devices that can be 42 - struct of_device_id spidev_dt_ids[]: list of devices that can be 46 - struct acpi_device_id spidev_acpi_ids[]: list of devices that can 52 post a patch for spidev to the linux-spi@vger.kernel.org mailing list. 101 Since this is a standard Linux device driver -- even though it just happens 102 to expose a low level API to userspace -- it can be associated with any number 112 Standard read() and write() operations are obviously only half-duplex, and 113 the chipselect is deactivated between those operations. Full-duplex access, [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() 62 /* Some boards (both VIA and Intel apparently) report bogus in get_hub_status_data() 72 for (port = 0; port < uhci->rh_numports; ++port) { in get_hub_status_data() 74 test_bit(port, &uhci->port_c_suspend)) in get_hub_status_data() [all …]
|
/openbmc/u-boot/cmd/ |
H A D | i2c.c | 1 // SPDX-License-Identifier: GPL-2.0+ 25 * matches at least half of the data sheets :-/. 30 * Many non-memory chips have multiple registers and {addr} is used 31 * as the register index. Some non-memory chips have only one register 42 * successive reads using the I2C auto-incrementing memory pointer. 44 * If you are manipulating a large memory with 2-byte addresses, use 95 * When multiple buses are present, the list is an array of bus-address 126 #define DEFAULT_ADDR_LEN (-1) 156 return -ENODEV; in i2c_get_cur_bus() 163 return -ENODEV; in i2c_get_cur_bus() [all …]
|
/openbmc/linux/drivers/hid/usbhid/ |
H A D | hid-core.c | 1 // 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) 2007-2008 Oliver Neukum 9 * Copyright (c) 2006-2010 Jiri Kosina 34 #include <linux/hid-debug.h> 70 " 0x-prefixed hex"); 84 struct usbhid_device *usbhid = hid->driver_data; in hid_start_in() 86 spin_lock_irqsave(&usbhid->lock, flags); in hid_start_in() 87 if (test_bit(HID_IN_POLLING, &usbhid->iofl) && in hid_start_in() [all …]
|
/openbmc/linux/drivers/net/ethernet/actions/ |
H A D | owl-emac.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 12 #define OWL_EMAC_DRVNAME "owl-emac" 17 #define OWL_EMAC_TX_TIMEOUT (2 * HZ) 49 #define OWL_EMAC_VAL_MAC_CSR5_TS_DATA 0x03 /* Transferring data HOST -> FIFO */ 55 #define OWL_EMAC_VAL_MAC_CSR5_RS_DATA 0x07 /* Transferring data FIFO -> HOST */ 59 #define OWL_EMAC_BIT_MAC_CSR5_GTE BIT(11) /* General-purpose timer expiration */ 76 #define OWL_EMAC_MSK_MAC_CSR6_SPEED GENMASK(17, 16) /* Eth speed selection */ 98 #define OWL_EMAC_BIT_MAC_CSR7_GTE BIT(11) /* General-purpose timer overflow */ 140 /* General-purpose timer and interrupt mitigation control register */ 165 #define OWL_EMAC_BIT_MAC_CSR20_TUE BIT(30) /* Transmit Un-pause frames Enable */ [all …]
|
/openbmc/linux/drivers/mfd/ |
H A D | rave-sp.c | 1 // SPDX-License-Identifier: GPL-2.0+ 12 #include <linux/crc-ccitt.h> 18 #include <linux/mfd/rave-sp.h> 28 * - message to MCU => ACK response 29 * - event from MCU => event ACK 34 * - STX - is start of transmission character 35 * - ETX - end of transmission 36 * - DATA - payload 37 * - CHECKSUM - checksum calculated on <DATA> 67 * enum rave_sp_deframer_state - Possible state for de-framer [all …]
|
/openbmc/linux/drivers/net/phy/ |
H A D | phy.c | 1 // SPDX-License-Identifier: GPL-2.0+ 39 #define PHY_STATE_TIME HZ 64 if (old_state != phydev->state) { in phy_process_state_change() 65 phydev_dbg(phydev, "PHY state change %s -> %s\n", in phy_process_state_change() 67 phy_state_to_str(phydev->state)); in phy_process_state_change() 68 if (phydev->drv && phydev->drv->link_change_notify) in phy_process_state_change() 69 phydev->drv->link_change_notify(phydev); in phy_process_state_change() 75 phydev->phy_link_change(phydev, true); in phy_link_up() 81 phydev->phy_link_change(phydev, false); in phy_link_down() 83 WRITE_ONCE(phydev->link_down_events, phydev->link_down_events + 1); in phy_link_down() [all …]
|
H A D | phylink.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * technologies such as SFP cages where the PHY is hot-pluggable. 44 * struct phylink - internal data type for phylink 60 u8 link_port; /* The current non-phy ethtool port */ 93 if ((pl)->config->type == PHYLINK_NETDEV) \ 94 netdev_printk(level, (pl)->netdev, fmt, ##__VA_ARGS__); \ 95 else if ((pl)->config->type == PHYLINK_DEV) \ 96 dev_printk(level, (pl)->dev, fmt, ##__VA_ARGS__); \ 108 if ((pl)->config->type == PHYLINK_NETDEV) \ 109 netdev_dbg((pl)->netdev, fmt, ##__VA_ARGS__); \ [all …]
|
/openbmc/linux/Documentation/admin-guide/media/ |
H A D | vivid.rst | 1 .. SPDX-License-Identifier: GPL-2.0 13 Each input can be a webcam, TV capture device, S-Video capture device or an HDMI 14 capture device. Each output can be an S-Video output device or an HDMI output 23 - Support for read()/write(), MMAP, USERPTR and DMABUF streaming I/O. 24 - A large list of test patterns and variations thereof 25 - Working brightness, contrast, saturation and hue controls 26 - Support for the alpha color component 27 - Full colorspace support, including limited/full RGB range 28 - All possible control types are present 29 - Support for various pixel aspect ratios and video aspect ratios [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_devlink.c | 1 // SPDX-License-Identifier: GPL-2.0 13 static int ice_active_port_option = -1; 39 put_unaligned_be64(pci_get_dsn(pf->pdev), dsn); in ice_info_get_dsn() 41 snprintf(ctx->buf, sizeof(ctx->buf), "%8phD", dsn); in ice_info_get_dsn() 46 struct ice_hw *hw = &pf->hw; in ice_info_pba() 49 status = ice_read_pba_string(hw, (u8 *)ctx->buf, sizeof(ctx->buf)); in ice_info_pba() 58 struct ice_hw *hw = &pf->hw; in ice_info_fw_mgmt() 60 snprintf(ctx->buf, sizeof(ctx->buf), "%u.%u.%u", in ice_info_fw_mgmt() 61 hw->fw_maj_ver, hw->fw_min_ver, hw->fw_patch); in ice_info_fw_mgmt() 66 struct ice_hw *hw = &pf->hw; in ice_info_fw_api() [all …]
|
/openbmc/linux/sound/pci/echoaudio/ |
H A D | echoaudio.h | 3 Copyright Echo Digital Audio Corporation (c) 1998 - 2004 21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, 22 MA 02111-1307, USA. 26 Translation from C++ and adaptation for use in ALSA-Driver 34 +-----------+ 35 record | |<-------------------- Inputs 36 <-------| | | 39 ------->| | +-------+ 40 play | |--->|monitor|-------> Outputs 41 +-----------+ | mixer | [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | wm8996.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm8996.c - WM8996 audio codec interface 5 * Copyright 2011-2 Wolfson Microelectronics PLC. 108 regcache_mark_dirty(wm8996->regmap); \ 299 static const DECLARE_TLV_DB_SCALE(sidetone_tlv, -3600, 150, 0); 300 static const DECLARE_TLV_DB_SCALE(digital_tlv, -7200, 75, 1); 301 static const DECLARE_TLV_DB_SCALE(out_digital_tlv, -1200, 150, 0); 302 static const DECLARE_TLV_DB_SCALE(out_tlv, -900, 75, 0); 303 static const DECLARE_TLV_DB_SCALE(spk_tlv, -900, 150, 0); 304 static const DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0); [all …]
|
/openbmc/linux/drivers/net/usb/ |
H A D | rtl8150.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 #define DRIVER_DESC "rtl8150 based usb-ethernet driver" 86 #define RTL8150_TX_TIMEOUT (HZ) 155 return usb_control_msg_recv(dev->udev, 0, RTL8150_REQ_GET_REGS, in get_registers() 162 return usb_control_msg_send(dev->udev, 0, RTL8150_REQ_SET_REGS, in set_registers() 169 struct async_req *req = (struct async_req *)urb->context; in async_set_reg_cb() 170 int status = urb->status; in async_set_reg_cb() 173 dev_dbg(&urb->dev->dev, "%s failed with %d", __func__, status); in async_set_reg_cb() 180 int res = -ENOMEM; in async_set_registers() 192 req->rx_creg = cpu_to_le16(reg); in async_set_registers() [all …]
|
/openbmc/linux/drivers/usb/core/ |
H A D | hcd.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * (C) Copyright Johannes Erdfelt 1999-2001 9 * (C) Copyright David Brownell 2000-2002 23 #include <linux/dma-mapping.h> 45 /*-------------------------------------------------------------------------*/ 51 * HCD-specific behaviors/bugs. 70 * Roman Weissgaerber, Rory Bolt, Greg Kroah-Hartman, ... 73 * 2002-02-21 Pull in most of the usb_bus support from usb.c; some 75 * 2001-12-12 Initial patch version for Linux 2.5.1 kernel. 78 /*-------------------------------------------------------------------------*/ [all …]
|
/openbmc/linux/arch/x86/kernel/ |
H A D | tsc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 #include <asm/intel-family.h> 80 data->cyc2ns_offset = this_cpu_read(cyc2ns.data[idx].cyc2ns_offset); in __cyc2ns_read() 81 data->cyc2ns_mul = this_cpu_read(cyc2ns.data[idx].cyc2ns_mul); in __cyc2ns_read() 82 data->cyc2ns_shift = this_cpu_read(cyc2ns.data[idx].cyc2ns_shift); in __cyc2ns_read() 113 * cyc2ns_scale needs to be a 32-bit value so that 32-bit multiplication 114 * (64-bit result) can be used. 119 * -johnstul@us.ibm.com "math is hard, lets go shopping!" 163 * conversion algorithm shifting a 32-bit value (now specifies a 64-bit in __set_cyc2ns_scale() 164 * value) - refer perf_event_mmap_page documentation in perf_event.h. in __set_cyc2ns_scale() [all …]
|
/openbmc/linux/arch/x86/xen/ |
H A D | time.c | 1 // SPDX-License-Identifier: GPL-2.0 30 #include "xen-ops.h" 37 /* Get the TSC speed from Xen */ 41 &HYPERVISOR_shared_info->vcpu_info[0].time; in xen_tsc_khz() 53 src = &__this_cpu_read(xen_vcpu)->time; in xen_clocksource_read() 69 src = &__this_cpu_read(xen_vcpu)->time; in xen_sched_clock() 71 ret -= xen_sched_clock_offset; in xen_sched_clock() 79 struct pvclock_wall_clock *wall_clock = &(s->wc); in xen_read_wallclock() 82 vcpu_time = &get_cpu_var(xen_vcpu)->time; in xen_read_wallclock() 94 return -ENODEV; in xen_set_wallclock() [all …]
|
/openbmc/linux/tools/power/cpupower/po/ |
H A D | cs.po | 10 "Project-Id-Version: cs\n" 11 "Report-Msgid-Bugs-To: \n" 12 "POT-Creation-Date: 2011-03-08 17:03+0100\n" 13 "PO-Revision-Date: 2008-06-11 16:26+0200\n" 14 "Last-Translator: Karel Volný <kavol@seznam.cz>\n" 15 "Language-Team: Czech <diskuze@lists.l10n.cz>\n" 17 "MIME-Version: 1.0\n" 18 "Content-Type: text/plain; charset=UTF-8\n" 19 "Content-Transfer-Encoding: 8bit\n" 20 "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" [all …]
|