Lines Matching refs:ccbp
279 volatile struct si_channel *ccbp; in siattach() local
569 ccbp = (struct si_channel *)((char *)modp + 0x100); in siattach()
571 uart_type = ccbp->type; in siattach()
572 else if (uart_type != ccbp->type) in siattach()
575 ccbp->type, si_modulename(sc->sc_type, ccbp->type), in siattach()
578 for (x = 0; x < nport; x++, pp++, ccbp++) { in siattach()
579 pp->sp_ccb = ccbp; /* save the address */ in siattach()
806 volatile struct si_channel *ccbp; in siparam() local
837 ccbp = pp->sp_ccb; in siparam()
849 ccbp->hi_break = val; in siparam()
857 ccbp->hi_csr = val; in siparam()
874 ccbp->hi_mr2 = val; in siparam()
902 ccbp->hi_mr1 = val; in siparam()
918 ccbp->hi_mask = val; in siparam()
931 ccbp->hi_prtcl = val; in siparam()
936 ccbp->hi_txon = t->c_cc[VSTART]; in siparam()
937 ccbp->hi_txoff = t->c_cc[VSTOP]; in siparam()
939 ccbp->hi_rxon = t->c_cc[VSTART]; in siparam()
940 ccbp->hi_rxoff = t->c_cc[VSTOP]; in siparam()
944 if (ccbp->hi_stat == IDLE_CLOSE) /* Not yet open */ in siparam()
962 ccbp->hi_mr1, ccbp->hi_mr2, ccbp->hi_mask, ccbp->hi_prtcl, ccbp->hi_break, ccbp->hi_csr)); in siparam()
978 volatile struct si_channel *ccbp; in simodem() local
984 ccbp = pp->sp_ccb; /* Find channel address */ in simodem()
986 x = ccbp->hi_ip; in simodem()
998 x = ccbp->hi_op; in simodem()
1007 ccbp->hi_op = x; in simodem()
1113 volatile struct si_channel *ccbp; in si_intr() local
1185 ccbp = pp->sp_ccb; in si_intr()
1192 if (ccbp->hi_stat != pp->sp_pend) { in si_intr()
1195 si_cmdname(ccbp->hi_stat), in si_intr()
1210 pp->sp_pend = ccbp->hi_stat; in si_intr()
1216 if (ccbp->hi_stat == IDLE_CLOSE) { in si_intr()
1224 si_modem_state(pp, tp, ccbp->hi_ip); in si_intr()
1234 if (ccbp->hi_state & ST_BREAK) { in si_intr()
1237 ccbp->hi_state &= ~ST_BREAK; /* A Bit iffy this */ in si_intr()
1254 ccbp->hi_rxopos = ccbp->hi_rxipos; in si_intr()
1271 op = ccbp->hi_rxopos; in si_intr()
1272 ip = ccbp->hi_rxipos; in si_intr()
1293 z = ccbp->hi_rxbuf + op; in si_intr()
1300 z = ccbp->hi_rxbuf + op; in si_intr()
1303 z = ccbp->hi_rxbuf; in si_intr()
1310 ccbp->hi_rxopos = op; in si_intr()
1368 volatile struct si_channel *ccbp; in si_start() local
1384 ccbp = pp->sp_ccb; in si_start()
1386 while ((count = (int)ccbp->hi_txipos - (int)ccbp->hi_txopos) < 255) { in si_start()
1388 ipos = (unsigned int)ccbp->hi_txipos; in si_start()
1389 if ((int)ccbp->hi_txopos <= ipos) in si_start()
1400 si_bcopyv(si_txbuf, &ccbp->hi_txbuf[ipos], n); in si_start()
1401 ccbp->hi_txipos += n; in si_start()
1480 volatile struct si_channel *ccbp;
1485 ccbp = pp->sp_ccb;
1505 ccbp->hi_rxopos = ccbp->hi_rxipos;
1524 volatile struct si_channel *ccbp = pp->sp_ccb; in si_command() local
1529 pp, si_cmdname(cmd), waitflag, si_cmdname(ccbp->hi_stat), in si_command()
1538 while((x = ccbp->hi_stat) != IDLE_OPEN && in si_command()
1542 …DBG_PARAM, "sicmd1 old cmd pending (going to tsleep): hi_stat (%s)\n", si_cmdname(ccbp->hi_stat))); in si_command()
1546 si_cmdname(ccbp->hi_stat))); in si_command()
1550 …DPRINT(("%s: tsleep1 timeout. hi_stat %s, sp_pend %s\n", pp->sp_name, si_cmdname(ccbp->hi_stat), s… in si_command()
1556 …DPRINT((pp, DBG_PARAM, "sicmd1 now in: hi_stat (%s) sp_pend (%s)\n", si_cmdname(ccbp->hi_stat), si… in si_command()
1575 ccbp->hi_stat = cmd; /* Post it */ in si_command()
1576 …DPRINT((pp, DBG_PARAM, "sicmd now posted: hi_stat (%s) sp_pend (%s)\n", si_cmdname(ccbp->hi_stat),… in si_command()
1579 while((x = ccbp->hi_stat) != IDLE_OPEN && in si_command()
1582 …2 now waiting: hi_stat (%s) sp_pend (%s) (going to tsleep)\n", si_cmdname(ccbp->hi_stat), si_cmdna… in si_command()
1585 …DPRINT((pp, DBG_PARAM, "sicmd2 tsleep error: hi_stat (%s) sp_pend (%s)\n", si_cmdname(ccbp->hi_sta… in si_command()
1587 …DPRINT(("%s: tsleep2 timeout. hi_stat %s, sp_pend %s\n", pp->sp_name, si_cmdname(ccbp->hi_stat), s… in si_command()
1593 …DPRINT((pp, DBG_PARAM, "sicmd2 finished: hi_stat (%s) sp_pend (%s)\n", si_cmdname(ccbp->hi_stat), … in si_command()