Home
last modified time | relevance | path

Searched +full:device +full:- +full:level (Results 1 – 25 of 1084) sorted by relevance

12345678910>>...44

/linux-6.14.4/rust/kernel/
Ddevice.rs1 // SPDX-License-Identifier: GPL-2.0
5 //! C header: [`include/linux/device.h`](srctree/include/linux/device.h)
17 /// A reference-counted device.
19 /// This structure represents the Rust abstraction for a C `struct device`. This implementation
20 /// abstracts the usage of an already existing C `struct device` within Rust code that we get
25 /// A temporary one is bound to the lifetime of the C `struct device` pointer used for creation.
26 /// A permanent instance is always reference-counted and hence not restricted by any lifetime
30 /// specific device structure (e.g. `pci::Device`). This is useful for passing it to drivers in
31 /// `T::probe()`, such that a driver can store the `ARef<Device>` (equivalent to storing a
32 /// `struct device` pointer in a C driver) for arbitrary purposes, e.g. allocating DMA coherent
[all …]
/linux-6.14.4/drivers/platform/x86/
Dtoshiba_haps.c1 // SPDX-License-Identifier: GPL-2.0-or-later
36 return -EIO; in toshiba_haps_reset_protection()
42 static int toshiba_haps_protection_level(acpi_handle handle, int level) in toshiba_haps_protection_level() argument
46 status = acpi_execute_simple_method(handle, "PTLV", level); in toshiba_haps_protection_level()
48 pr_err("Error while setting the protection level\n"); in toshiba_haps_protection_level()
49 return -EIO; in toshiba_haps_protection_level()
52 pr_debug("HDD protection level set to: %d\n", level); in toshiba_haps_protection_level()
58 static ssize_t protection_level_show(struct device *dev, in protection_level_show()
63 return sprintf(buf, "%i\n", haps->protection_level); in protection_level_show()
66 static ssize_t protection_level_store(struct device *dev, in protection_level_store()
[all …]
/linux-6.14.4/include/linux/
Ddev_printk.h1 // SPDX-License-Identifier: GPL-2.0
3 * dev_printk.h - printk messages helpers for devices
5 * Copyright (c) 2001-2003 Patrick Mochel <[email protected]>
6 * Copyright (c) 2004-2009 Greg Kroah-Hartman <[email protected]>
7 * Copyright (c) 2008-2009 Novell Inc.
22 struct device;
29 char device[PRINTK_INFO_DEVICE_LEN]; member
35 int dev_vprintk_emit(int level, const struct device *dev,
38 int dev_printk_emit(int level, const struct device *dev, const char *fmt, ...);
41 void _dev_printk(const char *level, const struct device *dev,
[all …]
Dpm_opp.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (C) 2009-2010 Texas Instruments Incorporated.
22 struct device;
31 * struct dev_pm_opp_supply - Power supply voltage/current values
35 * @u_amp: Maximum current drawn by the device in microamperes
36 * @u_watt: Power used by the device in microwatts
49 typedef int (*config_regulators_t)(struct device *dev,
53 typedef int (*config_clks_t)(struct device *dev, struct opp_table *opp_table,
57 * struct dev_pm_opp_config - Device OPP configuration values
65 * @required_dev: The required OPP device.
[all …]
/linux-6.14.4/drivers/acpi/
Dacpi_video.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * video.c - ACPI Video Driver
7 * Copyright (C) 2006 Thomas Tuttle <linux-[email protected]>
32 #define ACPI_VIDEO_DEVICE_NAME "Video Device"
52 static int report_key_events = -1;
57 static int hw_changes_brightness = -1;
61 "a hotkey is pressed: -1: auto, 0: normal 1: hw-changes-brightness");
78 static int acpi_video_bus_add(struct acpi_device *device);
79 static void acpi_video_bus_remove(struct acpi_device *device);
89 ACPI_VIDEO_AC_LEVEL, /* level when machine has full power */
[all …]
/linux-6.14.4/include/linux/comedi/
Dcomedidev.h1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * header file for kernel-only structures, variables, and constants
6 * COMEDI - Linux Control and Measurement Device Interface
7 * Copyright (C) 1997-2000 David A. Schleef <[email protected]>
13 #include <linux/dma-mapping.h>
28 * struct comedi_subdevice - Working data for a COMEDI subdevice
29 * @device: COMEDI device to which this subdevice belongs. (Initialized by
31 * @index: Index of this subdevice within device's array of subdevices.
34 * the low-level driver.)
36 * low-level driver.)
[all …]
/linux-6.14.4/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
Dgk20a.c53 struct nvkm_clk *clk = pmu->base.subdev.device->clk; in gk20a_pmu_dvfs_target()
61 struct nvkm_clk *clk = pmu->base.subdev.device->clk; in gk20a_pmu_dvfs_get_cur_state()
63 *state = clk->pstate; in gk20a_pmu_dvfs_get_cur_state()
70 struct gk20a_pmu_dvfs_data *data = pmu->data; in gk20a_pmu_dvfs_get_target_state()
71 struct nvkm_clk *clk = pmu->base.subdev.device->clk; in gk20a_pmu_dvfs_get_target_state()
72 int cur_level, level; in gk20a_pmu_dvfs_get_target_state() local
74 /* For GK20A, the performance level is directly mapped to pstate */ in gk20a_pmu_dvfs_get_target_state()
75 level = cur_level = clk->pstate; in gk20a_pmu_dvfs_get_target_state()
77 if (load > data->p_load_max) { in gk20a_pmu_dvfs_get_target_state()
78 level = min(clk->state_nr - 1, level + (clk->state_nr / 3)); in gk20a_pmu_dvfs_get_target_state()
[all …]
/linux-6.14.4/Documentation/infiniband/
Dcore_locking.rst7 both low-level drivers that sit below the midlayer and upper level
13 With the following exceptions, a low-level driver implementation of
17 - create_ah
18 - modify_ah
19 - query_ah
20 - destroy_ah
21 - post_send
22 - post_recv
23 - poll_cq
24 - req_notify_cq
[all …]
/linux-6.14.4/drivers/scsi/esas2r/
Desas2r_log.c5 * Copyright (c) 2001-2013 ATTO Technology, Inc.
21 * LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
40 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
48 * the event_log_level module parameter controls the level of messages that are
49 * written to the system log. the default level of messages that are written
57 * to the system log. if critical, warning, and information-level messages are
70 …"Specifies the level of events to report to the system log. Critical and warning level events are…
79 * translates an esas2r-defined logging event level to a kernel logging level.
81 * @param [in] level the esas2r-defined logging event level to translate
83 * @return the corresponding kernel logging level.
[all …]
/linux-6.14.4/Documentation/scsi/
Dscsi_mid_low_api.rst1 .. SPDX-License-Identifier: GPL-2.0
4 SCSI mid_level - lower_level driver interface
9 This document outlines the interface between the Linux SCSI mid level and
10 SCSI lower level drivers. Lower level drivers (LLDs) are variously called
14 (SCSI terminology, see SAM-3 at http://www.t10.org) sends SCSI commands
22 Examples are the usb-storage driver (found in the drivers/usb/storage
30 HBAs. These HBAs might be either on PCI daughter-boards or built into
33 has its own PCI device address. [The one-to-one correspondence between
34 a SCSI host and a PCI device is common but not required (e.g. with
37 The SCSI mid level isolates an LLD from other layers such as the SCSI
[all …]
/linux-6.14.4/drivers/gpu/drm/imagination/
Dpvr_mmu.c1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
17 #include <linux/dma-mapping.h>
23 #define PVR_MASK_FROM_SIZE(size_) (~((size_) - U64_C(1)))
26 * The value of the device page size (%PVR_DEVICE_PAGE_SIZE) is currently
28 * ensures that the selected host page size corresponds to a valid device page
56 # error Unsupported device page size PVR_DEVICE_PAGE_SIZE
61 (PVR_DEVICE_PAGE_SHIFT - PVR_SHIFT_FROM_SIZE(SZ_4K)))
64 PVR_MMU_SYNC_LEVEL_NONE = -1,
77 * pvr_mmu_set_flush_flags() - Set MMU cache flush flags for next call to
79 * @pvr_dev: Target PowerVR device.
[all …]
/linux-6.14.4/Documentation/ABI/obsolete/
Dsysfs-bus-usb1 What: /sys/bus/usb/devices/.../power/level
6 Each USB device directory will contain a file named
7 power/level. This file holds a power-level setting for
8 the device, either "on" or "auto".
10 "on" means that the device is not allowed to autosuspend,
12 be honored. "auto" means the device will autosuspend
17 level. The "on" level is meant for administrative uses.
18 If you want to suspend a device immediately but leave it
22 Device not capable of proper suspend and resume should be
23 left in the "on" level. Although the USB spec requires
[all …]
/linux-6.14.4/Documentation/firmware-guide/acpi/
Dvideo_extension.rst1 .. SPDX-License-Identifier: GPL-2.0
10 defining the video POST device, retrieving EDID information or to
12 only. It may or may not work for your integrated video device.
16 Export a sysfs interface for user space to control backlight level
19 If the ACPI table has a video device, and acpi_backlight=vendor kernel
20 command line is not present, the driver will register a backlight device
22 interface control. For every registered class device, there will be a
26 Documentation/ABI/stable/sysfs-class-backlight.
32 get the brightness level the firmware thinks it is at;
36 on write, control method _BCM will run to set the requested brightness level;
[all …]
/linux-6.14.4/drivers/block/drbd/
Ddrbd_polymorph_printk.h1 /* SPDX-License-Identifier: GPL-2.0-only */
15 #define __drbd_printk_drbd_device_prep(device) \ argument
16 const struct drbd_device *__d = (device); \
17 const struct drbd_resource *__r = __d->resource
19 #define __drbd_printk_drbd_device_args() __r->name, __d->vnr, __d->minor
25 __d = (peer_device)->device; \
26 __r = __d->resource
30 __r->name, __d->vnr, __d->minor
36 #define __drbd_printk_drbd_resource_args() __r->name
41 const struct drbd_resource *__r = __c->resource
[all …]
/linux-6.14.4/drivers/iommu/intel/
Dpasid.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * pasid.h - PASID idr, table and entry header
22 #define is_pasid_enabled(entry) (((entry)->lo >> 3) & 0x1)
23 #define get_pasid_dir_size(entry) (1 << ((((entry)->lo >> 9) & 0x7) + 7))
29 * The PASID_FLAG_FL5LP flag Indicates using 5-level paging for first-
30 * level translation, otherwise, 4-level paging will be used.
57 return READ_ONCE(pde->val) & PASID_PTE_PRESENT; in pasid_pde_is_present()
67 return phys_to_virt(READ_ONCE(pde->val) & PDE_PFN_MASK); in get_pasid_table_from_pde()
73 return READ_ONCE(pte->val[0]) & PASID_PTE_PRESENT; in pasid_pte_is_present()
79 return READ_ONCE(pte->val[0]) & PASID_PTE_FPD; in pasid_pte_is_fault_disabled()
[all …]
/linux-6.14.4/Documentation/admin-guide/
Dthunderbolt.rst1 .. SPDX-License-Identifier: GPL-2.0
7 some differences at the register level among other things. Connection
18 software connection manager in Linux also advertises security level
21 the software connection manager only supports ``user`` security level and
25 -----------------------------------
27 should be a userspace tool that handles all the low-level details, keeps
31 found in ``Documentation/ABI/testing/sysfs-bus-thunderbolt``.
33 Those users who just want to connect any device without any sort of
35 ``/etc/udev/rules.d/99-local.rules``::
44 security levels available. Intel Titan Ridge added one more security level
[all …]
/linux-6.14.4/drivers/md/
Dmd-autodetect.c1 // SPDX-License-Identifier: GPL-2.0
33 int level; member
41 * Parse the command-line parameters given our kernel, but do not
42 * actually try to invoke the MD device now; that is handled by
43 * md_setup_drive after the low-level disk drivers have initialised.
49 * instead of just one. -- KTK
50 * 18May2000: Added support for persistent-superblock arrays:
51 * md=n,0,factor,fault,device-list uses RAID0 for device n
52 * md=n,-1,factor,fault,device-list uses LINEAR for device n
53 * md=n,device-list reads a RAID superblock from the devices
[all …]
/linux-6.14.4/drivers/sh/intc/
Duserimask.c2 * Support for hardware-assisted userspace interrupt masking.
13 #include <linux/device.h>
23 show_intc_userimask(struct device *dev, in show_intc_userimask()
30 store_intc_userimask(struct device *dev, in store_intc_userimask()
34 unsigned long level; in store_intc_userimask() local
37 ret = kstrtoul(buf, 10, &level); in store_intc_userimask()
42 * Minimal acceptable IRQ levels are in the 2 - 16 range, but in store_intc_userimask()
45 * Level 1 is a special case on some CPUs in that it's not in store_intc_userimask()
47 * certain level, we don't care about this limitation here. in store_intc_userimask()
48 * Level 0 on the other hand equates to user masking disabled. in store_intc_userimask()
[all …]
/linux-6.14.4/drivers/thermal/
Dkhadas_mcu_fan.c1 // SPDX-License-Identifier: GPL-2.0-or-later
12 #include <linux/mfd/khadas-mcu.h>
21 unsigned int level; member
26 unsigned int level) in khadas_mcu_fan_set_level() argument
30 ret = regmap_write(ctx->mcu->regmap, KHADAS_MCU_CMD_FAN_STATUS_CTRL_REG, in khadas_mcu_fan_set_level()
31 level); in khadas_mcu_fan_set_level()
35 ctx->level = level; in khadas_mcu_fan_set_level()
51 struct khadas_mcu_fan_ctx *ctx = cdev->devdata; in khadas_mcu_fan_get_cur_state()
53 *state = ctx->level; in khadas_mcu_fan_get_cur_state()
62 struct khadas_mcu_fan_ctx *ctx = cdev->devdata; in khadas_mcu_fan_set_cur_state()
[all …]
/linux-6.14.4/Documentation/power/
Druntime_pm.rst5 (C) 2009-2011 Rafael J. Wysocki <[email protected]>, Novell Inc.
15 at the power management core (PM core) level by means of:
17 * The power management workqueue pm_wq in which bus types and device drivers can
18 put their PM-related work items. It is strongly recommended that pm_wq be
20 them to be synchronized with system-wide power transitions (suspend to RAM,
24 * A number of runtime PM fields in the 'power' member of 'struct device' (which
28 * Three device runtime PM callbacks in 'struct dev_pm_ops' (defined in
34 device drivers are encouraged to use these functions.
36 The runtime PM callbacks present in 'struct dev_pm_ops', the device runtime PM
40 2. Device Runtime PM Callbacks
[all …]
/linux-6.14.4/Documentation/driver-api/media/drivers/
Dpvrusb2.rst1 .. 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.
34 3. High level hardware driver implementation which coordinates all
35 activities that ensure correct operation of the device.
38 tear-down, arbitration, and interaction with high level
42 5. High level interfaces which glue the driver to various published
54 right now the V4L high level interface is the most complete, the
55 sysfs high level interface will work equally well for similar
[all …]
/linux-6.14.4/Documentation/networking/
Dnfc.rst6 NFC device drivers development and to create an unified userspace interface.
8 This document covers the architecture overview, the device driver interface
15 - NFC adapters management;
16 - Polling for targets;
17 - Low-level data exchange;
20 providing the device driver interface. On the other side, it is also
21 responsible for providing an interface to control operations and low-level
26 The low-level data exchange interface is provided by the new socket family
29 .. code-block:: none
31 +--------------------------------------+
[all …]
/linux-6.14.4/drivers/gpu/drm/amd/pm/powerplay/smumgr/
Dpolaris10_smumgr.c82 …/* Voltage, DpmLevel, DivId, Level, FuncCntl3, FuncCntl4, DynRm, DynRm1 Did, Padding,ForActivi…
99 struct smu7_smumgr *smu_data = (struct smu7_smumgr *)(hwmgr->smu_backend); in polaris10_perform_btc()
101 if (0 != smu_data->avfs_btc_param) { in polaris10_perform_btc()
102 …if (0 != smum_send_msg_to_smc_with_parameter(hwmgr, PPSMC_MSG_PerformBtc, smu_data->avfs_btc_param, in polaris10_perform_btc()
105 result = -1; in polaris10_perform_btc()
108 if (smu_data->avfs_btc_param > 1) { in polaris10_perform_btc()
109 /* Soft-Reset to reset the engine before loading uCode */ in polaris10_perform_btc()
111 cgs_write_register(hwmgr->device, mmCP_MEC_CNTL, 0x50000000); in polaris10_perform_btc()
113 cgs_write_register(hwmgr->device, mmGRBM_SOFT_RESET, 0xffffffff); in polaris10_perform_btc()
114 cgs_write_register(hwmgr->device, mmGRBM_SOFT_RESET, 0); in polaris10_perform_btc()
[all …]
/linux-6.14.4/drivers/edac/
Dedac_mc.h10 * 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
41 #define PAGES_TO_MiB(pages) ((pages) >> (20 - PAGE_SHIFT))
42 #define MiB_TO_PAGES(mb) ((mb) << (20 - PAGE_SHIFT))
44 #define PAGES_TO_MiB(pages) ((pages) << (PAGE_SHIFT - 20))
45 #define MiB_TO_PAGES(mb) ((mb) >> (PAGE_SHIFT - 20))
48 #define edac_printk(level, prefix, fmt, arg...) \ argument
49 printk(level "EDAC " prefix ": " fmt, ##arg)
51 #define edac_mc_printk(mci, level, fmt, arg...) \ argument
[all …]
/linux-6.14.4/sound/soc/sof/intel/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
7 Say Y if you have such a device.
15 This option is not user-selectable but automagically handled by
16 'select' statements at a higher level.
23 This option is not user-selectable but automagically handled by
24 'select' statements at a higher level.
35 This option is not user-selectable but automagically handled by
36 'select' statements at a higher level.
77 DMA and suspend-resume, this is not a recommended option for
95 Say Y if you have such a device.
[all …]

12345678910>>...44