Lines Matching refs:ec_data
900 struct ec_sensors_data *ec_data; in asus_ec_probe() local
911 ec_data = devm_kzalloc(dev, sizeof(struct ec_sensors_data), in asus_ec_probe()
913 if (!ec_data) in asus_ec_probe()
916 dev_set_drvdata(dev, ec_data); in asus_ec_probe()
917 ec_data->board_info = pboard_info; in asus_ec_probe()
919 switch (ec_data->board_info->family) { in asus_ec_probe()
921 ec_data->sensors_info = sensors_family_amd_400; in asus_ec_probe()
924 ec_data->sensors_info = sensors_family_amd_500; in asus_ec_probe()
927 ec_data->sensors_info = sensors_family_intel_300; in asus_ec_probe()
930 ec_data->sensors_info = sensors_family_intel_600; in asus_ec_probe()
934 ec_data->board_info->family); in asus_ec_probe()
938 ec_data->nr_sensors = hweight_long(ec_data->board_info->sensors); in asus_ec_probe()
939 ec_data->sensors = devm_kcalloc(dev, ec_data->nr_sensors, in asus_ec_probe()
941 if (!ec_data->sensors) in asus_ec_probe()
950 setup_sensor_data(ec_data); in asus_ec_probe()
951 ec_data->registers = devm_kcalloc(dev, ec_data->nr_registers, in asus_ec_probe()
953 ec_data->read_buffer = devm_kcalloc(dev, ec_data->nr_registers, in asus_ec_probe()
956 if (!ec_data->registers || !ec_data->read_buffer) in asus_ec_probe()
959 fill_ec_registers(ec_data); in asus_ec_probe()
961 for (i = 0; i < ec_data->nr_sensors; ++i) { in asus_ec_probe()
962 si = get_sensor_info(ec_data, i); in asus_ec_probe()
995 ec_data->nr_sensors, ec_data->nr_registers); in asus_ec_probe()
998 ec_data, chip_info, NULL); in asus_ec_probe()