Lines Matching refs:si

86 	struct cyttsp4_sysinfo *si = &cd->sysinfo;  in cyttsp4_load_status_regs()  local
90 rc = cyttsp4_adap_read(cd, CY_REG_BASE, si->si_ofs.mode_size, in cyttsp4_load_status_regs()
91 si->xy_mode); in cyttsp4_load_status_regs()
96 cyttsp4_pr_buf(dev, cd->pr_buf, si->xy_mode, in cyttsp4_load_status_regs()
97 si->si_ofs.mode_size, "xy_mode"); in cyttsp4_load_status_regs()
166 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_si_data_offsets() local
167 int rc = cyttsp4_adap_read(cd, CY_REG_BASE, sizeof(si->si_data), in cyttsp4_si_data_offsets()
168 &si->si_data); in cyttsp4_si_data_offsets()
176 cyttsp4_pr_buf(cd->dev, cd->pr_buf, (u8 *)&si->si_data, in cyttsp4_si_data_offsets()
177 sizeof(si->si_data), "sysinfo_data_offsets"); in cyttsp4_si_data_offsets()
181 si->si_ofs.map_sz = merge_bytes(si->si_data.map_szh, in cyttsp4_si_data_offsets()
182 si->si_data.map_szl); in cyttsp4_si_data_offsets()
183 si->si_ofs.map_sz = merge_bytes(si->si_data.map_szh, in cyttsp4_si_data_offsets()
184 si->si_data.map_szl); in cyttsp4_si_data_offsets()
185 si->si_ofs.cydata_ofs = merge_bytes(si->si_data.cydata_ofsh, in cyttsp4_si_data_offsets()
186 si->si_data.cydata_ofsl); in cyttsp4_si_data_offsets()
187 si->si_ofs.test_ofs = merge_bytes(si->si_data.test_ofsh, in cyttsp4_si_data_offsets()
188 si->si_data.test_ofsl); in cyttsp4_si_data_offsets()
189 si->si_ofs.pcfg_ofs = merge_bytes(si->si_data.pcfg_ofsh, in cyttsp4_si_data_offsets()
190 si->si_data.pcfg_ofsl); in cyttsp4_si_data_offsets()
191 si->si_ofs.opcfg_ofs = merge_bytes(si->si_data.opcfg_ofsh, in cyttsp4_si_data_offsets()
192 si->si_data.opcfg_ofsl); in cyttsp4_si_data_offsets()
193 si->si_ofs.ddata_ofs = merge_bytes(si->si_data.ddata_ofsh, in cyttsp4_si_data_offsets()
194 si->si_data.ddata_ofsl); in cyttsp4_si_data_offsets()
195 si->si_ofs.mdata_ofs = merge_bytes(si->si_data.mdata_ofsh, in cyttsp4_si_data_offsets()
196 si->si_data.mdata_ofsl); in cyttsp4_si_data_offsets()
202 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_si_get_cydata() local
208 if (si->si_ofs.test_ofs <= si->si_ofs.cydata_ofs) { in cyttsp4_si_get_cydata()
211 __func__, si->si_ofs.test_ofs, si->si_ofs.cydata_ofs); in cyttsp4_si_get_cydata()
215 si->si_ofs.cydata_size = si->si_ofs.test_ofs - si->si_ofs.cydata_ofs; in cyttsp4_si_get_cydata()
217 si->si_ofs.cydata_size); in cyttsp4_si_get_cydata()
219 p = krealloc(si->si_ptrs.cydata, si->si_ofs.cydata_size, GFP_KERNEL); in cyttsp4_si_get_cydata()
225 si->si_ptrs.cydata = p; in cyttsp4_si_get_cydata()
227 read_offset = si->si_ofs.cydata_ofs; in cyttsp4_si_get_cydata()
232 + sizeof(si->si_ptrs.cydata->mfgid_sz), in cyttsp4_si_get_cydata()
233 si->si_ptrs.cydata); in cyttsp4_si_get_cydata()
241 mfgid_sz = si->si_ptrs.cydata->mfgid_sz; in cyttsp4_si_get_cydata()
242 calc_mfgid_sz = si->si_ofs.cydata_size - sizeof(struct cyttsp4_cydata); in cyttsp4_si_get_cydata()
250 + sizeof(si->si_ptrs.cydata->mfgid_sz); in cyttsp4_si_get_cydata()
253 rc = cyttsp4_adap_read(cd, read_offset, si->si_ptrs.cydata->mfgid_sz, in cyttsp4_si_get_cydata()
254 si->si_ptrs.cydata->mfg_id); in cyttsp4_si_get_cydata()
261 read_offset += si->si_ptrs.cydata->mfgid_sz; in cyttsp4_si_get_cydata()
267 &si->si_ptrs.cydata->cyito_idh); in cyttsp4_si_get_cydata()
274 cyttsp4_pr_buf(cd->dev, cd->pr_buf, (u8 *)si->si_ptrs.cydata, in cyttsp4_si_get_cydata()
275 si->si_ofs.cydata_size, "sysinfo_cydata"); in cyttsp4_si_get_cydata()
281 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_si_get_test_data() local
285 if (si->si_ofs.pcfg_ofs <= si->si_ofs.test_ofs) { in cyttsp4_si_get_test_data()
288 __func__, si->si_ofs.pcfg_ofs, si->si_ofs.test_ofs); in cyttsp4_si_get_test_data()
292 si->si_ofs.test_size = si->si_ofs.pcfg_ofs - si->si_ofs.test_ofs; in cyttsp4_si_get_test_data()
294 p = krealloc(si->si_ptrs.test, si->si_ofs.test_size, GFP_KERNEL); in cyttsp4_si_get_test_data()
300 si->si_ptrs.test = p; in cyttsp4_si_get_test_data()
302 rc = cyttsp4_adap_read(cd, si->si_ofs.test_ofs, si->si_ofs.test_size, in cyttsp4_si_get_test_data()
303 si->si_ptrs.test); in cyttsp4_si_get_test_data()
311 (u8 *)si->si_ptrs.test, si->si_ofs.test_size, in cyttsp4_si_get_test_data()
313 if (si->si_ptrs.test->post_codel & in cyttsp4_si_get_test_data()
317 si->si_ptrs.test->post_codel); in cyttsp4_si_get_test_data()
319 if (!(si->si_ptrs.test->post_codel & in cyttsp4_si_get_test_data()
323 si->si_ptrs.test->post_codel); in cyttsp4_si_get_test_data()
325 if (!(si->si_ptrs.test->post_codel & in cyttsp4_si_get_test_data()
329 si->si_ptrs.test->post_codel); in cyttsp4_si_get_test_data()
332 __func__, si->si_ptrs.test->post_codel & 0x08 ? in cyttsp4_si_get_test_data()
334 si->si_ptrs.test->post_codel); in cyttsp4_si_get_test_data()
340 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_si_get_pcfg_data() local
344 if (si->si_ofs.opcfg_ofs <= si->si_ofs.pcfg_ofs) { in cyttsp4_si_get_pcfg_data()
347 __func__, si->si_ofs.opcfg_ofs, si->si_ofs.pcfg_ofs); in cyttsp4_si_get_pcfg_data()
351 si->si_ofs.pcfg_size = si->si_ofs.opcfg_ofs - si->si_ofs.pcfg_ofs; in cyttsp4_si_get_pcfg_data()
353 p = krealloc(si->si_ptrs.pcfg, si->si_ofs.pcfg_size, GFP_KERNEL); in cyttsp4_si_get_pcfg_data()
359 si->si_ptrs.pcfg = p; in cyttsp4_si_get_pcfg_data()
361 rc = cyttsp4_adap_read(cd, si->si_ofs.pcfg_ofs, si->si_ofs.pcfg_size, in cyttsp4_si_get_pcfg_data()
362 si->si_ptrs.pcfg); in cyttsp4_si_get_pcfg_data()
369 si->si_ofs.max_x = merge_bytes((si->si_ptrs.pcfg->res_xh in cyttsp4_si_get_pcfg_data()
370 & CY_PCFG_RESOLUTION_X_MASK), si->si_ptrs.pcfg->res_xl); in cyttsp4_si_get_pcfg_data()
371 si->si_ofs.x_origin = !!(si->si_ptrs.pcfg->res_xh in cyttsp4_si_get_pcfg_data()
373 si->si_ofs.max_y = merge_bytes((si->si_ptrs.pcfg->res_yh in cyttsp4_si_get_pcfg_data()
374 & CY_PCFG_RESOLUTION_Y_MASK), si->si_ptrs.pcfg->res_yl); in cyttsp4_si_get_pcfg_data()
375 si->si_ofs.y_origin = !!(si->si_ptrs.pcfg->res_yh in cyttsp4_si_get_pcfg_data()
377 si->si_ofs.max_p = merge_bytes(si->si_ptrs.pcfg->max_zh, in cyttsp4_si_get_pcfg_data()
378 si->si_ptrs.pcfg->max_zl); in cyttsp4_si_get_pcfg_data()
381 (u8 *)si->si_ptrs.pcfg, in cyttsp4_si_get_pcfg_data()
382 si->si_ofs.pcfg_size, "sysinfo_pcfg_data"); in cyttsp4_si_get_pcfg_data()
388 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_si_get_opcfg_data() local
396 if (si->si_ofs.ddata_ofs <= si->si_ofs.opcfg_ofs) { in cyttsp4_si_get_opcfg_data()
399 __func__, si->si_ofs.ddata_ofs, si->si_ofs.opcfg_ofs); in cyttsp4_si_get_opcfg_data()
403 si->si_ofs.opcfg_size = si->si_ofs.ddata_ofs - si->si_ofs.opcfg_ofs; in cyttsp4_si_get_opcfg_data()
405 p = krealloc(si->si_ptrs.opcfg, si->si_ofs.opcfg_size, GFP_KERNEL); in cyttsp4_si_get_opcfg_data()
411 si->si_ptrs.opcfg = p; in cyttsp4_si_get_opcfg_data()
413 rc = cyttsp4_adap_read(cd, si->si_ofs.opcfg_ofs, si->si_ofs.opcfg_size, in cyttsp4_si_get_opcfg_data()
414 si->si_ptrs.opcfg); in cyttsp4_si_get_opcfg_data()
420 si->si_ofs.cmd_ofs = si->si_ptrs.opcfg->cmd_ofs; in cyttsp4_si_get_opcfg_data()
421 si->si_ofs.rep_ofs = si->si_ptrs.opcfg->rep_ofs; in cyttsp4_si_get_opcfg_data()
422 si->si_ofs.rep_sz = (si->si_ptrs.opcfg->rep_szh * 256) + in cyttsp4_si_get_opcfg_data()
423 si->si_ptrs.opcfg->rep_szl; in cyttsp4_si_get_opcfg_data()
424 si->si_ofs.num_btns = si->si_ptrs.opcfg->num_btns; in cyttsp4_si_get_opcfg_data()
425 si->si_ofs.num_btn_regs = (si->si_ofs.num_btns + in cyttsp4_si_get_opcfg_data()
427 si->si_ofs.tt_stat_ofs = si->si_ptrs.opcfg->tt_stat_ofs; in cyttsp4_si_get_opcfg_data()
428 si->si_ofs.obj_cfg0 = si->si_ptrs.opcfg->obj_cfg0; in cyttsp4_si_get_opcfg_data()
429 si->si_ofs.max_tchs = si->si_ptrs.opcfg->max_tchs & in cyttsp4_si_get_opcfg_data()
431 si->si_ofs.tch_rec_size = si->si_ptrs.opcfg->tch_rec_size & in cyttsp4_si_get_opcfg_data()
436 tch = &si->si_ofs.tch_abs[abs]; in cyttsp4_si_get_opcfg_data()
437 tch_old = &si->si_ptrs.opcfg->tch_rec_old[abs]; in cyttsp4_si_get_opcfg_data()
446 si->si_ofs.btn_rec_size = si->si_ptrs.opcfg->btn_rec_size; in cyttsp4_si_get_opcfg_data()
447 si->si_ofs.btn_diff_ofs = si->si_ptrs.opcfg->btn_diff_ofs; in cyttsp4_si_get_opcfg_data()
448 si->si_ofs.btn_diff_size = si->si_ptrs.opcfg->btn_diff_size; in cyttsp4_si_get_opcfg_data()
450 if (si->si_ofs.tch_rec_size > CY_TMA1036_TCH_REC_SIZE) { in cyttsp4_si_get_opcfg_data()
453 tch = &si->si_ofs.tch_abs[abs]; in cyttsp4_si_get_opcfg_data()
454 tch_new = &si->si_ptrs.opcfg->tch_rec_new[i]; in cyttsp4_si_get_opcfg_data()
467 si->si_ofs.tch_abs[abs].ofs); in cyttsp4_si_get_opcfg_data()
469 si->si_ofs.tch_abs[abs].size); in cyttsp4_si_get_opcfg_data()
471 si->si_ofs.tch_abs[abs].max); in cyttsp4_si_get_opcfg_data()
473 si->si_ofs.tch_abs[abs].bofs); in cyttsp4_si_get_opcfg_data()
476 si->si_ofs.mode_size = si->si_ofs.tt_stat_ofs + 1; in cyttsp4_si_get_opcfg_data()
477 si->si_ofs.data_size = si->si_ofs.max_tchs * in cyttsp4_si_get_opcfg_data()
478 si->si_ptrs.opcfg->tch_rec_size; in cyttsp4_si_get_opcfg_data()
480 cyttsp4_pr_buf(cd->dev, cd->pr_buf, (u8 *)si->si_ptrs.opcfg, in cyttsp4_si_get_opcfg_data()
481 si->si_ofs.opcfg_size, "sysinfo_opcfg_data"); in cyttsp4_si_get_opcfg_data()
488 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_si_get_ddata() local
492 si->si_ofs.ddata_size = si->si_ofs.mdata_ofs - si->si_ofs.ddata_ofs; in cyttsp4_si_get_ddata()
494 p = krealloc(si->si_ptrs.ddata, si->si_ofs.ddata_size, GFP_KERNEL); in cyttsp4_si_get_ddata()
499 si->si_ptrs.ddata = p; in cyttsp4_si_get_ddata()
501 rc = cyttsp4_adap_read(cd, si->si_ofs.ddata_ofs, si->si_ofs.ddata_size, in cyttsp4_si_get_ddata()
502 si->si_ptrs.ddata); in cyttsp4_si_get_ddata()
508 (u8 *)si->si_ptrs.ddata, in cyttsp4_si_get_ddata()
509 si->si_ofs.ddata_size, "sysinfo_ddata"); in cyttsp4_si_get_ddata()
515 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_si_get_mdata() local
519 si->si_ofs.mdata_size = si->si_ofs.map_sz - si->si_ofs.mdata_ofs; in cyttsp4_si_get_mdata()
521 p = krealloc(si->si_ptrs.mdata, si->si_ofs.mdata_size, GFP_KERNEL); in cyttsp4_si_get_mdata()
526 si->si_ptrs.mdata = p; in cyttsp4_si_get_mdata()
528 rc = cyttsp4_adap_read(cd, si->si_ofs.mdata_ofs, si->si_ofs.mdata_size, in cyttsp4_si_get_mdata()
529 si->si_ptrs.mdata); in cyttsp4_si_get_mdata()
535 (u8 *)si->si_ptrs.mdata, in cyttsp4_si_get_mdata()
536 si->si_ofs.mdata_size, "sysinfo_mdata"); in cyttsp4_si_get_mdata()
542 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_si_get_btn_data() local
549 if (si->si_ofs.num_btns) { in cyttsp4_si_get_btn_data()
550 si->si_ofs.btn_keys_size = si->si_ofs.num_btns * in cyttsp4_si_get_btn_data()
553 p = krealloc(si->btn, si->si_ofs.btn_keys_size, in cyttsp4_si_get_btn_data()
560 si->btn = p; in cyttsp4_si_get_btn_data()
570 for (btn = 0; btn < si->si_ofs.num_btns && in cyttsp4_si_get_btn_data()
574 si->btn[btn].key_code = key_table[btn]; in cyttsp4_si_get_btn_data()
575 si->btn[btn].state = CY_BTN_RELEASED; in cyttsp4_si_get_btn_data()
576 si->btn[btn].enabled = true; in cyttsp4_si_get_btn_data()
578 for (; btn < si->si_ofs.num_btns; btn++) { in cyttsp4_si_get_btn_data()
579 si->btn[btn].key_code = KEY_RESERVED; in cyttsp4_si_get_btn_data()
580 si->btn[btn].state = CY_BTN_RELEASED; in cyttsp4_si_get_btn_data()
581 si->btn[btn].enabled = true; in cyttsp4_si_get_btn_data()
587 si->si_ofs.btn_keys_size = 0; in cyttsp4_si_get_btn_data()
588 kfree(si->btn); in cyttsp4_si_get_btn_data()
589 si->btn = NULL; in cyttsp4_si_get_btn_data()
595 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_si_get_op_data_ptrs() local
598 p = krealloc(si->xy_mode, si->si_ofs.mode_size, GFP_KERNEL|__GFP_ZERO); in cyttsp4_si_get_op_data_ptrs()
601 si->xy_mode = p; in cyttsp4_si_get_op_data_ptrs()
603 p = krealloc(si->xy_data, si->si_ofs.data_size, GFP_KERNEL|__GFP_ZERO); in cyttsp4_si_get_op_data_ptrs()
606 si->xy_data = p; in cyttsp4_si_get_op_data_ptrs()
608 p = krealloc(si->btn_rec_data, in cyttsp4_si_get_op_data_ptrs()
609 si->si_ofs.btn_rec_size * si->si_ofs.num_btns, in cyttsp4_si_get_op_data_ptrs()
613 si->btn_rec_data = p; in cyttsp4_si_get_op_data_ptrs()
620 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_si_put_log_data() local
622 si->si_ofs.cydata_ofs, si->si_ofs.cydata_size); in cyttsp4_si_put_log_data()
624 si->si_ofs.test_ofs, si->si_ofs.test_size); in cyttsp4_si_put_log_data()
626 si->si_ofs.pcfg_ofs, si->si_ofs.pcfg_size); in cyttsp4_si_put_log_data()
628 si->si_ofs.opcfg_ofs, si->si_ofs.opcfg_size); in cyttsp4_si_put_log_data()
630 si->si_ofs.ddata_ofs, si->si_ofs.ddata_size); in cyttsp4_si_put_log_data()
632 si->si_ofs.mdata_ofs, si->si_ofs.mdata_size); in cyttsp4_si_put_log_data()
635 si->si_ofs.cmd_ofs); in cyttsp4_si_put_log_data()
637 si->si_ofs.rep_ofs); in cyttsp4_si_put_log_data()
639 si->si_ofs.rep_sz); in cyttsp4_si_put_log_data()
641 si->si_ofs.num_btns); in cyttsp4_si_put_log_data()
643 si->si_ofs.num_btn_regs); in cyttsp4_si_put_log_data()
645 si->si_ofs.tt_stat_ofs); in cyttsp4_si_put_log_data()
647 si->si_ofs.tch_rec_size); in cyttsp4_si_put_log_data()
649 si->si_ofs.max_tchs); in cyttsp4_si_put_log_data()
651 si->si_ofs.mode_size); in cyttsp4_si_put_log_data()
653 si->si_ofs.data_size); in cyttsp4_si_put_log_data()
655 si->si_ofs.map_sz); in cyttsp4_si_put_log_data()
658 si->si_ofs.btn_rec_size); in cyttsp4_si_put_log_data()
660 si->si_ofs.btn_diff_ofs); in cyttsp4_si_put_log_data()
662 si->si_ofs.btn_diff_size); in cyttsp4_si_put_log_data()
665 si->si_ofs.max_x, si->si_ofs.max_x); in cyttsp4_si_put_log_data()
667 si->si_ofs.x_origin, in cyttsp4_si_put_log_data()
668 si->si_ofs.x_origin == CY_NORMAL_ORIGIN ? in cyttsp4_si_put_log_data()
671 si->si_ofs.max_y, si->si_ofs.max_y); in cyttsp4_si_put_log_data()
673 si->si_ofs.y_origin, in cyttsp4_si_put_log_data()
674 si->si_ofs.y_origin == CY_NORMAL_ORIGIN ? in cyttsp4_si_put_log_data()
677 si->si_ofs.max_p, si->si_ofs.max_p); in cyttsp4_si_put_log_data()
680 si->xy_mode, si->xy_data); in cyttsp4_si_put_log_data()
685 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_get_sysinfo_regs() local
730 rc = cyttsp4_handshake(cd, si->si_data.hst_mode); in cyttsp4_get_sysinfo_regs()
735 si->ready = true; in cyttsp4_get_sysinfo_regs()
767 if (!md->si) in cyttsp4_lift_all()
772 md->si->si_ofs.tch_abs[CY_TCH_T].max); in cyttsp4_lift_all()
807 struct cyttsp4_sysinfo *si = md->si; in cyttsp4_get_touch() local
813 si->si_ofs.tch_abs[abs].size, in cyttsp4_get_touch()
814 si->si_ofs.tch_abs[abs].max, in cyttsp4_get_touch()
815 xy_data + si->si_ofs.tch_abs[abs].ofs, in cyttsp4_get_touch()
816 si->si_ofs.tch_abs[abs].bofs); in cyttsp4_get_touch()
830 touch->abs[CY_TCH_X] = md->si->si_ofs.max_y - in cyttsp4_get_touch()
833 touch->abs[CY_TCH_X] = md->si->si_ofs.max_x - in cyttsp4_get_touch()
838 touch->abs[CY_TCH_Y] = md->si->si_ofs.max_x - in cyttsp4_get_touch()
841 touch->abs[CY_TCH_Y] = md->si->si_ofs.max_y - in cyttsp4_get_touch()
870 struct cyttsp4_sysinfo *si = md->si; in cyttsp4_get_mt_touches() local
876 memset(ids, 0, si->si_ofs.tch_abs[CY_TCH_T].max * sizeof(int)); in cyttsp4_get_mt_touches()
878 cyttsp4_get_touch(md, &tch, si->xy_data + in cyttsp4_get_mt_touches()
879 (i * si->si_ofs.tch_rec_size)); in cyttsp4_get_mt_touches()
916 if (si->si_ofs.tch_rec_size > CY_TMA1036_TCH_REC_SIZE) { in cyttsp4_get_mt_touches()
938 if (si->si_ofs.tch_rec_size > CY_TMA1036_TCH_REC_SIZE) in cyttsp4_get_mt_touches()
959 cyttsp4_final_sync(md->input, si->si_ofs.tch_abs[CY_TCH_T].max, ids); in cyttsp4_get_mt_touches()
971 struct cyttsp4_sysinfo *si = md->si; in cyttsp4_xy_worker() local
990 hst_mode = si->xy_mode[CY_REG_BASE]; in cyttsp4_xy_worker()
991 rep_len = si->xy_mode[si->si_ofs.rep_ofs]; in cyttsp4_xy_worker()
992 rep_stat = si->xy_mode[si->si_ofs.rep_ofs + 1]; in cyttsp4_xy_worker()
993 tt_stat = si->xy_mode[si->si_ofs.tt_stat_ofs]; in cyttsp4_xy_worker()
1009 rc = cyttsp4_adap_read(cd, si->si_ofs.tt_stat_ofs + 1, in cyttsp4_xy_worker()
1010 num_cur_tch * si->si_ofs.tch_rec_size, in cyttsp4_xy_worker()
1011 si->xy_data); in cyttsp4_xy_worker()
1020 cyttsp4_pr_buf(dev, cd->pr_buf, si->xy_data, num_cur_tch * in cyttsp4_xy_worker()
1021 si->si_ofs.tch_rec_size, "xy_data"); in cyttsp4_xy_worker()
1033 if (num_cur_tch > si->si_ofs.max_tchs) { in cyttsp4_xy_worker()
1035 __func__, num_cur_tch, si->si_ofs.max_tchs); in cyttsp4_xy_worker()
1036 num_cur_tch = si->si_ofs.max_tchs; in cyttsp4_xy_worker()
1059 if (!md->si) in cyttsp4_mt_attention()
1730 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_free_si_ptrs() local
1732 if (!si) in cyttsp4_free_si_ptrs()
1735 kfree(si->si_ptrs.cydata); in cyttsp4_free_si_ptrs()
1736 kfree(si->si_ptrs.test); in cyttsp4_free_si_ptrs()
1737 kfree(si->si_ptrs.pcfg); in cyttsp4_free_si_ptrs()
1738 kfree(si->si_ptrs.opcfg); in cyttsp4_free_si_ptrs()
1739 kfree(si->si_ptrs.ddata); in cyttsp4_free_si_ptrs()
1740 kfree(si->si_ptrs.mdata); in cyttsp4_free_si_ptrs()
1741 kfree(si->btn); in cyttsp4_free_si_ptrs()
1742 kfree(si->xy_mode); in cyttsp4_free_si_ptrs()
1743 kfree(si->xy_data); in cyttsp4_free_si_ptrs()
1744 kfree(si->btn_rec_data); in cyttsp4_free_si_ptrs()
1919 max_x_tmp = md->si->si_ofs.max_x; in cyttsp4_setup_input_device()
1920 max_y_tmp = md->si->si_ofs.max_y; in cyttsp4_setup_input_device()
1930 max_p = md->si->si_ofs.max_p; in cyttsp4_setup_input_device()
1960 (md->si->si_ofs.tch_rec_size < in cyttsp4_setup_input_device()
1966 input_mt_init_slots(md->input, md->si->si_ofs.tch_abs[CY_TCH_T].max, in cyttsp4_setup_input_device()
2005 md->si = &cd->sysinfo; in cyttsp4_mt_probe()