Lines Matching defs:bgp

31 	struct ti_bandgap *bgp;
71 struct ti_bandgap *bgp;
79 bgp = data->bgp;
80 s = &bgp->conf->sensors[data->sensor_id];
82 ret = ti_bandgap_read_temperature(bgp, data->sensor_id, &tmp);
99 dev_err(bgp->dev,
120 struct ti_bandgap *bgp;
123 bgp = data->bgp;
126 ret = ti_bandgap_get_trend(bgp, id, &tr);
146 *ti_thermal_build_data(struct ti_bandgap *bgp, int id)
150 data = devm_kzalloc(bgp->dev, sizeof(*data), GFP_KERNEL);
152 dev_err(bgp->dev, "kzalloc fail\n");
156 data->bgp = bgp;
165 int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id,
170 data = ti_bandgap_get_sensor_data(bgp, id);
173 data = ti_thermal_build_data(bgp, id);
179 data->ti_thermal = devm_thermal_zone_of_sensor_register(bgp->dev, id,
182 dev_err(bgp->dev, "thermal zone device is NULL\n");
186 ti_bandgap_set_sensor_data(bgp, id, data);
187 ti_bandgap_write_update_interval(bgp, data->sensor_id,
193 int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id)
197 data = ti_bandgap_get_sensor_data(bgp, id);
207 int ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id)
211 data = ti_bandgap_get_sensor_data(bgp, id);
218 int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id)
221 struct device_node *np = bgp->dev->of_node;
231 data = ti_bandgap_get_sensor_data(bgp, id);
233 data = ti_thermal_build_data(bgp, id);
248 dev_err(bgp->dev, "Failed to register cpu cooling device %d\n",
254 ti_bandgap_set_sensor_data(bgp, id, data);
259 int ti_thermal_unregister_cpu_cooling(struct ti_bandgap *bgp, int id)
263 data = ti_bandgap_get_sensor_data(bgp, id);