Home
last modified time | relevance | path

Searched refs:proc_priv (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/thermal/intel/int340x_thermal/
H A Dprocessor_thermal_device.c196 static int proc_thermal_read_ppcc(struct proc_thermal_device *proc_priv) in proc_thermal_read_ppcc() argument
205 status = acpi_evaluate_object(proc_priv->adev->handle, "PPCC", in proc_thermal_read_ppcc()
212 dev_err(proc_priv->dev, "Invalid PPCC data\n"); in proc_thermal_read_ppcc()
218 dev_err(proc_priv->dev, "Invalid PPCC package size\n"); in proc_thermal_read_ppcc()
231 proc_priv->power_limits[i].index = ppcc[0].integer.value; in proc_thermal_read_ppcc()
232 proc_priv->power_limits[i].min_uw = ppcc[1].integer.value; in proc_thermal_read_ppcc()
233 proc_priv->power_limits[i].max_uw = ppcc[2].integer.value; in proc_thermal_read_ppcc()
234 proc_priv->power_limits[i].tmin_us = ppcc[3].integer.value; in proc_thermal_read_ppcc()
235 proc_priv->power_limits[i].tmax_us = ppcc[4].integer.value; in proc_thermal_read_ppcc()
236 proc_priv->power_limits[i].step_uw = ppcc[5].integer.value; in proc_thermal_read_ppcc()
[all …]
H A Dprocessor_thermal_device_pci_legacy.c21 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 Dprocessor_thermal_device_pci.c25 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 Dprocessor_thermal_device.h71 int proc_thermal_rapl_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv);
75 struct proc_thermal_device *proc_priv) in proc_thermal_rapl_add() argument
85 int proc_thermal_rfim_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv);
88 int proc_thermal_wt_req_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv);
100 int proc_thermal_read_power_floor_status(struct proc_thermal_device *proc_priv);
101 int proc_thermal_power_floor_set_state(struct proc_thermal_device *proc_priv, bool enable);
102 bool proc_thermal_power_floor_get_state(struct proc_thermal_device *proc_priv);
104 struct proc_thermal_device *proc_priv);
105 bool proc_thermal_check_power_floor_intr(struct proc_thermal_device *proc_priv);
112 void proc_thermal_remove(struct proc_thermal_device *proc_priv);
[all …]
H A Dprocessor_thermal_mbox.c21 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 Dprocessor_thermal_power_floor.c38 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 Dprocessor_thermal_rfim.c175 struct proc_thermal_device *proc_priv;\
183 proc_priv = pci_get_drvdata(pdev);\
202 reg_val = readl((void __iomem *) (proc_priv->mmio_base + mmio_regs[ret].offset));\
218 struct proc_thermal_device *proc_priv;\
227 proc_priv = pci_get_drvdata(pdev);\
258 reg_val = readl((void __iomem *) (proc_priv->mmio_base + mmio_regs[ret].offset));\
261 writel(reg_val, (void __iomem *) (proc_priv->mmio_base + mmio_regs[ret].offset));\
440 int proc_thermal_rfim_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv) in proc_thermal_rfim_add() argument
444 if (proc_priv->mmio_feature_mask & PROC_THERMAL_FEATURE_FIVR) { in proc_thermal_rfim_add()
450 if (proc_priv->mmio_feature_mask & PROC_THERMAL_FEATURE_DLVR) { in proc_thermal_rfim_add()
[all …]
H A Dprocessor_thermal_wt_hint.c56 struct proc_thermal_device *proc_priv; in workload_type_index_show() local
67 proc_priv = pci_get_drvdata(pdev); in workload_type_index_show()
69 status = readq(proc_priv->mmio_base + SOC_WT_RES_INT_STATUS_OFFSET); in workload_type_index_show()
197 bool proc_thermal_check_wt_intr(struct proc_thermal_device *proc_priv) in proc_thermal_check_wt_intr() argument
201 int_status = readq(proc_priv->mmio_base + SOC_WT_RES_INT_STATUS_OFFSET); in proc_thermal_check_wt_intr()
210 void proc_thermal_wt_intr_callback(struct pci_dev *pdev, struct proc_thermal_device *proc_priv) in proc_thermal_wt_intr_callback() argument
214 status = readq(proc_priv->mmio_base + SOC_WT_RES_INT_STATUS_OFFSET); in proc_thermal_wt_intr_callback()
224 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 Dprocessor_thermal_rapl.c46 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 Dprocessor_thermal_wt_req.c106 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 Dtask_mmu.c3008 struct proc_maps_private *proc_priv = &numa_priv->proc_maps; in show_numa_map() local
3029 mpol_to_str(buffer, sizeof(buffer), proc_priv->task_mempolicy); in show_numa_map()