Lines Matching refs:v

730 			 int v, int R,  in swp_info_get()  argument
740 crnt_swp_freq = fOSC_start * 1000 + v * swp_ofs; in swp_info_get()
758 static int swp_freq_calcuation(struct mb86a16_state *state, int i, int v, int *V, int vmax, int vm… in swp_freq_calcuation() argument
763 if ((i % 2 == 1) && (v <= vmax)) { in swp_freq_calcuation()
765 if ((v - 1 == vmin) && in swp_freq_calcuation()
766 (*(V + 30 + v) >= 0) && in swp_freq_calcuation()
767 (*(V + 30 + v - 1) >= 0) && in swp_freq_calcuation()
768 (*(V + 30 + v - 1) > *(V + 30 + v)) && in swp_freq_calcuation()
769 (*(V + 30 + v - 1) > SIGMIN)) { in swp_freq_calcuation()
772 *SIG1 = *(V + 30 + v - 1); in swp_freq_calcuation()
773 } else if ((v == vmax) && in swp_freq_calcuation()
774 (*(V + 30 + v) >= 0) && in swp_freq_calcuation()
775 (*(V + 30 + v - 1) >= 0) && in swp_freq_calcuation()
776 (*(V + 30 + v) > *(V + 30 + v - 1)) && in swp_freq_calcuation()
777 (*(V + 30 + v) > SIGMIN)) { in swp_freq_calcuation()
780 *SIG1 = *(V + 30 + v); in swp_freq_calcuation()
781 } else if ((*(V + 30 + v) > 0) && in swp_freq_calcuation()
782 (*(V + 30 + v - 1) > 0) && in swp_freq_calcuation()
783 (*(V + 30 + v - 2) > 0) && in swp_freq_calcuation()
784 (*(V + 30 + v - 3) > 0) && in swp_freq_calcuation()
785 (*(V + 30 + v - 1) > *(V + 30 + v)) && in swp_freq_calcuation()
786 (*(V + 30 + v - 2) > *(V + 30 + v - 3)) && in swp_freq_calcuation()
787 ((*(V + 30 + v - 1) > SIGMIN) || in swp_freq_calcuation()
788 (*(V + 30 + v - 2) > SIGMIN))) { in swp_freq_calcuation()
790 if (*(V + 30 + v - 1) >= *(V + 30 + v - 2)) { in swp_freq_calcuation()
792 *SIG1 = *(V + 30 + v - 1); in swp_freq_calcuation()
795 *SIG1 = *(V + 30 + v - 2); in swp_freq_calcuation()
797 } else if ((v == vmax) && in swp_freq_calcuation()
798 (*(V + 30 + v) >= 0) && in swp_freq_calcuation()
799 (*(V + 30 + v - 1) >= 0) && in swp_freq_calcuation()
800 (*(V + 30 + v - 2) >= 0) && in swp_freq_calcuation()
801 (*(V + 30 + v) > *(V + 30 + v - 2)) && in swp_freq_calcuation()
802 (*(V + 30 + v - 1) > *(V + 30 + v - 2)) && in swp_freq_calcuation()
803 ((*(V + 30 + v) > SIGMIN) || in swp_freq_calcuation()
804 (*(V + 30 + v - 1) > SIGMIN))) { in swp_freq_calcuation()
806 if (*(V + 30 + v) >= *(V + 30 + v - 1)) { in swp_freq_calcuation()
808 *SIG1 = *(V + 30 + v); in swp_freq_calcuation()
811 *SIG1 = *(V + 30 + v - 1); in swp_freq_calcuation()
816 } else if ((i % 2 == 0) && (v >= vmin)) { in swp_freq_calcuation()
818 if ((*(V + 30 + v) > 0) && in swp_freq_calcuation()
819 (*(V + 30 + v + 1) > 0) && in swp_freq_calcuation()
820 (*(V + 30 + v + 2) > 0) && in swp_freq_calcuation()
821 (*(V + 30 + v + 1) > *(V + 30 + v)) && in swp_freq_calcuation()
822 (*(V + 30 + v + 1) > *(V + 30 + v + 2)) && in swp_freq_calcuation()
823 (*(V + 30 + v + 1) > SIGMIN)) { in swp_freq_calcuation()
826 *SIG1 = *(V + 30 + v + 1); in swp_freq_calcuation()
827 } else if ((v + 1 == vmax) && in swp_freq_calcuation()
828 (*(V + 30 + v) >= 0) && in swp_freq_calcuation()
829 (*(V + 30 + v + 1) >= 0) && in swp_freq_calcuation()
830 (*(V + 30 + v + 1) > *(V + 30 + v)) && in swp_freq_calcuation()
831 (*(V + 30 + v + 1) > SIGMIN)) { in swp_freq_calcuation()
834 *SIG1 = *(V + 30 + v); in swp_freq_calcuation()
835 } else if ((v == vmin) && in swp_freq_calcuation()
836 (*(V + 30 + v) > 0) && in swp_freq_calcuation()
837 (*(V + 30 + v + 1) > 0) && in swp_freq_calcuation()
838 (*(V + 30 + v + 2) > 0) && in swp_freq_calcuation()
839 (*(V + 30 + v) > *(V + 30 + v + 1)) && in swp_freq_calcuation()
840 (*(V + 30 + v) > *(V + 30 + v + 2)) && in swp_freq_calcuation()
841 (*(V + 30 + v) > SIGMIN)) { in swp_freq_calcuation()
844 *SIG1 = *(V + 30 + v); in swp_freq_calcuation()
845 } else if ((*(V + 30 + v) >= 0) && in swp_freq_calcuation()
846 (*(V + 30 + v + 1) >= 0) && in swp_freq_calcuation()
847 (*(V + 30 + v + 2) >= 0) && in swp_freq_calcuation()
848 (*(V + 30 + v + 3) >= 0) && in swp_freq_calcuation()
849 (*(V + 30 + v + 1) > *(V + 30 + v)) && in swp_freq_calcuation()
850 (*(V + 30 + v + 2) > *(V + 30 + v + 3)) && in swp_freq_calcuation()
851 ((*(V + 30 + v + 1) > SIGMIN) || in swp_freq_calcuation()
852 (*(V + 30 + v + 2) > SIGMIN))) { in swp_freq_calcuation()
854 if (*(V + 30 + v + 1) >= *(V + 30 + v + 2)) { in swp_freq_calcuation()
856 *SIG1 = *(V + 30 + v + 1); in swp_freq_calcuation()
859 *SIG1 = *(V + 30 + v + 2); in swp_freq_calcuation()
861 } else if ((*(V + 30 + v) >= 0) && in swp_freq_calcuation()
862 (*(V + 30 + v + 1) >= 0) && in swp_freq_calcuation()
863 (*(V + 30 + v + 2) >= 0) && in swp_freq_calcuation()
864 (*(V + 30 + v + 3) >= 0) && in swp_freq_calcuation()
865 (*(V + 30 + v) > *(V + 30 + v + 2)) && in swp_freq_calcuation()
866 (*(V + 30 + v + 1) > *(V + 30 + v + 2)) && in swp_freq_calcuation()
867 (*(V + 30 + v) > *(V + 30 + v + 3)) && in swp_freq_calcuation()
868 (*(V + 30 + v + 1) > *(V + 30 + v + 3)) && in swp_freq_calcuation()
869 ((*(V + 30 + v) > SIGMIN) || in swp_freq_calcuation()
870 (*(V + 30 + v + 1) > SIGMIN))) { in swp_freq_calcuation()
872 if (*(V + 30 + v) >= *(V + 30 + v + 1)) { in swp_freq_calcuation()
874 *SIG1 = *(V + 30 + v); in swp_freq_calcuation()
877 *SIG1 = *(V + 30 + v + 1); in swp_freq_calcuation()
879 } else if ((v + 2 == vmin) && in swp_freq_calcuation()
880 (*(V + 30 + v) >= 0) && in swp_freq_calcuation()
881 (*(V + 30 + v + 1) >= 0) && in swp_freq_calcuation()
882 (*(V + 30 + v + 2) >= 0) && in swp_freq_calcuation()
883 (*(V + 30 + v + 1) > *(V + 30 + v)) && in swp_freq_calcuation()
884 (*(V + 30 + v + 2) > *(V + 30 + v)) && in swp_freq_calcuation()
885 ((*(V + 30 + v + 1) > SIGMIN) || in swp_freq_calcuation()
886 (*(V + 30 + v + 2) > SIGMIN))) { in swp_freq_calcuation()
888 if (*(V + 30 + v + 1) >= *(V + 30 + v + 2)) { in swp_freq_calcuation()
890 *SIG1 = *(V + 30 + v + 1); in swp_freq_calcuation()
893 *SIG1 = *(V + 30 + v + 2); in swp_freq_calcuation()
895 } else if ((vmax == 0) && (vmin == 0) && (*(V + 30 + v) > SIGMIN)) { in swp_freq_calcuation()
897 *SIG1 = *(V + 30 + v); in swp_freq_calcuation()
1025 int v, vmax, vmin; in mb86a16_set_fe() local
1157 v = 0; in mb86a16_set_fe()
1161 v, R, swp_ofs, &fOSC, in mb86a16_set_fe()
1184 V[30 + v] = SIG1 ; in mb86a16_set_fe()
1185 swp_freq = swp_freq_calcuation(state, i, v, V, vmax, vmin, in mb86a16_set_fe()
1225 if (v > vmax) in mb86a16_set_fe()
1227 if (v < vmin) in mb86a16_set_fe()
1237 v = (i + 1) / 2; in mb86a16_set_fe()
1239 v = -i / 2; in mb86a16_set_fe()