Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/thermal/ti-soc-thermal/
Dti-bandgap.c56 static u32 ti_bandgap_readl(struct ti_bandgap *bgp, u32 reg) in ti_bandgap_readl() argument
58 return readl(bgp->base + reg); in ti_bandgap_readl()
69 static void ti_bandgap_writel(struct ti_bandgap *bgp, u32 val, u32 reg) in ti_bandgap_writel() argument
71 writel(val, bgp->base + reg); in ti_bandgap_writel()
80 #define RMW_BITS(bgp, id, reg, mask, val) \ argument
85 t = bgp->conf->sensors[(id)].registers; \
86 r = ti_bandgap_readl(bgp, t->reg); \
89 ti_bandgap_writel(bgp, r, t->reg); \
104 static int ti_bandgap_power(struct ti_bandgap *bgp, bool on) in ti_bandgap_power() argument
108 if (!TI_BANDGAP_HAS(bgp, POWER_SWITCH)) { in ti_bandgap_power()
[all …]
Dti-thermal-common.c43 struct ti_bandgap *bgp; member
83 struct ti_bandgap *bgp; in __ti_thermal_get_temp() local
91 bgp = data->bgp; in __ti_thermal_get_temp()
92 s = &bgp->conf->sensors[data->sensor_id]; in __ti_thermal_get_temp()
94 ret = ti_bandgap_read_temperature(bgp, data->sensor_id, &tmp); in __ti_thermal_get_temp()
111 dev_err(bgp->dev, in __ti_thermal_get_temp()
186 struct ti_bandgap *bgp; in ti_thermal_set_mode() local
188 bgp = data->bgp; in ti_thermal_set_mode()
205 ti_bandgap_write_update_interval(bgp, data->sensor_id, in ti_thermal_set_mode()
244 struct ti_bandgap *bgp; in __ti_thermal_get_trend() local
[all …]
Dti-thermal.h87 int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain);
88 int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id);
89 int ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id);
90 int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id);
91 int ti_thermal_unregister_cpu_cooling(struct ti_bandgap *bgp, int id);
94 int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain) in ti_thermal_expose_sensor() argument
100 int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id) in ti_thermal_remove_sensor() argument
106 int ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id) in ti_thermal_report_sensor_temperature() argument
112 int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id) in ti_thermal_register_cpu_cooling() argument
118 int ti_thermal_unregister_cpu_cooling(struct ti_bandgap *bgp, int id) in ti_thermal_unregister_cpu_cooling() argument
Dti-bandgap.h281 int (*register_cooling)(struct ti_bandgap *bgp, int id);
282 int (*unregister_cooling)(struct ti_bandgap *bgp, int id);
371 int (*report_temperature)(struct ti_bandgap *bgp, int id);
372 int (*expose_sensor)(struct ti_bandgap *bgp, int id, char *domain);
373 int (*remove_sensor)(struct ti_bandgap *bgp, int id);
379 int ti_bandgap_read_thot(struct ti_bandgap *bgp, int id, int *thot);
380 int ti_bandgap_write_thot(struct ti_bandgap *bgp, int id, int val);
381 int ti_bandgap_read_tcold(struct ti_bandgap *bgp, int id, int *tcold);
382 int ti_bandgap_write_tcold(struct ti_bandgap *bgp, int id, int val);
383 int ti_bandgap_read_update_interval(struct ti_bandgap *bgp, int id,
[all …]
/linux-4.1.27/drivers/video/fbdev/
Dbt431.h204 u16 bgp = fgc ? 0x0000 : 0xffff; in bt431_set_font() local
211 value = bgp; in bt431_set_font()
213 value = bgp; in bt431_set_font()
217 value = fgp & ~(bgp << (width % 8 << 1)); in bt431_set_font()