Lines Matching refs:ring

321   if (self->ring)  in toshoboe_dumpregs()
324 ringbase = virt_to_bus (self->ring); in toshoboe_dumpregs()
328 printk (" (%d,%02x)",self->ring->rx[i].len,self->ring->rx[i].control); in toshoboe_dumpregs()
332 printk (" (%d,%02x)",self->ring->tx[i].len,self->ring->tx[i].control); in toshoboe_dumpregs()
545 self->ring->tx[i].len = 0; in toshoboe_initring()
546 self->ring->tx[i].control = 0x00; in toshoboe_initring()
547 self->ring->tx[i].address = virt_to_bus (self->tx_bufs[i]); in toshoboe_initring()
552 self->ring->rx[i].len = RX_LEN; in toshoboe_initring()
553 self->ring->rx[i].len = 0; in toshoboe_initring()
554 self->ring->rx[i].address = virt_to_bus (self->rx_bufs[i]); in toshoboe_initring()
555 self->ring->rx[i].control = OBOE_CTL_RX_HW_OWNS; in toshoboe_initring()
630 physaddr = virt_to_bus (self->ring); in toshoboe_startchip()
711 PROBE_DEBUG(" (%d,%02x)",self->ring->tx[i].len,self->ring->tx[i].control); in toshoboe_dumptx()
721 PROBE_DEBUG(" (%d,%02x)",self->ring->rx[i].len,self->ring->rx[i].control); in toshoboe_dumprx()
778 if (self->ring->tx[txp].control & OBOE_CTL_TX_HW_OWNS) in toshoboe_probeinterrupt()
852 if ((self->ring->rx[i].control & 0xe0) == 0) in toshoboe_numvalidrcvs()
863 if (!(self->ring->rx[i].control & OBOE_CTL_RX_HW_OWNS)) in toshoboe_numrcvs()
907 self->ring->tx[self->txs].control = in toshoboe_probe()
912 self->ring->tx[self->txs].len = in toshoboe_probe()
917 self->ring->tx[self->txs].control = in toshoboe_probe()
920 self->ring->tx[self->txs].len = in toshoboe_probe()
925 self->ring->tx[self->txs].control = in toshoboe_probe()
928 self->ring->tx[self->txs].len = in toshoboe_probe()
933 self->ring->tx[self->txs].control = in toshoboe_probe()
937 self->ring->tx[self->txs].len = in toshoboe_probe()
980 self->ring->tx[self->txs].control = in toshoboe_probe()
982 self->ring->tx[self->txs].len = 4; in toshoboe_probe()
1114 self->ring->tx[self->txs].len = mtt & 0xfff; in toshoboe_hard_xmit()
1127 self->ring->tx[self->txs].control = ctl; in toshoboe_hard_xmit()
1152 if (self->ring->tx[self->txs].control & OBOE_CTL_TX_HW_OWNS) in toshoboe_hard_xmit()
1155 ,skb->len, self->ring->tx[self->txs].control, self->txpending); in toshoboe_hard_xmit()
1170 self->ring->tx[self->txs].len = len & 0x0fff; in toshoboe_hard_xmit()
1181 self->ring->tx[self->txs].control = ctl; in toshoboe_hard_xmit()
1232 if (self->ring->tx[i].control & OBOE_CTL_TX_HW_OWNS) in toshoboe_interrupt()
1241 if (self->ring->tx[txp].control & OBOE_CTL_TX_HW_OWNS) in toshoboe_interrupt()
1245 while (self->ring->tx[txpc].control & OBOE_CTL_TX_HW_OWNS) in toshoboe_interrupt()
1251 if (self->ring->tx[txpc].control & OBOE_CTL_TX_HW_OWNS) in toshoboe_interrupt()
1252 self->ring->tx[txp].control &= ~OBOE_CTL_TX_RTCENTX; in toshoboe_interrupt()
1276 while (!(self->ring->rx[self->rxs].control & OBOE_CTL_RX_HW_OWNS)) in toshoboe_interrupt()
1278 int len = self->ring->rx[self->rxs].len; in toshoboe_interrupt()
1281 ,len,self->ring->rx[self->rxs].control); in toshoboe_interrupt()
1287 if (self->ring->rx[self->rxs].control == 0) in toshoboe_interrupt()
1358 ,len,self->ring->rx[self->rxs].control); in toshoboe_interrupt()
1361 self->ring->rx[self->rxs].len = 0x0; in toshoboe_interrupt()
1362 self->ring->rx[self->rxs].control = OBOE_CTL_RX_HW_OWNS; in toshoboe_interrupt()
1592 self->ring = NULL; in toshoboe_close()
1692 self->ring = (struct OboeRing *) addr; in toshoboe_open()
1695 memset (self->ring, 0, OBOE_RING_LEN); in toshoboe_open()
1696 self->io.mem_base = (__u32) self->ring; in toshoboe_open()