Lines Matching refs:ec_data
903 struct ec_sensors_data *ec_data; in asus_ec_probe() local
914 ec_data = devm_kzalloc(dev, sizeof(struct ec_sensors_data), in asus_ec_probe()
916 if (!ec_data) in asus_ec_probe()
919 dev_set_drvdata(dev, ec_data); in asus_ec_probe()
920 ec_data->board_info = pboard_info; in asus_ec_probe()
922 switch (ec_data->board_info->family) { in asus_ec_probe()
924 ec_data->sensors_info = sensors_family_amd_400; in asus_ec_probe()
927 ec_data->sensors_info = sensors_family_amd_500; in asus_ec_probe()
930 ec_data->sensors_info = sensors_family_intel_300; in asus_ec_probe()
933 ec_data->sensors_info = sensors_family_intel_600; in asus_ec_probe()
937 ec_data->board_info->family); in asus_ec_probe()
941 ec_data->nr_sensors = hweight_long(ec_data->board_info->sensors); in asus_ec_probe()
942 ec_data->sensors = devm_kcalloc(dev, ec_data->nr_sensors, in asus_ec_probe()
944 if (!ec_data->sensors) in asus_ec_probe()
953 setup_sensor_data(ec_data); in asus_ec_probe()
954 ec_data->registers = devm_kcalloc(dev, ec_data->nr_registers, in asus_ec_probe()
956 ec_data->read_buffer = devm_kcalloc(dev, ec_data->nr_registers, in asus_ec_probe()
959 if (!ec_data->registers || !ec_data->read_buffer) in asus_ec_probe()
962 fill_ec_registers(ec_data); in asus_ec_probe()
964 for (i = 0; i < ec_data->nr_sensors; ++i) { in asus_ec_probe()
965 si = get_sensor_info(ec_data, i); in asus_ec_probe()
998 ec_data->nr_sensors, ec_data->nr_registers); in asus_ec_probe()
1001 ec_data, chip_info, NULL); in asus_ec_probe()