Lines Matching refs:rx_local
590 struct rx_ring *rx_local = &etdev->rx_ring;
606 writel((u32) ((u64)rx_local->rx_status_bus >> 32),
608 writel((u32) rx_local->rx_status_bus, &rx_dma->dma_wb_base_lo);
610 memset(rx_local->rx_status_block, 0, sizeof(struct rx_status_block));
615 writel((u32) ((u64)rx_local->pPSRingPa >> 32),
617 writel((u32) rx_local->pPSRingPa, &rx_dma->psr_base_lo);
618 writel(rx_local->PsrNumEntries - 1, &rx_dma->psr_num_des);
628 rx_local->local_psr_full = 0;
631 fbr_entry = (struct fbr_desc *) rx_local->pFbr1RingVa;
632 for (entry = 0; entry < rx_local->Fbr1NumEntries; entry++) {
633 fbr_entry->addr_hi = rx_local->fbr[1]->bus_high[entry];
634 fbr_entry->addr_lo = rx_local->fbr[1]->bus_low[entry];
642 writel((u32) (rx_local->Fbr1Realpa >> 32), &rx_dma->fbr1_base_hi);
643 writel((u32) rx_local->Fbr1Realpa, &rx_dma->fbr1_base_lo);
644 writel(rx_local->Fbr1NumEntries - 1, &rx_dma->fbr1_num_des);
650 rx_local->local_Fbr1_full = ET_DMA10_WRAP;
651 writel(((rx_local->Fbr1NumEntries * LO_MARK_PERCENT_FOR_RX) / 100) - 1,
656 fbr_entry = (struct fbr_desc *) rx_local->pFbr0RingVa;
657 for (entry = 0; entry < rx_local->Fbr0NumEntries; entry++) {
658 fbr_entry->addr_hi = rx_local->fbr[0]->bus_high[entry];
659 fbr_entry->addr_lo = rx_local->fbr[0]->bus_low[entry];
664 writel((u32) (rx_local->Fbr0Realpa >> 32), &rx_dma->fbr0_base_hi);
665 writel((u32) rx_local->Fbr0Realpa, &rx_dma->fbr0_base_lo);
666 writel(rx_local->Fbr0NumEntries - 1, &rx_dma->fbr0_num_des);
672 rx_local->local_Fbr0_full = ET_DMA10_WRAP;
673 writel(((rx_local->Fbr0NumEntries * LO_MARK_PERCENT_FOR_RX) / 100) - 1,
781 struct rx_ring *rx_local = &etdev->rx_ring;
799 status = rx_local->rx_status_block;
803 if ((word1 & 0x1FFF) == (rx_local->local_psr_full & 0x1FFF))
808 psr = (struct pkt_stat_desc *) (rx_local->pPSRingVa) +
809 (rx_local->local_psr_full & 0xFFF);
821 add_12bit(&rx_local->local_psr_full, 1);
822 if ((rx_local->local_psr_full & 0xFFF) > rx_local->PsrNumEntries - 1) {
824 rx_local->local_psr_full &= ~0xFFF;
825 rx_local->local_psr_full ^= 0x1000;
828 writel(rx_local->local_psr_full,
839 bindex > rx_local->Fbr0NumEntries - 1) ||
841 bindex > rx_local->Fbr1NumEntries - 1))
843 if (rindex != 1 || bindex > rx_local->Fbr1NumEntries - 1)
850 rx_local->local_psr_full & 0xFFF,
859 element = rx_local->RecvList.next;
868 rx_local->nReadyRecv--;
887 buf = rx_local->fbr[rindex]->virt[bindex];
911 buf = rx_local->fbr[rindex]->
978 rx_local->fbr[rindex]->virt[bindex],
1087 struct rx_ring *rx_local = &etdev->rx_ring;
1098 (ri == 0 && bi < rx_local->Fbr0NumEntries) ||
1100 (ri == 1 && bi < rx_local->Fbr1NumEntries)) {
1105 (struct fbr_desc *) (rx_local->pFbr1RingVa) +
1106 INDEX10(rx_local->local_Fbr1_full);
1112 next->addr_hi = rx_local->fbr[1]->bus_high[bi];
1113 next->addr_lo = rx_local->fbr[1]->bus_low[bi];
1116 writel(bump_fbr(&rx_local->local_Fbr1_full,
1117 rx_local->Fbr1NumEntries - 1),
1123 rx_local->pFbr0RingVa +
1124 INDEX10(rx_local->local_Fbr0_full);
1130 next->addr_hi = rx_local->fbr[0]->bus_high[bi];
1131 next->addr_lo = rx_local->fbr[0]->bus_low[bi];
1134 writel(bump_fbr(&rx_local->local_Fbr0_full,
1135 rx_local->Fbr0NumEntries - 1),
1149 list_add_tail(&rfd->list_node, &rx_local->RecvList);
1150 rx_local->nReadyRecv++;
1153 WARN_ON(rx_local->nReadyRecv > rx_local->NumRfd);