Home
last modified time | relevance | path

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

12345678910>>...42

/linux/drivers/platform/x86/
H A Dtoshiba_haps.c1 // SPDX-License-Identifier: GPL-2.0-or-later
37 return -EIO; in toshiba_haps_reset_protection()
43 static int toshiba_haps_protection_level(acpi_handle handle, int level) in toshiba_haps_protection_level() argument
47 status = acpi_execute_simple_method(handle, "PTLV", level); in toshiba_haps_protection_level()
49 pr_err("Error while setting the protection level\n"); in toshiba_haps_protection_level()
50 return -EIO; in toshiba_haps_protection_level()
53 pr_debug("HDD protection level set to: %d\n", level); in toshiba_haps_protection_level()
59 static ssize_t protection_level_show(struct device *dev, in protection_level_show()
64 return sprintf(buf, "%i\n", haps->protection_level); in protection_level_show()
67 static ssize_t protection_level_store(struct device *dev, in protection_level_store()
[all …]
/linux/drivers/acpi/
H A Dacpi_video.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * video.c - ACPI Video Driver
7 * Copyright (C) 2006 Thomas Tuttle <linux-kernel@ttuttle.net>
51 static int report_key_events = -1;
56 static int hw_changes_brightness = -1;
60 "a hotkey is pressed: -
153 struct acpi_device *device; global() member
262 unsigned long long level; video_get_cur_state() local
281 int level; video_set_cur_state() local
335 acpi_video_device_lcd_set_level(struct acpi_video_device * device,int level) acpi_video_device_lcd_set_level() argument
527 acpi_video_bqc_value_to_level(struct acpi_video_device * device,unsigned long long bqc_value) acpi_video_bqc_value_to_level() argument
530 unsigned long long level; acpi_video_bqc_value_to_level() local
554 acpi_video_device_lcd_get_level_current(struct acpi_video_device * device,unsigned long long * level,bool raw) acpi_video_device_lcd_get_level_current() argument
555 acpi_video_device_lcd_get_level_current(struct acpi_video_device * device,unsigned long long * level,bool raw) acpi_video_device_lcd_get_level_current() argument
623 acpi_video_device_EDID(struct acpi_video_device * device,void ** edid,int length) acpi_video_device_EDID() argument
730 acpi_video_bqc_quirk(struct acpi_video_device * device,int max_level,int current_level) acpi_video_bqc_quirk() argument
735 unsigned long long level; acpi_video_bqc_quirk() local
800 acpi_video_get_levels(struct acpi_device * device,struct acpi_video_device_brightness ** dev_br,int * pmax_level) acpi_video_get_levels() argument
920 acpi_video_init_brightness(struct acpi_video_device * device) acpi_video_init_brightness() argument
923 unsigned long long level, level_old; acpi_video_init_brightness() local
994 acpi_video_device_find_cap(struct acpi_video_device * device) acpi_video_device_find_cap() argument
1126 acpi_video_bus_get_one_device(struct acpi_device * device,void * arg) acpi_video_bus_get_one_device() argument
1245 acpi_video_device_bind(struct acpi_video_bus * video,struct acpi_video_device * device) acpi_video_device_bind() argument
1260 acpi_video_device_in_dod(struct acpi_video_device * device) acpi_video_device_in_dod() argument
1362 acpi_video_get_next_level(struct acpi_video_device * device,u32 level_current,u32 event) acpi_video_get_next_level() argument
1409 struct acpi_video_device *device = container_of(to_delayed_work(work), acpi_video_switch_brightness() local
1442 acpi_video_get_edid(struct acpi_device * device,int type,int device_id,void ** edid) acpi_video_get_edid() argument
1499 acpi_video_bus_get_devices(struct acpi_video_bus * video,struct acpi_device * device) acpi_video_bus_get_devices() argument
1532 struct acpi_device *device = video->device; acpi_video_bus_notify() local
1593 struct acpi_device *device = NULL; acpi_video_device_notify() local
1681 acpi_video_dev_register_backlight(struct acpi_video_device * device) acpi_video_dev_register_backlight() argument
1810 acpi_video_dev_unregister_backlight(struct acpi_video_device * device) acpi_video_dev_unregister_backlight() argument
1849 acpi_video_dev_add_notify_handler(struct acpi_video_device * device) acpi_video_dev_add_notify_handler() argument
1981 struct acpi_device *device = ACPI_COMPANION(&aux_dev->dev); acpi_video_bus_probe() local
2093 struct acpi_device *device = ACPI_COMPANION(&aux_dev->dev); acpi_video_bus_remove() local
[all...]
/linux/include/linux/comedi/
H A 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 <ds@schleef.org>
13 #include <linux/dma-mapping.h>
29 * struct comedi_subdevice - Working data for a COMEDI subdevice
30 * @device: COMEDI device to which this subdevice belongs. (Initialized by
32 * @index: Index of this subdevice within device's array of subdevices.
35 * the low-level driver.)
37 * low-level driver.)
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
H A 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/Documentation/infiniband/
H A 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/rust/kernel/
H A Ddevice.rs1 // SPDX-License-Identifier: GPL-2.0
5 //! C header: [`include/linux/device.h`](srctree/include/linux/device.h)
24 /// The core representation of a device in the kernel's driver model.
26 /// This structure represents the Rust abstraction for a C `struct device`. A [`Device`] can either
27 /// exist as temporary reference (see also [`Device::from_raw`]), which is only valid within a
28 /// certain scope or as [`ARef<Device>`], ownin
170 pub struct Device<Ctx: DeviceContext = Normal>(Opaque<bindings::device>, PhantomData<Ctx>); global() struct
172 impl Device { global() implementation
208 impl Device<CoreInternal> { global() implementation
275 impl Device<Bound> { global() implementation
336 impl<Ctx: DeviceContext> Device<Ctx> { global() implementation
338 as_raw(&self) -> *mut bindings::device as_raw() argument
344 parent(&self) -> Option<&Device> parent() argument
500 unsafe impl crate::sync::aref::AlwaysRefCounted for Device { global() implementation
513 unsafe impl Send for Device {} global() implementation
517 unsafe impl Sync for Device {} global() implementation
604 impl<Ctx: DeviceContext> AsRef<Device<Ctx>> for Device<Ctx> { global() implementation
[all...]
/linux/drivers/gpu/drm/imagination/
H A Dpvr_mmu.c1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
17 #include <linux/dma-mapping.h>
24 #define PVR_MASK_FROM_SIZE(size_) (~((size_) - U64_C(1)))
27 * The value of the device page size (%PVR_DEVICE_PAGE_SIZE) is currently
29 * ensures that the selected host page size corresponds to a valid device page
57 # error Unsupported device page size PVR_DEVICE_PAGE_SIZE
62 (PVR_DEVICE_PAGE_SHIFT - PVR_SHIFT_FROM_SIZE(SZ_4K)))
65 PVR_MMU_SYNC_LEVEL_NONE = -1,
78 * pvr_mmu_set_flush_flags() - Set MMU cache flush flags for next call to
80 * @pvr_dev: Target PowerVR device.
[all …]
/linux/Documentation/ABI/obsolete/
H A 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/Documentation/firmware-guide/acpi/
H A 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/drivers/block/drbd/
H A 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/sound/soc/sof/intel/
H A 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-selectabl
[all...]
/linux/drivers/gpu/drm/amd/pm/powerplay/smumgr/
H A 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 …]
H A Dci_smumgr.c100 return -EINVAL; in ci_set_smc_sram_address()
103 cgs_write_register(hwmgr->device, mmSMC_IND_INDEX_0, smc_addr); in ci_set_smc_sram_address()
104 PHM_WRITE_FIELD(hwmgr->device, SMC_IND_ACCESS_CNTL, AUTO_INCREMENT_IND_0, 0); in ci_set_smc_sram_address()
120 return -EINVAL; in ci_copy_bytes_to_smc()
134 cgs_write_register(hwmgr->device, mmSMC_IND_DATA_0, data); in ci_copy_bytes_to_smc()
137 byte_count -= 4; in ci_copy_bytes_to_smc()
151 original_data = cgs_read_register(hwmgr->device, mmSMC_IND_DATA_0); in ci_copy_bytes_to_smc()
153 extra_shift = 8 * (4 - byte_count); in ci_copy_bytes_to_smc()
158 byte_count--; in ci_copy_bytes_to_smc()
170 cgs_write_register(hwmgr->device, mmSMC_IND_DATA_0, data); in ci_copy_bytes_to_smc()
[all …]
H A Dfiji_smumgr.c88 …/* Voltage, Frequency, DpmLevel, DivId, Level, FuncCntl3, FuncCntl4, Spectrum, Spectrum…
107 PHM_WRITE_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in fiji_start_smu_in_protection_mode()
115 cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC, in fiji_start_smu_in_protection_mode()
118 PHM_WRITE_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in fiji_start_smu_in_protection_mode()
121 /* De-assert reset */ in fiji_start_smu_in_protection_mode()
122 PHM_WRITE_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in fiji_start_smu_in_protection_mode()
130 PHM_WRITE_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in fiji_start_smu_in_protection_mode()
134 cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC, in fiji_start_smu_in_protection_mode()
147 if (PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in fiji_start_smu_in_protection_mode()
150 "SMU Firmware start failed!", return -1); in fiji_start_smu_in_protection_mode()
[all …]
H A Dvegam_smumgr.c88 return -ENOMEM; in vegam_smu_init()
90 hwmgr->smu_backend = smu_data; in vegam_smu_init()
94 return -EINVAL; in vegam_smu_init()
108 PHM_WRITE_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in vegam_start_smu_in_protection_mode()
116 cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC, ixSMU_STATUS, 0); in vegam_start_smu_in_protection_mode()
118 PHM_WRITE_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in vegam_start_smu_in_protection_mode()
121 /* De-assert reset */ in vegam_start_smu_in_protection_mode()
122 PHM_WRITE_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in vegam_start_smu_in_protection_mode()
137 if (1 != PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in vegam_start_smu_in_protection_mode()
139 PP_ASSERT_WITH_CODE(false, "SMU Firmware start failed!", return -1); in vegam_start_smu_in_protection_mode()
[all …]
/linux/drivers/sh/intc/
H A 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/Documentation/driver-api/media/drivers/
H A 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/drivers/iommu/intel/
H A 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))
30 * The PASID_FLAG_FL5LP flag Indicates using 5-level paging for first-
31 * 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/drivers/thermal/
H A 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->regma in khadas_mcu_fan_set_level()
[all...]
/linux/drivers/edac/
H A 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, fm argument
54 edac_mc_chipset_printk(mci,level,prefix,fmt,arg...) global() argument
57 edac_device_printk(ctl,level,fmt,arg...) global() argument
60 edac_pci_printk(ctl,level,fmt,arg...) global() argument
73 edac_dbg(level,fmt,...) global() argument
82 edac_dbg(level,fmt,...) global() argument
[all...]
/linux/Documentation/cdrom/
H A Dcdrom-standard.rst2 A Linux CD-ROM standard
14 Linux is probably the Unix-like operating system that supports
18 - The large list of hardware devices available for the many platforms
19 that Linux now supports (i.e., i386-PCs, Sparc Suns, etc.)
20 - The open design of the operating system, such that anybody can write a
22 - There is plenty of source code around as examples of how to write a driver.
28 device driver to differ significantly from one device to another.
29 This divergence of behavior has been very significant for CD-ROM
31 call varies greatly from one device driver to another. To avoid making
32 their drivers totally inconsistent, the writers of Linux CD-ROM
[all …]
/linux/scripts/gdb/linux/
H A Ddevice.py1 # SPDX-License-Identifier: GPL-2.0
13 device_type = CachedType('struct device')
60 raise gdb.GdbError("Can't find device class {!r}".format(name))
75 yield dp['device']
81 yield dp['device']
87 yield dp['device']
90 def _show_device(dev, level=0, recursive=False): argument
91 gdb.write('{}dev {}:\t{}\n'.format('\t' * level, dev_name(dev), dev))
94 _show_device(child, level + 1, recursive)
101 super(LxDeviceListBus, self).__init__('lx-device-list-bus', gdb.COMMAND_DATA)
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/
H A Diwl-debug.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Copyright(c) 2003 - 2014 Intel Corporation. All rights reserved.
5 * Copyright(c) 2018 - 2021, 2024-2025 Intel Corporation
13 #include "iwl-modparams.h"
16 static inline bool iwl_have_debug_level(u32 level) in iwl_have_debug_level() argument
19 return iwlwifi_mod_params.debug_level & level; in iwl_have_debug_level()
32 struct device;
33 void __iwl_err(struct device *dev, enum iwl_err_mode mode, const char *fmt, ...)
35 void __iwl_warn(struct device *dev, const char *fmt, ...) __printf(2, 3);
36 void __iwl_info(struct device *dev, const char *fmt, ...) __printf(2, 3);
[all …]
/linux/tools/testing/selftests/devices/probe/boards/
H A Dgoogle,spherion.yaml1 # SPDX-License-Identifier: GPL-2.0
3 # This is the device definition for the Google Spherion Chromebook.
7 # The top-level is a list of controllers, either for USB or PCI(e).
8 # Every controller needs to have a 'type' key set to either 'usb-controller' or
9 # 'pci-controller'.
12 # - dt-mmio: identify the MMIO address of the controller as defined in the
14 # - of-fullname-regex: regular expression to match against the OF_FULLNAME
16 # sibling controllers. In this case, dt-mmio can't be used, and this property
18 # - usb-version: for USB controllers to differentiate between USB3 and USB2
20 # - acpi-uid: _UID property of the controller as supplied by the ACPI. Useful to
[all …]
/linux/drivers/base/
H A Dcacheinfo.c1 // SPDX-License-Identifier: GPL-2.0
3 * cacheinfo support - processor cache information via sysfs
16 #include <linux/device.h>
28 #define cache_leaves(cpu) (ci_cacheinfo(cpu)->num_leaves)
29 #define per_cpu_cacheinfo(cpu) (ci_cacheinfo(cpu)->info_list)
45 * For non DT/ACPI systems, assume unique level 1 caches, in cache_leaves_are_shared()
46 * system-wide shared caches for all other levels. in cache_leaves_are_shared()
50 return (this_leaf->leve in cache_leaves_are_shared()
331 unsigned int levels = 0, leaves, level; init_of_cache_level() local
[all...]

12345678910>>...42