Lines Matching refs:rbd
267 struct i596_rbd *rbd; member
461 struct i596_rbd *rbd; in i596_display_data() local
486 rfd, rfd->stat, rfd->cmd, rfd->b_next, rfd->rbd, in i596_display_data()
490 rbd = lp->rbd_head; in i596_display_data()
491 printk(KERN_ERR "rbd_head = %p\n", rbd); in i596_display_data()
494 rbd, rbd->count, rbd->b_next, rbd->b_data, rbd->size); in i596_display_data()
495 rbd = rbd->v_next; in i596_display_data()
496 } while (rbd != lp->rbd_head); in i596_display_data()
529 struct i596_rbd *rbd; in remove_rx_bufs() local
532 for (i = 0, rbd = lp->rbds; i < rx_ring_size; i++, rbd++) { in remove_rx_bufs()
533 if (rbd->skb == NULL) in remove_rx_bufs()
535 dev_kfree_skb(rbd->skb); in remove_rx_bufs()
536 rbd->skb = NULL; in remove_rx_bufs()
545 struct i596_rbd *rbd; in init_rx_bufs() local
549 for (i = 0, rbd = lp->rbds; i < rx_ring_size; i++, rbd++) { in init_rx_bufs()
557 rbd->v_next = rbd+1; in init_rx_bufs()
558 rbd->b_next = WSWAPrbd(virt_to_bus(rbd+1)); in init_rx_bufs()
559 rbd->b_addr = WSWAPrbd(virt_to_bus(rbd)); in init_rx_bufs()
560 rbd->skb = skb; in init_rx_bufs()
561 rbd->v_data = skb->data; in init_rx_bufs()
562 rbd->b_data = WSWAPchar(virt_to_bus(skb->data)); in init_rx_bufs()
563 rbd->size = PKT_BUF_SZ; in init_rx_bufs()
569 rbd = lp->rbds + rx_ring_size - 1; in init_rx_bufs()
570 rbd->v_next = lp->rbds; in init_rx_bufs()
571 rbd->b_next = WSWAPrbd(virt_to_bus(lp->rbds)); in init_rx_bufs()
576 rfd->rbd = I596_NULL; in init_rx_bufs()
585 rfd->rbd = lp->rbd_head; in init_rx_bufs()
604 lp->rfds[i].rbd = I596_NULL; in rebuild_rx_bufs()
611 lp->rfds[0].rbd = WSWAPrbd(virt_to_bus(lp->rbds)); in rebuild_rx_bufs()
749 struct i596_rbd *rbd; in i596_rx() local
758 if (rfd->rbd == I596_NULL) in i596_rx()
759 rbd = I596_NULL; in i596_rx()
760 else if (rfd->rbd == lp->rbd_head->b_addr) in i596_rx()
761 rbd = lp->rbd_head; in i596_rx()
765 rbd = I596_NULL; in i596_rx()
768 rfd, rfd->rbd, rfd->stat)); in i596_rx()
770 if (rbd != I596_NULL && ((rfd->stat) & STAT_OK)) { in i596_rx()
772 int pkt_len = rbd->count & 0x3fff; in i596_rx()
773 struct sk_buff *skb = rbd->skb; in i596_rx()
776 DEB(DEB_RXADDR,print_eth(rbd->v_data, "received")); in i596_rx()
795 rbd->skb = newskb; in i596_rx()
796 rbd->v_data = newskb->data; in i596_rx()
797 rbd->b_data = WSWAPchar(virt_to_bus(newskb->data)); in i596_rx()
812 skb_put_data(skb, rbd->v_data, in i596_rx()
818 cache_clear(virt_to_phys(rbd->skb->data), in i596_rx()
848 if (rbd != I596_NULL && (rbd->count & 0x4000)) { in i596_rx()
849 rbd->count = 0; in i596_rx()
850 lp->rbd_head = rbd->v_next; in i596_rx()
855 rfd->rbd = I596_NULL; in i596_rx()