Lines Matching refs:nesnic
1556 struct nes_hw_nic *nesnic;
1560 nesnic = &nesvnic->nic;
1562 spin_lock_irqsave(&nesnic->rq_lock, flags);
1563 if (nesnic->replenishing_rq !=0) {
1564 if (((nesnic->rq_size-1) == atomic_read(&nesvnic->rx_skbs_needed)) &&
1567 spin_unlock_irqrestore(&nesnic->rq_lock, flags);
1571 spin_unlock_irqrestore(&nesnic->rq_lock, flags);
1574 nesnic->replenishing_rq = 1;
1575 spin_unlock_irqrestore(&nesnic->rq_lock, flags);
1584 nic_rqe = &nesnic->rq_vbase[nesvnic->nic.rq_head];
1592 nesnic->rx_skb[nesnic->rq_head] = skb;
1593 nesnic->rq_head++;
1594 nesnic->rq_head &= nesnic->rq_size - 1;
1598 nes_write32(nesdev->regs+NES_WQE_ALLOC, (rx_wqes_posted << 24) | nesnic->qp_id);
1602 spin_lock_irqsave(&nesnic->rq_lock, flags);
1603 if (((nesnic->rq_size-1) == atomic_read(&nesvnic->rx_skbs_needed)) &&
1606 spin_unlock_irqrestore(&nesnic->rq_lock, flags);
1610 spin_unlock_irqrestore(&nesnic->rq_lock, flags);
1616 nes_write32(nesdev->regs+NES_WQE_ALLOC, (rx_wqes_posted << 24) | nesnic->qp_id);
1617 nesnic->replenishing_rq = 0;
2668 struct nes_hw_nic *nesnic;
2697 nesnic = &nesvnic->nic;
2702 nic_sqe = &nesnic->sq_vbase[nesnic->sq_tail];
2703 skb = nesnic->tx_skb[nesnic->sq_tail];
2713 if (test_and_clear_bit(nesnic->sq_tail, nesnic->first_frag_overflow)) {
2736 nesnic->sq_tail++;
2737 nesnic->sq_tail &= nesnic->sq_size-1;
2751 nic_rqe = &nesnic->rq_vbase[nesnic->rq_tail];
2753 rx_skb = nesnic->rx_skb[nesnic->rq_tail];
2754 nic_rqe = &nesnic->rq_vbase[nesvnic->nic.rq_tail];
2764 nesnic->rq_tail++;
2765 nesnic->rq_tail &= nesnic->rq_size - 1;