Lines Matching refs: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()
272 int mult = data->sensors[attr->index].multiplier; in ibmpex_show_sensor()
276 data->sensors[attr->index].values[attr->nr] * mult); in ibmpex_show_sensor()
344 sysfs_attr_init(&data->sensors[sensor].attr[func].dev_attr.attr); in create_sensor()
345 data->sensors[sensor].attr[func].dev_attr.attr.name = n; in create_sensor()
346 data->sensors[sensor].attr[func].dev_attr.attr.mode = 0444; in create_sensor()
347 data->sensors[sensor].attr[func].dev_attr.show = ibmpex_show_sensor; in create_sensor()
348 data->sensors[sensor].attr[func].index = sensor; in create_sensor()
349 data->sensors[sensor].attr[func].nr = func; in create_sensor()
352 &data->sensors[sensor].attr[func].dev_attr); in create_sensor()
354 data->sensors[sensor].attr[func].dev_attr.attr.name = NULL; in create_sensor()
375 data->sensors = kcalloc(data->num_sensors, sizeof(*data->sensors), in ibmpex_find_sensors()
377 if (!data->sensors) in ibmpex_find_sensors()
389 data->sensors[i].multiplier = in ibmpex_find_sensors()
398 data->sensors[i].multiplier = 1000; in ibmpex_find_sensors()
402 data->sensors[i].in_use = 1; in ibmpex_find_sensors()
431 if (!data->sensors[i].attr[j].dev_attr.attr.name) in ibmpex_find_sensors()
434 &data->sensors[i].attr[j].dev_attr); in ibmpex_find_sensors()
435 kfree(data->sensors[i].attr[j].dev_attr.attr.name); in ibmpex_find_sensors()
438 kfree(data->sensors); in ibmpex_find_sensors()
522 if (!data->sensors[i].attr[j].dev_attr.attr.name) in ibmpex_bmc_delete()
525 &data->sensors[i].attr[j].dev_attr); in ibmpex_bmc_delete()
526 kfree(data->sensors[i].attr[j].dev_attr.attr.name); in ibmpex_bmc_delete()
533 kfree(data->sensors); in ibmpex_bmc_delete()