Searched refs:bgp (Results 1 – 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/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 | 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 | 239 int (*register_cooling)(struct ti_bandgap *bgp, int id); 240 int (*unregister_cooling)(struct ti_bandgap *bgp, int id); 329 int (*report_temperature)(struct ti_bandgap *bgp, int id); 330 int (*expose_sensor)(struct ti_bandgap *bgp, int id, char *domain); 331 int (*remove_sensor)(struct ti_bandgap *bgp, int id); 337 int ti_bandgap_read_thot(struct ti_bandgap *bgp, int id, int *thot); 338 int ti_bandgap_write_thot(struct ti_bandgap *bgp, int id, int val); 339 int ti_bandgap_read_tcold(struct ti_bandgap *bgp, int id, int *tcold); 340 int ti_bandgap_write_tcold(struct ti_bandgap *bgp, int id, int val); 341 int ti_bandgap_read_update_interval(struct ti_bandgap *bgp, int id, [all …]
|
/kernel/linux/linux-5.10/drivers/thermal/ |
D | k3_bandgap.c | 85 struct k3_bandgap *bgp; member 110 struct k3_bandgap *bgp; in k3_bgp_read_temp() local 113 bgp = devdata->bgp; in k3_bgp_read_temp() 124 s0 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp() 126 s1 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp() 128 s2 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp() 163 struct k3_bandgap *bgp; in k3_bandgap_probe() local 170 bgp = devm_kzalloc(&pdev->dev, sizeof(*bgp), GFP_KERNEL); in k3_bandgap_probe() 171 if (!bgp) in k3_bandgap_probe() 175 bgp->base = devm_ioremap_resource(dev, res); in k3_bandgap_probe() [all …]
|
/kernel/linux/linux-5.10/Documentation/networking/devlink/ |
D | devlink-trap.rst | 544 * - ``bgp``
|