Lines Matching defs:data

77 	if (priv->data->eint_detect_mode == 0x3 ||
78 priv->data->eint_detect_mode == 0x4) {
83 if (priv->data->eint_detect_mode == 0x4) {
97 if (priv->data->eint_use_ext_res == 0x3 ||
98 priv->data->eint_use_ext_res == 0x4) {
123 if (priv->data->eint_detect_mode == 0x4) {
149 priv->data->pwm_deb->eint_debounce0);
159 if (priv->data->eint_detect_mode == 0x3 ||
160 priv->data->eint_detect_mode == 0x4) {
165 if (priv->data->eint_detect_mode == 0x4) {
193 if (priv->data->eint_detect_mode == 0x4) {
210 if (priv->data->eint_detect_mode != 0x1) {
260 priv->data->pwm_deb->debounce0);
262 priv->data->pwm_deb->debounce1);
264 priv->data->pwm_deb->debounce3);
337 if (v < priv->data->four_key.down &&
338 v >= priv->data->four_key.up)
340 if (v < priv->data->four_key.up &&
341 v >= priv->data->four_key.voice)
343 if (v < priv->data->four_key.voice &&
344 v >= priv->data->four_key.mid)
346 if (v < priv->data->four_key.mid)
349 if (v < priv->data->three_key.down &&
350 v >= priv->data->three_key.up)
352 if (v < priv->data->three_key.up &&
353 v >= priv->data->three_key.mid)
355 if (v < priv->data->three_key.mid)
449 priv->data->pwm_deb->debounce3);
460 static irqreturn_t mt6359_accdet_irq(int irq, void *data)
462 struct mt6359_accdet *priv = data;
565 &priv->data->mic_vol);
567 priv->data->mic_vol = 8;
570 &priv->data->plugout_deb);
572 priv->data->plugout_deb = 1;
575 &priv->data->mic_mode);
577 priv->data->mic_mode = 2;
583 memcpy(priv->data->pwm_deb, pwm_deb, sizeof(pwm_deb));
586 &priv->data->eint_pol);
588 priv->data->eint_pol = 8;
599 &priv->data->eint_detect_mode);
602 priv->data->eint_detect_mode = 0x4;
625 &priv->data->eint_use_ext_res);
628 priv->data->eint_use_ext_res = 0x0;
632 &priv->data->eint_comp_vth);
634 priv->data->eint_comp_vth = 0x0;
648 memcpy(&priv->data->three_key, three_key + 1,
659 memcpy(&priv->data->four_key, four_key + 1,
674 memcpy(&priv->data->three_key, three_key + 1,
688 (priv->data->pwm_deb->eint_pwm_width << 4 |
689 priv->data->pwm_deb->eint_pwm_thresh));
714 if (priv->data->eint_detect_mode == 0x1) {
760 if (priv->data->eint_detect_mode == 0x1 ||
761 priv->data->eint_detect_mode == 0x2 ||
762 priv->data->eint_detect_mode == 0x3) {
763 if (priv->data->eint_use_ext_res == 0x1) {
790 if (priv->data->eint_detect_mode != 0x1) {
797 val | priv->data->eint_comp_vth << RG_EINTCOMPVTH_SFT);
812 priv->data->pwm_deb->debounce0);
814 priv->data->pwm_deb->debounce1);
816 priv->data->pwm_deb->debounce3);
818 priv->data->pwm_deb->debounce4);
821 priv->data->pwm_deb->eint_debounce0);
823 priv->data->pwm_deb->eint_debounce1);
825 priv->data->pwm_deb->eint_debounce3);
827 priv->data->pwm_deb->eint_inverter_debounce);
842 REGISTER_VAL(priv->data->pwm_deb->pwm_width));
844 REGISTER_VAL(priv->data->pwm_deb->pwm_thresh));
846 (priv->data->pwm_deb->fall_delay << 15 |
847 priv->data->pwm_deb->rise_delay));
850 if (priv->data->mic_vol <= 7) {
853 reg | (priv->data->mic_vol << RG_AUDMICBIAS1VREF_SFT) |
855 } else if (priv->data->mic_vol == 8) {
860 } else if (priv->data->mic_vol == 9) {
868 if (priv->data->mic_mode == HEADSET_MODE_1) {
878 } else if (priv->data->mic_mode == HEADSET_MODE_2) {
886 } else if (priv->data->mic_mode == HEADSET_MODE_6) {
940 priv->data = devm_kzalloc(&pdev->dev, sizeof(struct dts_data),
942 if (!priv->data)
945 priv->data->pwm_deb = devm_kzalloc(&pdev->dev,
948 if (!priv->data->pwm_deb)