Lines Matching refs:rfd
293 struct i596_rfd *rfd; member
466 struct i596_rfd *rfd; in i596_display_data() local
476 lp->scb.cmd, lp->scb.rfd); in i596_display_data()
487 rfd = lp->rfd_head; in i596_display_data()
488 printk(KERN_ERR "rfd_head = %p\n", rfd); in i596_display_data()
492 rfd, rfd->stat, rfd->cmd, rfd->b_next, rfd->rbd, in i596_display_data()
493 rfd->count); in i596_display_data()
494 rfd = rfd->v_next; in i596_display_data()
495 } while (rfd != lp->rfd_head); in i596_display_data()
535 struct i596_rfd *rfd; in init_rx_bufs() local
564 for (i = 0, rfd = lp->rfds; i < rx_ring_size; i++, rfd++) { in init_rx_bufs()
565 rfd->rbd = I596_NULL; in init_rx_bufs()
566 rfd->v_next = rfd+1; in init_rx_bufs()
567 rfd->v_prev = rfd-1; in init_rx_bufs()
568 rfd->b_next = WSWAPrfd(virt_to_bus(rfd+1)); in init_rx_bufs()
569 rfd->cmd = CMD_FLEX; in init_rx_bufs()
572 lp->scb.rfd = WSWAPrfd(virt_to_bus(lp->rfds)); in init_rx_bufs()
573 rfd = lp->rfds; in init_rx_bufs()
574 rfd->rbd = lp->rbd_head; in init_rx_bufs()
575 rfd->v_prev = lp->rfds + rx_ring_size - 1; in init_rx_bufs()
576 rfd = lp->rfds + rx_ring_size - 1; in init_rx_bufs()
577 rfd->v_next = lp->rfds; in init_rx_bufs()
578 rfd->b_next = WSWAPrfd(virt_to_bus(lp->rfds)); in init_rx_bufs()
579 rfd->cmd = CMD_EOL|CMD_FLEX; in init_rx_bufs()
609 lp->scb.rfd = WSWAPrfd(virt_to_bus(lp->rfds)); in rebuild_rx_bufs()
771 struct i596_rfd *rfd; in i596_rx() local
778 rfd = lp->rfd_head; /* Ref next frame to check */ in i596_rx()
780 while ((rfd->stat) & STAT_C) { /* Loop while complete frames */ in i596_rx()
781 if (rfd->rbd == I596_NULL) in i596_rx()
783 else if (rfd->rbd == lp->rbd_head->b_addr) in i596_rx()
791 rfd, rfd->rbd, rfd->stat)); in i596_rx()
793 if (rbd != I596_NULL && ((rfd->stat) & STAT_OK)) { in i596_rx()
855 dev->name, rfd->stat)); in i596_rx()
857 if ((rfd->stat) & 0x0001) in i596_rx()
859 if ((rfd->stat) & 0x0080) in i596_rx()
861 if ((rfd->stat) & 0x0100) in i596_rx()
863 if ((rfd->stat) & 0x0200) in i596_rx()
865 if ((rfd->stat) & 0x0400) in i596_rx()
867 if ((rfd->stat) & 0x0800) in i596_rx()
869 if ((rfd->stat) & 0x1000) in i596_rx()
882 rfd->rbd = I596_NULL; in i596_rx()
883 rfd->stat = 0; in i596_rx()
884 rfd->cmd = CMD_EOL|CMD_FLEX; in i596_rx()
885 rfd->count = 0; in i596_rx()
889 rfd->v_prev->cmd = CMD_FLEX; in i596_rx()
893 lp->scb.rfd = rfd->b_next; in i596_rx()
894 lp->rfd_head = rfd->v_next; in i596_rx()
895 rfd = lp->rfd_head; in i596_rx()
1248 lp->scb.rfd = I596_NULL; in i82596_probe()