Lines Matching +full:peci +full:- +full:controller

1 // SPDX-License-Identifier: GPL-2.0-only
6 #include <linux/peci.h>
7 #include <linux/peci-cpu.h>
13 * peci_temp_read() - read the maximum die temperature from PECI target device
14 * @device: PECI device to which request is going to be sent
17 * It uses GetTemp PECI command.
38 * peci_pcs_read() - read PCS register
39 * @device: PECI device to which request is going to be sent
44 * It uses RdPkgConfig PECI command.
70 * peci_pci_local_read() - read 32-bit memory location using raw address
71 * @device: PECI device to which request is going to be sent
78 * It uses RdPCIConfigLocal PECI command.
105 * peci_ep_pci_local_read() - read 32-bit memory location using raw address
106 * @device: PECI device to which request is going to be sent
114 * Like &peci_pci_local_read, but it uses RdEndpointConfig PECI command.
141 * peci_mmio_read() - read 32-bit memory location using 64-bit bar offset address
142 * @device: PECI device to which request is going to be sent
148 * @address: 64-bit MMIO address
151 * It uses RdEndpointConfig PECI command.
191 kfree(adev->name); in adev_release()
197 struct peci_controller *controller = to_peci_controller(priv->device->dev.parent); in adev_alloc() local
204 return ERR_PTR(-ENOMEM); in adev_alloc()
206 name = kasprintf(GFP_KERNEL, "%s.%s", peci_adev_types[idx], (const char *)priv->id->data); in adev_alloc()
208 ret = -ENOMEM; in adev_alloc()
212 adev->name = name; in adev_alloc()
213 adev->dev.parent = &priv->device->dev; in adev_alloc()
214 adev->dev.release = adev_release; in adev_alloc()
215 adev->id = (controller->id << 16) | (priv->device->addr); in adev_alloc()
254 ret = devm_add_action_or_reset(&priv->device->dev, unregister_adev, adev); in devm_adev_add()
263 struct device *dev = &priv->device->dev; in peci_cpu_add_adevices()
269 dev_warn(dev, "Failed to register PECI auxiliary: %s, ret = %d\n", in peci_cpu_add_adevices()
279 struct device *dev = &device->dev; in peci_cpu_probe()
284 return -ENOMEM; in peci_cpu_probe()
287 priv->device = device; in peci_cpu_probe()
288 priv->id = id; in peci_cpu_probe()
326 MODULE_DEVICE_TABLE(peci, peci_cpu_device_ids);
332 .name = "peci-cpu",
338 MODULE_DESCRIPTION("PECI CPU driver");
340 MODULE_IMPORT_NS(PECI);