Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/thermal/ti-soc-thermal/
Dti-bandgap.c38 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 …]
Dti-thermal-common.c32 struct ti_bandgap *bgp; member
72 struct ti_bandgap *bgp; in __ti_thermal_get_temp() local
80 bgp = data->bgp; in __ti_thermal_get_temp()
81 s = &bgp->conf->sensors[data->sensor_id]; in __ti_thermal_get_temp()
83 ret = ti_bandgap_read_temperature(bgp, data->sensor_id, &tmp); in __ti_thermal_get_temp()
100 dev_err(bgp->dev, in __ti_thermal_get_temp()
113 struct ti_bandgap *bgp; in __ti_thermal_get_trend() local
116 bgp = data->bgp; in __ti_thermal_get_trend()
119 ret = ti_bandgap_get_trend(bgp, id, &tr); in __ti_thermal_get_trend()
139 *ti_thermal_build_data(struct ti_bandgap *bgp, int id) in ti_thermal_build_data() argument
[all …]
Dti-thermal.h57 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
Dti-bandgap.h239 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 …]
/Linux-v6.1/drivers/thermal/
Dk3_j72xx_bandgap.c186 struct k3_j72xx_bandgap *bgp; member
220 struct k3_j72xx_bandgap *bgp; in k3_bgp_read_temp() local
223 bgp = devdata->bgp; in k3_bgp_read_temp()
233 s0 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
235 s1 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
237 s2 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
286 struct k3_j72xx_bandgap *bgp) in get_efuse_values() argument
308 tmp = (readl(bgp->fuse_base + 0x8) & 0xE0000000) >> (29); in get_efuse_values()
309 tmp |= ((readl(bgp->fuse_base + 0xC) & 0x1F) << 3); in get_efuse_values()
313 tmp = (readl(bgp->fuse_base + 0x4) & 0xF8000000) >> (27); in get_efuse_values()
[all …]
Dk3_bandgap.c87 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 …]
/Linux-v6.1/Documentation/networking/devlink/
Ddevlink-trap.rst554 * - ``bgp``