Lines Matching defs:sp
3454 static void siocnclose(struct siocnstate *sp, Port_t iobase);
3455 static void siocnopen(struct siocnstate *sp, Port_t iobase, int speed);
3521 siocnopen(sp, iobase, speed)
3522 struct siocnstate *sp;
3535 sp->ier = inb(iobase + com_ier);
3538 sp->cfcr = inb(iobase + com_cfcr);
3540 sp->dlbl = inb(iobase + com_dlbl);
3541 sp->dlbh = inb(iobase + com_dlbh);
3550 if (sp->dlbl != dlbl)
3553 if (sp->dlbh != dlbh)
3556 sp->mcr = inb(iobase + com_mcr);
3562 outb(iobase + com_mcr, (sp->mcr & MCR_IENABLE) | MCR_DTR | MCR_RTS);
3566 siocnclose(sp, iobase)
3567 struct siocnstate *sp;
3575 if (sp->dlbl != inb(iobase + com_dlbl))
3576 outb(iobase + com_dlbl, sp->dlbl);
3577 if (sp->dlbh != inb(iobase + com_dlbh))
3578 outb(iobase + com_dlbh, sp->dlbh);
3579 outb(iobase + com_cfcr, sp->cfcr);
3583 outb(iobase + com_mcr, sp->mcr | MCR_DTR | MCR_RTS);
3584 outb(iobase + com_ier, sp->ier);
3595 struct siocnstate sp;
3651 siocnopen(&sp, iobase, comdefaultrate);
3700 struct siocnstate sp;
3715 siocnopen(&sp, iobase, speed);
3720 siocnclose(&sp, iobase);
3730 struct siocnstate sp;
3751 siocnopen(&sp, iobase, speed);
3754 siocnclose(&sp, iobase);