Lines Matching defs:PSN
49 unsigned int M, N, P, PSN, PSNx;
87 PSN = PSNx ? 1 : 4;
92 while (Fref / (PSN * low_N) > (((ChipType == CT69000) ||
95 while (Fref / (PSN * high_N) < 150.0e3)
98 Fref4PSN = Fref * 4 / PSN;
138 *bestPSN = PSN;
147 printf ("best: M=%d N=%d P=%d PSN=%d\n", *bestM, *bestN, *bestP, *bestPSN);
169 unsigned int PSN) {
180 printf ("XRCE = 0x%02X\n", (0x80 | (P * 16 + (PSN == 1))));
190 outb(0x3D7, (0x80 | (P * 16 + (PSN == 1))));
195 printf ("XR%X = 0x%02X\n", 0xC3 + 4 * ProgClock, P * 16 + (PSN == 1));
204 outb(0x3D7, (P * 16 + (PSN == 1)));
207 printf ("XR30 = 0x%02X\n", P * 2 + (PSN == 1));
218 outb(0x3D7, (P * 2 + (PSN == 1)));
312 unsigned int M, N, P, PSN, ChipType, ClockType, progclock;
344 if (! compute_clock(ChipType, target, Fref, 63, 127, &M, &N, &P, &PSN)) {
345 return set_clock(ChipType, ClockType, progclock, M, N, P, PSN);
350 if (! compute_clock(ChipType, target, Fref, 127, 127, &M, &N, &P, &PSN)) {
351 return set_clock(ChipType, ClockType, progclock, M, N, P, PSN);