Lines Matching refs:ec_data
950 struct ec_sensors_data *ec_data; in asus_ec_probe() local
961 ec_data = devm_kzalloc(dev, sizeof(struct ec_sensors_data), in asus_ec_probe()
963 if (!ec_data) in asus_ec_probe()
966 dev_set_drvdata(dev, ec_data); in asus_ec_probe()
967 ec_data->board_info = pboard_info; in asus_ec_probe()
969 switch (ec_data->board_info->family) { in asus_ec_probe()
971 ec_data->sensors_info = sensors_family_amd_400; in asus_ec_probe()
974 ec_data->sensors_info = sensors_family_amd_500; in asus_ec_probe()
977 ec_data->sensors_info = sensors_family_amd_600; in asus_ec_probe()
980 ec_data->sensors_info = sensors_family_intel_300; in asus_ec_probe()
983 ec_data->sensors_info = sensors_family_intel_600; in asus_ec_probe()
987 ec_data->board_info->family); in asus_ec_probe()
991 ec_data->nr_sensors = hweight_long(ec_data->board_info->sensors); in asus_ec_probe()
992 ec_data->sensors = devm_kcalloc(dev, ec_data->nr_sensors, in asus_ec_probe()
994 if (!ec_data->sensors) in asus_ec_probe()
1003 setup_sensor_data(ec_data); in asus_ec_probe()
1004 ec_data->registers = devm_kcalloc(dev, ec_data->nr_registers, in asus_ec_probe()
1006 ec_data->read_buffer = devm_kcalloc(dev, ec_data->nr_registers, in asus_ec_probe()
1009 if (!ec_data->registers || !ec_data->read_buffer) in asus_ec_probe()
1012 fill_ec_registers(ec_data); in asus_ec_probe()
1014 for (i = 0; i < ec_data->nr_sensors; ++i) { in asus_ec_probe()
1015 si = get_sensor_info(ec_data, i); in asus_ec_probe()
1048 ec_data->nr_sensors, ec_data->nr_registers); in asus_ec_probe()
1051 ec_data, chip_info, NULL); in asus_ec_probe()