/drivers/thermal/ti-soc-thermal/ |
D | ti-bandgap.c | 38 static int ti_bandgap_force_single_read(struct ti_bandgap *bgp, int id); 54 static u32 ti_bandgap_readl(struct ti_bandgap *bgp, u32 reg) in ti_bandgap_readl() argument 56 return readl(bgp->base + reg); in ti_bandgap_readl() 67 static void ti_bandgap_writel(struct ti_bandgap *bgp, u32 val, u32 reg) in ti_bandgap_writel() argument 69 writel(val, bgp->base + reg); in ti_bandgap_writel() 78 #define RMW_BITS(bgp, id, reg, mask, val) \ argument 83 t = bgp->conf->sensors[(id)].registers; \ 84 r = ti_bandgap_readl(bgp, t->reg); \ 87 ti_bandgap_writel(bgp, r, t->reg); \ 102 static int ti_bandgap_power(struct ti_bandgap *bgp, bool on) in ti_bandgap_power() argument [all …]
|
D | ti-thermal-common.c | 34 struct ti_bandgap *bgp; member 48 dev_dbg(data->bgp->dev, "updated thermal zone %s\n", in ti_thermal_work() 74 struct ti_bandgap *bgp; in __ti_thermal_get_temp() local 82 bgp = data->bgp; in __ti_thermal_get_temp() 83 s = &bgp->conf->sensors[data->sensor_id]; in __ti_thermal_get_temp() 85 ret = ti_bandgap_read_temperature(bgp, data->sensor_id, &tmp); in __ti_thermal_get_temp() 102 dev_err(bgp->dev, in __ti_thermal_get_temp() 117 struct ti_bandgap *bgp; in __ti_thermal_get_trend() local 120 bgp = data->bgp; in __ti_thermal_get_trend() 123 ret = ti_bandgap_get_trend(bgp, id, &tr); in __ti_thermal_get_trend() [all …]
|
D | ti-thermal.h | 42 int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain); 43 int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id); 44 int ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id); 45 int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id); 46 int ti_thermal_unregister_cpu_cooling(struct ti_bandgap *bgp, int id); 49 int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain) in ti_thermal_expose_sensor() argument 55 int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id) in ti_thermal_remove_sensor() argument 61 int ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id) in ti_thermal_report_sensor_temperature() argument 67 int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id) in ti_thermal_register_cpu_cooling() argument 73 int ti_thermal_unregister_cpu_cooling(struct ti_bandgap *bgp, int id) in ti_thermal_unregister_cpu_cooling() argument
|
D | ti-bandgap.h | 239 int (*register_cooling)(struct ti_bandgap *bgp, int id); 240 int (*unregister_cooling)(struct ti_bandgap *bgp, int id); 331 int (*report_temperature)(struct ti_bandgap *bgp, int id); 332 int (*expose_sensor)(struct ti_bandgap *bgp, int id, char *domain); 333 int (*remove_sensor)(struct ti_bandgap *bgp, int id); 339 int ti_bandgap_read_thot(struct ti_bandgap *bgp, int id, int *thot); 340 int ti_bandgap_write_thot(struct ti_bandgap *bgp, int id, int val); 341 int ti_bandgap_read_tcold(struct ti_bandgap *bgp, int id, int *tcold); 342 int ti_bandgap_write_tcold(struct ti_bandgap *bgp, int id, int val); 343 int ti_bandgap_read_update_interval(struct ti_bandgap *bgp, int id, [all …]
|
/drivers/thermal/ |
D | k3_bandgap.c | 87 struct k3_bandgap *bgp; member 112 struct k3_bandgap *bgp; in k3_bgp_read_temp() local 115 bgp = devdata->bgp; in k3_bgp_read_temp() 126 s0 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp() 128 s1 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp() 130 s2 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp() 165 struct k3_bandgap *bgp; in k3_bandgap_probe() local 172 bgp = devm_kzalloc(&pdev->dev, sizeof(*bgp), GFP_KERNEL); in k3_bandgap_probe() 173 if (!bgp) in k3_bandgap_probe() 177 bgp->base = devm_ioremap_resource(dev, res); in k3_bandgap_probe() [all …]
|
D | k3_j72xx_bandgap.c | 185 struct k3_j72xx_bandgap *bgp; member 219 struct k3_j72xx_bandgap *bgp; in k3_bgp_read_temp() local 222 bgp = devdata->bgp; in k3_bgp_read_temp() 232 s0 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp() 234 s1 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp() 236 s2 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp() 351 struct k3_j72xx_bandgap *bgp; in k3_j72xx_bandgap_probe() local 374 bgp = devm_kzalloc(&pdev->dev, sizeof(*bgp), GFP_KERNEL); in k3_j72xx_bandgap_probe() 375 if (!bgp) in k3_j72xx_bandgap_probe() 378 bgp->dev = dev; in k3_j72xx_bandgap_probe() [all …]
|