Lines Matching refs:rfd
278 u32 rfd; member
439 struct i596_rfd *rfd; in i596_display_data() local
449 SWAP16(dma->scb.cmd), SWAP32(dma->scb.rfd)); in i596_display_data()
464 rfd = lp->rfd_head; in i596_display_data()
465 printk(KERN_DEBUG "rfd_head = %p\n", rfd); in i596_display_data()
470 rfd, SWAP16(rfd->stat), SWAP16(rfd->cmd), in i596_display_data()
471 SWAP32(rfd->b_next), SWAP32(rfd->rbd), in i596_display_data()
472 SWAP16(rfd->count)); in i596_display_data()
473 rfd = rfd->v_next; in i596_display_data()
474 } while (rfd != lp->rfd_head); in i596_display_data()
493 struct i596_rfd *rfd; in init_rx_bufs() local
522 for (i = 0, rfd = dma->rfds; i < rx_ring_size; i++, rfd++) { in init_rx_bufs()
523 rfd->rbd = I596_NULL; in init_rx_bufs()
524 rfd->v_next = rfd+1; in init_rx_bufs()
525 rfd->v_prev = rfd-1; in init_rx_bufs()
526 rfd->b_next = SWAP32(virt_to_dma(lp, rfd+1)); in init_rx_bufs()
527 rfd->cmd = SWAP16(CMD_FLEX); in init_rx_bufs()
530 dma->scb.rfd = SWAP32(virt_to_dma(lp, dma->rfds)); in init_rx_bufs()
531 rfd = dma->rfds; in init_rx_bufs()
532 rfd->rbd = SWAP32(virt_to_dma(lp, lp->rbd_head)); in init_rx_bufs()
533 rfd->v_prev = dma->rfds + rx_ring_size - 1; in init_rx_bufs()
534 rfd = dma->rfds + rx_ring_size - 1; in init_rx_bufs()
535 rfd->v_next = dma->rfds; in init_rx_bufs()
536 rfd->b_next = SWAP32(virt_to_dma(lp, dma->rfds)); in init_rx_bufs()
537 rfd->cmd = SWAP16(CMD_EOL|CMD_FLEX); in init_rx_bufs()
574 dma->scb.rfd = SWAP32(virt_to_dma(lp, dma->rfds)); in rebuild_rx_bufs()
655 dma->scb.rfd = SWAP32(virt_to_dma(lp, dma->rfds)); in init_i596_mem()
679 struct i596_rfd *rfd; in i596_rx() local
688 rfd = lp->rfd_head; /* Ref next frame to check */ in i596_rx()
690 dma_sync_cpu(dev, rfd, sizeof(struct i596_rfd)); in i596_rx()
691 while (rfd->stat & SWAP16(STAT_C)) { /* Loop while complete frames */ in i596_rx()
692 if (rfd->rbd == I596_NULL) in i596_rx()
694 else if (rfd->rbd == lp->rbd_head->b_addr) { in i596_rx()
704 rfd, rfd->rbd, rfd->stat)); in i596_rx()
706 if (rbd != NULL && (rfd->stat & SWAP16(STAT_OK))) { in i596_rx()
773 dev->name, rfd->stat)); in i596_rx()
775 if (rfd->stat & SWAP16(0x0100)) in i596_rx()
777 if (rfd->stat & SWAP16(0x8000)) in i596_rx()
779 if (rfd->stat & SWAP16(0x0001)) in i596_rx()
781 if (rfd->stat & SWAP16(0x0002)) in i596_rx()
783 if (rfd->stat & SWAP16(0x0004)) in i596_rx()
785 if (rfd->stat & SWAP16(0x0008)) in i596_rx()
787 if (rfd->stat & SWAP16(0x0010)) in i596_rx()
801 rfd->rbd = I596_NULL; in i596_rx()
802 rfd->stat = 0; in i596_rx()
803 rfd->cmd = SWAP16(CMD_EOL|CMD_FLEX); in i596_rx()
804 rfd->count = 0; in i596_rx()
808 lp->dma->scb.rfd = rfd->b_next; in i596_rx()
809 lp->rfd_head = rfd->v_next; in i596_rx()
810 dma_sync_dev(dev, rfd, sizeof(struct i596_rfd)); in i596_rx()
814 rfd->v_prev->cmd = SWAP16(CMD_FLEX); in i596_rx()
815 dma_sync_dev(dev, rfd->v_prev, sizeof(struct i596_rfd)); in i596_rx()
816 rfd = lp->rfd_head; in i596_rx()
817 dma_sync_cpu(dev, rfd, sizeof(struct i596_rfd)); in i596_rx()
1099 lp->dma->scb.rfd = I596_NULL; in i82596_probe()