Lines Matching +full:0 +full:x259

16 #define AD714X_PWR_CTRL           0x0
17 #define AD714X_STG_CAL_EN_REG 0x1
18 #define AD714X_AMB_COMP_CTRL0_REG 0x2
19 #define AD714X_PARTID_REG 0x17
20 #define AD7142_PARTID 0xE620
21 #define AD7143_PARTID 0xE630
22 #define AD7147_PARTID 0x1470
23 #define AD7148_PARTID 0x1480
24 #define AD714X_STAGECFG_REG 0x80
25 #define AD714X_SYSCFG_REG 0x0
27 #define STG_LOW_INT_EN_REG 0x5
28 #define STG_HIGH_INT_EN_REG 0x6
29 #define STG_COM_INT_EN_REG 0x7
30 #define STG_LOW_INT_STA_REG 0x8
31 #define STG_HIGH_INT_STA_REG 0x9
32 #define STG_COM_INT_STA_REG 0xA
34 #define CDC_RESULT_S0 0xB
35 #define CDC_RESULT_S1 0xC
36 #define CDC_RESULT_S2 0xD
37 #define CDC_RESULT_S3 0xE
38 #define CDC_RESULT_S4 0xF
39 #define CDC_RESULT_S5 0x10
40 #define CDC_RESULT_S6 0x11
41 #define CDC_RESULT_S7 0x12
42 #define CDC_RESULT_S8 0x13
43 #define CDC_RESULT_S9 0x14
44 #define CDC_RESULT_S10 0x15
45 #define CDC_RESULT_S11 0x16
47 #define STAGE0_AMBIENT 0xF1
48 #define STAGE1_AMBIENT 0x115
49 #define STAGE2_AMBIENT 0x139
50 #define STAGE3_AMBIENT 0x15D
51 #define STAGE4_AMBIENT 0x181
52 #define STAGE5_AMBIENT 0x1A5
53 #define STAGE6_AMBIENT 0x1C9
54 #define STAGE7_AMBIENT 0x1ED
55 #define STAGE8_AMBIENT 0x211
56 #define STAGE9_AMBIENT 0x234
57 #define STAGE10_AMBIENT 0x259
58 #define STAGE11_AMBIENT 0x27D
163 int max_res = 0; in ad714x_cal_highest_stage()
164 int max_idx = 0; in ad714x_cal_highest_stage()
233 input_report_key(sw->input, hw->keycode, 0); in ad714x_button_state_machine()
281 * When Sensor 0 has the highest response, only sensor 0 and sensor 1
387 input_report_key(sw->input, BTN_TOUCH, 0); in ad714x_slider_state_machine()
436 ad714x->sensor_val[i] = 0; in ad714x_wheel_cal_sensor_val()
476 else if (sw->abs_pos < 0) in ad714x_wheel_cal_abs_pos()
477 sw->abs_pos = 0; in ad714x_wheel_cal_abs_pos()
560 input_report_key(sw->input, BTN_TOUCH, 0); in ad714x_wheel_state_machine()
590 ad714x->sensor_val[i] = 0; in touchpad_cal_sensor_val()
645 return 0; in touchpad_check_second_peak()
719 sw->left_ep = 0; in touchpad_check_endpoint()
736 sw->right_ep = 0; in touchpad_check_endpoint()
753 sw->top_ep = 0; in touchpad_check_endpoint()
770 sw->bottom_ep = 0; in touchpad_check_endpoint()
857 input_report_key(sw->input, BTN_TOUCH, 0); in ad714x_touchpad_state_machine()
875 switch (data & 0xFFF0) { in ad714x_hw_detect()
877 ad714x->product = 0x7142; in ad714x_hw_detect()
878 ad714x->version = data & 0xF; in ad714x_hw_detect()
881 return 0; in ad714x_hw_detect()
884 ad714x->product = 0x7143; in ad714x_hw_detect()
885 ad714x->version = data & 0xF; in ad714x_hw_detect()
888 return 0; in ad714x_hw_detect()
891 ad714x->product = 0x7147; in ad714x_hw_detect()
892 ad714x->version = data & 0xF; in ad714x_hw_detect()
895 return 0; in ad714x_hw_detect()
898 ad714x->product = 0x7148; in ad714x_hw_detect()
899 ad714x->version = data & 0xF; in ad714x_hw_detect()
902 return 0; in ad714x_hw_detect()
920 for (i = 0; i < STAGE_NUM; i++) { in ad714x_hw_init()
922 for (j = 0; j < STAGE_CFGREG_NUM; j++) in ad714x_hw_init()
927 for (i = 0; i < SYS_CFGREG_NUM; i++) in ad714x_hw_init()
930 for (i = 0; i < SYS_CFGREG_NUM; i++) in ad714x_hw_init()
933 ad714x->write(ad714x, AD714X_STG_CAL_EN_REG, 0xFFF); in ad714x_hw_init()
948 for (i = 0; i < ad714x->hw->button_num; i++) in ad714x_interrupt_thread()
950 for (i = 0; i < ad714x->hw->slider_num; i++) in ad714x_interrupt_thread()
952 for (i = 0; i < ad714x->hw->wheel_num; i++) in ad714x_interrupt_thread()
954 for (i = 0; i < ad714x->hw->touchpad_num; i++) in ad714x_interrupt_thread()
980 if (irq <= 0) { in ad714x_probe()
1031 if (ad714x->hw->slider_num > 0) { in ad714x_probe()
1034 for (i = 0; i < ad714x->hw->slider_num; i++) { in ad714x_probe()
1044 ABS_X, 0, sd_plat->max_coord, 0, 0); in ad714x_probe()
1061 if (ad714x->hw->wheel_num > 0) { in ad714x_probe()
1064 for (i = 0; i < ad714x->hw->wheel_num; i++) { in ad714x_probe()
1074 ABS_WHEEL, 0, wl_plat->max_coord, 0, 0); in ad714x_probe()
1091 if (ad714x->hw->touchpad_num > 0) { in ad714x_probe()
1094 for (i = 0; i < ad714x->hw->touchpad_num; i++) { in ad714x_probe()
1105 ABS_X, 0, tp_plat->x_max_coord, 0, 0); in ad714x_probe()
1107 ABS_Y, 0, tp_plat->y_max_coord, 0, 0); in ad714x_probe()
1124 if (ad714x->hw->button_num > 0) { in ad714x_probe()
1134 for (i = 0; i < ad714x->hw->button_num; i++) { in ad714x_probe()
1174 data = ad714x->hw->sys_cfg_reg[AD714X_PWR_CTRL] | 0x3; in ad714x_suspend()
1179 return 0; in ad714x_suspend()
1202 return 0; in ad714x_resume()