Home
last modified time | relevance | path

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

12345678910>>...44

/Linux-v5.15/drivers/acpi/
Dscan.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * scan.c - support for transforming the ACPI namespace into individual objects
19 #include <linux/dma-map-ops.h>
31 #define ACPI_IS_ROOT_DEVICE(device) (!(device)->parent) argument
35 static const char *dummy_hid = "device";
47 * The UART device described by the SPCR table is the only object which needs
48 * special-casing. Everything else is covered by ACPI namespace paths in STAO
81 hp->notify = notify; in acpi_initialize_hp_context()
82 hp->uevent = uevent; in acpi_initialize_hp_context()
91 return -EINVAL; in acpi_scan_add_handler()
[all …]
Dutils.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * acpi_utils.c - ACPI Utility Functions ($Revision: 10 $)
23 /* --------------------------------------------------------------------------
25 -------------------------------------------------------------------------- */
44 if (!package || (package->type != ACPI_TYPE_PACKAGE) in acpi_extract_package()
45 || (package->package.count < 1)) { in acpi_extract_package()
50 if (!format || !format->pointer || (format->length < 1)) { in acpi_extract_package()
60 format_count = (format->length / sizeof(char)) - 1; in acpi_extract_package()
61 if (format_count > package->package.count) { in acpi_extract_package()
63 format_count, package->package.count); in acpi_extract_package()
[all …]
Dpci_link.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * pci_link.c - ACPI PCI Interrupt Link Device Driver ($Revision: 34 $)
10 * 1. Support more than one IRQ resource entry per link device (index).
12 * for IRQ management (e.g. start()->_SRS).
36 static int acpi_pci_link_add(struct acpi_device *device,
38 static void acpi_pci_link_remove(struct acpi_device *device);
68 struct acpi_device *device; member
75 static int sci_irq = -1, sci_penalty;
77 /* --------------------------------------------------------------------------
78 PCI Link Device Management
[all …]
Dpci_root.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * pci_root.c - ACPI PCI Root Bridge Driver ($Revision: 40 $)
19 #include <linux/pci-acpi.h>
31 static int acpi_pci_root_add(struct acpi_device *device,
33 static void acpi_pci_root_remove(struct acpi_device *device);
62 * acpi_is_root_bridge - determine whether an ACPI CA node is a PCI root bridge
63 * @handle: the ACPI CA node in question.
68 int acpi_is_root_bridge(acpi_handle handle) in acpi_is_root_bridge() argument
71 struct acpi_device *device; in acpi_is_root_bridge() local
73 ret = acpi_bus_get_device(handle, &device); in acpi_is_root_bridge()
[all …]
Ddock.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * dock.c - ACPI dock station driver
31 acpi_handle handle; member
62 * Dock Dependent device functions *
65 * add_dock_dependent_device - associate a device with the dock station
67 * @adev: Dependent ACPI device object.
69 * Add the dependent device to the dock's dependent device list.
78 return -ENOMEM; in add_dock_dependent_device()
80 dd->adev = adev; in add_dock_dependent_device()
81 INIT_LIST_HEAD(&dd->list); in add_dock_dependent_device()
[all …]
Dpower.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * drivers/acpi/power.c - ACPI Power Resources management.
5 * Copyright (C) 2001 - 2015 Intel Corp.
12 * ACPI power-managed devices may be controlled in two ways:
13 * 1. via "Device Specific (D-State) Control"
18 * plane, clock plane, or other resource depended on by a device.
20 * A device may rely on multiple power resources, and a power resource
44 struct device *dev;
49 struct acpi_device device; member
68 /* --------------------------------------------------------------------------
[all …]
Dbus.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * acpi_bus.c - ACPI Bus Driver ($Revision: 80 $)
17 #include <linux/device.h>
51 pr_notice("%s detected - force copy of DSDT to local memory\n", id->ident); in set_copy_dsdt()
59 * Invoke DSDT corruption work-around on all Toshiba Satellite.
74 /* --------------------------------------------------------------------------
75 Device Management
76 -------------------------------------------------------------------------- */
78 acpi_status acpi_bus_get_status_handle(acpi_handle handle, in acpi_bus_get_status_handle() argument
83 status = acpi_evaluate_integer(handle, "_STA", NULL, sta); in acpi_bus_get_status_handle()
[all …]
Ddevice_sysfs.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * drivers/acpi/device_sysfs.c - ACPI device sysfs attributes and modalias.
15 #include <linux/device.h>
21 static ssize_t acpi_object_path(acpi_handle handle, char *buf) in acpi_object_path() argument
26 result = acpi_get_name(handle, ACPI_FULL_PATHNAME, &path); in acpi_object_path()
47 return dn->handle ? acpi_object_path(dn->handle, buf) : 0; in data_node_show_path()
66 return dn_attr->show ? dn_attr->show(dn, buf) : -ENXIO; in acpi_data_node_attr_show()
77 complete(&dn->kobj_done); in acpi_data_node_release()
89 struct list_head *list = &data->subnodes; in acpi_expose_nondev_subnodes()
98 init_completion(&dn->kobj_done); in acpi_expose_nondev_subnodes()
[all …]
Dacpi_processor.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * acpi_processor.c - ACPI processor enumeration support
14 #include <linux/device.h>
39 return -EINVAL; in acpi_processor_errata_piix4()
45 switch (dev->revision) { in acpi_processor_errata_piix4()
47 dev_dbg(&dev->dev, "Found PIIX4 A-step\n"); in acpi_processor_errata_piix4()
50 dev_dbg(&dev->dev, "Found PIIX4 B-step\n"); in acpi_processor_errata_piix4()
53 dev_dbg(&dev->dev, "Found PIIX4E\n"); in acpi_processor_errata_piix4()
56 dev_dbg(&dev->dev, "Found PIIX4M\n"); in acpi_processor_errata_piix4()
59 dev_dbg(&dev->dev, "Found unknown PIIX4\n"); in acpi_processor_errata_piix4()
[all …]
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>
32 #define ACPI_VIDEO_DEVICE_NAME "Video Device"
50 static int disable_backlight_sysfs_if = -1;
55 static int report_key_events = -1;
60 static int hw_changes_brightness = -1;
64 "a hotkey is pressed: -1: auto, 0: normal 1: hw-changes-brightness");
73 static int only_lcd = -1;
80 static int acpi_video_bus_add(struct acpi_device *device);
[all …]
Dthermal.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * acpi_thermal.c - ACPI Thermal Zone Driver ($Revision: 41 $)
27 #include <linux/device.h>
76 static int acpi_thermal_add(struct acpi_device *device);
77 static int acpi_thermal_remove(struct acpi_device *device);
78 static void acpi_thermal_notify(struct acpi_device *device, u32 event);
87 static int acpi_thermal_suspend(struct device *dev);
88 static int acpi_thermal_resume(struct device *dev);
161 struct acpi_device * device; member
178 /* --------------------------------------------------------------------------
[all …]
Dpci_slot.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * pci_slot.c - ACPI PCI Slot Driver
10 * Copyright (C) 2007-2008 Hewlett-Packard Development Company, L.P.
27 #include <linux/pci-acpi.h>
42 check_slot(acpi_handle handle, unsigned long long *sun) in check_slot() argument
44 int device = -1; in check_slot() local
49 acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer); in check_slot()
54 status = acpi_evaluate_integer(handle, "_STA", NULL, &sta); in check_slot()
59 status = acpi_evaluate_integer(handle, "_ADR", NULL, &adr); in check_slot()
67 status = acpi_evaluate_integer(handle, "_SUN", NULL, sun); in check_slot()
[all …]
/Linux-v5.15/drivers/firmware/
Dti_sci.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2015-2016 Texas Instruments Incorporated - https://www.ti.com/
21 #include <linux/soc/ti/ti-msgmgr.h>
33 * struct ti_sci_xfer - Structure representing a message flow
37 * Since we work with request-ACK protocol, we can
50 * struct ti_sci_xfers_info - Structure to manage transfer information
68 * struct ti_sci_desc - Description of SoC integration
83 * struct ti_sci_info - Structure representing a TI SCI instance
84 * @dev: Device pointer
91 * @handle: Instance of TI SCI handle to send to clients.
[all …]
/Linux-v5.15/drivers/thermal/intel/
Dintel_menlow.c1 // SPDX-License-Identifier: GPL-2.0
33 * Memory controller device control
44 * GTHS returning 'n' would mean that [0,n-1] states are supported
45 * In that case max_cstate would be n-1
51 struct acpi_device *device = cdev->devdata; in memory_get_max_bandwidth() local
52 acpi_handle handle = device->handle; in memory_get_max_bandwidth() local
62 status = acpi_evaluate_integer(handle, MEMORY_GET_BANDWIDTH, in memory_get_max_bandwidth()
65 return -EFAULT; in memory_get_max_bandwidth()
68 return -EINVAL; in memory_get_max_bandwidth()
70 *max_state = value - 1; in memory_get_max_bandwidth()
[all …]
/Linux-v5.15/include/linux/soc/ti/
Dti_sci_protocol.h1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2015-2016 Texas Instruments Incorporated - https://www.ti.com/
13 * struct ti_sci_version_info - version information structure
31 * struct ti_sci_core_ops - SoC Core Operations
37 int (*reboot_device)(const struct ti_sci_handle *handle);
41 * struct ti_sci_dev_ops - Device control operations
42 * @get_device: Command to request for device managed by TISCI
45 * @idle_device: Command to idle a device managed by TISCI
48 * @put_device: Command to release a device managed by TISCI
51 * @is_valid: Check if the device ID is a valid ID.
[all …]
/Linux-v5.15/drivers/platform/x86/intel/
Dhid.c1 // SPDX-License-Identifier: GPL-2.0+
12 #include <linux/input/sparse-keymap.h>
36 /* 1: LSuper (Page 0x07, usage 0xE3) -- unclear what to do */
37 /* 2: Toggle SW_ROTATE_LOCK -- easy to implement if seen in wild */
46 /* 13 has two different meanings in the spec -- ignore it. */
54 /* 27: wake -- needs special handling */
106 * Some convertible use the intel-hid ACPI interface to report SW_TABLET_MODE,
115 DMI_MATCH(DMI_PRODUCT_NAME, "HP Spectre x360 Convertible 15-df0xxx"),
147 #define HID_EVENT_FILTER_UUID "eeec56b3-4442-408f-a792-4edd4d758054"
179 static bool intel_hid_execute_method(acpi_handle handle, in intel_hid_execute_method() argument
[all …]
/Linux-v5.15/drivers/platform/x86/
Dtoshiba_bluetooth.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * normal people aren't meant to understand :-)
38 static int toshiba_bt_rfkill_add(struct acpi_device *device);
39 static int toshiba_bt_rfkill_remove(struct acpi_device *device);
40 static void toshiba_bt_rfkill_notify(struct acpi_device *device, u32 event);
49 static int toshiba_bt_resume(struct device *dev);
66 static int toshiba_bluetooth_present(acpi_handle handle) in toshiba_bluetooth_present() argument
72 * Some Toshiba laptops may have a fake TOS6205 device in in toshiba_bluetooth_present()
76 result = acpi_evaluate_integer(handle, "_STA", NULL, &bt_present); in toshiba_bluetooth_present()
79 return -ENXIO; in toshiba_bluetooth_present()
[all …]
Dtoshiba_haps.c1 // SPDX-License-Identifier: GPL-2.0-or-later
29 static int toshiba_haps_reset_protection(acpi_handle handle) in toshiba_haps_reset_protection() argument
33 status = acpi_evaluate_object(handle, "RSSS", NULL, NULL); in toshiba_haps_reset_protection()
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()
49 return -EIO; 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-v5.15/include/acpi/
Dacpi_bus.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * acpi_bus.h - ACPI Bus Driver ($Revision: 22 $)
12 #include <linux/device.h>
27 acpi_evaluate_integer(acpi_handle handle,
31 acpi_evaluate_reference(acpi_handle handle,
36 acpi_evaluate_ost(acpi_handle handle, u32 source_event, u32 status_code,
40 acpi_get_physical_device_location(acpi_handle handle, struct acpi_pld_info **pld);
42 bool acpi_has_method(acpi_handle handle, char *name);
43 acpi_status acpi_execute_simple_method(acpi_handle handle, char *method,
45 acpi_status acpi_evaluate_ej0(acpi_handle handle);
[all …]
/Linux-v5.15/drivers/scsi/mpt3sas/
Dmpt3sas_scsih.c5 * Copyright (C) 2012-2014 LSI Corporation
6 * Copyright (C) 2013-2014 Avago Technologies
7 * (mailto: MPT-FusionLinux.pdl@avagotech.com)
22 * LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
41 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
57 #include <linux/blk-mq-pci.h>
73 static int _scsih_add_device(struct MPT3SAS_ADAPTER *ioc, u16 handle,
75 static int _scsih_pcie_add_device(struct MPT3SAS_ADAPTER *ioc, u16 handle);
79 _scsih_pcie_check_device(struct MPT3SAS_ADAPTER *ioc, u16 handle);
95 static u8 scsi_io_cb_idx = -1;
[all …]
/Linux-v5.15/tools/testing/selftests/tc-testing/
Dtdc_batch.py4 tdc_batch.py - a script to generate TC batch file
12 parser.add_argument("device", help="device name")
14 parser.add_argument("-n", "--number", type=int,
17 "-a",
18 "--handle_start",
21 help="start handle range from (default: 1)")
22 parser.add_argument("-o", "--skip_sw",
25 parser.add_argument("-s", "--share_action",
28 parser.add_argument("-p", "--prio",
32 "-e",
[all …]
/Linux-v5.15/drivers/input/
Dinput.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 1999-2002 Vojtech Pavlik
23 #include <linux/device.h>
26 #include "input-compat.h"
27 #include "input-poller.h"
59 if (value > old_val - fuzz / 2 && value < old_val + fuzz / 2) in input_defuzz_abs_event()
62 if (value > old_val - fuzz && value < old_val + fuzz) in input_defuzz_abs_event()
65 if (value > old_val - fuzz * 2 && value < old_val + fuzz * 2) in input_defuzz_abs_event()
74 if (test_bit(EV_REP, dev->evbit) && in input_start_autorepeat()
75 dev->rep[REP_PERIOD] && dev->rep[REP_DELAY] && in input_start_autorepeat()
[all …]
/Linux-v5.15/drivers/gpu/drm/
Ddrm_context.c42 drm_context_t handle; member
51 * Free a handle from the context bitmap.
53 * \param dev DRM device.
54 * \param ctx_handle context handle.
66 mutex_lock(&dev->struct_mutex); in drm_legacy_ctxbitmap_free()
67 idr_remove(&dev->ctx_idr, ctx_handle); in drm_legacy_ctxbitmap_free()
68 mutex_unlock(&dev->struct_mutex); in drm_legacy_ctxbitmap_free()
74 * \param dev DRM device.
75 * \return (non-negative) context handle on success or a negative number on failure.
84 mutex_lock(&dev->struct_mutex); in drm_legacy_ctxbitmap_next()
[all …]
/Linux-v5.15/include/linux/
Dacpi.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * acpi.h - ACPI Interface
15 #include <linux/device.h>
40 return adev ? adev->handle : NULL; in acpi_device_handle()
43 #define ACPI_COMPANION(dev) to_acpi_device_node((dev)->fwnode)
72 * ACPI_DEVICE_CLASS - macro used to describe an ACPI device with
73 * the PCI-defined class-code information
75 * @_cls : the class, subclass, prog-if triple for this device
76 * @_msk : the class mask for this device
84 static inline bool has_acpi_companion(struct device *dev) in has_acpi_companion()
[all …]
/Linux-v5.15/Documentation/power/
Dpm_qos_interface.rst11 * The per-device PM QoS framework provides the API to manage the
12 per-device latency constraints and PM QoS flags.
31 void cpu_latency_qos_add_request(handle, target_value):
35 Clients of PM QoS need to save the returned handle for future use in other
38 void cpu_latency_qos_update_request(handle, new_target_value):
39 Will update the list element pointed to by the handle with the new target
43 void cpu_latency_qos_remove_request(handle):
51 int cpu_latency_qos_request_active(handle):
65 The infrastructure exposes one device node, /dev/cpu_dma_latency, for the CPU
75 As long as the device node is held open that process has a registered
[all …]

12345678910>>...44