| /OK3568_Linux_fs/kernel/drivers/input/touchscreen/focaltech_touch_ft5436/ |
| H A D | focaltech_core.c | 113 void fts_tp_state_recovery(struct fts_ts_data *ts_data) in fts_tp_state_recovery() argument 121 fts_ex_mode_recovery(ts_data); in fts_tp_state_recovery() 123 fts_gesture_recovery(ts_data); in fts_tp_state_recovery() 195 struct fts_ts_data *ts_data, in fts_get_chip_types() argument 224 ts_data->ic_info.ids = ctype[i]; in fts_get_chip_types() 228 static int fts_read_bootid(struct fts_ts_data *ts_data, u8 *id) in fts_read_bootid() argument 246 if (ts_data->ic_info.is_incell) in fts_read_bootid() 271 static int fts_get_ic_information(struct fts_ts_data *ts_data) in fts_get_ic_information() argument 277 ts_data->ic_info.is_incell = FTS_CHIP_IDC; in fts_get_ic_information() 278 ts_data->ic_info.hid_supported = FTS_HID_SUPPORTTED; in fts_get_ic_information() [all …]
|
| H A D | focaltech_i2c.c | 68 struct fts_ts_data *ts_data = fts_data; in fts_read() local 74 if (!ts_data || !ts_data->client || !data || !datalen in fts_read() 81 mutex_lock(&ts_data->bus_lock); in fts_read() 84 memcpy(ts_data->bus_tx_buf, cmd, cmdlen); in fts_read() 85 msg_list[0].addr = ts_data->client->addr; in fts_read() 88 msg_list[0].buf = ts_data->bus_tx_buf; in fts_read() 89 msg_list[1].addr = ts_data->client->addr; in fts_read() 92 msg_list[1].buf = ts_data->bus_rx_buf; in fts_read() 102 ret = i2c_transfer(ts_data->client->adapter, msg, msg_num); in fts_read() 106 memcpy(data, ts_data->bus_rx_buf, datalen); in fts_read() [all …]
|
| H A D | focaltech_ex_mode.c | 104 struct fts_ts_data *ts_data = fts_data; in fts_glove_mode_show() local 105 struct input_dev *input_dev = ts_data->input_dev; in fts_glove_mode_show() 110 ts_data->glove_mode ? "On" : "Off"); in fts_glove_mode_show() 122 struct fts_ts_data *ts_data = fts_data; in fts_glove_mode_store() local 125 if (!ts_data->glove_mode) { in fts_glove_mode_store() 129 ts_data->glove_mode = ENABLE; in fts_glove_mode_store() 133 if (ts_data->glove_mode) { in fts_glove_mode_store() 137 ts_data->glove_mode = DISABLE; in fts_glove_mode_store() 142 FTS_DEBUG("glove mode:%d", ts_data->glove_mode); in fts_glove_mode_store() 152 struct fts_ts_data *ts_data = fts_data; in fts_cover_mode_show() local [all …]
|
| H A D | focaltech_esdcheck.c | 86 int idc_esdcheck_lcderror(struct fts_ts_data *ts_data) in idc_esdcheck_lcderror() argument 96 fts_tp_state_recovery(ts_data); in idc_esdcheck_lcderror() 120 static int fts_esdcheck_tp_reset(struct fts_ts_data *ts_data) in fts_esdcheck_tp_reset() argument 129 fts_tp_state_recovery(ts_data); in fts_esdcheck_tp_reset() 135 static bool get_chip_id(struct fts_ts_data *ts_data) in get_chip_id() argument 141 u8 chip_id = ts_data->ic_info.ids.chip_idh; in get_chip_id() 177 static bool get_flow_cnt(struct fts_ts_data *ts_data) in get_flow_cnt() argument 209 static int esdcheck_algorithm(struct fts_ts_data *ts_data) in esdcheck_algorithm() argument 253 idc_esdcheck_lcderror(ts_data); in esdcheck_algorithm() 257 hardware_reset = get_chip_id(ts_data); in esdcheck_algorithm() [all …]
|
| H A D | focaltech_core.h | 208 int fts_bus_init(struct fts_ts_data *ts_data); 209 int fts_bus_exit(struct fts_ts_data *ts_data); 212 int fts_gesture_init(struct fts_ts_data *ts_data); 213 int fts_gesture_exit(struct fts_ts_data *ts_data); 214 void fts_gesture_recovery(struct fts_ts_data *ts_data); 215 int fts_gesture_readdata(struct fts_ts_data *ts_data, u8 *data); 216 int fts_gesture_suspend(struct fts_ts_data *ts_data); 217 int fts_gesture_resume(struct fts_ts_data *ts_data); 224 int fts_create_sysfs(struct fts_ts_data *ts_data); 225 int fts_remove_sysfs(struct fts_ts_data *ts_data); [all …]
|
| H A D | focaltech_point_report_check.c | 57 struct fts_ts_data *ts_data = container_of(work, in fts_prc_func() local 59 struct input_dev *input_dev = ts_data->input_dev; in fts_prc_func() 66 mutex_lock(&ts_data->report_mutex); in fts_prc_func() 79 mutex_unlock(&ts_data->report_mutex); in fts_prc_func() 91 void fts_prc_queue_work(struct fts_ts_data *ts_data) in fts_prc_queue_work() argument 93 cancel_delayed_work_sync(&ts_data->prc_work); in fts_prc_queue_work() 94 queue_delayed_work(ts_data->ts_workqueue, &ts_data->prc_work, in fts_prc_queue_work() 105 int fts_point_report_check_init(struct fts_ts_data *ts_data) in fts_point_report_check_init() argument 109 if (ts_data->ts_workqueue) { in fts_point_report_check_init() 110 INIT_DELAYED_WORK(&ts_data->prc_work, fts_prc_func); in fts_point_report_check_init() [all …]
|
| H A D | focaltech_gesture.c | 107 struct fts_ts_data *ts_data = fts_data; in fts_gesture_show() local 109 mutex_lock(&ts_data->input_dev->mutex); in fts_gesture_show() 112 ts_data->gesture_mode ? "On" : "Off"); in fts_gesture_show() 114 mutex_unlock(&ts_data->input_dev->mutex); in fts_gesture_show() 123 struct fts_ts_data *ts_data = fts_data; in fts_gesture_store() local 125 mutex_lock(&ts_data->input_dev->mutex); in fts_gesture_store() 128 ts_data->gesture_mode = ENABLE; in fts_gesture_store() 131 ts_data->gesture_mode = DISABLE; in fts_gesture_store() 133 mutex_unlock(&ts_data->input_dev->mutex); in fts_gesture_store() 286 int fts_gesture_readdata(struct fts_ts_data *ts_data, u8 *data) in fts_gesture_readdata() argument [all …]
|
| H A D | focaltech_ex_fun.c | 93 struct fts_ts_data *ts_data = fts_data; in fts_debug_write() local 94 struct ftxxxx_proc *proc = &ts_data->proc; in fts_debug_write() 183 ts_data->fw_is_running = true; in fts_debug_write() 185 ts_data->fw_is_running = false; in fts_debug_write() 218 struct fts_ts_data *ts_data = fts_data; in fts_debug_read() local 219 struct ftxxxx_proc *proc = &ts_data->proc; in fts_debug_read() 302 struct fts_ts_data *ts_data = fts_data; in fts_debug_write() local 303 struct ftxxxx_proc *proc = &ts_data->proc; in fts_debug_write() 392 ts_data->fw_is_running = true; in fts_debug_write() 394 ts_data->fw_is_running = false; in fts_debug_write() [all …]
|
| H A D | focaltech_flash.c | 96 if ((!upg) || (!upg->func) || (!upg->ts_data) || (!fw_sts)) { in fts_fwupg_get_boot_state() 126 ids = &upg->ts_data->ic_info.ids; in fts_fwupg_get_boot_state() 1092 if ((!upg) || (!upg->func) || !upg->ts_data) { in fts_upgrade_bin() 1097 upg->ts_data->fw_loading = 1; in fts_upgrade_bin() 1147 upg->ts_data->fw_loading = 0; in fts_upgrade_bin() 1676 if (!upg || !upg->ts_data) { in fts_fwupg_auto_upgrade() 1708 if ((!upg) || (!upg->func) || (!upg->ts_data) || (!vid)) { in fts_fwupg_get_vendorid() 1716 if (upg->ts_data->ic_info.is_incell) in fts_fwupg_get_vendorid() 1722 if (upg->ts_data->ic_info.is_incell) { in fts_fwupg_get_vendorid() 1744 if (!upg || !upg->ts_data) { in fts_fwupg_get_module_info() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/input/touchscreen/focaltech_touch/ |
| H A D | focaltech_core.c | 129 struct fts_ts_data *ts_data, in fts_get_chip_types() argument 158 ts_data->ic_info.ids = ctype[1]; in fts_get_chip_types() 170 static int fts_get_ic_information(struct fts_ts_data *ts_data) in fts_get_ic_information() argument 178 struct i2c_client *client = ts_data->client; in fts_get_ic_information() 180 ts_data->ic_info.is_incell = FTS_CHIP_IDC; in fts_get_ic_information() 181 ts_data->ic_info.hid_supported = FTS_HID_SUPPORTTED; in fts_get_ic_information() 191 ret = fts_get_chip_types(ts_data, chip_id[0], chip_id[1], VALID); in fts_get_ic_information() 203 if (ts_data->ic_info.hid_supported) { in fts_get_ic_information() 218 if (ts_data->ic_info.is_incell) in fts_get_ic_information() 227 ret = fts_get_chip_types(ts_data, chip_id[0], chip_id[1], INVALID); in fts_get_ic_information() [all …]
|
| H A D | focaltech_esdcheck.c | 91 int idc_esdcheck_lcderror(struct fts_ts_data *ts_data) in idc_esdcheck_lcderror() argument 95 struct i2c_client *client = ts_data->client; in idc_esdcheck_lcderror() 132 static int fts_esdcheck_tp_reset(struct fts_ts_data *ts_data) in fts_esdcheck_tp_reset() argument 140 fts_tp_state_recovery(ts_data->client); in fts_esdcheck_tp_reset() 154 static bool get_chip_id(struct fts_ts_data *ts_data) in get_chip_id() argument 160 struct i2c_client *client = ts_data->client; in get_chip_id() 161 u8 chip_id = ts_data->ic_info.ids.chip_idh; in get_chip_id() 196 static bool get_flow_cnt(struct fts_ts_data *ts_data) in get_flow_cnt() argument 201 struct i2c_client *client = ts_data->client; in get_flow_cnt() 234 static int esdcheck_algorithm(struct fts_ts_data *ts_data) in esdcheck_algorithm() argument [all …]
|
| H A D | focaltech_point_report_check.c | 57 struct fts_ts_data *ts_data = container_of(work, in fts_prc_func() local 59 struct input_dev *input_dev = ts_data->input_dev; in fts_prc_func() 66 mutex_lock(&ts_data->report_mutex); in fts_prc_func() 69 for (finger_count = 0; finger_count < ts_data->pdata->max_touch_number; finger_count++) { in fts_prc_func() 79 mutex_unlock(&ts_data->report_mutex); in fts_prc_func() 91 void fts_prc_queue_work(struct fts_ts_data *ts_data) in fts_prc_queue_work() argument 93 cancel_delayed_work(&ts_data->prc_work); in fts_prc_queue_work() 94 queue_delayed_work(ts_data->ts_workqueue, &ts_data->prc_work, in fts_prc_queue_work() 105 int fts_point_report_check_init(struct fts_ts_data *ts_data) in fts_point_report_check_init() argument 109 if (ts_data->ts_workqueue) { in fts_point_report_check_init() [all …]
|
| H A D | focaltech_ex_fun.c | 100 struct fts_ts_data *ts_data = fts_data; in fts_debug_write() local 101 struct i2c_client *client = ts_data->client; in fts_debug_write() 124 ts_data->proc_opmode = writebuf[0]; in fts_debug_write() 126 switch (ts_data->proc_opmode) { in fts_debug_write() 214 struct fts_ts_data *ts_data = fts_data; in fts_debug_read() local 215 struct i2c_client *client = ts_data->client; in fts_debug_read() 236 switch (ts_data->proc_opmode) { in fts_debug_read() 308 struct fts_ts_data *ts_data = fts_data; in fts_debug_write() local 309 struct i2c_client *client = ts_data->client; in fts_debug_write() 332 ts_data->proc_opmode = writebuf[0]; in fts_debug_write() [all …]
|
| H A D | focaltech_core.h | 194 int fts_gesture_init(struct fts_ts_data *ts_data); 197 int fts_gesture_readdata(struct fts_ts_data *ts_data); 216 int fts_esdcheck_init(struct fts_ts_data *ts_data); 217 int fts_esdcheck_exit(struct fts_ts_data *ts_data); 233 int fts_point_report_check_init(struct fts_ts_data *ts_data); 234 int fts_point_report_check_exit(struct fts_ts_data *ts_data); 235 void fts_prc_queue_work(struct fts_ts_data *ts_data); 240 int fts_fwupg_init(struct fts_ts_data *ts_data); 241 int fts_fwupg_exit(struct fts_ts_data *ts_data);
|
| H A D | focaltech_ex_mode.c | 87 struct fts_ts_data *ts_data = fts_data; in fts_touch_glove_store() local 91 client = ts_data->client; in fts_touch_glove_store() 170 struct fts_ts_data *ts_data = fts_data; in fts_touch_cover_store() local 173 client = ts_data->client; in fts_touch_cover_store() 252 struct fts_ts_data *ts_data = fts_data; in fts_touch_charger_store() local 255 client = ts_data->client; in fts_touch_charger_store()
|
| H A D | focaltech_flash.c | 1715 void fts_fwupg_auto_upgrade(struct fts_ts_data *ts_data) in fts_fwupg_auto_upgrade() argument 1718 struct i2c_client *client = ts_data->client; in fts_fwupg_auto_upgrade() 1746 int fts_fwupg_get_vendorid(struct fts_ts_data *ts_data, u16 *vid) in fts_fwupg_get_vendorid() argument 1754 struct i2c_client *client = ts_data->client; in fts_fwupg_get_vendorid() 1766 if (ts_data->ic_info.is_incell) in fts_fwupg_get_vendorid() 1772 if (ts_data->ic_info.is_incell) { in fts_fwupg_get_vendorid() 1801 static int fts_fwupg_get_fw_file(struct fts_ts_data *ts_data) in fts_fwupg_get_fw_file() argument 1812 ret = fts_fwupg_get_vendorid(ts_data, &vendor_id); in fts_fwupg_get_fw_file() 1867 struct fts_ts_data *ts_data = container_of(work, in fts_fwupg_work() local 1871 ts_data->fw_loading = 1; in fts_fwupg_work() [all …]
|
| H A D | focaltech_gesture.c | 346 int fts_gesture_readdata(struct fts_ts_data *ts_data) in fts_gesture_readdata() argument 355 struct i2c_client *client = ts_data->client; in fts_gesture_readdata() 356 struct input_dev *input_dev = ts_data->input_dev; in fts_gesture_readdata() 358 if (!ts_data->suspended) { in fts_gesture_readdata() 538 int fts_gesture_init(struct fts_ts_data *ts_data) in fts_gesture_init() argument 540 struct i2c_client *client = ts_data->client; in fts_gesture_init() 541 struct input_dev *input_dev = ts_data->input_dev; in fts_gesture_init()
|
| /OK3568_Linux_fs/kernel/drivers/input/touchscreen/ |
| H A D | surface3_spi.c | 58 static int surface3_spi_read(struct surface3_ts_data *ts_data) in surface3_spi_read() argument 60 struct spi_device *spi = ts_data->spi; in surface3_spi_read() 62 memset(ts_data->rd_buf, 0, sizeof(ts_data->rd_buf)); in surface3_spi_read() 63 return spi_read(spi, ts_data->rd_buf, sizeof(ts_data->rd_buf)); in surface3_spi_read() 66 static void surface3_spi_report_touch(struct surface3_ts_data *ts_data, in surface3_spi_report_touch() argument 72 slot = input_mt_get_slot_by_key(ts_data->input_dev, in surface3_spi_report_touch() 77 input_mt_slot(ts_data->input_dev, slot); in surface3_spi_report_touch() 78 input_mt_report_slot_state(ts_data->input_dev, MT_TOOL_FINGER, st); in surface3_spi_report_touch() 80 input_report_abs(ts_data->input_dev, in surface3_spi_report_touch() 83 input_report_abs(ts_data->input_dev, in surface3_spi_report_touch() [all …]
|
| H A D | ipaq-micro-ts.c | 54 micro->ts_data = ts; in micro_ts_toggle_receive() 57 micro->ts_data = NULL; in micro_ts_toggle_receive()
|
| /OK3568_Linux_fs/external/security/librkcrypto/third_party/optee_client/libteec/src/ |
| H A D | teec_benchmark.c | 175 struct tee_time_st ts_data; in bm_timestamp() local 179 memset(&ts_data, 0, sizeof(ts_data)); in bm_timestamp() 210 ts_data.cnt = read_ccounter(); in bm_timestamp() 211 ts_data.addr = (uintptr_t)ret_addr; in bm_timestamp() 212 ts_data.src = TEE_BENCH_CLIENT; in bm_timestamp() 213 cpu_buf->stamps[ts_i & TEE_BENCH_MAX_MASK] = ts_data; in bm_timestamp()
|
| /OK3568_Linux_fs/kernel/drivers/thermal/ti-soc-thermal/ |
| H A D | dra752-thermal-data.c | 335 .ts_data = &dra752_mpu_temp_sensor_data, 344 .ts_data = &dra752_gpu_temp_sensor_data, 351 .ts_data = &dra752_core_temp_sensor_data, 358 .ts_data = &dra752_dspeve_temp_sensor_data, 365 .ts_data = &dra752_iva_temp_sensor_data,
|
| H A D | omap4-thermal-data.c | 72 .ts_data = &omap4430_mpu_temp_sensor_data, 203 .ts_data = &omap4460_mpu_temp_sensor_data, 234 .ts_data = &omap4460_mpu_temp_sensor_data,
|
| H A D | omap5-thermal-data.c | 282 .ts_data = &omap5430_mpu_temp_sensor_data, 291 .ts_data = &omap5430_gpu_temp_sensor_data, 298 .ts_data = &omap5430_core_temp_sensor_data,
|
| H A D | omap3-thermal-data.c | 81 .ts_data = &omap34xx_mpu_temp_sensor_data, 149 .ts_data = &omap36xx_mpu_temp_sensor_data,
|
| H A D | ti-bandgap.c | 938 bgp->conf->sensors[0].ts_data->max_freq); in ti_bandgap_probe() 939 if (clk_rate < bgp->conf->sensors[0].ts_data->min_freq || in ti_bandgap_probe() 968 struct temp_sensor_data *ts_data; in ti_bandgap_probe() local 970 ts_data = bgp->conf->sensors[i].ts_data; in ti_bandgap_probe() 975 threshold_tcold_mask, ts_data->t_cold); in ti_bandgap_probe() 977 threshold_thot_mask, ts_data->t_hot); in ti_bandgap_probe() 986 tshut_hot_mask, ts_data->tshut_hot); in ti_bandgap_probe() 988 tshut_cold_mask, ts_data->tshut_cold); in ti_bandgap_probe()
|