Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/thermal/intel/int340x_thermal/
Dprocessor_thermal_device.c214 static int proc_thermal_read_ppcc(struct proc_thermal_device *proc_priv) in proc_thermal_read_ppcc() argument
223 status = acpi_evaluate_object(proc_priv->adev->handle, "PPCC", in proc_thermal_read_ppcc()
230 dev_err(proc_priv->dev, "Invalid PPCC data\n"); in proc_thermal_read_ppcc()
236 dev_err(proc_priv->dev, "Invalid PPCC package size\n"); in proc_thermal_read_ppcc()
249 proc_priv->power_limits[i].index = ppcc[0].integer.value; in proc_thermal_read_ppcc()
250 proc_priv->power_limits[i].min_uw = ppcc[1].integer.value; in proc_thermal_read_ppcc()
251 proc_priv->power_limits[i].max_uw = ppcc[2].integer.value; in proc_thermal_read_ppcc()
252 proc_priv->power_limits[i].tmin_us = ppcc[3].integer.value; in proc_thermal_read_ppcc()
253 proc_priv->power_limits[i].tmax_us = ppcc[4].integer.value; in proc_thermal_read_ppcc()
254 proc_priv->power_limits[i].step_uw = ppcc[5].integer.value; in proc_thermal_read_ppcc()
[all …]
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 …]
Dprocessor_thermal_device_pci.c20 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()
217 struct proc_thermal_device *proc_priv; in proc_thermal_pci_probe() local
221 proc_priv = devm_kzalloc(&pdev->dev, sizeof(*proc_priv), GFP_KERNEL); in proc_thermal_pci_probe()
222 if (!proc_priv) in proc_thermal_pci_probe()
240 ret = proc_thermal_add(&pdev->dev, proc_priv); in proc_thermal_pci_probe()
246 proc_priv->priv_data = pci_info; in proc_thermal_pci_probe()
247 pci_info->proc_priv = proc_priv; in proc_thermal_pci_probe()
[all …]
Dprocessor_thermal_mbox.c27 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 = pci_get_drvdata(pdev); in send_mbox_read_cmd()
[all …]
Dprocessor_thermal_rfim.c73 struct proc_thermal_device *proc_priv;\
80 proc_priv = pci_get_drvdata(pdev);\
92 reg_val = readl((void __iomem *) (proc_priv->mmio_base + mmio_regs[ret].offset));\
102 struct proc_thermal_device *proc_priv;\
111 proc_priv = pci_get_drvdata(pdev);\
129 reg_val = readl((void __iomem *) (proc_priv->mmio_base + mmio_regs[ret].offset));\
132 writel(reg_val, (void __iomem *) (proc_priv->mmio_base + mmio_regs[ret].offset));\
266 int proc_thermal_rfim_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv) in proc_thermal_rfim_add() argument
270 if (proc_priv->mmio_feature_mask & PROC_THERMAL_FEATURE_FIVR) { in proc_thermal_rfim_add()
276 if (proc_priv->mmio_feature_mask & PROC_THERMAL_FEATURE_DVFS) { in proc_thermal_rfim_add()
[all …]
Dprocessor_thermal_device.h65 int proc_thermal_rapl_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv);
69 struct proc_thermal_device *proc_priv) in proc_thermal_rapl_add() argument
79 int proc_thermal_rfim_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv);
82 int proc_thermal_mbox_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv);
88 void proc_thermal_remove(struct proc_thermal_device *proc_priv);
92 struct proc_thermal_device *proc_priv,
94 void proc_thermal_mmio_remove(struct pci_dev *pdev, struct proc_thermal_device *proc_priv);
Dint3401_thermal.c23 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()
Dprocessor_thermal_rapl.c82 int proc_thermal_rapl_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv) in proc_thermal_rapl_add() argument
96 (u64)proc_priv->mmio_base + in proc_thermal_rapl_add()
100 rapl_mmio_priv.reg_unit = (u64)proc_priv->mmio_base + rapl_regs->reg_unit; in proc_thermal_rapl_add()
/Linux-v6.1/fs/proc/
Dtask_mmu.c1934 struct proc_maps_private *proc_priv = &numa_priv->proc_maps; in show_numa_map() local
1954 mpol_to_str(buffer, sizeof(buffer), proc_priv->task_mempolicy); in show_numa_map()