/drivers/net/wireless/b43/ |
D | lo.c | 744 struct b43_lo_calib *cal; in b43_calibrate_lo_setting() local 782 cal = kmalloc(sizeof(*cal), GFP_KERNEL); in b43_calibrate_lo_setting() 783 if (!cal) { in b43_calibrate_lo_setting() 787 memcpy(&cal->bbatt, bbatt, sizeof(*bbatt)); in b43_calibrate_lo_setting() 788 memcpy(&cal->rfatt, rfatt, sizeof(*rfatt)); in b43_calibrate_lo_setting() 789 memcpy(&cal->ctl, &loctl, sizeof(loctl)); in b43_calibrate_lo_setting() 790 cal->calib_time = jiffies; in b43_calibrate_lo_setting() 791 INIT_LIST_HEAD(&cal->list); in b43_calibrate_lo_setting() 793 return cal; in b43_calibrate_lo_setting() 843 struct b43_lo_calib *cal; in b43_gphy_dc_lt_init() local [all …]
|
D | debugfs.c | 444 struct b43_lo_calib *cal; in loctls_read_file() local 468 list_for_each_entry(cal, &lo->calib_list, list) { in loctls_read_file() 471 active = (b43_compare_bbatt(&cal->bbatt, &phy->g->bbatt) && in loctls_read_file() 472 b43_compare_rfatt(&cal->rfatt, &phy->g->rfatt)); in loctls_read_file() 475 cal->bbatt.att, in loctls_read_file() 476 cal->rfatt.att, cal->rfatt.with_padmix, in loctls_read_file() 477 cal->ctl.i, cal->ctl.q, in loctls_read_file() 478 calc_expire_secs(now, cal->calib_time, in loctls_read_file()
|
/drivers/input/gameport/ |
D | lightning.c | 123 static int l4_getcal(int port, int *cal) in l4_getcal() argument 146 cal[i] = inb(L4_PORT); in l4_getcal() 159 static int l4_setcal(int port, int *cal) in l4_setcal() argument 182 outb(cal[i], L4_PORT); in l4_setcal() 199 int cal[4]; in l4_calibrate() local 202 if (l4_getcal(l4->port, cal)) in l4_calibrate() 206 t = (max[i] * cal[i]) / 200; in l4_calibrate() 208 axes[i] = (axes[i] < 0) ? -1 : (axes[i] * cal[i]) / t; in l4_calibrate() 210 cal[i] = t; in l4_calibrate() 213 if (l4_setcal(l4->port, cal)) in l4_calibrate() [all …]
|
/drivers/net/wireless/ath/ath9k/ |
D | calib.c | 82 struct ath9k_hw_cal_data *cal, in ath9k_hw_update_nfcal_hist_buffer() argument 92 h = cal->nfCalHist; in ath9k_hw_update_nfcal_hist_buffer() 122 (test_bit(NFCAL_INTF, &cal->cal_flags) ? in ath9k_hw_update_nfcal_hist_buffer() 133 if (!test_bit(NFCAL_INTF, &cal->cal_flags)) in ath9k_hw_update_nfcal_hist_buffer() 144 clear_bit(NFCAL_INTF, &cal->cal_flags); in ath9k_hw_update_nfcal_hist_buffer()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | phy.c | 3871 u32 tx_fail, rx_fail, delay_count, iqk_ready, cal_retry, cal = 0, temp_reg65; in _rtl8821ae_iqk_tx() local 3886 while (cal < cal_num) { in _rtl8821ae_iqk_tx() 4004 tx_dt[cal] = (vdf_y[1]>>20)-(vdf_y[0]>>20); in _rtl8821ae_iqk_tx() 4005 tx_dt[cal] = ((16*tx_dt[cal])*10000/15708); in _rtl8821ae_iqk_tx() 4006 tx_dt[cal] = (tx_dt[cal] >> 1)+(tx_dt[cal] & BIT(0)); in _rtl8821ae_iqk_tx() 4010 rtl_set_bbreg(hw, 0xce8, 0x3fff0000, tx_dt[cal] & 0x00003fff); in _rtl8821ae_iqk_tx() 4063 tx_x0[cal] = vdf_x[k-1]; in _rtl8821ae_iqk_tx() 4064 tx_y0[cal] = vdf_y[k-1]; in _rtl8821ae_iqk_tx() 4095 tx_x0[cal] = rtl_get_bbreg(hw, 0xd00, 0x07ff0000)<<21; in _rtl8821ae_iqk_tx() 4097 tx_y0[cal] = rtl_get_bbreg(hw, 0xd00, 0x07ff0000)<<21; in _rtl8821ae_iqk_tx() [all …]
|
/drivers/rtc/ |
D | rtc-stk17ta8.c | 290 unsigned int cal; in stk17ta8_rtc_probe() local 308 cal = readb(ioaddr + RTC_CALIBRATION); in stk17ta8_rtc_probe() 309 if (cal & RTC_STOP) { in stk17ta8_rtc_probe() 310 cal &= RTC_CAL_MASK; in stk17ta8_rtc_probe() 313 writeb(cal, ioaddr + RTC_CALIBRATION); in stk17ta8_rtc_probe()
|
/drivers/hwmon/ |
D | ina2xx.c | 222 unsigned int cal; in ina2xx_read_reg() local 225 &cal); in ina2xx_read_reg() 229 if (cal == 0) { in ina2xx_read_reg()
|
/drivers/net/wireless/p54/ |
D | eeprom.c | 563 struct pda_rssi_cal_ext_entry *cal = (void *) &data[offset]; in p54_parse_rssical() local 566 entry[i].freq = le16_to_cpu(cal[i].freq); in p54_parse_rssical() 567 entry[i].mul = (s16) le16_to_cpu(cal[i].mul); in p54_parse_rssical() 568 entry[i].add = (s16) le16_to_cpu(cal[i].add); in p54_parse_rssical() 571 struct pda_rssi_cal_entry *cal = (void *) &data[offset]; in p54_parse_rssical() local 585 entry[i].mul = (s16) le16_to_cpu(cal[i].mul); in p54_parse_rssical() 586 entry[i].add = (s16) le16_to_cpu(cal[i].add); in p54_parse_rssical()
|
/drivers/net/wireless/mediatek/mt7601u/ |
D | mcu.h | 91 mt7601u_mcu_calibrate(struct mt7601u_dev *dev, enum mcu_calibrate cal, u32 val);
|
D | mcu.c | 200 mt7601u_mcu_calibrate(struct mt7601u_dev *dev, enum mcu_calibrate cal, u32 val) in mt7601u_mcu_calibrate() argument 207 .id = cpu_to_le32(cal), in mt7601u_mcu_calibrate()
|
D | phy.c | 277 static int mt7601u_set_bw_filter(struct mt7601u_dev *dev, bool cal) in mt7601u_set_bw_filter() argument 282 if (!cal) in mt7601u_set_bw_filter()
|
/drivers/net/wireless/rt2x00/ |
D | rt2800lib.c | 3024 u8 cal; in rt2800_iq_calibrate() local 3029 cal = rt2x00_eeprom_byte(rt2x00dev, EEPROM_IQ_GAIN_CAL_TX0_2G); in rt2800_iq_calibrate() 3031 cal = rt2x00_eeprom_byte(rt2x00dev, in rt2800_iq_calibrate() 3034 cal = rt2x00_eeprom_byte(rt2x00dev, in rt2800_iq_calibrate() 3037 cal = rt2x00_eeprom_byte(rt2x00dev, in rt2800_iq_calibrate() 3040 cal = 0; in rt2800_iq_calibrate() 3041 rt2800_bbp_write(rt2x00dev, 159, cal); in rt2800_iq_calibrate() 3046 cal = rt2x00_eeprom_byte(rt2x00dev, EEPROM_IQ_PHASE_CAL_TX0_2G); in rt2800_iq_calibrate() 3048 cal = rt2x00_eeprom_byte(rt2x00dev, in rt2800_iq_calibrate() 3051 cal = rt2x00_eeprom_byte(rt2x00dev, in rt2800_iq_calibrate() [all …]
|
/drivers/hid/ |
D | hid-nintendo.c | 412 static s32 joycon_map_stick_val(struct joycon_stick_cal *cal, s32 val) in joycon_map_stick_val() argument 414 s32 center = cal->center; in joycon_map_stick_val() 415 s32 min = cal->min; in joycon_map_stick_val() 416 s32 max = cal->max; in joycon_map_stick_val()
|
/drivers/net/hamradio/ |
D | scc.c | 1710 struct scc_calibrate cal; in scc_net_ioctl() local 1931 if (!arg || copy_from_user(&cal, arg, sizeof(cal)) || cal.time == 0) in scc_net_ioctl() 1934 scc_start_calibrate(scc, cal.time, cal.pattern); in scc_net_ioctl()
|
/drivers/media/dvb-frontends/ |
D | dib0090.c | 1509 u16 cal; in dib0090_set_EFUSE() local 1518 cal = (dib0090_read_reg(state, 0x22) >> 6) & 0x3ff; in dib0090_set_EFUSE() 1520 if ((cal < 670) || (cal == 1023)) in dib0090_set_EFUSE() 1521 cal = 850; in dib0090_set_EFUSE() 1522 n = 165 - ((cal * 10)>>6) ; in dib0090_set_EFUSE()
|
/drivers/media/tuners/ |
D | tda18271-fe.c | 32 module_param_named(cal, tda18271_cal_on_startup, int, 0644); 33 MODULE_PARM_DESC(cal, "perform RF tracking filter calibration on startup");
|