| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | minimal.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 2 /* Copyright (c) 2016-2019 Mellanox Technologies. All rights reserved */ 9 #include <linux/module.h> 12 #include "core.h" 35 struct mlxsw_core *core; member 39 u8 max_modules_per_slot; /* Maximum number of modules per-slot. */ 49 u8 module; member 58 err = mlxsw_reg_query(mlxsw_m->core, MLXSW_REG(spad), spad_pl); in mlxsw_m_base_mac_get() 61 mlxsw_reg_spad_base_mac_memcpy_from(spad_pl, mlxsw_m->base_mac); in mlxsw_m_base_mac_get() 68 struct mlxsw_m *mlxsw_m = mlxsw_m_port->mlxsw_m; in mlxsw_m_port_open() [all …]
|
| H A D | core_env.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 10 #include "core.h" 31 struct mlxsw_core *core; member 33 u8 max_module_count; /* Maximum number of modules per-slot. */ 35 u8 max_eeprom_len; /* Maximum module EEPROM transaction length. */ 43 return mlxsw_env->line_cards[slot_index]->active; in __mlxsw_env_linecard_is_active() 51 mutex_lock(&mlxsw_env->line_cards_lock); in mlxsw_env_linecard_is_active() 53 mutex_unlock(&mlxsw_env->line_cards_lock); in mlxsw_env_linecard_is_active() 60 u8 slot_index, u8 module) in mlxsw_env_module_info_get() argument 64 return &mlxsw_env->line_cards[slot_index]->module_info[module]; in mlxsw_env_module_info_get() [all …]
|
| H A D | core_thermal.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 2 /* Copyright (c) 2016-2018 Mellanox Technologies. All rights reserved 14 #include "core.h" 43 { /* In range - 0-40% PWM */ 50 /* In range - 40-100% PWM */ 64 { /* In range - 0-40% PWM */ 71 /* In range - 40-100% PWM */ 114 int module; /* Module or gearbox number */ member 128 struct mlxsw_core *core; member 156 if (thermal->cdevs[i].cdev == cdev) in mlxsw_get_cooling_device_idx() [all …]
|
| H A D | core_hwmon.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 2 /* Copyright (c) 2015-2018 Mellanox Technologies. All rights reserved */ 12 #include "core.h" 60 struct mlxsw_core *core; member 71 struct mlxsw_hwmon_dev *mlxsw_hwmon_dev = mlxsw_hwmon_attr->mlxsw_hwmon_dev; in mlxsw_hwmon_temp_show() 72 struct mlxsw_hwmon *mlxsw_hwmon = mlxsw_hwmon_dev->hwmon; in mlxsw_hwmon_temp_show() 77 index = mlxsw_hwmon_get_attr_index(mlxsw_hwmon_attr->type_index, in mlxsw_hwmon_temp_show() 78 mlxsw_hwmon_dev->module_sensor_max); in mlxsw_hwmon_temp_show() 79 mlxsw_reg_mtmp_pack(mtmp_pl, mlxsw_hwmon_dev->slot_index, index, false, in mlxsw_hwmon_temp_show() 81 err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(mtmp), mtmp_pl); in mlxsw_hwmon_temp_show() [all …]
|
| /linux/sound/hda/common/ |
| H A D | bind.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * HD-audio codec driver binding 10 #include <linux/module.h> 13 #include <sound/core.h> 23 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_match() 25 container_of(drv, struct hda_codec_driver, core); in hda_codec_match() 28 u32 id = codec->probe_i in hda_codec_match() [all...] |
| /linux/Documentation/target/ |
| H A D | tcm_mod_builder.rst | 2 The TCM v4 fabric module script generator 7 This document is intended to be a mini-HOWTO for using the tcm_mod_builder.py 8 script to generate a brand new functional TCM v4 fabric .ko module of your very own, 13 mkdir -p /sys/kernel/config/target/$TCM_NEW_MOD 18 ->make_tpg(), ->drop_tpg(), ->make_wwn(), ->drop_wwn(). These are created 20 2) Generate basic infrastructure for loading/unloading LKMs and TCM/ConfigFS fabric module 22 3) Based on user defined T10 Proto_Ident for the new fabric module being built, 24 SPC-3 persistent reservation are automatically generated in $TCM_NEW_MOD/$TCM_NEW_MOD_fabric.c 29 tcm_mod_builder.py depends upon the mandatory '-p $PROTO_IDENT' and '-m 32 …target:/mnt/sdb/lio-core-2.6.git/Documentation/target# python tcm_mod_builder.py -p iSCSI -m tcm_n… [all …]
|
| /linux/rust/kernel/ |
| H A D | lib.rs | 1 // SPDX-License-Identifier: GPL-2.0 9 //! modules written in Rust) depends on [`core`] and this crate. 16 // Please see https://github.com/Rust-for-Linux/linux/issues/2 for details on 41 // Allow proc-macros to refer to `::kernel` inside the `kernel` crate (this crate). 103 pub mod module; 152 pub use module::{ 154 Module, 150 pub trait Module: Sized + Sync + Send { global() interface 210 as_ptr(&self) -> *mut bindings::module as_ptr() argument [all...] |
| /linux/Documentation/devicetree/bindings/arm/omap/ |
| H A D | ctrl.txt | 1 OMAP Control Module bindings 3 Control Module contains miscellaneous features under it based on SoC type. 5 described in [1]. Typically some clock nodes are also under control module. 7 control module driver itself. 11 [1] Documentation/devicetree/bindings/pinctrl/pinctrl-single.yaml 15 - compatible: Must be one of: 16 "ti,am3-scm" 17 "ti,am4-scm" 18 "ti,dm814-scrm" 19 "ti,dm816-scrm" [all …]
|
| H A D | prcm.txt | 5 each describing one module and the clock hierarchy under it. see [1] for 11 - compatible: Must be one of: 12 "ti,am3-prcm" 13 "ti,am4-prcm" 14 "ti,omap2-prcm" 15 "ti,omap3-prm" 16 "ti,omap3-cm" 17 "ti,omap4-cm1" 18 "ti,omap4-prm" 19 "ti,omap4-cm2" [all …]
|
| /linux/arch/arm/kernel/ |
| H A D | module-plts.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2014-2017 Linaro Ltd. <ard.biesheuvel@linaro.org> 9 #include <linux/module.h> 18 (PLT_ENT_STRIDE - 4)) 21 (PLT_ENT_STRIDE - 8)) 35 if (!ARRAY_SIZE(fixed_plts) || pltsec->plt_count) in prealloc_fixed() 37 pltsec->plt_count = ARRAY_SIZE(fixed_plts); in prealloc_fixed() 39 for (i = 0; i < ARRAY_SIZE(plt->ldr); ++i) in prealloc_fixed() 40 plt->ldr[i] = PLT_ENT_LDR; in prealloc_fixed() 42 BUILD_BUG_ON(sizeof(fixed_plts) > sizeof(plt->lit)); in prealloc_fixed() [all …]
|
| /linux/Documentation/scsi/ |
| H A D | scsi.rst | 1 .. SPDX-License-Identifier: GPL-2.0 9 https://www.tldp.org/HOWTO/SCSI-2.4-HOWTO . The LDP has single 18 The scsi-core (also known as the "mid level") contains the core of SCSI 20 The SCSI core support can be a module (scsi_mod.o), or it can be built into 21 the kernel. If the core is a module, it must be the first SCSI module 28 once the SCSI core is present in the kernel (either compiled in or loaded 29 as a module). The disk driver (sd_mod.o), CD-ROM driver (sr_mod.o), 44 devices. Its module name is osst.o .
|
| /linux/Documentation/filesystems/ |
| H A D | orangefs.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 OrangeFS is an LGPL userspace scale-out parallel storage system. It is ideal 51 On Fedora, install orangefs and orangefs-server:: 53 dnf -y install orangefs orangefs-server 64 pvfs2-client-core. 68 pvfs2-server -f /etc/orangefs/orangefs.conf 72 systemctl start orangefs-server 76 pvfs2-ping -m /pvfsmnt 78 Start the client. The module must be compiled in or loaded before this 81 systemctl start orangefs-client [all …]
|
| /linux/arch/mips/lantiq/falcon/ |
| H A D | sysctrl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 81 do {} while (--err && ((sysctl_r32(clk->module, reg) in sysctl_wait() 82 & clk->bits) != test)); in sysctl_wait() 84 pr_err("module de/activation failed %d %08X %08X %08X\n", in sysctl_wait() 85 clk->module, clk->bits, test, in sysctl_wait() 86 sysctl_r32(clk->module, reg) & clk->bits); in sysctl_wait() 91 sysctl_w32(clk->module, clk->bits, SYSCTL_CLKEN); in sysctl_activate() 92 sysctl_w32(clk->module, clk->bits, SYSCTL_ACT); in sysctl_activate() 93 sysctl_wait(clk, clk->bits, SYSCTL_ACTS); in sysctl_activate() 99 sysctl_w32(clk->module, clk->bits, SYSCTL_CLKCLR); in sysctl_deactivate() [all …]
|
| /linux/Documentation/driver-api/media/drivers/ |
| H A D | pvrusb2.rst | 1 .. SPDX-License-Identifier: GPL-2.0 9 ---------- 13 Its history started with the reverse-engineering effort by Björn 29 1. Low level wire-protocol implementation with the device. 38 tear-down, arbitration, and interaction with high level 47 conceivable API can be laid on top of the core driver. (Yes, the 61 -------- 70 -------------------------------------- 72 (Note: The term "module" used below generally refers to loosely 74 relation to the Linux kernel's concept of a loadable module.) [all …]
|
| /linux/include/linux/ |
| H A D | pci_hotplug.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * PCI HotPlug Core Functions 6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com) 18 * struct hotplug_slot_ops -the callbacks that the hotplug pci core can use 33 * The table of function pointers that is passed to the hotplug pci core by a 34 * hotplug pci driver. These functions are called by the hotplug pci core when 51 * struct hotplug_slot - used to register a physical slot with the hotplug pci core 54 * @owner: The module owner of this structure 55 * @mod_name: The module name (KBUILD_MODNAME) of this structure 60 /* Variables below this are for use only by the hotplug pci core. */ [all …]
|
| /linux/drivers/i2c/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 13 I2C (pronounce: I-squared-C) is a slow serial bus protocol used in 25 This I2C support can also be built as a module. If so, the module 26 will be called i2c-core. 46 Say Y here to use i2c-* device files, usually found in the /dev 47 directory on your system. They make it possible to have user-space 49 contained in the file <file:Documentation/i2c/dev-interface.rst>. 51 This support is also available as a module. If so, the module 52 will be called i2c-dev. 57 Say Y here if you want the I2C core to support the ability to [all …]
|
| /linux/drivers/char/tpm/st33zp24/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 5 STMicroelectronics ST33ZP24 core driver. It implements the core 9 To compile this driver as a module, choose m here. The module will be called 17 This module adds support for the STMicroelectronics TPM security chip 19 To compile this driver as a module, choose M here; the module will be 27 This module adds support for the STMicroelectronics TPM security chip 29 To compile this driver as a module, choose M here; the module will be
|
| /linux/drivers/iio/accel/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 10 tristate "Analog Devices ADIS16201 Dual-Axis Digital Inclinometer and Accelerometer" 15 Say Y here to build support for Analog Devices adis16201 dual-axis 18 To compile this driver as a module, say M here: the module will 22 tristate "Analog Devices ADIS16209 Dual-Axis Digital Inclinometer and Accelerometer" 27 Say Y here to build support for Analog Devices adis16209 dual-axis digital inclinometer 30 To compile this driver as a module, say M here: the module will be 37 tristate "Analog Devices ADXL313 3-Axis Digital Accelerometer I2C Driver" 43 ADXL313 3-axis digital accelerometer. 45 To compile this driver as a module, choose M here: the module [all …]
|
| /linux/drivers/platform/surface/aggregator/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0+ 2 # Copyright (C) 2019-2022 Maximilian Luz <luzmaximilian@gmail.com> 5 tristate "Microsoft Surface System Aggregator Module Subsystem and Drivers" 10 The Surface System Aggregator Module (Surface SAM or SSAM) is an 11 embedded controller (EC) found on 5th- and later-generation Microsoft 17 - EC access from ACPI via Surface ACPI Notify (5th- and 6th-generation) 18 - battery status information (all devices) 19 - thermal sensor access (all devices) 20 - performance mode / cooling mode control (all devices) 21 - clipboard detachment system control (Surface Book 2 and 3) [all …]
|
| /linux/drivers/clk/versatile/ |
| H A D | clk-versatile.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include <linux/clk-provider.h> 13 #include "clk-icst.h" 20 /* Base offset for the core module */ 60 const char *clk_name = np->name; in cm_osc_setup() 64 /* Remap the core module base if not done yet */ in cm_osc_setup() 69 pr_err("no parent on core module clock\n"); in cm_osc_setup() 75 pr_err("could not remap core module base\n"); in cm_osc_setup() 91 "arm,integrator-cm-auxosc", of_integrator_cm_osc_setup); 98 "arm,versatile-cm-auxosc", of_versatile_cm_osc_setup);
|
| /linux/rust/macros/ |
| H A D | module.rs | 1 // SPDX-License-Identifier: GPL-2.0 36 module: &'a str, in new() 43 fn new(module: &'a str) -> Self { in emit_base() 45 module, in emit_base() 54 // Built-in modules prefix their modinfo strings by `module.`. in emit_base() 55 format!("{module} in emit_base() 26 module: &'a str, global() field 327 pub(crate) fn module(ts: TokenStream) -> TokenStream { module() function [all...] |
| /linux/arch/arm/mach-versatile/ |
| H A D | integrator.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2000-2003 Deep Blue Solutions Ltd 24 #include <asm/mach-types.h> 27 #include "integrator-hardware.h" 28 #include "integrator-cm.h" 35 * cm_get - get the value from the CM_CTRL register 43 * cm_control - update the CM_CTRL register. 60 /* disable core module IRQs */ in cm_clear_irqs() 66 { .compatible = "arm,core-module-integrator"}, 75 pr_crit("no core module node found in device tree\n"); in cm_init() [all …]
|
| /linux/drivers/firmware/imx/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 18 The System Controller Firmware (SCFW) is a low-level system function 19 which runs on a dedicated Cortex-M core to provide power, clock, and 32 a low-level system function which runs on a dedicated Cortex-M 33 core that could provide cpu management features. 35 This driver can also be built as a module. 43 a low-level system function which runs on a dedicated Cortex-M 44 core that could provide Logical Machine management features. 46 This driver can also be built as a module. 54 a low-level system function which runs on a dedicated Cortex-M [all …]
|
| /linux/drivers/clk/renesas/ |
| H A D | renesas-cpg-mssr.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Renesas Clock Pulse Generator / Module Standby and Software Reset 7 * Based on clk-mstp.c, clk-rcar-gen2.c, and clk-rcar-gen3.c 14 #include <linux/clk-provider.h> 21 #include <linux/module.h> 27 #include <linux/reset-controller.h> 31 #include <dt-bindings/clock/renesas-cpg-mssr.h> 33 #include "renesas-cpg-mssr.h" 34 #include "clk-div6.h" 45 * Module Standby and Software Reset register offsets. [all …]
|
| /linux/include/linux/framer/ |
| H A D | framer-provider.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 20 * struct framer_ops - set of function pointers for performing framer operations 25 * @flags: OR-ed flags (FRAMER_FLAG_*) to ask for core functionality 26 * - @FRAMER_FLAG_POLL_STATUS: 27 * Ask the core to perform a polling to get the framer status and 31 * If the framer cannot detect this change, it can ask the core for 32 * a status polling. The core will call @get_status() periodically 35 * @owner: the module owner containing the ops 80 struct module *owner; 84 * struct framer_provider - represents the framer provider [all …]
|