/kernel/linux/linux-6.6/drivers/thermal/intel/int340x_thermal/ |
H A D | processor_thermal_device.c | 133 static int proc_thermal_read_ppcc(struct proc_thermal_device *proc_priv) in proc_thermal_read_ppcc() argument 142 status = acpi_evaluate_object(proc_priv->adev->handle, "PPCC", in proc_thermal_read_ppcc() 149 dev_err(proc_priv->dev, "Invalid PPCC data\n"); in proc_thermal_read_ppcc() 155 dev_err(proc_priv->dev, "Invalid PPCC package size\n"); in proc_thermal_read_ppcc() 168 proc_priv->power_limits[i].index = ppcc[0].integer.value; in proc_thermal_read_ppcc() 169 proc_priv->power_limits[i].min_uw = ppcc[1].integer.value; in proc_thermal_read_ppcc() 170 proc_priv->power_limits[i].max_uw = ppcc[2].integer.value; in proc_thermal_read_ppcc() 171 proc_priv->power_limits[i].tmin_us = ppcc[3].integer.value; in proc_thermal_read_ppcc() 172 proc_priv->power_limits[i].tmax_us = ppcc[4].integer.value; in proc_thermal_read_ppcc() 173 proc_priv in proc_thermal_read_ppcc() 185 struct proc_thermal_device *proc_priv = data; proc_thermal_notify() local 202 proc_thermal_add(struct device *dev, struct proc_thermal_device *proc_priv) proc_thermal_add() argument 262 proc_thermal_remove(struct proc_thermal_device *proc_priv) proc_thermal_remove() argument 302 proc_thermal_set_mmio_base(struct pci_dev *pdev, struct proc_thermal_device *proc_priv) proc_thermal_set_mmio_base() argument 317 proc_thermal_mmio_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv, kernel_ulong_t feature_mask) proc_thermal_mmio_add() argument 368 proc_thermal_mmio_remove(struct pci_dev *pdev, struct proc_thermal_device *proc_priv) proc_thermal_mmio_remove() argument [all...] |
H A D | processor_thermal_device_pci_legacy.c | 21 struct proc_thermal_device *proc_priv; in proc_thermal_pci_msi_irq() local 24 proc_priv = pci_get_drvdata(pdev); in proc_thermal_pci_msi_irq() 26 intel_soc_dts_iosf_interrupt_handler(proc_priv->soc_dts); in proc_thermal_pci_msi_irq() 34 struct proc_thermal_device *proc_priv; in proc_thermal_pci_probe() local 43 proc_priv = devm_kzalloc(&pdev->dev, sizeof(*proc_priv), GFP_KERNEL); in proc_thermal_pci_probe() 44 if (!proc_priv) in proc_thermal_pci_probe() 47 ret = proc_thermal_add(&pdev->dev, proc_priv); in proc_thermal_pci_probe() 51 pci_set_drvdata(pdev, proc_priv); in proc_thermal_pci_probe() 61 proc_priv in proc_thermal_pci_probe() 95 struct proc_thermal_device *proc_priv = pci_get_drvdata(pdev); proc_thermal_pci_remove() local [all...] |
H A D | processor_thermal_device_pci.c | 20 struct proc_thermal_device *proc_priv; member 68 *value = ioread32(((u8 __iomem *)pci_info->proc_priv->mmio_base + in proc_thermal_mmio_read() 81 current_val = ioread32(((u8 __iomem *)pci_info->proc_priv->mmio_base + in proc_thermal_mmio_write() 90 iowrite32(current_val, ((u8 __iomem *)pci_info->proc_priv->mmio_base + in proc_thermal_mmio_write() 203 struct proc_thermal_device *proc_priv; in proc_thermal_pci_probe() local 207 proc_priv = devm_kzalloc(&pdev->dev, sizeof(*proc_priv), GFP_KERNEL); in proc_thermal_pci_probe() 208 if (!proc_priv) in proc_thermal_pci_probe() 226 ret = proc_thermal_add(&pdev->dev, proc_priv); in proc_thermal_pci_probe() 232 proc_priv in proc_thermal_pci_probe() 291 struct proc_thermal_device *proc_priv = pci_get_drvdata(pdev); proc_thermal_pci_remove() local 313 struct proc_thermal_device *proc_priv; proc_thermal_pci_suspend() local 327 struct proc_thermal_device *proc_priv; proc_thermal_pci_resume() local [all...] |
H A D | processor_thermal_mbox.c | 27 static int wait_for_mbox_ready(struct proc_thermal_device *proc_priv) in wait_for_mbox_ready() argument 35 data = readl(proc_priv->mmio_base + MBOX_OFFSET_INTERFACE); in wait_for_mbox_ready() 49 struct proc_thermal_device *proc_priv; in send_mbox_write_cmd() local 53 proc_priv = pci_get_drvdata(pdev); in send_mbox_write_cmd() 57 ret = wait_for_mbox_ready(proc_priv); in send_mbox_write_cmd() 61 writel(data, (proc_priv->mmio_base + MBOX_OFFSET_DATA)); in send_mbox_write_cmd() 64 writel(reg_data, (proc_priv->mmio_base + MBOX_OFFSET_INTERFACE)); in send_mbox_write_cmd() 66 ret = wait_for_mbox_ready(proc_priv); in send_mbox_write_cmd() 75 struct proc_thermal_device *proc_priv; in send_mbox_read_cmd() local 79 proc_priv in send_mbox_read_cmd() 211 proc_thermal_mbox_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv) proc_thermal_mbox_add() argument [all...] |
H A D | processor_thermal_rfim.c | 96 struct proc_thermal_device *proc_priv;\ 103 proc_priv = pci_get_drvdata(pdev);\ 117 reg_val = readl((void __iomem *) (proc_priv->mmio_base + mmio_regs[ret].offset));\ 127 struct proc_thermal_device *proc_priv;\ 136 proc_priv = pci_get_drvdata(pdev);\ 157 reg_val = readl((void __iomem *) (proc_priv->mmio_base + mmio_regs[ret].offset));\ 160 writel(reg_val, (void __iomem *) (proc_priv->mmio_base + mmio_regs[ret].offset));\ 339 int proc_thermal_rfim_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv) in proc_thermal_rfim_add() argument 343 if (proc_priv->mmio_feature_mask & PROC_THERMAL_FEATURE_FIVR) { in proc_thermal_rfim_add() 349 if (proc_priv in proc_thermal_rfim_add() 373 struct proc_thermal_device *proc_priv = pci_get_drvdata(pdev); proc_thermal_rfim_remove() local [all...] |
H A D | processor_thermal_device.h | 66 int proc_thermal_rapl_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv); 70 struct proc_thermal_device *proc_priv) in proc_thermal_rapl_add() 80 int proc_thermal_rfim_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv); 83 int proc_thermal_mbox_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv); 89 void proc_thermal_remove(struct proc_thermal_device *proc_priv); 93 struct proc_thermal_device *proc_priv, 95 void proc_thermal_mmio_remove(struct pci_dev *pdev, struct proc_thermal_device *proc_priv); 69 proc_thermal_rapl_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv) proc_thermal_rapl_add() argument
|
H A D | int3401_thermal.c | 23 struct proc_thermal_device *proc_priv; in int3401_add() local 26 proc_priv = devm_kzalloc(&pdev->dev, sizeof(*proc_priv), GFP_KERNEL); in int3401_add() 27 if (!proc_priv) in int3401_add() 30 ret = proc_thermal_add(&pdev->dev, proc_priv); in int3401_add() 34 platform_set_drvdata(pdev, proc_priv); in int3401_add()
|
H A D | processor_thermal_rapl.c | 82 int proc_thermal_rapl_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv) in proc_thermal_rapl_add() argument 96 proc_priv->mmio_base + in proc_thermal_rapl_add() 101 rapl_mmio_priv.reg_unit.mmio = proc_priv->mmio_base + rapl_regs->reg_unit; in proc_thermal_rapl_add()
|
/kernel/linux/linux-5.10/drivers/thermal/intel/int340x_thermal/ |
H A D | processor_thermal_device.c | 285 static int proc_thermal_read_ppcc(struct proc_thermal_device *proc_priv) in proc_thermal_read_ppcc() argument 294 status = acpi_evaluate_object(proc_priv->adev->handle, "PPCC", in proc_thermal_read_ppcc() 301 dev_err(proc_priv->dev, "Invalid PPCC data\n"); in proc_thermal_read_ppcc() 307 dev_err(proc_priv->dev, "Invalid PPCC package size\n"); in proc_thermal_read_ppcc() 320 proc_priv->power_limits[i].index = ppcc[0].integer.value; in proc_thermal_read_ppcc() 321 proc_priv->power_limits[i].min_uw = ppcc[1].integer.value; in proc_thermal_read_ppcc() 322 proc_priv->power_limits[i].max_uw = ppcc[2].integer.value; in proc_thermal_read_ppcc() 323 proc_priv->power_limits[i].tmin_us = ppcc[3].integer.value; in proc_thermal_read_ppcc() 324 proc_priv->power_limits[i].tmax_us = ppcc[4].integer.value; in proc_thermal_read_ppcc() 325 proc_priv in proc_thermal_read_ppcc() 337 struct proc_thermal_device *proc_priv = data; proc_thermal_notify() local 358 struct proc_thermal_device *proc_priv; proc_thermal_add() local 409 proc_thermal_remove(struct proc_thermal_device *proc_priv) proc_thermal_remove() argument 421 struct proc_thermal_device *proc_priv; int3401_add() local 458 struct proc_thermal_device *proc_priv; proc_thermal_pci_msi_irq() local 535 proc_thermal_rapl_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv, struct rapl_mmio_regs *rapl_regs) proc_thermal_rapl_add() argument 604 proc_thermal_rapl_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv, struct rapl_mmio_regs *rapl_regs) proc_thermal_rapl_add() argument 618 struct proc_thermal_device *proc_priv; proc_thermal_pci_probe() local 691 struct proc_thermal_device *proc_priv = pci_get_drvdata(pdev); proc_thermal_pci_remove() local [all...] |
/kernel/linux/linux-5.10/fs/proc/ |
H A D | task_mmu.c | 1908 struct proc_maps_private *proc_priv = &numa_priv->proc_maps; in show_numa_map() local 1928 mpol_to_str(buffer, sizeof(buffer), proc_priv->task_mempolicy); in show_numa_map()
|
/kernel/linux/linux-6.6/fs/proc/ |
H A D | task_mmu.c | 1957 struct proc_maps_private *proc_priv = &numa_priv->proc_maps; in show_numa_map() local 1977 mpol_to_str(buffer, sizeof(buffer), proc_priv->task_mempolicy); in show_numa_map()
|