Lines Matching refs:rfd
294 struct i596_rfd *rfd; member
460 struct i596_rfd *rfd; in i596_display_data() local
470 lp->scb.cmd, lp->scb.rfd); in i596_display_data()
481 rfd = lp->rfd_head; in i596_display_data()
482 printk(KERN_ERR "rfd_head = %p\n", rfd); in i596_display_data()
486 rfd, rfd->stat, rfd->cmd, rfd->b_next, rfd->rbd, in i596_display_data()
487 rfd->count); in i596_display_data()
488 rfd = rfd->v_next; in i596_display_data()
489 } while (rfd != lp->rfd_head); in i596_display_data()
544 struct i596_rfd *rfd; in init_rx_bufs() local
575 for (i = 0, rfd = lp->rfds; i < rx_ring_size; i++, rfd++) { in init_rx_bufs()
576 rfd->rbd = I596_NULL; in init_rx_bufs()
577 rfd->v_next = rfd+1; in init_rx_bufs()
578 rfd->v_prev = rfd-1; in init_rx_bufs()
579 rfd->b_next = WSWAPrfd(virt_to_bus(rfd+1)); in init_rx_bufs()
580 rfd->cmd = CMD_FLEX; in init_rx_bufs()
583 lp->scb.rfd = WSWAPrfd(virt_to_bus(lp->rfds)); in init_rx_bufs()
584 rfd = lp->rfds; in init_rx_bufs()
585 rfd->rbd = lp->rbd_head; in init_rx_bufs()
586 rfd->v_prev = lp->rfds + rx_ring_size - 1; in init_rx_bufs()
587 rfd = lp->rfds + rx_ring_size - 1; in init_rx_bufs()
588 rfd->v_next = lp->rfds; in init_rx_bufs()
589 rfd->b_next = WSWAPrfd(virt_to_bus(lp->rfds)); in init_rx_bufs()
590 rfd->cmd = CMD_EOL|CMD_FLEX; in init_rx_bufs()
609 lp->scb.rfd = WSWAPrfd(virt_to_bus(lp->rfds)); in rebuild_rx_bufs()
748 struct i596_rfd *rfd; in i596_rx() local
755 rfd = lp->rfd_head; /* Ref next frame to check */ in i596_rx()
757 while ((rfd->stat) & STAT_C) { /* Loop while complete frames */ in i596_rx()
758 if (rfd->rbd == I596_NULL) in i596_rx()
760 else if (rfd->rbd == lp->rbd_head->b_addr) in i596_rx()
768 rfd, rfd->rbd, rfd->stat)); in i596_rx()
770 if (rbd != I596_NULL && ((rfd->stat) & STAT_OK)) { in i596_rx()
828 dev->name, rfd->stat)); in i596_rx()
830 if ((rfd->stat) & 0x0001) in i596_rx()
832 if ((rfd->stat) & 0x0080) in i596_rx()
834 if ((rfd->stat) & 0x0100) in i596_rx()
836 if ((rfd->stat) & 0x0200) in i596_rx()
838 if ((rfd->stat) & 0x0400) in i596_rx()
840 if ((rfd->stat) & 0x0800) in i596_rx()
842 if ((rfd->stat) & 0x1000) in i596_rx()
855 rfd->rbd = I596_NULL; in i596_rx()
856 rfd->stat = 0; in i596_rx()
857 rfd->cmd = CMD_EOL|CMD_FLEX; in i596_rx()
858 rfd->count = 0; in i596_rx()
862 rfd->v_prev->cmd = CMD_FLEX; in i596_rx()
866 lp->scb.rfd = rfd->b_next; in i596_rx()
867 lp->rfd_head = rfd->v_next; in i596_rx()
868 rfd = lp->rfd_head; in i596_rx()
1207 lp->scb.rfd = I596_NULL; in i82596_probe()