Home
last modified time | relevance | path

Searched refs:bgp (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/drivers/thermal/ti-soc-thermal/
Dti-bandgap.c46 static int ti_bandgap_force_single_read(struct ti_bandgap *bgp, int id);
58 static u32 ti_bandgap_readl(struct ti_bandgap *bgp, u32 reg) in ti_bandgap_readl() argument
60 return readl(bgp->base + reg); in ti_bandgap_readl()
71 static void ti_bandgap_writel(struct ti_bandgap *bgp, u32 val, u32 reg) in ti_bandgap_writel() argument
73 writel(val, bgp->base + reg); in ti_bandgap_writel()
82 #define RMW_BITS(bgp, id, reg, mask, val) \ argument
87 t = bgp->conf->sensors[(id)].registers; \
88 r = ti_bandgap_readl(bgp, t->reg); \
91 ti_bandgap_writel(bgp, r, t->reg); \
106 static int ti_bandgap_power(struct ti_bandgap *bgp, bool on) in ti_bandgap_power() argument
[all …]
Dti-thermal-common.c45 struct ti_bandgap *bgp; member
85 struct ti_bandgap *bgp; in __ti_thermal_get_temp() local
93 bgp = data->bgp; in __ti_thermal_get_temp()
94 s = &bgp->conf->sensors[data->sensor_id]; in __ti_thermal_get_temp()
96 ret = ti_bandgap_read_temperature(bgp, data->sensor_id, &tmp); in __ti_thermal_get_temp()
113 dev_err(bgp->dev, in __ti_thermal_get_temp()
134 struct ti_bandgap *bgp; in __ti_thermal_get_trend() local
137 bgp = data->bgp; in __ti_thermal_get_trend()
140 ret = ti_bandgap_get_trend(bgp, id, &tr); in __ti_thermal_get_trend()
160 *ti_thermal_build_data(struct ti_bandgap *bgp, int id) in ti_thermal_build_data() argument
[all …]
Dti-thermal.h71 int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain);
72 int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id);
73 int ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id);
74 int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id);
75 int ti_thermal_unregister_cpu_cooling(struct ti_bandgap *bgp, int id);
78 int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain) in ti_thermal_expose_sensor() argument
84 int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id) in ti_thermal_remove_sensor() argument
90 int ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id) in ti_thermal_report_sensor_temperature() argument
96 int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id) in ti_thermal_register_cpu_cooling() argument
102 int ti_thermal_unregister_cpu_cooling(struct ti_bandgap *bgp, int id) in ti_thermal_unregister_cpu_cooling() argument
Dti-bandgap.h245 int (*register_cooling)(struct ti_bandgap *bgp, int id);
246 int (*unregister_cooling)(struct ti_bandgap *bgp, int id);
335 int (*report_temperature)(struct ti_bandgap *bgp, int id);
336 int (*expose_sensor)(struct ti_bandgap *bgp, int id, char *domain);
337 int (*remove_sensor)(struct ti_bandgap *bgp, int id);
343 int ti_bandgap_read_thot(struct ti_bandgap *bgp, int id, int *thot);
344 int ti_bandgap_write_thot(struct ti_bandgap *bgp, int id, int val);
345 int ti_bandgap_read_tcold(struct ti_bandgap *bgp, int id, int *tcold);
346 int ti_bandgap_write_tcold(struct ti_bandgap *bgp, int id, int val);
347 int ti_bandgap_read_update_interval(struct ti_bandgap *bgp, int id,
[all …]