Searched refs:bgp (Results 1 – 4 of 4) sorted by relevance
| /Linux-v5.4/drivers/thermal/ti-soc-thermal/ |
| D | ti-bandgap.c | 32 static int ti_bandgap_force_single_read(struct ti_bandgap *bgp, int id); 44 static u32 ti_bandgap_readl(struct ti_bandgap *bgp, u32 reg) in ti_bandgap_readl() argument 46 return readl(bgp->base + reg); in ti_bandgap_readl() 57 static void ti_bandgap_writel(struct ti_bandgap *bgp, u32 val, u32 reg) in ti_bandgap_writel() argument 59 writel(val, bgp->base + reg); in ti_bandgap_writel() 68 #define RMW_BITS(bgp, id, reg, mask, val) \ argument 73 t = bgp->conf->sensors[(id)].registers; \ 74 r = ti_bandgap_readl(bgp, t->reg); \ 77 ti_bandgap_writel(bgp, r, t->reg); \ 92 static int ti_bandgap_power(struct ti_bandgap *bgp, bool on) in ti_bandgap_power() argument [all …]
|
| D | ti-thermal-common.c | 31 struct ti_bandgap *bgp; member 71 struct ti_bandgap *bgp; in __ti_thermal_get_temp() local 79 bgp = data->bgp; in __ti_thermal_get_temp() 80 s = &bgp->conf->sensors[data->sensor_id]; in __ti_thermal_get_temp() 82 ret = ti_bandgap_read_temperature(bgp, data->sensor_id, &tmp); in __ti_thermal_get_temp() 99 dev_err(bgp->dev, in __ti_thermal_get_temp() 120 struct ti_bandgap *bgp; in __ti_thermal_get_trend() local 123 bgp = data->bgp; in __ti_thermal_get_trend() 126 ret = ti_bandgap_get_trend(bgp, id, &tr); in __ti_thermal_get_trend() 146 *ti_thermal_build_data(struct ti_bandgap *bgp, int id) in ti_thermal_build_data() argument [all …]
|
| D | ti-thermal.h | 57 int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain); 58 int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id); 59 int ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id); 60 int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id); 61 int ti_thermal_unregister_cpu_cooling(struct ti_bandgap *bgp, int id); 64 int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain) in ti_thermal_expose_sensor() argument 70 int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id) in ti_thermal_remove_sensor() argument 76 int ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id) in ti_thermal_report_sensor_temperature() argument 82 int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id) in ti_thermal_register_cpu_cooling() argument 88 int ti_thermal_unregister_cpu_cooling(struct ti_bandgap *bgp, int id) in ti_thermal_unregister_cpu_cooling() argument
|
| D | ti-bandgap.h | 231 int (*register_cooling)(struct ti_bandgap *bgp, int id); 232 int (*unregister_cooling)(struct ti_bandgap *bgp, int id); 321 int (*report_temperature)(struct ti_bandgap *bgp, int id); 322 int (*expose_sensor)(struct ti_bandgap *bgp, int id, char *domain); 323 int (*remove_sensor)(struct ti_bandgap *bgp, int id); 329 int ti_bandgap_read_thot(struct ti_bandgap *bgp, int id, int *thot); 330 int ti_bandgap_write_thot(struct ti_bandgap *bgp, int id, int val); 331 int ti_bandgap_read_tcold(struct ti_bandgap *bgp, int id, int *tcold); 332 int ti_bandgap_write_tcold(struct ti_bandgap *bgp, int id, int val); 333 int ti_bandgap_read_update_interval(struct ti_bandgap *bgp, int id, [all …]
|