/linux-6.12.1/drivers/hwmon/ |
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 …]
|
D | aquacomputer_d5next.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * Aquacomputer devices send HID reports (with ID 0x01) every second to report 65 #define STATUS_UPDATE_INTERVAL (2 * HZ) /* In seconds */ 73 /* The HID report that the official software always sends 83 /* Secondary HID report values for Aquaero */ 91 /* Report IDs for legacy devices */ 127 /* Sensor report offsets for Aquaero fan controllers */ 138 /* Control report offsets for the Aquaero fan controllers */ 151 /* Sensor report offsets for the D5 Next pump */ 161 /* Control report offsets for the D5 Next pump */ [all …]
|
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 …]
|
/linux-6.12.1/Documentation/devicetree/bindings/input/touchscreen/ |
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 …]
|
/linux-6.12.1/Documentation/hwmon/ |
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 …]
|
D | sysfs-interface.rst | 5 through the sysfs interface. Since lm-sensors 3.0.0, libsensors is 6 completely chip-independent. It assumes that all the kernel drivers 10 This is a major improvement compared to lm-sensors 2. 22 For this reason, even if we aim at a chip-independent libsensors, it will 37 Up to lm-sensors 3.0.0, libsensors looks for hardware monitoring attributes 38 in the "physical" device directory. Since lm-sensors 3.0.1, attributes found 61 to cause an alarm) is chip-dependent. 69 ---------------- 76 ------------------------------------------------------------------------- 79 `[0-*]` denotes any positive number starting from 0 [all …]
|
/linux-6.12.1/Documentation/admin-guide/laptops/ |
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 …]
|
/linux-6.12.1/Documentation/ABI/testing/ |
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 156 - 1: Failed [all …]
|
/linux-6.12.1/drivers/hid/ |
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 …]
|
/linux-6.12.1/Documentation/spi/ |
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 …]
|
/linux-6.12.1/drivers/usb/host/ |
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 …]
|
/linux-6.12.1/drivers/s390/cio/ |
D | chp.c | 1 // SPDX-License-Identifier: GPL-2.0 31 #define CHP_INFO_UPDATE_INTERVAL 1*HZ 43 /* Map for channel-path status. */ 47 /* Time after which channel-path status may be outdated. */ 58 chpid_to_chp(chpid)->state = onoff; in set_chp_logically_online() 61 /* On success return 0 if channel-path is varied offline, 1 if it is varied 62 * online. Return -ENODEV if channel-path is not registered. */ 65 return (chpid_to_chp(chpid) ? chpid_to_chp(chpid)->state : -ENODEV); in chp_get_status() 69 * chp_get_sch_opm - return opm for subchannel 73 * used by the subchannel and the status of the associated channel-paths. [all …]
|
/linux-6.12.1/drivers/hid/usbhid/ |
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 35 #include <linux/hid-debug.h> 71 " 0x-prefixed hex"); 85 struct usbhid_device *usbhid = hid->driver_data; in hid_start_in() 87 spin_lock_irqsave(&usbhid->lock, flags); in hid_start_in() 88 if (test_bit(HID_IN_POLLING, &usbhid->iofl) && in hid_start_in() [all …]
|
/linux-6.12.1/drivers/net/ethernet/actions/ |
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 …]
|
/linux-6.12.1/drivers/mfd/ |
D | rave-sp.c | 1 // SPDX-License-Identifier: GPL-2.0+ 12 #include <linux/crc-itu-t.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 …]
|
/linux-6.12.1/drivers/net/phy/ |
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 …]
|
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 …]
|
/linux-6.12.1/sound/pci/echoaudio/ |
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 …]
|
/linux-6.12.1/Documentation/admin-guide/media/ |
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 …]
|
/linux-6.12.1/arch/x86/kernel/ |
D | tsc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 81 data->cyc2ns_offset = this_cpu_read(cyc2ns.data[idx].cyc2ns_offset); in __cyc2ns_read() 82 data->cyc2ns_mul = this_cpu_read(cyc2ns.data[idx].cyc2ns_mul); in __cyc2ns_read() 83 data->cyc2ns_shift = this_cpu_read(cyc2ns.data[idx].cyc2ns_shift); in __cyc2ns_read() 114 * cyc2ns_scale needs to be a 32-bit value so that 32-bit multiplication 115 * (64-bit result) can be used. 120 * -johnstul@us.ibm.com "math is hard, lets go shopping!" 164 * conversion algorithm shifting a 32-bit value (now specifies a 64-bit in __set_cyc2ns_scale() 165 * value) - refer perf_event_mmap_page documentation in perf_event.h. in __set_cyc2ns_scale() 172 data.cyc2ns_offset = ns_now - in __set_cyc2ns_scale() [all …]
|
/linux-6.12.1/sound/soc/codecs/ |
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 …]
|
/linux-6.12.1/drivers/usb/core/ |
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 …]
|
/linux-6.12.1/drivers/net/usb/ |
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 …]
|
/linux-6.12.1/arch/x86/xen/ |
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 …]
|
/linux-6.12.1/drivers/net/ethernet/meta/fbnic/ |
D | fbnic_fw.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/dma-mapping.h> 53 for (desc_idx = FBNIC_IPC_MBX_DESC_LEN; --desc_idx;) { in fbnic_mbx_init_desc_ring() 66 spin_lock_init(&fbd->fw_tx_lock); in fbnic_mbx_init() 70 memset(&fbd->mbx[i], 0, sizeof(struct fbnic_fw_mbx)); in fbnic_mbx_init() 72 /* Do not auto-clear the FW mailbox interrupt, let SW clear it */ in fbnic_mbx_init() 85 struct fbnic_fw_mbx *mbx = &fbd->mbx[mbx_idx]; in fbnic_mbx_map_msg() 86 u8 tail = mbx->tail; in fbnic_mbx_map_msg() 90 if (!mbx->ready || !fbnic_fw_present(fbd)) in fbnic_mbx_map_msg() 91 return -ENODEV; in fbnic_mbx_map_msg() [all …]
|