Home
last modified time | relevance | path

Searched refs:cal_data (Results 1 – 14 of 14) sorted by relevance

/drivers/iio/adc/
Dab8500-gpadc.c251 struct ab8500_adc_cal_data cal_data[AB8500_CAL_NR]; member
286 if (!gpadc->cal_data[AB8500_CAL_VMAIN].gain) { in ab8500_gpadc_ad_to_voltage()
293 res = (int) (ad_value * gpadc->cal_data[AB8500_CAL_VMAIN].gain + in ab8500_gpadc_ad_to_voltage()
294 gpadc->cal_data[AB8500_CAL_VMAIN].offset) / AB8500_GPADC_CALIB_SCALE; in ab8500_gpadc_ad_to_voltage()
304 if (!gpadc->cal_data[AB8500_CAL_BTEMP].gain) { in ab8500_gpadc_ad_to_voltage()
311 res = (int) (ad_value * gpadc->cal_data[AB8500_CAL_BTEMP].gain + in ab8500_gpadc_ad_to_voltage()
312 gpadc->cal_data[AB8500_CAL_BTEMP].offset) / AB8500_GPADC_CALIB_SCALE; in ab8500_gpadc_ad_to_voltage()
318 if (!gpadc->cal_data[AB8500_CAL_VBAT].gain) { in ab8500_gpadc_ad_to_voltage()
325 res = (int) (ad_value * gpadc->cal_data[AB8500_CAL_VBAT].gain + in ab8500_gpadc_ad_to_voltage()
326 gpadc->cal_data[AB8500_CAL_VBAT].offset) / AB8500_GPADC_CALIB_SCALE; in ab8500_gpadc_ad_to_voltage()
[all …]
/drivers/thermal/intel/
Dintel_powerclamp.c143 static struct powerclamp_calibration_data cal_data[MAX_TARGET_RATIO]; variable
271 cal_data[ratio].confidence >= CONFIDENCE_OK && in get_compensation()
272 cal_data[ratio + 1].confidence >= CONFIDENCE_OK && in get_compensation()
273 cal_data[ratio + 2].confidence >= CONFIDENCE_OK) { in get_compensation()
274 comp = (cal_data[ratio].steady_comp + in get_compensation()
275 cal_data[ratio + 1].steady_comp + in get_compensation()
276 cal_data[ratio + 2].steady_comp) / 3; in get_compensation()
278 cal_data[ratio].confidence >= CONFIDENCE_OK && in get_compensation()
279 cal_data[ratio - 1].confidence >= CONFIDENCE_OK && in get_compensation()
280 cal_data[ratio - 2].confidence >= CONFIDENCE_OK) { in get_compensation()
[all …]
/drivers/net/wireless/ath/ath9k/
Dath9k_pci_owl_loader.c31 static int ath9k_pci_fixup(struct pci_dev *pdev, const u16 *cal_data, in ath9k_pci_fixup() argument
35 const void *cal_end = (void *)cal_data + cal_len; in ath9k_pci_fixup()
45 if (*cal_data != AR5416_EEPROM_MAGIC) { in ath9k_pci_fixup()
46 if (*cal_data != swab16(AR5416_EEPROM_MAGIC)) { in ath9k_pci_fixup()
71 for (data = (const void *)(cal_data + 3); in ath9k_pci_fixup()
/drivers/media/platform/ti-vpe/
Dcal.h142 struct cal_data { struct
200 const struct cal_data *data;
Dcal.c209 static const struct cal_data dra72x_cal_data = {
214 static const struct cal_data dra72x_es1_cal_data = {
241 static const struct cal_data dra76x_cal_data = {
257 static const struct cal_data am654_cal_data = {
/drivers/net/wireless/mediatek/mt76/mt7915/
Deeprom.h9 struct cal_data { struct
/drivers/net/wireless/ath/ath10k/
Dqmi.h108 struct ath10k_qmi_cal_data cal_data[MAX_NUM_CAL_V01]; member
Dqmi.c339 if (qmi->cal_data[i].total_size && in ath10k_qmi_send_cal_report_req()
340 qmi->cal_data[i].data) { in ath10k_qmi_send_cal_report_req()
341 req.meta_data[j] = qmi->cal_data[i].cal_id; in ath10k_qmi_send_cal_report_req()
Ddebug.c1272 ret = ath10k_hif_diag_read(ar, le32_to_cpu(addr), ar->debug.cal_data, in ath10k_debug_cal_data_fetch()
1308 ar->debug.cal_data, in ath10k_debug_cal_data_read()
2517 ar->debug.cal_data = vzalloc(ATH10K_DEBUG_CAL_DATA_LEN); in ath10k_debug_create()
2518 if (!ar->debug.cal_data) in ath10k_debug_create()
2531 vfree(ar->debug.cal_data); in ath10k_debug_destroy()
2532 ar->debug.cal_data = NULL; in ath10k_debug_destroy()
Dcore.h701 void *cal_data; member
/drivers/bluetooth/
Dbtmrvl_main.c508 u8 cal_data[BT_CAL_HDR_LEN + BT_CAL_DATA_SIZE]; in btmrvl_check_device_tree() local
527 cal_data + BT_CAL_HDR_LEN, in btmrvl_check_device_tree()
533 ret = btmrvl_download_cal_data(priv, cal_data, in btmrvl_check_device_tree()
/drivers/net/wireless/marvell/mwifiex/
Dmain.c553 if ((request_firmware(&adapter->cal_data, cal_data_cfg, in _mwifiex_fw_dpc()
669 if (adapter->cal_data) { in _mwifiex_fw_dpc()
670 release_firmware(adapter->cal_data); in _mwifiex_fw_dpc()
671 adapter->cal_data = NULL; in _mwifiex_fw_dpc()
Dsta_cmd.c1528 } else if (adapter->cal_data->data && adapter->cal_data->size > 0) { in mwifiex_cmd_cfg_data()
1529 len = mwifiex_parse_cal_cfg((u8 *)adapter->cal_data->data, in mwifiex_cmd_cfg_data()
1530 adapter->cal_data->size, data); in mwifiex_cmd_cfg_data()
2304 if (adapter->cal_data) in mwifiex_sta_init_cmd()
Dmain.h1005 const struct firmware *cal_data; member