/linux/drivers/thermal/intel/int340x_thermal/ |
H A D | processor_thermal_device.c | 197 static int proc_thermal_read_ppcc(struct proc_thermal_device *proc_priv) in proc_thermal_read_ppcc() argument 206 status = acpi_evaluate_object(proc_priv->adev->handle, "PPCC", in proc_thermal_read_ppcc() 213 dev_err(proc_priv->dev, "Invalid PPCC data\n"); in proc_thermal_read_ppcc() 219 dev_err(proc_priv->dev, "Invalid PPCC package size\n"); in proc_thermal_read_ppcc() 232 proc_priv->power_limits[i].index = ppcc[0].integer.value; in proc_thermal_read_ppcc() 233 proc_priv->power_limits[i].min_uw = ppcc[1].integer.value; in proc_thermal_read_ppcc() 234 proc_priv->power_limits[i].max_uw = ppcc[2].integer.value; in proc_thermal_read_ppcc() 235 proc_priv->power_limits[i].tmin_us = ppcc[3].integer.value; in proc_thermal_read_ppcc() 236 proc_priv->power_limits[i].tmax_us = ppcc[4].integer.value; in proc_thermal_read_ppcc() 237 proc_priv in proc_thermal_read_ppcc() 249 struct proc_thermal_device *proc_priv = data; proc_thermal_notify() local 266 proc_thermal_add(struct device * dev,struct proc_thermal_device * proc_priv) proc_thermal_add() argument 326 proc_thermal_remove(struct proc_thermal_device * proc_priv) proc_thermal_remove() argument 366 proc_thermal_set_mmio_base(struct pci_dev * pdev,struct proc_thermal_device * proc_priv) proc_thermal_set_mmio_base() argument 382 proc_thermal_mmio_add(struct pci_dev * pdev,struct proc_thermal_device * proc_priv,kernel_ulong_t feature_mask) proc_thermal_mmio_add() argument 448 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.c | 25 struct proc_thermal_device *proc_priv; member 85 *value = ioread32(((u8 __iomem *)pci_info->proc_priv->mmio_base + in proc_thermal_mmio_read() 98 current_val = ioread32(((u8 __iomem *)pci_info->proc_priv->mmio_base + in proc_thermal_mmio_write() 107 iowrite32(current_val, ((u8 __iomem *)pci_info->proc_priv->mmio_base + in proc_thermal_mmio_write() 137 static void proc_thermal_clear_soc_int_status(struct proc_thermal_device *proc_priv) in proc_thermal_clear_soc_int_status() argument 141 if (!(proc_priv->mmio_feature_mask & in proc_thermal_clear_soc_int_status() 145 status = readq(proc_priv->mmio_base + SOC_WT_RES_INT_STATUS_OFFSET); in proc_thermal_clear_soc_int_status() 147 proc_priv->mmio_base + SOC_WT_RES_INT_STATUS_OFFSET); in proc_thermal_clear_soc_int_status() 154 proc_thermal_wt_intr_callback(pci_info->pdev, pci_info->proc_priv); in proc_thermal_irq_thread_handler() 155 proc_thermal_power_floor_intr_callback(pci_info->pdev, pci_info->proc_priv); in proc_thermal_irq_thread_handler() 180 struct proc_thermal_device *proc_priv; proc_thermal_irq_handler() local 331 struct proc_thermal_device *proc_priv; proc_thermal_pci_probe() local 424 struct proc_thermal_device *proc_priv = pci_get_drvdata(pdev); proc_thermal_pci_remove() local 445 struct proc_thermal_device *proc_priv; proc_thermal_pci_suspend() local 459 struct proc_thermal_device *proc_priv; proc_thermal_pci_resume() local [all...] |
H A D | processor_thermal_mbox.c | 21 static int wait_for_mbox_ready(struct proc_thermal_device *proc_priv) in wait_for_mbox_ready() argument 29 data = readl(proc_priv->mmio_base + MBOX_OFFSET_INTERFACE); in wait_for_mbox_ready() 43 struct proc_thermal_device *proc_priv; in send_mbox_write_cmd() local 47 proc_priv = pci_get_drvdata(pdev); in send_mbox_write_cmd() 48 ret = wait_for_mbox_ready(proc_priv); in send_mbox_write_cmd() 52 writel(data, (proc_priv->mmio_base + MBOX_OFFSET_DATA)); in send_mbox_write_cmd() 55 writel(reg_data, (proc_priv->mmio_base + MBOX_OFFSET_INTERFACE)); in send_mbox_write_cmd() 57 return wait_for_mbox_ready(proc_priv); in send_mbox_write_cmd() 62 struct proc_thermal_device *proc_priv; in send_mbox_read_cmd() local 66 proc_priv in send_mbox_read_cmd() [all...] |
H A D | processor_thermal_power_floor.c | 38 int proc_thermal_read_power_floor_status(struct proc_thermal_device *proc_priv) in proc_thermal_read_power_floor_status() argument 42 status = readq(proc_priv->mmio_base + SOC_WT_RES_INT_STATUS_OFFSET); in proc_thermal_read_power_floor_status() 50 int proc_thermal_power_floor_set_state(struct proc_thermal_device *proc_priv, bool enable) in proc_thermal_power_floor_set_state() argument 62 ret = processor_thermal_mbox_interrupt_config(to_pci_dev(proc_priv->dev), enable, in proc_thermal_power_floor_set_state() 74 bool proc_thermal_power_floor_get_state(struct proc_thermal_device *proc_priv) in proc_thermal_power_floor_get_state() argument 82 * @proc_priv: Processor thermal device instance. 90 bool proc_thermal_check_power_floor_intr(struct proc_thermal_device *proc_priv) in proc_thermal_check_power_floor_intr() argument 94 int_status = readq(proc_priv->mmio_base + SOC_WT_RES_INT_STATUS_OFFSET); in proc_thermal_check_power_floor_intr() 102 * @proc_priv: Processor thermal device instance. 113 struct proc_thermal_device *proc_priv) in proc_thermal_power_floor_intr_callback() argument [all...] |
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_rfim.c | 179 struct proc_thermal_device *proc_priv;\ 186 proc_priv = pci_get_drvdata(pdev);\ 199 reg_val = readl((void __iomem *) (proc_priv->mmio_base + mmio_regs[ret].offset));\ 216 struct proc_thermal_device *proc_priv;\ 224 proc_priv = pci_get_drvdata(pdev);\ 249 reg_val = readl((void __iomem *) (proc_priv->mmio_base + mmio_regs[ret].offset));\ 252 writel(reg_val, (void __iomem *) (proc_priv->mmio_base + mmio_regs[ret].offset));\ 431 int proc_thermal_rfim_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv) in proc_thermal_rfim_add() argument 435 if (proc_priv->mmio_feature_mask & PROC_THERMAL_FEATURE_FIVR) { in proc_thermal_rfim_add() 441 if (proc_priv in proc_thermal_rfim_add() 476 struct proc_thermal_device *proc_priv = pci_get_drvdata(pdev); proc_thermal_rfim_remove() local [all...] |
H A D | platform_temperature_control.c | 95 struct proc_thermal_device *proc_priv; in ptc_mmio_show() local 100 proc_priv = pci_get_drvdata(pdev); in ptc_mmio_show() 110 reg_val = readq((void __iomem *) (proc_priv->mmio_base + data->offset)); in ptc_mmio_show() 129 struct proc_thermal_device *proc_priv; in ptc_mmio_write() local 132 proc_priv = pci_get_drvdata(pdev); in ptc_mmio_write() 139 reg_val = readq((void __iomem *) (proc_priv->mmio_base + offset)); in ptc_mmio_write() 142 writeq(reg_val, (void __iomem *) (proc_priv->mmio_base + offset)); in ptc_mmio_write() 278 int proc_thermal_ptc_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv) in proc_thermal_ptc_add() argument 280 if (proc_priv->mmio_feature_mask & PROC_THERMAL_FEATURE_PTC) { in proc_thermal_ptc_add() 298 struct proc_thermal_device *proc_priv in proc_thermal_ptc_remove() local [all...] |
H A D | processor_thermal_rapl.c | 46 int proc_thermal_rapl_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv) in proc_thermal_rapl_add() argument 61 proc_priv->mmio_base + in proc_thermal_rapl_add() 66 rapl_mmio_priv.reg_unit.mmio = proc_priv->mmio_base + rapl_regs->reg_unit; in proc_thermal_rapl_add()
|
/linux/fs/proc/ |
H A D | task_mmu.c | 3177 struct proc_maps_private *proc_priv = &numa_priv->proc_maps; in show_numa_map() local 3198 mpol_to_str(buffer, sizeof(buffer), proc_priv->task_mempolicy); in show_numa_map()
|