/drivers/input/touchscreen/ |
D | imx6ul_tsc.c | 103 static int imx6ul_adc_init(struct imx6ul_tsc *tsc) in imx6ul_adc_init() argument 111 reinit_completion(&tsc->completion); in imx6ul_adc_init() 113 adc_cfg = readl(tsc->adc_regs + REG_ADC_CFG); in imx6ul_adc_init() 118 if (tsc->average_enable) { in imx6ul_adc_init() 120 adc_cfg |= (tsc->average_select) << ADC_AVGS_SHIFT; in imx6ul_adc_init() 123 writel(adc_cfg, tsc->adc_regs + REG_ADC_CFG); in imx6ul_adc_init() 128 writel(adc_hc, tsc->adc_regs + REG_ADC_HC0); in imx6ul_adc_init() 131 adc_gc = readl(tsc->adc_regs + REG_ADC_GC); in imx6ul_adc_init() 133 if (tsc->average_enable) in imx6ul_adc_init() 135 writel(adc_gc, tsc->adc_regs + REG_ADC_GC); in imx6ul_adc_init() [all …]
|
D | lpc32xx_ts.c | 71 static void lpc32xx_fifo_clear(struct lpc32xx_tsc *tsc) in lpc32xx_fifo_clear() argument 73 while (!(tsc_readl(tsc, LPC32XX_TSC_STAT) & in lpc32xx_fifo_clear() 75 tsc_readl(tsc, LPC32XX_TSC_FIFO); in lpc32xx_fifo_clear() 82 struct lpc32xx_tsc *tsc = dev_id; in lpc32xx_ts_interrupt() local 83 struct input_dev *input = tsc->dev; in lpc32xx_ts_interrupt() 85 tmp = tsc_readl(tsc, LPC32XX_TSC_STAT); in lpc32xx_ts_interrupt() 89 lpc32xx_fifo_clear(tsc); in lpc32xx_ts_interrupt() 100 !(tsc_readl(tsc, LPC32XX_TSC_STAT) & in lpc32xx_ts_interrupt() 102 tmp = tsc_readl(tsc, LPC32XX_TSC_FIFO); in lpc32xx_ts_interrupt() 126 static void lpc32xx_stop_tsc(struct lpc32xx_tsc *tsc) in lpc32xx_stop_tsc() argument [all …]
|
D | tps6507x-ts.c | 50 static int tps6507x_read_u8(struct tps6507x_ts *tsc, u8 reg, u8 *data) in tps6507x_read_u8() argument 52 return tsc->mfd->read_dev(tsc->mfd, reg, 1, data); in tps6507x_read_u8() 55 static int tps6507x_write_u8(struct tps6507x_ts *tsc, u8 reg, u8 data) in tps6507x_write_u8() argument 57 return tsc->mfd->write_dev(tsc->mfd, reg, 1, &data); in tps6507x_write_u8() 60 static s32 tps6507x_adc_conversion(struct tps6507x_ts *tsc, in tps6507x_adc_conversion() argument 69 ret = tps6507x_write_u8(tsc, TPS6507X_REG_TSCMODE, tsc_mode); in tps6507x_adc_conversion() 71 dev_err(tsc->dev, "TSC mode read failed\n"); in tps6507x_adc_conversion() 77 ret = tps6507x_write_u8(tsc, TPS6507X_REG_ADCONFIG, in tps6507x_adc_conversion() 80 dev_err(tsc->dev, "ADC config write failed\n"); in tps6507x_adc_conversion() 85 ret = tps6507x_read_u8(tsc, TPS6507X_REG_ADCONFIG, in tps6507x_adc_conversion() [all …]
|
D | tsc2007_iio.c | 42 struct tsc2007 *tsc = iio->ts; in tsc2007_read_raw() local 52 mutex_lock(&tsc->mlock); in tsc2007_read_raw() 56 *val = tsc2007_xfer(tsc, READ_X); in tsc2007_read_raw() 59 *val = tsc2007_xfer(tsc, READ_Y); in tsc2007_read_raw() 62 *val = tsc2007_xfer(tsc, READ_Z1); in tsc2007_read_raw() 65 *val = tsc2007_xfer(tsc, READ_Z2); in tsc2007_read_raw() 68 *val = tsc2007_xfer(tsc, (ADC_ON_12BIT | TSC2007_MEASURE_AUX)); in tsc2007_read_raw() 73 tc.x = tsc2007_xfer(tsc, READ_X); in tsc2007_read_raw() 74 tc.z1 = tsc2007_xfer(tsc, READ_Z1); in tsc2007_read_raw() 75 tc.z2 = tsc2007_xfer(tsc, READ_Z2); in tsc2007_read_raw() [all …]
|
D | tsc2007_core.c | 30 int tsc2007_xfer(struct tsc2007 *tsc, u8 cmd) in tsc2007_xfer() argument 35 data = i2c_smbus_read_word_data(tsc->client, cmd); in tsc2007_xfer() 37 dev_err(&tsc->client->dev, "i2c io error: %d\n", data); in tsc2007_xfer() 47 dev_dbg(&tsc->client->dev, "data: 0x%x, val: 0x%x\n", data, val); in tsc2007_xfer() 52 static void tsc2007_read_values(struct tsc2007 *tsc, struct ts_event *tc) in tsc2007_read_values() argument 55 tc->y = tsc2007_xfer(tsc, READ_Y); in tsc2007_read_values() 58 tc->x = tsc2007_xfer(tsc, READ_X); in tsc2007_read_values() 61 tc->z1 = tsc2007_xfer(tsc, READ_Z1); in tsc2007_read_values() 62 tc->z2 = tsc2007_xfer(tsc, READ_Z2); in tsc2007_read_values() 65 tsc2007_xfer(tsc, PWRDOWN); in tsc2007_read_values() [all …]
|
D | cy8ctmg110_ts.c | 62 static int cy8ctmg110_write_regs(struct cy8ctmg110 *tsc, unsigned char reg, in cy8ctmg110_write_regs() argument 65 struct i2c_client *client = tsc->client; in cy8ctmg110_write_regs() 83 static int cy8ctmg110_read_regs(struct cy8ctmg110 *tsc, in cy8ctmg110_read_regs() argument 86 struct i2c_client *client = tsc->client; in cy8ctmg110_read_regs() 111 static int cy8ctmg110_touch_pos(struct cy8ctmg110 *tsc) in cy8ctmg110_touch_pos() argument 113 struct input_dev *input = tsc->input; in cy8ctmg110_touch_pos() 120 if (cy8ctmg110_read_regs(tsc, reg_p, 9, CY8CTMG110_TOUCH_X1) != 0) in cy8ctmg110_touch_pos() 159 struct cy8ctmg110 *tsc = dev_id; in cy8ctmg110_irq_thread() local 161 cy8ctmg110_touch_pos(tsc); in cy8ctmg110_irq_thread()
|
D | tsc2007.h | 84 int tsc2007_xfer(struct tsc2007 *tsc, u8 cmd); 85 u32 tsc2007_calculate_resistance(struct tsc2007 *tsc, struct ts_event *tc);
|
D | ti_am335x_tsc.c | 68 static void titsc_writel(struct titsc *tsc, unsigned int reg, in titsc_writel() argument 71 writel(val, tsc->mfd_tscadc->tscadc_base + reg); in titsc_writel() 423 tscadc_dev->tsc = ts_dev; in titsc_probe()
|
/drivers/thermal/ |
D | rcar_gen3_thermal.c | 91 void (*thermal_init)(struct rcar_gen3_thermal_tsc *tsc); 94 static inline u32 rcar_gen3_thermal_read(struct rcar_gen3_thermal_tsc *tsc, in rcar_gen3_thermal_read() argument 97 return ioread32(tsc->base + reg); in rcar_gen3_thermal_read() 100 static inline void rcar_gen3_thermal_write(struct rcar_gen3_thermal_tsc *tsc, in rcar_gen3_thermal_write() argument 103 iowrite32(data, tsc->base + reg); in rcar_gen3_thermal_write() 134 static void rcar_gen3_thermal_calc_coefs(struct rcar_gen3_thermal_tsc *tsc, in rcar_gen3_thermal_calc_coefs() argument 144 tsc->tj_t = (FIXPT_INT((ptat[1] - ptat[2]) * (ths_tj_1 - TJ_3)) in rcar_gen3_thermal_calc_coefs() 147 tsc->coef.a1 = FIXPT_DIV(FIXPT_INT(thcode[1] - thcode[2]), in rcar_gen3_thermal_calc_coefs() 148 tsc->tj_t - FIXPT_INT(TJ_3)); in rcar_gen3_thermal_calc_coefs() 149 tsc->coef.b1 = FIXPT_INT(thcode[2]) - tsc->coef.a1 * TJ_3; in rcar_gen3_thermal_calc_coefs() [all …]
|
/drivers/net/wireless/intersil/orinoco/ |
D | hw.c | 690 int orinoco_hw_get_tkip_iv(struct orinoco_private *priv, int key, u8 *tsc) in orinoco_hw_get_tkip_iv() argument 702 memcpy(tsc, &tsc_arr[key][0], sizeof(tsc_arr[0])); in orinoco_hw_get_tkip_iv() 994 size_t rsc_len, const u8 *tsc, size_t tsc_len) in __orinoco_hw_set_tkip_key() argument 1002 u8 tsc[ORINOCO_SEQ_LEN]; in __orinoco_hw_set_tkip_key() member 1022 if (tsc_len > sizeof(buf.tsc)) in __orinoco_hw_set_tkip_key() 1023 tsc_len = sizeof(buf.tsc); in __orinoco_hw_set_tkip_key() 1026 memset(buf.tsc, 0, sizeof(buf.tsc)); in __orinoco_hw_set_tkip_key() 1031 if (tsc != NULL) in __orinoco_hw_set_tkip_key() 1032 memcpy(buf.tsc, tsc, tsc_len); in __orinoco_hw_set_tkip_key() 1034 buf.tsc[4] = 0x10; in __orinoco_hw_set_tkip_key()
|
D | hw.h | 34 int orinoco_hw_get_tkip_iv(struct orinoco_private *priv, int key, u8 *tsc); 42 size_t rsc_len, const u8 *tsc, size_t tsc_len);
|
/drivers/ptp/ |
D | ptp_kvm_x86.c | 91 *cycle = __pvclock_read_cycles(src, clock_pair.tsc); in kvm_arch_ptp_get_crosststamp()
|
/drivers/cpufreq/ |
D | intel_pstate.c | 122 u64 tsc; member 1862 u64 tsc; in intel_pstate_sample() local 1867 tsc = rdtsc(); in intel_pstate_sample() 1868 if (cpu->prev_mperf == mperf || cpu->prev_tsc == tsc) { in intel_pstate_sample() 1878 cpu->sample.tsc = tsc; in intel_pstate_sample() 1881 cpu->sample.tsc -= cpu->prev_tsc; in intel_pstate_sample() 1885 cpu->prev_tsc = tsc; in intel_pstate_sample() 1918 sample->tsc); in get_target_pstate() 1983 sample->tsc, in intel_pstate_adjust_pstate() 2523 sample->tsc, in intel_cpufreq_trace()
|
/drivers/net/wireless/intel/iwlwifi/fw/api/ |
D | d3.h | 436 struct tkip_sc tsc; member 446 struct aes_sc tsc; member
|
/drivers/clk/sirf/ |
D | clk-atlas6.c | 62 mf, io, cpu, uart0, uart1, uart2, tsc, i2c0, i2c1, spi0, enumerator
|
D | clk-prima2.c | 61 mf, io, cpu, uart0, uart1, uart2, tsc, i2c0, i2c1, spi0, enumerator
|
/drivers/net/wireless/ath/ath6kl/ |
D | main.c | 680 u8 tsc[6]; in ath6kl_tkip_micerr_event() local 694 memset(tsc, 0, sizeof(tsc)); /* FIX: get correct TSC */ in ath6kl_tkip_micerr_event() 697 tsc, GFP_KERNEL); in ath6kl_tkip_micerr_event()
|
/drivers/edac/ |
D | mce_amd.c | 1119 if (m->tsc) in amd_decode_mce() 1120 pr_emerg(HW_ERR "TSC: %llu\n", m->tsc); in amd_decode_mce()
|
D | skx_common.c | 608 skx_mc_printk(mci, KERN_DEBUG, "TSC 0x%llx ", mce->tsc); in skx_mce_check_error()
|
D | pnd2_edac.c | 1420 pnd2_mc_printk(mci, KERN_INFO, "TSC %llx ", mce->tsc); in pnd2_mce_check_error()
|
/drivers/net/fjes/ |
D | fjes_hw.h | 273 u64 tsc; member
|
/drivers/xen/ |
D | mcelog.c | 283 m.tsc = mc_bank->mc_tsc; in convert_log()
|
/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | d3.c | 261 &data->rsc_tsc->params.all_tsc_rsc.tkip.tsc; in iwl_mvm_wowlan_program_keys() 324 &data->rsc_tsc->params.all_tsc_rsc.aes.tsc; in iwl_mvm_wowlan_program_keys() 1489 atomic64_set(&key->tx_pn, le64_to_cpu(sc->aes.tsc.pn)); in iwl_mvm_d3_update_keys() 1492 iwl_mvm_tkip_sc_to_seq(&sc->tkip.tsc, &seq); in iwl_mvm_d3_update_keys()
|
/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | lib.c | 914 tkip_tx_sc = &data->rsc_tsc->all_tsc_rsc.tkip.tsc; in iwlagn_wowlan_program_keys() 969 aes_tx_sc = &data->rsc_tsc->all_tsc_rsc.aes.tsc; in iwlagn_wowlan_program_keys()
|
D | commands.h | 3807 struct tkip_sc tsc; member 3817 struct aes_sc tsc; member
|