Lines Matching refs:bc

626 	volatile struct board_chan *bc;  in shutdown()  local
635 bc = ch->brdchan; in shutdown()
643 if (bc) in shutdown()
644 bc->idata = 0; in shutdown()
727 volatile struct board_chan *bc; in pc_write() local
756 bc = ch->brdchan; in pc_write()
776 head = bc->tin & (size - 1); in pc_write()
780 tail = bc->tout; in pc_write()
784 if (tail != bc->tout) in pc_write()
785 tail = bc->tout; in pc_write()
931 head = bc->tin & (size - 1); in pc_write()
932 tail = bc->tout; in pc_write()
934 if (tail != bc->tout) in pc_write()
935 tail = bc->tout; in pc_write()
995 bc->tin = head; in pc_write()
1000 bc->ilow = 1; in pc_write()
1029 volatile struct board_chan *bc; in pc_write_room() local
1044 bc = ch->brdchan; in pc_write_room()
1045 head = bc->tin & (ch->txbufsize - 1); in pc_write_room()
1046 tail = bc->tout; in pc_write_room()
1048 if (tail != bc->tout) in pc_write_room()
1049 tail = bc->tout; in pc_write_room()
1059 bc->ilow = 1; in pc_write_room()
1080 volatile struct board_chan *bc; in pc_chars_in_buffer() local
1095 bc = ch->brdchan; in pc_chars_in_buffer()
1096 tail = bc->tout; in pc_chars_in_buffer()
1097 head = bc->tin; in pc_chars_in_buffer()
1100 if (tail == head && ch->mailbox->cin == ctail && bc->tbusy == 0) in pc_chars_in_buffer()
1105 head = bc->tin & (ch->txbufsize - 1); in pc_chars_in_buffer()
1148 volatile struct board_chan *bc; in pc_flush_buffer() local
1164 bc = ch->brdchan; in pc_flush_buffer()
1165 tail = bc->tout; in pc_flush_buffer()
1374 volatile struct board_chan *bc; in pc_open() local
1436 if (( bc = ch->brdchan) == 0) in pc_open()
1482 ch->imodem = bc->mstat; in pc_open()
1488 head = bc->rin; in pc_open()
1489 bc->rout = head; in pc_open()
1522 bc->idata = 1; in pc_open()
1929 volatile struct board_chan *bc; in post_fep_init() local
2000 bc = (volatile struct board_chan *)((ulong)memaddr + CHANSTRUCT); in post_fep_init()
2032 for (i = 0; i < bd->numports; i++, ch++, bc++) in post_fep_init()
2035 ch->brdchan = bc; in post_fep_init()
2106 ch->txptr = memaddr + (((bc->tseg) << 4) & 0x1fffff); in post_fep_init()
2107 ch->rxptr = memaddr + (((bc->rseg) << 4) & 0x1fffff); in post_fep_init()
2108 ch->txwin = FEPWIN | ((bc->tseg) >> 11); in post_fep_init()
2109 ch->rxwin = FEPWIN | ((bc->rseg) >> 11); in post_fep_init()
2116 ch->txptr = memaddr + (((bc->tseg) << 4) & 0x7fff); in post_fep_init()
2117 ch->rxptr = memaddr + (((bc->rseg) << 4) & 0x7fff); in post_fep_init()
2118 ch->txwin = FEPWIN | ((bc->tseg) >> 11); in post_fep_init()
2119 ch->rxwin = FEPWIN | ((bc->rseg) >> 11); in post_fep_init()
2124 ch->txptr = memaddr + (((bc->tseg - bd->memory_seg) << 4) & 0x1fff); in post_fep_init()
2125 ch->txwin = FEPWIN | ((bc->tseg - bd->memory_seg) >> 9); in post_fep_init()
2126 ch->rxptr = memaddr + (((bc->rseg - bd->memory_seg) << 4) & 0x1fff); in post_fep_init()
2127 ch->rxwin = FEPWIN | ((bc->rseg - bd->memory_seg) >>9 ); in post_fep_init()
2132 ch->txptr = memaddr + ((bc->tseg - bd->memory_seg) << 4); in post_fep_init()
2133 ch->rxptr = memaddr + ((bc->rseg - bd->memory_seg) << 4); in post_fep_init()
2140 ch->txbufsize = bc->tmax + 1; in post_fep_init()
2143 ch->rxbufsize = bc->rmax + 1; in post_fep_init()
2158 bc->edelay = 100; in post_fep_init()
2159 bc->idata = 1; in post_fep_init()
2161 ch->startc = bc->startc; in post_fep_init()
2162 ch->stopc = bc->stopc; in post_fep_init()
2163 ch->startca = bc->startca; in post_fep_init()
2164 ch->stopca = bc->stopca; in post_fep_init()
2278 volatile struct board_chan *bc; in doevent() local
2323 bc = ch->brdchan; in doevent()
2327 if ((bc = ch->brdchan) == NULL) in doevent()
2408 if (!bc) in doevent()
2411 bc->idata = 1; in doevent()
2666 volatile struct board_chan *bc; in epcaparam() local
2669 bc = ch->brdchan; in epcaparam()
2670 epcaassert(bc !=0, "bc out of range"); in epcaparam()
2679 cmdHead = bc->rin; in epcaparam()
2680 bc->rout = cmdHead; in epcaparam()
2681 cmdHead = bc->tin; in epcaparam()
2753 bc->mint = ch->dcd; in epcaparam()
2757 bc->mint = 0; in epcaparam()
2759 ch->imodem = bc->mstat; in epcaparam()
2832 volatile struct board_chan *bc; in receive_data() local
2853 bc = ch->brdchan; in receive_data()
2855 if (!bc) in receive_data()
2868 head = bc->rin; in receive_data()
2870 tail = bc->rout & wrapmask; in receive_data()
2883 bc->rout = head; in receive_data()
2890 if (bc->orun) in receive_data()
2892 bc->orun = 0; in receive_data()
2942 bc->rout = tail; in receive_data()
2961 volatile struct board_chan *bc; in pc_ioctl() local
3048 bc = ch->brdchan; in pc_ioctl()
3131 mstat = bc->mstat; in pc_ioctl()
3286 dflow.startc = bc->startc; in pc_ioctl()
3287 dflow.stopc = bc->stopc; in pc_ioctl()
3291 dflow.startc = bc->startca; in pc_ioctl()
3292 dflow.stopc = bc->stopca; in pc_ioctl()
3488 volatile struct board_chan *bc; in pc_start() local
3491 bc = ch->brdchan; in pc_start()
3493 bc->ilow = 1; in pc_start()
3559 volatile struct board_chan *bc; in pc_unthrottle() local
3579 bc = ch->brdchan; in pc_unthrottle()
3622 volatile struct board_chan *bc = ch->brdchan; in setup_empty_event() local
3635 bc->iempty = 1; in setup_empty_event()