Home
last modified time | relevance | path

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

12345678910>>...44

/kernel/linux/linux-6.6/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>
23 #include <linux/dma-direct.h>
34 static const char *dummy_hid = "device";
46 * The UART device described by the SPCR table is the only object which needs
47 * special-casing. Everything else is covered by ACPI namespace paths in STAO
80 hp->notify = notify; in acpi_initialize_hp_context()
81 hp->uevent = uevent; in acpi_initialize_hp_context()
90 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 …]
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 …]
/kernel/linux/linux-5.10/drivers/acpi/
Dscan.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * scan.c - support for transforming the ACPI namespace into individual objects
16 #include <linux/dma-map-ops.h>
19 #include <linux/dma-direct.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
87 hp->notify = notify; in acpi_initialize_hp_context()
88 hp->uevent = uevent; in acpi_initialize_hp_context()
[all …]
Dutils.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * acpi_utils.c - ACPI Utility Functions ($Revision: 10 $)
24 /* --------------------------------------------------------------------------
26 -------------------------------------------------------------------------- */
54 if (!package || (package->type != ACPI_TYPE_PACKAGE) in acpi_extract_package()
55 || (package->package.count < 1)) { in acpi_extract_package()
60 if (!format || !format->pointer || (format->length < 1)) { in acpi_extract_package()
70 format_count = (format->length / sizeof(char)) - 1; in acpi_extract_package()
71 if (format_count > package->package.count) { in acpi_extract_package()
74 format_count, package->package.count); in acpi_extract_package()
[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 …]
Dpci_root.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * pci_root.c - ACPI PCI Root Bridge Driver ($Revision: 40 $)
17 #include <linux/pci-acpi.h>
27 static int acpi_pci_root_add(struct acpi_device *device,
29 static void acpi_pci_root_remove(struct acpi_device *device);
60 * acpi_is_root_bridge - determine whether an ACPI CA node is a PCI root bridge
61 * @handle: the ACPI CA node in question.
66 int acpi_is_root_bridge(acpi_handle handle) in acpi_is_root_bridge() argument
69 struct acpi_device *device; in acpi_is_root_bridge() local
71 ret = acpi_bus_get_device(handle, &device); in acpi_is_root_bridge()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/drivers/firmware/
Dti_sci.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2015-2022 Texas Instruments Incorporated - https://www.ti.com/
22 #include <linux/soc/ti/ti-msgmgr.h>
34 * struct ti_sci_xfer - Structure representing a message flow
38 * Since we work with request-ACK protocol, we can
51 * struct ti_sci_xfers_info - Structure to manage transfer information
69 * struct ti_sci_desc - Description of SoC integration
84 * struct ti_sci_info - Structure representing a TI SCI instance
85 * @dev: Device pointer
92 * @handle: Instance of TI SCI handle to send to clients.
[all …]
/kernel/linux/linux-5.10/drivers/platform/x86/
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 …]
Dintel-hid.c1 // SPDX-License-Identifier: GPL-2.0+
12 #include <linux/input/sparse-keymap.h>
30 /* 1: LSuper (Page 0x07, usage 0xE3) -- unclear what to do */
31 /* 2: Toggle SW_ROTATE_LOCK -- easy to implement if seen in wild */
40 /* 13 has two different meanings in the spec -- ignore it. */
48 /* 27: wake -- needs special handling */
112 #define HID_EVENT_FILTER_UUID "eeec56b3-4442-408f-a792-4edd4d758054"
144 static bool intel_hid_execute_method(acpi_handle handle, in intel_hid_execute_method() argument
169 obj = acpi_evaluate_dsm(handle, &intel_dsm_guid, 1, fn_index, &argv4); in intel_hid_execute_method()
171 acpi_handle_debug(handle, "Exec DSM Fn code: %d[%s] success\n", in intel_hid_execute_method()
[all …]
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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/drivers/reset/
Dreset-scmi.c1 // SPDX-License-Identifier: GPL-2.0
10 #include <linux/device.h>
11 #include <linux/reset-controller.h>
15 * struct scmi_reset_data - reset controller information structure
17 * @handle: ARM SCMI handle used for communication with system controller
21 const struct scmi_handle *handle; member
25 #define to_scmi_handle(p) (to_scmi_reset_data(p)->handle)
28 * scmi_reset_assert() - assert device reset
32 * This function implements the reset driver op to assert a device's reset
40 const struct scmi_handle *handle = to_scmi_handle(rcdev); in scmi_reset_assert() local
[all …]
/kernel/linux/linux-6.6/drivers/platform/x86/intel/
Dhid.c1 // SPDX-License-Identifier: GPL-2.0+
12 #include <linux/input/sparse-keymap.h>
20 TABLET_SW_AUTO = -1,
30 "If you need this please report this to: platform-driver-x86@vger.kernel.org");
35 "Enable SW_TABLET_MODE reporting -1:auto 0:off 1:at-first-event 2:at-probe. "
36 "If you need this please report this to: platform-driver-x86@vger.kernel.org");
58 /* 1: LSuper (Page 0x07, usage 0xE3) -- unclear what to do */
59 /* 2: Toggle SW_ROTATE_LOCK -- easy to implement if seen in wild */
68 /* 13 has two different meanings in the spec -- ignore it. */
76 /* 27: wake -- needs special handling */
[all …]
/kernel/linux/linux-5.10/drivers/xen/
Dxen-acpi-cpuhotplug.c1 // SPDX-License-Identifier: GPL-2.0-or-later
29 /* --------------------------------------------------------------------------
31 -------------------------------------------------------------------------- */
33 static int xen_acpi_processor_enable(struct acpi_device *device) in xen_acpi_processor_enable() argument
39 struct acpi_processor *pr = acpi_driver_data(device); in xen_acpi_processor_enable()
41 if (!strcmp(acpi_device_hid(device), ACPI_PROCESSOR_OBJECT_HID)) { in xen_acpi_processor_enable()
43 status = acpi_evaluate_object(pr->handle, NULL, NULL, &buffer); in xen_acpi_processor_enable()
46 return -ENODEV; in xen_acpi_processor_enable()
49 pr->acpi_id = object.processor.proc_id; in xen_acpi_processor_enable()
51 /* Declared with "Device" statement; match _UID */ in xen_acpi_processor_enable()
[all …]
Dxen-acpi-memhotplug.c1 // SPDX-License-Identifier: GPL-2.0-or-later
32 struct acpi_device *device; member
44 op.u.mem_add.spfn = info->start_addr >> PAGE_SHIFT; in xen_hotadd_memory()
45 op.u.mem_add.epfn = (info->start_addr + info->length) >> PAGE_SHIFT; in xen_hotadd_memory()
51 "0x%lx -> 0x%lx, _PXM: %d, error: %d\n", in xen_hotadd_memory()
52 (unsigned long)info->start_addr, in xen_hotadd_memory()
53 (unsigned long)(info->start_addr + info->length), in xen_hotadd_memory()
66 return -EINVAL; in xen_acpi_memory_enable_device()
68 pxm = xen_acpi_get_pxm(mem_device->device->handle); in xen_acpi_memory_enable_device()
72 list_for_each_entry(info, &mem_device->res_list, list) { in xen_acpi_memory_enable_device()
[all …]
/kernel/linux/linux-5.10/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,
72 static int _scsih_add_device(struct MPT3SAS_ADAPTER *ioc, u16 handle,
74 static int _scsih_pcie_add_device(struct MPT3SAS_ADAPTER *ioc, u16 handle);
78 _scsih_pcie_check_device(struct MPT3SAS_ADAPTER *ioc, u16 handle);
93 static u8 scsi_io_cb_idx = -1;
94 static u8 tm_cb_idx = -1;
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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 void 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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/drivers/iommu/
Diommu-sva.c1 // SPDX-License-Identifier: GPL-2.0
10 #include "iommu-sva.h"
15 static int iommu_sva_alloc_pasid(struct mm_struct *mm, struct device *dev) in iommu_sva_alloc_pasid()
21 return -EBUSY; in iommu_sva_alloc_pasid()
26 if (mm->pasid >= dev->iommu->max_pasids) in iommu_sva_alloc_pasid()
27 ret = -EOVERFLOW; in iommu_sva_alloc_pasid()
33 ret = -ENOSPC; in iommu_sva_alloc_pasid()
36 mm->pasid = pasid; in iommu_sva_alloc_pasid()
44 * iommu_sva_bind_device() - Bind a process address space to a device
45 * @dev: the device
[all …]
/kernel/linux/linux-6.6/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,
56 #include <linux/blk-mq-pci.h>
72 static int _scsih_add_device(struct MPT3SAS_ADAPTER *ioc, u16 handle,
74 static int _scsih_pcie_add_device(struct MPT3SAS_ADAPTER *ioc, u16 handle);
78 _scsih_pcie_check_device(struct MPT3SAS_ADAPTER *ioc, u16 handle);
94 static u8 scsi_io_cb_idx = -1;
[all …]

12345678910>>...44