Lines Matching full:channel
193 static void write_cr(IPOctalState *dev, unsigned channel, uint8_t val) in write_cr() argument
195 SCC2698Channel *ch = &dev->ch[channel]; in write_cr()
196 SCC2698Block *blk = &dev->blk[channel / 2]; in write_cr()
198 DPRINTF("Write CR%c %u: ", channel + 'a', val); in write_cr()
212 blk->isr |= ISR_TXRDY(channel); in write_cr()
217 blk->isr &= ~ISR_TXRDY(channel); in write_cr()
236 blk->isr &= ~ISR_RXRDY(channel); in write_cr()
241 blk->isr &= ~ISR_TXRDY(channel); in write_cr()
263 addr[7:5]: channel (a-h) in io_read()
266 unsigned channel = addr >> 4; in io_read() local
269 SCC2698Channel *ch = &dev->ch[channel]; in io_read()
278 DPRINTF("Read MR%u%c: 0x%x\n", ch->mr_idx + 1, channel + 'a', ret); in io_read()
285 DPRINTF("Read SR%c: 0x%x\n", channel + 'a', ret); in io_read()
295 blk->isr &= ~ISR_RXRDY(channel); in io_read()
302 blk->isr |= ISR_BREAK(channel); in io_read()
305 DPRINTF("Read RHR%c (0x%x)\n", channel + 'a', ret); in io_read()
329 addr[7:5]: channel (a-h) in io_write()
332 unsigned channel = addr >> 4; in io_write() local
335 SCC2698Channel *ch = &dev->ch[channel]; in io_write()
345 DPRINTF("Write MR%u%c 0x%x\n", ch->mr_idx + 1, channel + 'a', reg); in io_write()
352 DPRINTF("Write CSR%c: 0x%x\n", channel + 'a', reg); in io_write()
357 write_cr(dev, channel, reg); in io_write()
364 DPRINTF("Write THR%c (0x%x)\n", channel + 'a', reg); in io_write()
369 DPRINTF("Write THR%c (0x%x), Tx disabled\n", channel + 'a', reg); in io_write()
495 unsigned block, channel = 0; in hostdev_receive() local
496 /* Find channel number to update the ISR register */ in hostdev_receive()
497 while (&dev->ch[channel] != ch) { in hostdev_receive()
498 channel++; in hostdev_receive()
500 block = channel / 2; in hostdev_receive()
501 dev->blk[block].isr |= ISR_RXRDY(channel); in hostdev_receive()
520 unsigned block, channel = 0; in hostdev_event() local
522 while (&dev->ch[channel] != ch) { in hostdev_event()
523 channel++; in hostdev_event()
525 block = channel / 2; in hostdev_event()
528 dev->blk[block].isr |= ISR_BREAK(channel); in hostdev_event()
554 DPRINTF("Redirecting channel %u to %s\n", i, ch->dev->label); in ipoctal_realize()
556 DPRINTF("Could not redirect channel %u, no chardev set\n", i); in ipoctal_realize()
590 dc->desc = "GE IP-Octal 232 8-channel RS-232 IndustryPack"; in ipoctal_class_init()