| /linux/Documentation/devicetree/bindings/hwmon/ |
| H A D | ibm,occ-hwmon.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/hwmon/ibm,occ-hwmon.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: IBM On-Chip Controller (OCC) accessed from a service processor 10 - Eddie James <eajames@linux.ibm.com> 13 The POWER processor On-Chip Controller (OCC) helps manage power and 21 - ibm,p9-occ-hwmon 22 - ibm,p10-occ-hwmon 24 ibm,no-poll-on-init: [all …]
|
| /linux/samples/nitro_enclaves/ |
| H A D | ne_ioctl_sample.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. 11 * ----- 19 * https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html#cpu-lists 26 * echo <cpu-list> > /sys/module/nitro_enclaves/parameters/ne_cpus 46 * https://www.kernel.org/doc/html/latest/admin-guide/mm/hugetlbpage.html 48 * By default, the allocation of hugetlb pages are distributed on all possible 52 * /sys/devices/system/node/node<X>/hugepages/hugepages-2048kB/nr_hugepages 53 * /sys/devices/system/node/node<X>/hugepages/hugepages-1048576kB/nr_hugepages 55 * or, if not on a system with multiple NUMA nodes, can also set the number [all …]
|
| /linux/arch/powerpc/sysdev/ |
| H A D | i8259.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 27 * acknowledge feature or poll. How i8259_init() is called determines 28 * which is called. It should be noted that polling is broken on some 29 * IBM and Motorola PReP boxes so we must use the int-ack feature on them. 36 /* Either int-ack or poll for the IRQ */ in i8259_irq() 43 /* Perform an interrupt acknowledge cycle on controller 1. */ in i8259_irq() 44 outb(0x0C, 0x20); /* prepare for poll */ in i8259_irq() 49 * acknowledge on controller 2. in i8259_irq() 51 outb(0x0C, 0xA0); /* prepare for poll */ in i8259_irq() 61 * significant bit is not set then there is no valid in i8259_irq() [all …]
|
| /linux/drivers/macintosh/ |
| H A D | via-macii.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Device driver for the via ADB on (many) Mac II-class machines 5 * Based on the original ADB keyboard handler Copyright (c) 1997 Alan Cox 13 * 1999-08-02 (jmt) - Initial rewrite for Unified ADB. 14 * 2000-03-29 Tony Mantler <tonym@mac.linux-m68k.org> 15 * - Big overhaul, should actually work now. 16 * 2006-12-31 Finn Thain - Another overhaul. 24 * ftp://ftp.apple.com/developer/Tool_Chest/Devices_-_Hardware/Apple_Desktop_Bus/ 32 #include <linux/init.h> 39 /* VIA registers - spaced 0x200 bytes apart */ [all …]
|
| /linux/drivers/isdn/mISDN/ |
| H A D | dsp_core.c | 3 * Based on source code structure by 12 * Real-time tone generation 14 * Real-time cross-connection and conferrence 23 * The dsp module provides layer 2 for b-channels (64kbit). It provides 26 * - (1) generation of tones 27 * - (2) detection of dtmf tones 28 * - (3) crossconnecting and conferences (clocking) 29 * - (4) echo generation for delay test 30 * - (5) volume control 31 * - (6) disable receive data [all …]
|
| /linux/arch/arm/mach-omap2/ |
| H A D | wd_timer.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * OMAP2+ MPU WD_TIMER-specific code 12 #include <linux/platform_data/omap-wd-timer.h> 23 * settings, WDT module is reset during init. This enables the watchdog 25 * during init. Otherwise the system would reboot as per the default 37 return -EINVAL; in omap2_wd_timer_disable() 43 oh->name, __func__); in omap2_wd_timer_disable() 44 return -EINVAL; in omap2_wd_timer_disable() 60 * omap2_wd_timer_reset - reset and disable the WDTIMER IP block 63 * After the WDTIMER IP blocks are reset on OMAP2/3, we must also take [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
| H A D | base.c | 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 32 if (therm->func->temp_get) in nvkm_therm_temp_get() 33 return therm->func->temp_get(therm); in nvkm_therm_temp_get() 34 return -ENODEV; in nvkm_therm_temp_get() 40 struct nvbios_therm_trip_point *trip = therm->fan->bios.trip, in nvkm_therm_update_trip() 42 *last_trip = therm->last_trip; in nvkm_therm_update_trip() 43 u8 temp = therm->func->temp_get(therm); in nvkm_therm_update_trip() 48 for (i = 0; i < therm->fan->bios.nr_fan_trip; i++) { in nvkm_therm_update_trip() 54 if (last_trip && temp <= (last_trip->temp) && in nvkm_therm_update_trip() 55 temp > (last_trip->temp - last_trip->hysteresis)) in nvkm_therm_update_trip() [all …]
|
| /linux/include/uapi/linux/ |
| H A D | fuse.h | 1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) */ 4 Copyright (C) 2001-2008 Miklos Szeredi <miklos@szeredi.hu> 9 This -- and only this -- header file may also be distributed under 12 Copyright (C) 2001-2007 Miklos Szeredi. All rights reserved. 26 ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 30 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 42 * - add the following messages: 48 * - add padding to messages to accommodate 32-bit servers on 64-bit kernels 51 * - add FOPEN_DIRECT_IO and FOPEN_KEEP_CACHE flags 52 * - add FUSE_FSYNCDIR message [all …]
|
| /linux/drivers/input/mouse/ |
| H A D | psmouse-base.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 1999-2002 Vojtech Pavlik 6 * Copyright (c) 2003-2004 Dmitry Torokhov 20 #include <linux/init.h> 111 * sysfs). We could use a per-device semaphore but since there 137 x = packet[1] ? packet[1] - ((packet[0] << 4) & 0x100) : 0; in psmouse_report_standard_motion() 138 y = packet[2] ? packet[2] - ((packet[0] << 3) & 0x100) : 0; in psmouse_report_standard_motion() 141 input_report_rel(dev, REL_Y, -y); in psmouse_report_standard_motion() 156 struct input_dev *dev = psmouse->dev; in psmouse_process_byte() 157 u8 *packet = psmouse->packet; in psmouse_process_byte() [all …]
|
| /linux/drivers/media/usb/em28xx/ |
| H A D | em28xx-input.c | 1 // SPDX-License-Identifier: GPL-2.0+ 13 #include <linux/init.h> 33 dev_printk(KERN_DEBUG, &ir->dev->intf->dev, \ 54 /* poll decoder */ 69 * I2C IR based get keycodes - should be used with ir-kbd-i2c 78 /* poll IR chip */ in em28xx_get_key_terratec() 83 return -EIO; in em28xx_get_key_terratec() 88 * down, while 0xff indicates that no button is hold down. in em28xx_get_key_terratec() 109 /* poll IR chip */ in em28xx_get_key_em_haup() 113 return -EIO; in em28xx_get_key_em_haup() [all …]
|
| /linux/drivers/edac/ |
| H A D | i82860_edac.c | 13 #include <linux/init.h> 59 static struct pci_dev *mci_pdev; /* init dev: in case that AGP code 69 pdev = to_pci_dev(mci->pdev); in i82860_get_error_info() 72 * This is a mess because there is no atomic way to read all the in i82860_get_error_info() 76 pci_read_config_word(pdev, I82860_ERRSTS, &info->errsts); in i82860_get_error_info() 77 pci_read_config_dword(pdev, I82860_EAP, &info->eap); in i82860_get_error_info() 78 pci_read_config_word(pdev, I82860_DERRCTL_STS, &info->derrsyn); in i82860_get_error_info() 79 pci_read_config_word(pdev, I82860_ERRSTS, &info->errsts2); in i82860_get_error_info() 85 * is valid. If there is a change then there is a CE no info and the in i82860_get_error_info() 88 if (!(info->errsts2 & 0x0003)) in i82860_get_error_info() [all …]
|
| H A D | i82875p_edac.c | 13 * Note: E7210 appears same as D82875P - zhenyu.z.wang at intel.com 17 #include <linux/init.h> 43 /* Intel 82875p register addresses - device 0 function 0 - DRAM Controller */ 64 * 9 non-DRAM lock error (ndlock) 79 * 9 SERR on non-DRAM lock 80 * 8 SERR on ECC UE 81 * 7 SERR on ECC CE 82 * 6 target abort on high exception 85 * 3 SERR on invalid AGP access 87 * 1 SERR on unsupported AGP command [all …]
|
| H A D | i82443bxgx_edac.c | 8 * Written by Tim Small <tim@buttersideup.com>, based on work by Linux 20 * not completely so - I haven't studied them in enough detail to know 25 #include <linux/init.h> 38 * rows" "The 82443BX supports multiple-bit error detection and 39 * single-bit error correction when ECC mode is enabled and 40 * single/multi-bit error detection when correction is disabled. 42 * on a QWord basis. Partial QWord writes require a read-modify-write 48 * error within the same QWord would result in a double-bit error 50 * it requires no software intervention to correct the data in memory." 65 * row is non-ECC */ [all …]
|
| /linux/arch/x86/kernel/cpu/mce/ |
| H A D | dev-mcelog.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include <linux/poll.h> 28 * This avoids deadlocks on printk locks without having to break locks. Also 42 if (mce->kflags & MCE_HANDLED_CEC) in dev_mce_log() 47 entry = mcelog->next; in dev_mce_log() 53 if (entry >= mcelog->len) { in dev_mce_log() 54 set_bit(MCE_OVERFLOW, (unsigned long *)&mcelog->flags); in dev_mce_log() 58 mcelog->next = entry + 1; in dev_mce_log() 60 memcpy(mcelog->entry + entry, mce, sizeof(struct mce)); in dev_mce_log() 61 mcelog->entry[entry].finished = 1; in dev_mce_log() [all …]
|
| /linux/drivers/input/serio/ |
| H A D | userio.c | 20 #include <linux/init.h> 27 #include <linux/poll.h> 51 * userio_device_write - Write data from serio to a userio device in userspace 57 struct userio_device *userio = id->port_data; in userio_device_write() 59 scoped_guard(spinlock_irqsave, &userio->buf_lock) { in userio_device_write() 60 userio->buf[userio->head] = val; in userio_device_write() 61 userio->head = (userio->head + 1) % USERIO_BUFSIZE; in userio_device_write() 63 if (userio->head == userio->tail) in userio_device_write() 68 wake_up_interruptible(&userio->waitq); in userio_device_write() 78 return -ENOMEM; in userio_char_open() [all …]
|
| /linux/drivers/isdn/hardware/mISDN/ |
| H A D | hfcpci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * hfcpci.c low level driver for CCD's hfc-pci based cards 7 * based on existing driver for CCD hfc ISA cards 8 * type approval valid for HFC-S PCI A based card 10 * Copyright 1999 by Werner Cornelius (werner@isdn-development.de) 16 * NOTE: only one poll value must be given for all cards 19 * poll: 20 * NOTE: only one poll value must be given for all cards 27 * Also note that the value depends on the kernel timer frequency. 47 static uint poll, tics; variable [all …]
|
| /linux/drivers/virt/nitro_enclaves/ |
| H A D | ne_misc_dev.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. 26 #include <linux/poll.h> 36 * NE_CPUS_SIZE - Size for max 128 CPUs, for now, in a cpu-list string, comma 43 * NE_EIF_LOAD_OFFSET - The offset where to copy the Enclave Image Format (EIF) 49 * NE_MIN_ENCLAVE_MEM_SIZE - The minimum memory size an enclave can be launched 55 * NE_MIN_MEM_REGION_SIZE - The minimum size of an enclave memory region. 60 * NE_PARENT_VM_CID - The CID for the vsock device of the primary / parent VM. 101 /* https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html#cpu-lists */ 102 MODULE_PARM_DESC(ne_cpus, "<cpu-list> - CPU pool used for Nitro Enclaves"); [all …]
|
| /linux/fs/ |
| H A D | eventpoll.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 #include <linux/init.h> 18 #include <linux/poll.h> 48 * 2) ep->mtx (mutex) 49 * 3) ep->lock (spinlock) 52 * We need a spinlock (ep->lock) because we manipulate objects 53 * from inside the poll callback, that might be triggered from 55 * So we can't sleep inside the poll callback and hence we need 59 * mutex (ep->mtx). It is acquired during the event transfer loop, 68 * It is necessary to acquire multiple "ep->mtx"es at once in the [all …]
|
| /linux/drivers/mfd/ |
| H A D | tps65010.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * tps65010 - driver for tps6501x power management chips 6 * Copyright (C) 2004-2005 David Brownell 11 #include <linux/init.h> 28 /*-------------------------------------------------------------------------*/ 38 /*-------------------------------------------------------------------------*/ 48 * battery-insert != device-on. 85 /*-------------------------------------------------------------------------*/ 109 (regstatus & TPS_REG_ONOFF) ? "off" : "(on)", in dbg_regstat() 142 (chgconfig & TPS_CHARGE_ENABLE) ? "" : "No"); in dbg_chgconf() [all …]
|
| /linux/include/linux/ |
| H A D | vga_switcheroo.h | 2 * vga_switcheroo.h - Support for laptop with dual GPU using one set of outputs 22 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 39 * enum vga_switcheroo_handler_flags_t - handler flags bitmask 47 * skip the AUX handshake and set up its output with these pre-calibrated 59 * enum vga_switcheroo_state - client power state 61 * @VGA_SWITCHEROO_ON: on 76 * enum vga_switcheroo_client_id - client identifier 82 * @VGA_SWITCHEROO_MAX_CLIENTS: currently no more than two GPUs are supported 94 * struct vga_switcheroo_handler - handler callbacks 95 * @init: initialize handler. [all …]
|
| /linux/drivers/net/usb/ |
| H A D | rndis_host.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 26 * - Power management in particular relies on information that's scattered 29 * - There are various undocumented protocol requirements, such as the 30 * need to send unused garbage in control-OUT messages. 31 * - In some cases, MS-Windows will emit undocumented requests; this 34 * Moreover there's a no-open-specs variant of RNDIS called "ActiveSync". 37 * favor of such non-proprietary alternatives as CDC Ethernet or the newer (and 47 netdev_dbg(dev->net, "rndis status urb, len %d stat %d\n", in rndis_status() 48 urb->actual_length, urb->status); in rndis_status() 60 struct cdc_state *info = (void *)&dev->data; in rndis_msg_indicate() [all …]
|
| /linux/drivers/gpu/drm/imagination/ |
| H A D | pvr_rogue_fwif_sf.h | 1 /* SPDX-License-Identifier: GPL-2.0-only OR MIT */ 47 * - --- ---- ---- ---- ---- ---- ---- ---- 48 * 0-11: id number 49 * 12-15: group id number 50 * 16-19: number of parameters 51 * 20-27: unused 52 * 28-30: active: identify SF packet, otherwise regular int32 114 "UFO PR-Check: [0x%08.8x] is 0x%08.8x requires >= 0x%08.8x" }, 116 "UFO SPM PR-Checks for FWCtx 0x%08.8x" }, 118 …"UFO SPM special PR-Check: [0x%08.8x] is 0x%08.8x requires >= ????????, [0x%08.8x] is ???????? req… [all …]
|
| /linux/fs/ocfs2/dlmfs/ |
| H A D | dlmfs.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 13 /* Simple VFS hooks based on: */ 28 #include <linux/init.h> 30 #include <linux/backing-dev.h> 31 #include <linux/poll.h> 58 * via standard usage. For example, Linux's default poll always returns 59 * EPOLLIN, so there is no way for a caller of poll(2) to know when dlmfs 60 * added poll support. Instead, we provide this list of new capabilities. 62 * Capabilities is a read-only attribute. We do it as a module parameter 67 * distinct from the locking protocol, which is concerned with inter-node [all …]
|
| /linux/lib/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 16 depends on RAID6_PQ 19 Benchmark all available RAID6 PQ functions on init and choose the 31 converting bitfields between a CPU-usable representation and a 33 - Is little endian (bytes are reversed within a 32-bit group) 34 - The least-significant 32-bit word comes first (within a 64-bit 36 - The most significant bit of a byte is at its right (bit 0 of a 45 depends on PACKING && KUNIT 50 For more information on KUnit and unit tests in general, 51 please refer to the KUnit documentation in Documentation/dev-tools/kunit/. [all …]
|
| /linux/drivers/pnp/pnpbios/ |
| H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * pnpbios -- PnP BIOS driver 5 * This driver provides access to Plug-'n'-Play services provided by 25 * Adam Belay - <ambx1@neo.rr.com> - March 16, 2003 30 * integrated core and proc init system 36 #include <linux/init.h> 93 return -ENOMEM; in pnp_dock_event() 96 return -ENOMEM; in pnp_dock_event() 112 /* hint that policy agent should enter no-stdout debug mode */ in pnp_dock_event() 115 /* extensible set of named bus-specific parameters, in pnp_dock_event() [all …]
|