Lines Matching refs:rbd

266 	struct i596_rbd *rbd;  member
460 struct i596_rbd *rbd; in i596_display_data() local
485 rfd, rfd->stat, rfd->cmd, rfd->b_next, rfd->rbd, in i596_display_data()
489 rbd = lp->rbd_head; in i596_display_data()
490 printk(KERN_ERR "rbd_head = %p\n", rbd); in i596_display_data()
493 rbd, rbd->count, rbd->b_next, rbd->b_data, rbd->size); in i596_display_data()
494 rbd = rbd->v_next; in i596_display_data()
495 } while (rbd != lp->rbd_head); in i596_display_data()
528 struct i596_rbd *rbd; in remove_rx_bufs() local
531 for (i = 0, rbd = lp->rbds; i < rx_ring_size; i++, rbd++) { in remove_rx_bufs()
532 if (rbd->skb == NULL) in remove_rx_bufs()
534 dev_kfree_skb(rbd->skb); in remove_rx_bufs()
535 rbd->skb = NULL; in remove_rx_bufs()
544 struct i596_rbd *rbd; in init_rx_bufs() local
548 for (i = 0, rbd = lp->rbds; i < rx_ring_size; i++, rbd++) { in init_rx_bufs()
556 rbd->v_next = rbd+1; in init_rx_bufs()
557 rbd->b_next = WSWAPrbd(virt_to_bus(rbd+1)); in init_rx_bufs()
558 rbd->b_addr = WSWAPrbd(virt_to_bus(rbd)); in init_rx_bufs()
559 rbd->skb = skb; in init_rx_bufs()
560 rbd->v_data = skb->data; in init_rx_bufs()
561 rbd->b_data = WSWAPchar(virt_to_bus(skb->data)); in init_rx_bufs()
562 rbd->size = PKT_BUF_SZ; in init_rx_bufs()
568 rbd = lp->rbds + rx_ring_size - 1; in init_rx_bufs()
569 rbd->v_next = lp->rbds; in init_rx_bufs()
570 rbd->b_next = WSWAPrbd(virt_to_bus(lp->rbds)); in init_rx_bufs()
575 rfd->rbd = I596_NULL; in init_rx_bufs()
584 rfd->rbd = lp->rbd_head; in init_rx_bufs()
603 lp->rfds[i].rbd = I596_NULL; in rebuild_rx_bufs()
610 lp->rfds[0].rbd = WSWAPrbd(virt_to_bus(lp->rbds)); in rebuild_rx_bufs()
748 struct i596_rbd *rbd; in i596_rx() local
757 if (rfd->rbd == I596_NULL) in i596_rx()
758 rbd = I596_NULL; in i596_rx()
759 else if (rfd->rbd == lp->rbd_head->b_addr) in i596_rx()
760 rbd = lp->rbd_head; in i596_rx()
764 rbd = I596_NULL; in i596_rx()
767 rfd, rfd->rbd, rfd->stat)); in i596_rx()
769 if (rbd != I596_NULL && ((rfd->stat) & STAT_OK)) { in i596_rx()
771 int pkt_len = rbd->count & 0x3fff; in i596_rx()
772 struct sk_buff *skb = rbd->skb; in i596_rx()
775 DEB(DEB_RXADDR,print_eth(rbd->v_data, "received")); in i596_rx()
794 rbd->skb = newskb; in i596_rx()
795 rbd->v_data = newskb->data; in i596_rx()
796 rbd->b_data = WSWAPchar(virt_to_bus(newskb->data)); in i596_rx()
811 skb_put_data(skb, rbd->v_data, in i596_rx()
817 cache_clear(virt_to_phys(rbd->skb->data), in i596_rx()
847 if (rbd != I596_NULL && (rbd->count & 0x4000)) { in i596_rx()
848 rbd->count = 0; in i596_rx()
849 lp->rbd_head = rbd->v_next; in i596_rx()
854 rfd->rbd = I596_NULL; in i596_rx()