/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/arch/um/os-Linux/ |
H A D | sigio.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2002 - 2008 Jeff Dike (jdike@{addtoit,linux.intel}.com) 9 #include <poll.h> 15 #include <init.h> 24 static int write_sigio_pid = -1; 30 * On the UML side, they are changed under the sigio_lock. 32 #define SIGIO_FDS_INIT {-1, -1} 38 struct pollfd *poll; member 61 n = poll(fds->poll, fds->used, -1); in write_sigio_thread() 65 printk(UM_KERN_ERR "write_sigio_thread : poll returned " in write_sigio_thread() [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/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/include/misc/ |
H A D | cxl.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 10 #include <linux/poll.h> 35 * - cxl_dev_context_init() 36 * - cxl_start_context() 37 * - cxl_stop_context() 38 * - cxl_start_context() 39 * - cxl_stop_context() 41 * - cxl_release_context() 65 * On pci_enabled_device(), the cxl driver will init a single cxl context for 70 * doesn't need to be released as this will be done by the PCI subsystem on hot [all …]
|
/linux/drivers/tty/vt/ |
H A D | vc_screen.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * /dev/vcsuN: similar to /dev/vcsaN but using 4-byte unicode values 14 * instead of 1-byte screen glyph values. 22 * aeb@cwi.nl - efter Friedas begravelse - 950211 24 * machek@k332.feld.cvut.cz - modified not to send characters to wrong console 25 * - fixed some fatal off-by-one bugs (0-- no longer == -1 -> looping and looping and looping...) 26 * - making it shorter - scr_readw are macros which expand in PRETTY long code 36 #include <linux/init.h> 44 #include <linux/poll.h> 64 * This relies on MAX_NR_CONSOLES being <= 63, meaning 63 actual consoles [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/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/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/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/Documentation/arch/x86/x86_64/ |
H A D | boot-options.rst | 1 .. SPDX-License-Identifier: GPL-2.0 27 This option will be useful if you have no interest in any 39 Do not opt-in to Local MCE delivery. Use legacy method 43 Disabled by default on AMD Fam10h and older because some BIOS 47 in a reboot. On Intel systems it is enabled by default. 52 Sets the time in us to wait for other CPUs on machine checks. 0 55 Don't overwrite the bios-set CMCI threshold. This boot option 62 Force-enable recoverable machine check code paths 73 Use IO-APIC. Default 76 Don't use the IO-APIC. [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/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. 46 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 (rwlock) 52 * We need a rwlock (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> 27 /*-------------------------------------------------------------------------*/ 37 /*-------------------------------------------------------------------------*/ 47 * battery-insert != device-on. 84 /*-------------------------------------------------------------------------*/ 108 (regstatus & TPS_REG_ONOFF) ? "off" : "(on)", in dbg_regstat() 141 (chgconfig & TPS_CHARGE_ENABLE) ? "" : "No"); in dbg_chgconf() [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/drivers/gpu/drm/ |
H A D | drm_file.c | 27 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 35 #include <linux/dma-fence.h> 39 #include <linux/poll.h> 58 * The deprecated ->load callback must be called after the driver is in drm_dev_needs_global_mutex() 59 * already registered. This means such drivers rely on the BKL to make in drm_dev_needs_global_mutex() 63 if (dev->driver->load || dev->driver->unload) in drm_dev_needs_global_mutex() 77 * Note that drm_compat_ioctl will be NULL if CONFIG_COMPAT=n, so there's no 89 * For the driver-side event interface see drm_event_reserve_init() and 92 * The memory mapping implementation will vary depending on how the driver 93 * manages memory. For GEM-based drivers this is drm_gem_mmap(). [all …]
|
/linux/drivers/s390/crypto/ |
H A D | ap_bus.c | 1 // SPDX-License-Identifier: GPL-2.0+ 19 #include <linux/init.h> 51 int ap_domain_index = -1; /* Adjunct Processor Domain Index */ 59 MODULE_PARM_DESC(poll_thread, "Turn on/off poll thread, default is 0 (off)."); 71 MODULE_PARM_DESC(useirq, "Use interrupt if available, default is 1 (on)."); 78 /* Hashtable of all queue devices on the AP bus */ 89 /* # of bindings complete since init */ 128 * In LPAR poll with 4kHz frequency. Poll every 250000 nanoseconds. 158 * ap_airq_ptr() - Get the address of the adapter interrupt indicator 160 * Returns the address of the local-summary-indicator of the adapter [all …]
|