Lines Matching refs:rbd
642 volatile struct rbd_struct *rbd; in alloc_rfa() local
657 rbd = (struct rbd_struct *) ptr; in alloc_rfa()
658 ptr = (void *) (rbd + p->num_recv_buffs); in alloc_rfa()
661 memset((char *) rbd,0,sizeof(struct rbd_struct)*(p->num_recv_buffs)); in alloc_rfa()
665 rbd[i].next = make16((rbd + (i+1) % p->num_recv_buffs)); in alloc_rfa()
666 rbd[i].size = swab16(RECV_BUFF_SIZE); in alloc_rfa()
667 rbd[i].buffer = make24(ptr); in alloc_rfa()
675 p->rfd_first->rbd_offset = make16(rbd); in alloc_rfa()
765 struct rbd_struct *rbd; in sun3_82586_rcv_int() local
773 rbd = (struct rbd_struct *) make32(p->rfd_top->rbd_offset); in sun3_82586_rcv_int()
777 if( (totlen = swab16(rbd->status)) & RBD_LAST) /* the first and the last buffer? */ in sun3_82586_rcv_int()
780 rbd->status = 0; in sun3_82586_rcv_int()
786 skb_copy_to_linear_data(skb,(char *) p->base+swab32((unsigned long) rbd->buffer),totlen); in sun3_82586_rcv_int()
799 while(!((rstat=swab16(rbd->status)) & RBD_LAST)) in sun3_82586_rcv_int()
807 rbd->status = 0; in sun3_82586_rcv_int()
808 rbd = (struct rbd_struct *) make32(rbd->next); in sun3_82586_rcv_int()
811 rbd->status = 0; in sun3_82586_rcv_int()