Home
last modified time | relevance | path

Searched refs:x_err (Results 1 – 10 of 10) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/input/touchscreen/
H A Dgslx680_pad.c554 u16 x_err =0; in filter_point() local
565 x_err = x > x_old[id] ? (x -x_old[id]) : (x_old[id] - x); in filter_point()
568 … if( (x_err > FILTER_MAX && y_err > FILTER_MAX/3) || (x_err > FILTER_MAX/3 && y_err > FILTER_MAX) ) in filter_point()
570 filter_step_x = x_err; in filter_point()
575 if(x_err > FILTER_MAX) in filter_point()
576 filter_step_x = x_err; in filter_point()
581 if(x_err <= 2*FILTER_MAX && y_err <= 2*FILTER_MAX) in filter_point()
586 else if(x_err <= 3*FILTER_MAX && y_err <= 3*FILTER_MAX) in filter_point()
591 else if(x_err <= 4*FILTER_MAX && y_err <= 4*FILTER_MAX) in filter_point()
606 u16 x_err =0; in record_point() local
[all …]
H A Dgslx680_firefly.c514 u16 x_err = 0; local
524 x_err = x > x_old[id] ? (x - x_old[id]) : (x_old[id] - x);
527 …if ((x_err > FILTER_MAX && y_err > FILTER_MAX / 3) || (x_err > FILTER_MAX / 3 && y_err > FILTER_MA…
528 filter_step_x = x_err;
531 if (x_err > FILTER_MAX)
532 filter_step_x = x_err;
537 if (x_err <= 2 * FILTER_MAX && y_err <= 2 * FILTER_MAX) {
540 } else if (x_err <= 3 * FILTER_MAX && y_err <= 3 * FILTER_MAX) {
543 } else if (x_err <= 4 * FILTER_MAX && y_err <= 4 * FILTER_MAX) {
557 u16 x_err = 0; local
[all …]
H A Dgsl3673.c621 u16 x_err = 0; in filter_point() local
630 x_err = x > x_old[id] ? (x - x_old[id]) : (x_old[id] - x); in filter_point()
632 if ((x_err > FILTER_MAX && y_err > FILTER_MAX / 3) || in filter_point()
633 (x_err > FILTER_MAX / 3 && y_err > FILTER_MAX)) { in filter_point()
634 filter_step_x = x_err; in filter_point()
637 if (x_err > FILTER_MAX) in filter_point()
638 filter_step_x = x_err; in filter_point()
642 if (x_err <= 2 * FILTER_MAX && y_err <= 2 * FILTER_MAX) { in filter_point()
645 } else if (x_err <= 3 * FILTER_MAX && y_err <= 3 * FILTER_MAX) { in filter_point()
648 } else if (x_err <= 4 * FILTER_MAX && y_err <= 4 * FILTER_MAX) { in filter_point()
[all …]
H A Dgslx680a.c640 u16 x_err = 0; in filter_point() local
650 x_err = x > x_old[id] ? (x - x_old[id]) : (x_old[id] - x); in filter_point()
653 …if ((x_err > FILTER_MAX && y_err > FILTER_MAX / 3) || (x_err > FILTER_MAX / 3 && y_err > FILTER_MA… in filter_point()
654 filter_step_x = x_err; in filter_point()
657 if (x_err > FILTER_MAX) in filter_point()
658 filter_step_x = x_err; in filter_point()
663 if (x_err <= 2 * FILTER_MAX && y_err <= 2 * FILTER_MAX) { in filter_point()
666 } else if (x_err <= 3 * FILTER_MAX && y_err <= 3 * FILTER_MAX) { in filter_point()
669 } else if (x_err <= 4 * FILTER_MAX && y_err <= 4 * FILTER_MAX) { in filter_point()
683 u16 x_err = 0; in record_point() local
[all …]
H A Dgsl3673_800x1280.c643 u16 x_err = 0; in filter_point() local
652 x_err = x > x_old[id] ? (x - x_old[id]) : (x_old[id] - x); in filter_point()
654 if ((x_err > FILTER_MAX && y_err > FILTER_MAX / 3) || in filter_point()
655 (x_err > FILTER_MAX / 3 && y_err > FILTER_MAX)) { in filter_point()
656 filter_step_x = x_err; in filter_point()
659 if (x_err > FILTER_MAX) in filter_point()
660 filter_step_x = x_err; in filter_point()
664 if (x_err <= 2 * FILTER_MAX && y_err <= 2 * FILTER_MAX) { in filter_point()
667 } else if (x_err <= 3 * FILTER_MAX && y_err <= 3 * FILTER_MAX) { in filter_point()
670 } else if (x_err <= 4 * FILTER_MAX && y_err <= 4 * FILTER_MAX) { in filter_point()
[all …]
H A Dgslx680.c740 u16 x_err = 0; in filter_point() local
750 x_err = x > x_old[id] ? (x - x_old[id]) : (x_old[id] - x); in filter_point()
753 if ((x_err > FILTER_MAX && y_err > FILTER_MAX / 3) || in filter_point()
754 (x_err > FILTER_MAX / 3 && y_err > FILTER_MAX)) { in filter_point()
755 filter_step_x = x_err; in filter_point()
758 if (x_err > FILTER_MAX) in filter_point()
759 filter_step_x = x_err; in filter_point()
764 if (x_err <= 2 * FILTER_MAX && y_err <= 2 * FILTER_MAX) { in filter_point()
767 } else if (x_err <= 3 * FILTER_MAX && y_err <= 3 * FILTER_MAX) { in filter_point()
770 } else if (x_err <= 4 * FILTER_MAX && y_err <= 4 * FILTER_MAX) { in filter_point()
[all …]
H A Dgslx6801.c713 u16 x_err = 0; in filter_point() local
723 x_err = x > x_old[id] ? (x - x_old[id]) : (x_old[id] - x); in filter_point()
726 if ((x_err > FILTER_MAX && y_err > FILTER_MAX / 3) || in filter_point()
727 (x_err > FILTER_MAX / 3 && y_err > FILTER_MAX)) { in filter_point()
728 filter_step_x = x_err; in filter_point()
731 if (x_err > FILTER_MAX) in filter_point()
732 filter_step_x = x_err; in filter_point()
737 if (x_err <= 2 * FILTER_MAX && y_err <= 2 * FILTER_MAX) { in filter_point()
740 } else if (x_err <= 3 * FILTER_MAX && y_err <= 3 * FILTER_MAX) { in filter_point()
743 } else if (x_err <= 4 * FILTER_MAX && y_err <= 4 * FILTER_MAX) { in filter_point()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/gsl3676/
H A Dgsl3676.c615 u16 x_err = 0; in filter_point() local
624 x_err = x > x_old[id] ? (x - x_old[id]) : (x_old[id] - x); in filter_point()
626 if ((x_err > FILTER_MAX && y_err > FILTER_MAX / 3) || in filter_point()
627 (x_err > FILTER_MAX / 3 && y_err > FILTER_MAX)) { in filter_point()
628 filter_step_x = x_err; in filter_point()
631 if (x_err > FILTER_MAX) in filter_point()
632 filter_step_x = x_err; in filter_point()
636 if (x_err <= 2 * FILTER_MAX && y_err <= 2 * FILTER_MAX) { in filter_point()
639 } else if (x_err <= 3 * FILTER_MAX && y_err <= 3 * FILTER_MAX) { in filter_point()
642 } else if (x_err <= 4 * FILTER_MAX && y_err <= 4 * FILTER_MAX) { in filter_point()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/gslx680_d708/
H A Drockchip_gslX680.c580 u16 x_err = 0; in filter_point() local
590 x_err = x > x_old[id] ? (x - x_old[id]) : (x_old[id] - x); in filter_point()
593 …if ((x_err > FILTER_MAX && y_err > FILTER_MAX / 3) || (x_err > FILTER_MAX / 3 && y_err > FILTER_MA… in filter_point()
594 filter_step_x = x_err; in filter_point()
597 if (x_err > FILTER_MAX) in filter_point()
598 filter_step_x = x_err; in filter_point()
603 if (x_err <= 2 * FILTER_MAX && y_err <= 2 * FILTER_MAX) { in filter_point()
606 } else if (x_err <= 3 * FILTER_MAX && y_err <= 3 * FILTER_MAX) { in filter_point()
609 } else if (x_err <= 4 * FILTER_MAX && y_err <= 4 * FILTER_MAX) { in filter_point()
623 u16 x_err = 0; in record_point() local
[all …]
/OK3568_Linux_fs/kernel/drivers/media/test-drivers/
H A Dvim2m.c452 unsigned int x, y, y_in, y_out, x_int, x_fract, x_err, x_offset; in device_process() local
521 x_err = 0; in device_process()
530 x_err += x_fract; in device_process()
531 if (x_err > width) { in device_process()
533 x_err -= width; in device_process()
547 x_err += x_fract; in device_process()
548 if (x_err > width) { in device_process()
550 x_err -= width; in device_process()