Lines Matching refs:chip_info
640 ret = data->chip_info->read_humid(data, &chan_value); in bmp280_read_raw_impl()
644 *val = data->chip_info->humid_coeffs[0] * chan_value; in bmp280_read_raw_impl()
645 *val2 = data->chip_info->humid_coeffs[1]; in bmp280_read_raw_impl()
646 return data->chip_info->humid_coeffs_type; in bmp280_read_raw_impl()
648 ret = data->chip_info->read_press(data, &chan_value); in bmp280_read_raw_impl()
652 *val = data->chip_info->press_coeffs[0] * chan_value; in bmp280_read_raw_impl()
653 *val2 = data->chip_info->press_coeffs[1]; in bmp280_read_raw_impl()
654 return data->chip_info->press_coeffs_type; in bmp280_read_raw_impl()
656 ret = data->chip_info->read_temp(data, &chan_value); in bmp280_read_raw_impl()
660 *val = data->chip_info->temp_coeffs[0] * chan_value; in bmp280_read_raw_impl()
661 *val2 = data->chip_info->temp_coeffs[1]; in bmp280_read_raw_impl()
662 return data->chip_info->temp_coeffs_type; in bmp280_read_raw_impl()
669 ret = data->chip_info->read_humid(data, &chan_value); in bmp280_read_raw_impl()
676 ret = data->chip_info->read_press(data, &chan_value); in bmp280_read_raw_impl()
683 ret = data->chip_info->read_temp(data, &chan_value); in bmp280_read_raw_impl()
695 *val = data->chip_info->humid_coeffs[0]; in bmp280_read_raw_impl()
696 *val2 = data->chip_info->humid_coeffs[1]; in bmp280_read_raw_impl()
697 return data->chip_info->humid_coeffs_type; in bmp280_read_raw_impl()
699 *val = data->chip_info->press_coeffs[0]; in bmp280_read_raw_impl()
700 *val2 = data->chip_info->press_coeffs[1]; in bmp280_read_raw_impl()
701 return data->chip_info->press_coeffs_type; in bmp280_read_raw_impl()
703 *val = data->chip_info->temp_coeffs[0]; in bmp280_read_raw_impl()
704 *val2 = data->chip_info->temp_coeffs[1]; in bmp280_read_raw_impl()
705 return data->chip_info->temp_coeffs_type; in bmp280_read_raw_impl()
724 if (!data->chip_info->sampling_freq_avail) in bmp280_read_raw_impl()
727 *val = data->chip_info->sampling_freq_avail[data->sampling_freq][0]; in bmp280_read_raw_impl()
728 *val2 = data->chip_info->sampling_freq_avail[data->sampling_freq][1]; in bmp280_read_raw_impl()
731 if (!data->chip_info->iir_filter_coeffs_avail) in bmp280_read_raw_impl()
759 const int *avail = data->chip_info->oversampling_humid_avail; in bme280_write_oversampling_ratio_humid()
760 const int n = data->chip_info->num_oversampling_humid_avail; in bme280_write_oversampling_ratio_humid()
769 ret = data->chip_info->chip_config(data); in bme280_write_oversampling_ratio_humid()
772 data->chip_info->chip_config(data); in bme280_write_oversampling_ratio_humid()
784 const int *avail = data->chip_info->oversampling_temp_avail; in bmp280_write_oversampling_ratio_temp()
785 const int n = data->chip_info->num_oversampling_temp_avail; in bmp280_write_oversampling_ratio_temp()
794 ret = data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_temp()
797 data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_temp()
809 const int *avail = data->chip_info->oversampling_press_avail; in bmp280_write_oversampling_ratio_press()
810 const int n = data->chip_info->num_oversampling_press_avail; in bmp280_write_oversampling_ratio_press()
819 ret = data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_press()
822 data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_press()
834 const int (*avail)[2] = data->chip_info->sampling_freq_avail; in bmp280_write_sampling_frequency()
835 const int n = data->chip_info->num_sampling_freq_avail; in bmp280_write_sampling_frequency()
844 ret = data->chip_info->chip_config(data); in bmp280_write_sampling_frequency()
847 data->chip_info->chip_config(data); in bmp280_write_sampling_frequency()
858 const int *avail = data->chip_info->iir_filter_coeffs_avail; in bmp280_write_iir_filter_coeffs()
859 const int n = data->chip_info->num_iir_filter_coeffs_avail; in bmp280_write_iir_filter_coeffs()
868 ret = data->chip_info->chip_config(data); in bmp280_write_iir_filter_coeffs()
871 data->chip_info->chip_config(data); in bmp280_write_iir_filter_coeffs()
942 *vals = data->chip_info->oversampling_press_avail; in bmp280_read_avail()
943 *length = data->chip_info->num_oversampling_press_avail; in bmp280_read_avail()
946 *vals = data->chip_info->oversampling_temp_avail; in bmp280_read_avail()
947 *length = data->chip_info->num_oversampling_temp_avail; in bmp280_read_avail()
955 *vals = (const int *)data->chip_info->sampling_freq_avail; in bmp280_read_avail()
958 *length = data->chip_info->num_sampling_freq_avail; in bmp280_read_avail()
961 *vals = data->chip_info->iir_filter_coeffs_avail; in bmp280_read_avail()
963 *length = data->chip_info->num_iir_filter_coeffs_avail; in bmp280_read_avail()
1942 data->chip_info->chip_config(data); in bmp580_nvmem_read_impl()
2017 data->chip_info->chip_config(data); in bmp580_nvmem_write_impl()
2666 const struct bmp280_chip_info *chip_info, in bmp280_common_probe() argument
2689 data->chip_info = chip_info; in bmp280_common_probe()
2692 indio_dev->channels = chip_info->channels; in bmp280_common_probe()
2693 indio_dev->num_channels = chip_info->num_channels; in bmp280_common_probe()
2694 indio_dev->available_scan_masks = chip_info->avail_scan_masks; in bmp280_common_probe()
2695 data->oversampling_press = chip_info->oversampling_press_default; in bmp280_common_probe()
2696 data->oversampling_humid = chip_info->oversampling_humid_default; in bmp280_common_probe()
2697 data->oversampling_temp = chip_info->oversampling_temp_default; in bmp280_common_probe()
2698 data->iir_filter_coeff = chip_info->iir_filter_coeff_default; in bmp280_common_probe()
2699 data->sampling_freq = chip_info->sampling_freq_default; in bmp280_common_probe()
2700 data->start_up_time = chip_info->start_up_time; in bmp280_common_probe()
2738 ret = regmap_read(regmap, data->chip_info->id_reg, &chip_id); in bmp280_common_probe()
2744 for (i = 0; i < data->chip_info->num_chip_id; i++) { in bmp280_common_probe()
2745 if (chip_id == data->chip_info->chip_id[i]) { in bmp280_common_probe()
2751 if (i == data->chip_info->num_chip_id) in bmp280_common_probe()
2754 if (data->chip_info->preinit) { in bmp280_common_probe()
2755 ret = data->chip_info->preinit(data); in bmp280_common_probe()
2761 ret = data->chip_info->chip_config(data); in bmp280_common_probe()
2773 if (data->chip_info->read_calib) { in bmp280_common_probe()
2774 ret = data->chip_info->read_calib(data); in bmp280_common_probe()
2782 data->chip_info->trigger_handler, in bmp280_common_probe()
2838 return data->chip_info->chip_config(data); in bmp280_runtime_resume()