Lines Matching refs:scntl3
1913 static void ncr_selectclock (struct ncb *np, u_char scntl3);
1930 static void ncr_setsync (struct ncb *np, struct ccb *cp, u_char scntl3, u_char sxfer);
5355 static void ncr_setsync (struct ncb *np, struct ccb *cp, u_char scntl3, u_char sxfer) in ncr_setsync() argument
5366 if (!scntl3 || !(sxfer & 0x1f)) in ncr_setsync()
5367 scntl3 = np->rv_scntl3; in ncr_setsync()
5368 scntl3 = (scntl3 & 0xf0) | (tp->wval & EWS) | (np->rv_scntl3 & 0x07); in ncr_setsync()
5375 idiv = ((scntl3 >> 4) & 0x7); in ncr_setsync()
5382 if (tp->sval == sxfer && tp->wval == scntl3) in ncr_setsync()
5385 tp->wval = scntl3; in ncr_setsync()
5417 u_char scntl3; in ncr_setwide() local
5424 scntl3 = (tp->wval & (~EWS)) | (wide ? EWS : 0); in ncr_setwide()
5431 if (tp->sval == sxfer && tp->wval == scntl3) return; in ncr_setwide()
5433 tp->wval = scntl3; in ncr_setwide()
5440 (scntl3 & EWS) ? "en" : "dis"); in ncr_setwide()
6519 u_char scntl3; in ncr_int_sir() local
6734 scntl3 = 0; in ncr_int_sir()
6736 ncr_getsync(np, per, &fak, &scntl3); in ncr_int_sir()
6745 scntl3 = 0; in ncr_int_sir()
6751 "fak=%d chg=%d.\n", per, scntl3, ofs, fak, chg); in ncr_int_sir()
6770 ncr_setsync(np, cp, scntl3, (fak<<5)|ofs); in ncr_int_sir()
6789 ncr_setsync(np, cp, scntl3, (fak<<5)|ofs); in ncr_int_sir()
7646 static void ncr_selectclock(struct ncb *np, u_char scntl3) argument
7649 OUTB(nc_scntl3, scntl3);
7666 OUTB(nc_scntl3, scntl3);
7728 unsigned char scntl3 = INB(nc_scntl3); local
7749 if (np->multiplier != mult || (scntl3 & 7) < 3 || !(scntl3 & 1)) {
7773 if ((scntl3 & 7) == 3) f1 = 40000;
7774 else if ((scntl3 & 7) == 5) f1 = 80000;