Lines Matching full:sensors

3  * A hwmon driver for the IBM PowerExecutive temperature/power sensors
90 struct ibmpex_sensor_data *sensors; member
228 if (!data->sensors[i].in_use) in ibmpex_update_device()
233 data->sensors[i].values[0] = in ibmpex_update_device()
235 data->sensors[i].values[1] = in ibmpex_update_device()
237 data->sensors[i].values[2] = in ibmpex_update_device()
267 int mult = data->sensors[attr->index].multiplier; in ibmpex_show_sensor()
271 data->sensors[attr->index].values[attr->nr] * mult); in ibmpex_show_sensor()
339 sysfs_attr_init(&data->sensors[sensor].attr[func].dev_attr.attr); in create_sensor()
340 data->sensors[sensor].attr[func].dev_attr.attr.name = n; in create_sensor()
341 data->sensors[sensor].attr[func].dev_attr.attr.mode = 0444; in create_sensor()
342 data->sensors[sensor].attr[func].dev_attr.show = ibmpex_show_sensor; in create_sensor()
343 data->sensors[sensor].attr[func].index = sensor; in create_sensor()
344 data->sensors[sensor].attr[func].nr = func; in create_sensor()
347 &data->sensors[sensor].attr[func].dev_attr); in create_sensor()
349 data->sensors[sensor].attr[func].dev_attr.attr.name = NULL; in create_sensor()
370 data->sensors = kcalloc(data->num_sensors, sizeof(*data->sensors), in ibmpex_find_sensors()
372 if (!data->sensors) in ibmpex_find_sensors()
384 data->sensors[i].multiplier = in ibmpex_find_sensors()
393 data->sensors[i].multiplier = 1000; in ibmpex_find_sensors()
397 data->sensors[i].in_use = 1; in ibmpex_find_sensors()
425 if (!data->sensors[i].attr[j].dev_attr.attr.name) in ibmpex_find_sensors()
428 &data->sensors[i].attr[j].dev_attr); in ibmpex_find_sensors()
429 kfree(data->sensors[i].attr[j].dev_attr.attr.name); in ibmpex_find_sensors()
432 kfree(data->sensors); in ibmpex_find_sensors()
489 /* Now go find all the sensors */ in ibmpex_register_bmc()
492 dev_err(data->bmc_device, "Error %d finding sensors\n", err); in ibmpex_register_bmc()
516 if (!data->sensors[i].attr[j].dev_attr.attr.name) in ibmpex_bmc_delete()
519 &data->sensors[i].attr[j].dev_attr); in ibmpex_bmc_delete()
520 kfree(data->sensors[i].attr[j].dev_attr.attr.name); in ibmpex_bmc_delete()
527 kfree(data->sensors); in ibmpex_bmc_delete()