/linux/drivers/edac/ |
H A D | edac_device_sysfs.c | 14 #include <linux/module.h> 35 return sprintf(data, "%u\n", ctl_info->log_ue); in edac_device_ctl_log_ue_show() 42 /* if parameter is zero, turn off flag, if non-zero turn on flag */ in edac_device_ctl_log_ue_store() 43 ctl_info->log_ue = (simple_strtoul(data, NULL, 0) != 0); in edac_device_ctl_log_ue_store() 52 return sprintf(data, "%u\n", ctl_info->log_ce); in edac_device_ctl_log_ce_show() 59 /* if parameter is zero, turn off flag, if non-zero turn on flag */ in edac_device_ctl_log_ce_store() 60 ctl_info->log_ce = (simple_strtoul(data, NULL, 0) != 0); in edac_device_ctl_log_ce_store() 69 return sprintf(data, "%u\n", ctl_info->panic_on_ue); in edac_device_ctl_panic_on_ue_show() 76 /* if parameter is zero, turn off flag, if non-zero turn on flag */ in edac_device_ctl_panic_on_ue_store() 77 ctl_info->panic_on_ue = (simple_strtoul(data, NULL, 0) != 0); in edac_device_ctl_panic_on_ue_store() [all …]
|
H A D | edac_device.h | 10 * http://www.anime.net/~goemon/linux-ecc/ 15 * Refactored for multi-source files: 18 * Please look at Documentation/driver-api/edac.rst for more info about 59 * /L1-cache/ce_count 61 * /L2-cache/ce_count 64 * /L1-cache/ce_count 66 * /L2-cache/ce_count 97 * each block in each instance of the containing control structure can 108 struct edac_device_instance *instance; /* Up Pointer */ member 122 /* device instance control structure */ [all …]
|
H A D | edac_pci_sysfs.c | 9 #include <linux/module.h> 23 static int edac_pci_log_npe = 1; /* log PCI non-parity error errors */ 58 /**************************** EDAC PCI sysfs instance *******************/ 61 return sprintf(data, "%u\n", atomic_read(&pci->counters.pe_count)); in instance_pe_count_show() 67 return sprintf(data, "%u\n", atomic_read(&pci->counters.npe_count)); in instance_npe_count_show() 73 /* DEVICE instance kobject release() function */ 89 /* instance specific attribute structure */ 96 /* Function to 'show' fields from the edac_pci 'instance' structure */ 103 if (instance_attr->show) in edac_pci_instance_show() 104 return instance_attr->show(pci, buffer); in edac_pci_instance_show() [all …]
|
/linux/arch/arm/mach-omap2/ |
H A D | cm33xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2011-2012 Texas Instruments Incorporated - https://www.ti.com/ 20 #include "cm-regbits-34xx.h" 21 #include "cm-regbits-33xx.h" 30 * 0x0 func: Module is fully functional, including OCP 31 * 0x1 trans: Module is performing transition: wakeup, or sleep, or sleep 33 * 0x2 idle: Module is in Idle mode (only OCP part). It is functional if 35 * 0x3 disabled: Module is disabled and cannot be accessed 45 /* Read a register in a CM instance */ 57 /* Read-modify-write a register in CM */ [all …]
|
H A D | cminst44xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * OMAP4 CM instance functions 6 * Copyright (C) 2008-2011 Texas Instruments, Inc. 11 * or CM2 hardware modules. For example, the EMU_CM CM instance is in 12 * the PRM hardware module. What a mess... 26 #include "cm-regbits-34xx.h" 30 #include "prcm-common.h" 42 * 0x0 func: Module is fully functional, including OCP 43 * 0x1 trans: Module is performing transition: wakeup, or sleep, or sleep 45 * 0x2 idle: Module is in Idle mode (only OCP part). It is functional if [all …]
|
H A D | prminst44xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * OMAP4 PRM instance functions 18 #include "prcm-common.h" 23 #include "prm-regbits-44xx.h" 34 * omap_prm_base_init - Populates the prm partitions 37 * array used for read/write of prm module registers. 57 /* Read a register in a PRM instance */ 66 /* Write into a register in a PRM instance */ 75 /* Read-modify-write a register in PRM. Caller must lock */ 90 * omap4_prminst_is_hardreset_asserted - read the HW reset line state of [all …]
|
/linux/net/qrtr/ |
H A D | ns.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 8 #include <linux/module.h> 33 [QRTR_TYPE_NEW_SERVER] = "new-server", 34 [QRTR_TYPE_DEL_SERVER] = "del-server", 35 [QRTR_TYPE_DEL_CLIENT] = "del-client", 36 [QRTR_TYPE_RESUME_TX] = "resume-tx", 39 [QRTR_TYPE_NEW_LOOKUP] = "new-lookup", 40 [QRTR_TYPE_DEL_LOOKUP] = "del-lookup", 45 unsigned int instance; member 51 unsigned int instance; member [all …]
|
/linux/include/media/ |
H A D | media-dev-allocator.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * media-dev-allocator.h - Media Controller Device Allocator API 11 * This file adds a global ref-counted Media Controller Device Instance API. 14 * device instance. 24 * media_device_usb_allocate() - Allocate and return struct &media device 28 * @owner: struct module pointer %THIS_MODULE for the driver. 29 * %THIS_MODULE is null for a built-in driver. 40 struct module *owner); 42 * media_device_delete() - Release media device. Calls kref_put(). 46 * @owner: struct module pointer %THIS_MODULE for the driver. [all …]
|
/linux/kernel/trace/ |
H A D | kprobe_event_gen_test.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Test module for in-kernel kprobe event creation and generation. 8 #include <linux/module.h> 12 * This module is a simple test of basic functionality for in-kernel 20 * To test, select CONFIG_KPROBE_EVENT_GEN_TEST and build the module. 29 * To remove the events, remove the module: 94 return -ENOMEM; in test_gen_kprobe_cmd() 124 * the instance and event from disappearing from underneath in test_gen_kprobe_cmd() 126 * we're using the top-level instance which never goes away). in test_gen_kprobe_cmd() 136 ret = trace_array_set_clr_event(gen_kprobe_test->tr, in test_gen_kprobe_cmd() [all …]
|
H A D | synth_event_gen_test.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Test module for in-kernel synthetic event creation and generation. 8 #include <linux/module.h> 12 * This module is a simple test of basic functionality for in-kernel 21 * To test, select CONFIG_SYNTH_EVENT_GEN_TEST and build the module. 27 * You should see several events in the trace buffer - 31 * To remove the events, remove the module: 55 return -ENOMEM; in test_gen_synth_cmd() 92 * the instance and event from disappearing from underneath in test_gen_synth_cmd() 94 * we're using the top-level instance which never goes away). in test_gen_synth_cmd() [all …]
|
/linux/Documentation/driver-api/surface_aggregator/clients/ |
H A D | cdev.rst | 1 .. SPDX-License-Identifier: GPL-2.0+ 8 User-Space EC Interface (cdev) 11 The ``surface_aggregator_cdev`` module provides a misc-device for the SSAM 12 controller to allow for a (more or less) direct connection from user-space to 15 module is not loaded automatically, but instead must be loaded manually. 18 device-file. All functionality of this interface is provided via IOCTLs. 23 at https://github.com/linux-surface/surface-aggregator-module/tree/master/scripts/ssam. 31 Events can be received by reading from the device-file. The are represented by 37 interface, associated with a specific target category and device-file-instance. 39 instance, from which it can then be read. [all …]
|
/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 …]
|
/linux/drivers/scsi/ |
H A D | a2091.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/module.h> 34 struct Scsi_Host *instance = data; in a2091_intr() local 35 struct a2091_hostdata *hdata = shost_priv(instance); in a2091_intr() 36 unsigned int status = hdata->regs->ISTR; in a2091_intr() 42 spin_lock_irqsave(instance->host_lock, flags); in a2091_intr() 43 wd33c93_intr(instance); in a2091_intr() 44 spin_unlock_irqrestore(instance->host_lock, flags); in a2091_intr() 51 unsigned long len = scsi_pointer->this_residual; in dma_setup() 52 struct Scsi_Host *instance = cmd->device->host; in dma_setup() local [all …]
|
H A D | mvme147.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/module.h> 25 struct Scsi_Host *instance = data; in mvme147_intr() local 28 wd33c93_intr(instance); in mvme147_intr() 30 m147_pcc->dma_intr = 0x89; /* Ack and enable ints */ in mvme147_intr() 37 struct Scsi_Host *instance = cmd->device->host; in dma_setup() local 38 struct WD33C93_hostdata *hdata = shost_priv(instance); in dma_setup() 40 unsigned long addr = virt_to_bus(scsi_pointer->ptr); in dma_setup() 47 hdata->dma_dir = dir_in; in dma_setup() 51 cache_clear(addr, scsi_pointer->this_residual); in dma_setup() [all …]
|
/linux/drivers/platform/x86/ |
H A D | intel_scu_ipc.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * (C) Copyright 2008-2010,2015 Intel Corporation 10 * SCU has two IPC mechanism IPC-1 and IPC-2. IPC-1 is used between IA32 and 11 * SCU where IPC-2 is used between P-Unit and SCU. This driver delas with 12 * IPC-1 Driver provides an API for power control unit registers (e.g. MSIC) 24 #include <linux/module.h> 35 #define IPC_CMD_PCNTRL_M 2 /* Register read-modify-write */ 41 * To read or write information to the SCU, driver writes to IPC-1 memory 48 * the IPC-1 register block, causing an interrupt to the SCU 60 struct module *owner; [all …]
|
/linux/drivers/media/pci/ivtv/ |
H A D | ivtv-alsa-main.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 #include "ivtv-driver.h" 12 #include "ivtv-version.h" 13 #include "ivtv-alsa.h" 14 #include "ivtv-alsa-pcm.h" 48 return to_ivtv(v4l2_dev)->alsa; in to_snd_ivtv_card() 56 if (itvsc->v4l2_dev != NULL) in snd_ivtv_card_free() 57 to_ivtv(itvsc->v4l2_dev)->alsa = NULL; in snd_ivtv_card_free() 59 /* FIXME - take any other stopping actions needed */ in snd_ivtv_card_free() 68 snd_ivtv_card_free(sc->private_data); in snd_ivtv_card_private_free() [all …]
|
/linux/samples/ftrace/ |
H A D | sample-trace-array.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 #include <linux/module.h> 18 #include "sample-trace-array.h" 29 trace_array_set_clr_event(tr, "sample-subsystem", "sample_event", in trace_work_fn() 36 * timer is only for the purposes of the sample module to demonstrate access of 52 * Printing count value using trace_array_printk() - trace_printk() in simple_thread_func() 53 * equivalent for the instance buffers. in simple_thread_func() 72 trace_array_set_clr_event(tr, "sample-subsystem", "sample_event", true); in simple_thread() 75 * Adding timer - mytimer. This timer will disable tracing after in simple_thread() 90 * the trace array - "tr". We are done using the trace array, hence in simple_thread() [all …]
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | acpi.c | 1 // SPDX-License-Identifier: ISC 22 if (!ACPI_FAILURE(acpi_dev_get_property(adev, "module-instance", in brcmf_acpi_probe() 24 brcmf_dbg(INFO, "ACPI module-instance=%s\n", o->string.pointer); in brcmf_acpi_probe() 25 settings->board_type = devm_kasprintf(dev, GFP_KERNEL, in brcmf_acpi_probe() 27 o->string.pointer); in brcmf_acpi_probe() 29 brcmf_dbg(INFO, "No ACPI module-instance\n"); in brcmf_acpi_probe() 33 status = acpi_evaluate_object(adev->handle, "RWCV", NULL, &buf); in brcmf_acpi_probe() 35 if (!ACPI_FAILURE(status) && o && o->type == ACPI_TYPE_BUFFER && in brcmf_acpi_probe() 36 o->buffer.length >= 2) { in brcmf_acpi_probe() 40 memcpy(antenna_sku, o->buffer.pointer, 2); in brcmf_acpi_probe() [all …]
|
H A D | pno.h | 1 // SPDX-License-Identifier: ISC 17 * brcmf_pno_start_sched_scan - initiate scheduled scan on device. 26 * brcmf_pno_stop_sched_scan - terminate scheduled scan on device. 34 * brcmf_pno_wiphy_params - fill scheduled scan parameters in wiphy instance. 36 * @wiphy: wiphy instance to be used. 37 * @gscan: indicates whether the device has support for g-scan feature. 42 * brcmf_pno_attach - allocate and attach module information. 49 * brcmf_pno_detach - detach and free module information. 56 * brcmf_pno_find_reqid_by_bucket - find request id for given bucket index. 58 * @pi: pno instance used. [all …]
|
/linux/drivers/mcb/ |
H A D | mcb-internal.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 51 * struct chameleon_gdd - Chameleon General Device Descriptor 58 * @bar: BAR offset that must be added to module offset 59 * @inst: the instance number of the device, 0 is first instance 62 * @offset: beginning of the address window of desired module 63 * @size: size of the module's address window 86 * struct chameleon_bdd - Chameleon Bridge Device Descriptor 93 * @bar: BAR offset that must be added to module offset 94 * @inst: the instance number of the device, 0 is first instance
|
/linux/include/linux/ |
H A D | most.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * most.h - API for component and adapter drivers 5 * Copyright (C) 2013-2015, Microchip Technology Germany II GmbH & Co. KG 14 struct module; 60 * struct most_channel_capability - Channel capability 62 * The value is bitwise OR-combination of the values from the 66 * The value is bitwise OR-combination of the values from the 86 * -available_directions 87 * -available_datatypes 88 * -number_of_packet_buffers [all …]
|
/linux/fs/overlayfs/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 7 An overlay filesystem combines two filesystems - an 'upper' filesystem 22 "redirect_dir=off" module option or on a filesystem instance basis 53 "index=off" module option or on a filesystem instance basis with the 74 globally with the "nfs_export=off" module option or on a filesystem 75 instance basis with the "nfs_export=off" mount option. 88 Most users should say N here and enable this feature on a case-by- 120 module option or on a filesystem instance basis with the
|
/linux/drivers/media/pci/cx18/ |
H A D | cx18-alsa-main.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 13 #include <linux/module.h> 18 #include <media/v4l2-device.h> 23 #include "cx18-driver.h" 24 #include "cx18-version.h" 25 #include "cx18-alsa.h" 26 #include "cx18-alsa-pcm.h" 33 printk(KERN_INFO "%s: " fmt, "cx18-alsa", ## arg); \ 51 return to_cx18(v4l2_dev)->alsa; in to_snd_cx18_card() 59 if (cxsc->v4l2_dev != NULL) in snd_cx18_card_free() [all …]
|
/linux/include/uapi/sound/ |
H A D | snd_ar_tokens.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 34 /* container graph position Stream-Device */ 62 * %AR_TKN_U32_SUB_GRAPH_INSTANCE_ID: Sub Graph Instance Id 77 * %AR_TKN_U32_CONTAINER_INSTANCE_ID: Container Instance ID 99 * %AR_TKN_U32_MODULE_ID: Module ID 101 * %AR_TKN_U32_MODULE_INSTANCE_ID: Module Instanc [all...] |
/linux/drivers/scsi/bnx2i/ |
H A D | bnx2i_init.c | 3 * Copyright (c) 2006 - 2013 Broadcom Corporation 14 * Maintained by: QLogic-Storage-Upstream@qlogic.com 74 * bnx2i_identify_device - identifies NetXtreme II device type 84 hba->cnic_dev_type = 0; in bnx2i_identify_device() 85 if (test_bit(CNIC_F_BNX2_CLASS, &dev->flags)) { in bnx2i_identify_device() 86 if (hba->pci_did == PCI_DEVICE_ID_NX2_5706 || in bnx2i_identify_device() 87 hba->pci_did == PCI_DEVICE_ID_NX2_5706S) { in bnx2i_identify_device() 88 set_bit(BNX2I_NX2_DEV_5706, &hba->cnic_dev_type); in bnx2i_identify_device() 89 } else if (hba->pci_did == PCI_DEVICE_ID_NX2_5708 || in bnx2i_identify_device() 90 hba->pci_did == PCI_DEVICE_ID_NX2_5708S) { in bnx2i_identify_device() [all …]
|