| /linux/drivers/thermal/intel/int340x_thermal/ |
| H A D | processor_thermal_device.c | 198 static int proc_thermal_read_ppcc(struct proc_thermal_device *proc_priv) in proc_thermal_read_ppcc() argument 207 status = acpi_evaluate_object(proc_priv->adev->handle, "PPCC", in proc_thermal_read_ppcc() 214 dev_err(proc_priv->dev, "Invalid PPCC data\n"); in proc_thermal_read_ppcc() 220 dev_err(proc_priv->dev, "Invalid PPCC package size\n"); in proc_thermal_read_ppcc() 233 proc_priv->power_limits[i].index = ppcc[0].integer.value; in proc_thermal_read_ppcc() 234 proc_priv->power_limits[i].min_uw = ppcc[1].integer.value; in proc_thermal_read_ppcc() 235 proc_priv->power_limits[i].max_uw = ppcc[2].integer.value; in proc_thermal_read_ppcc() 236 proc_priv->power_limits[i].tmin_us = ppcc[3].integer.value; in proc_thermal_read_ppcc() 237 proc_priv->power_limits[i].tmax_us = ppcc[4].integer.value; in proc_thermal_read_ppcc() 238 proc_priv->power_limits[i].step_uw = ppcc[5].integer.value; in proc_thermal_read_ppcc() [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->soc_dts = intel_soc_dts_iosf_init( in proc_thermal_pci_probe() 64 if (!IS_ERR(proc_priv->soc_dts) && pdev->irq) { in proc_thermal_pci_probe() [all …]
|
| H A D | processor_thermal_device.h | 77 int proc_thermal_rapl_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv); 81 struct proc_thermal_device *proc_priv) in proc_thermal_rapl_add() argument 91 int proc_thermal_rfim_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv); 94 int proc_thermal_wt_req_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv); 106 int proc_thermal_read_power_floor_status(struct proc_thermal_device *proc_priv); 107 int proc_thermal_power_floor_set_state(struct proc_thermal_device *proc_priv, bool enable); 108 bool proc_thermal_power_floor_get_state(struct proc_thermal_device *proc_priv); 110 struct proc_thermal_device *proc_priv); 111 bool proc_thermal_check_power_floor_intr(struct proc_thermal_device *proc_priv); 118 void proc_thermal_remove(struct proc_thermal_device *proc_priv); [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() [all …]
|
| H A D | processor_thermal_soc_slider.c | 165 static inline u64 read_soc_slider(struct proc_thermal_device *proc_priv) in read_soc_slider() argument 167 return readq(proc_priv->mmio_base + SOC_POWER_SLIDER_OFFSET); in read_soc_slider() 170 static inline void write_soc_slider(struct proc_thermal_device *proc_priv, u64 val) in write_soc_slider() argument 172 writeq(val, proc_priv->mmio_base + SOC_POWER_SLIDER_OFFSET); in write_soc_slider() 177 static void set_soc_power_profile(struct proc_thermal_device *proc_priv, int slider) in set_soc_power_profile() argument 182 val = read_soc_slider(proc_priv); in set_soc_power_profile() 195 write_soc_slider(proc_priv, val); in set_soc_power_profile() 203 struct proc_thermal_device *proc_priv; in power_slider_platform_profile_set() local 206 proc_priv = dev_get_drvdata(dev); in power_slider_platform_profile_set() 207 if (!proc_priv) in power_slider_platform_profile_set() [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 = pci_get_drvdata(pdev); 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 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() 113 struct proc_thermal_device *proc_priv) in proc_thermal_power_floor_intr_callback() argument 117 status = readq(proc_priv->mmio_base + SOC_WT_RES_INT_STATUS_OFFSET); in proc_thermal_power_floor_intr_callback()
|
| H A D | processor_thermal_rfim.c | 191 struct proc_thermal_device *proc_priv;\ 198 proc_priv = pci_get_drvdata(pdev);\ 211 reg_val = readl((void __iomem *) (proc_priv->mmio_base + mmio_regs[ret].offset));\ 228 struct proc_thermal_device *proc_priv;\ 236 proc_priv = pci_get_drvdata(pdev);\ 261 reg_val = readl((void __iomem *) (proc_priv->mmio_base + mmio_regs[ret].offset));\ 264 writel(reg_val, (void __iomem *) (proc_priv->mmio_base + mmio_regs[ret].offset));\ 443 int proc_thermal_rfim_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv) in proc_thermal_rfim_add() argument 447 if (proc_priv->mmio_feature_mask & PROC_THERMAL_FEATURE_FIVR) { in proc_thermal_rfim_add() 453 if (proc_priv->mmio_feature_mask & PROC_THERMAL_FEATURE_DLVR) { in proc_thermal_rfim_add() [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 | 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 = pci_get_drvdata(pdev); in proc_thermal_ptc_remove() local [all …]
|
| H A D | processor_thermal_wt_hint.c | 58 struct proc_thermal_device *proc_priv; in workload_type_index_show() local 69 proc_priv = pci_get_drvdata(pdev); in workload_type_index_show() 71 status = readq(proc_priv->mmio_base + SOC_WT_RES_INT_STATUS_OFFSET); in workload_type_index_show() 238 bool proc_thermal_check_wt_intr(struct proc_thermal_device *proc_priv) in proc_thermal_check_wt_intr() argument 242 int_status = readq(proc_priv->mmio_base + SOC_WT_RES_INT_STATUS_OFFSET); in proc_thermal_check_wt_intr() 251 void proc_thermal_wt_intr_callback(struct pci_dev *pdev, struct proc_thermal_device *proc_priv) in proc_thermal_wt_intr_callback() argument 255 status = readq(proc_priv->mmio_base + SOC_WT_RES_INT_STATUS_OFFSET); in proc_thermal_wt_intr_callback() 265 int proc_thermal_wt_hint_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv) in proc_thermal_wt_hint_add() argument
|
| 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()
|
| H A D | processor_thermal_wt_req.c | 107 int proc_thermal_wt_req_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv) in proc_thermal_wt_req_add() argument
|
| /linux/fs/proc/ |
| H A D | task_mmu.c | 3300 struct proc_maps_private *proc_priv = &numa_priv->proc_maps; in show_numa_map() local 3321 mpol_to_str(buffer, sizeof(buffer), proc_priv->task_mempolicy); in show_numa_map()
|