Lines Matching refs:rfd_ring
706 adapter->rfd_ring[0].count = 512;
826 struct atl1c_rfd_ring *rfd_ring = adapter->rfd_ring;
833 for (j = 0; j < rfd_ring[i].count; j++) {
834 buffer_info = &rfd_ring[i].buffer_info[j];
838 memset(rfd_ring[i].desc, 0, rfd_ring[i].size);
839 rfd_ring[i].next_to_clean = 0;
840 rfd_ring[i].next_to_use = 0;
852 struct atl1c_rfd_ring *rfd_ring = adapter->rfd_ring;
866 rfd_ring[i].next_to_use = 0;
867 rfd_ring[i].next_to_clean = 0;
870 for (j = 0; j < rfd_ring[i].count; j++) {
871 buffer_info = &rfd_ring[i].buffer_info[j];
893 * it contain rfd_ring.buffer_info, do not double free */
910 struct atl1c_rfd_ring *rfd_ring = adapter->rfd_ring;
920 rrd_ring[0].count = rfd_ring[0].count;
925 rfd_ring[i].count = rrd_ring[i].count = rfd_ring[0].count;
930 rfd_ring->count * num_rx_queues);
944 rfd_ring[i].buffer_info =
946 count += rfd_ring[i].count;
947 rx_desc_count += rfd_ring[i].count;
981 rfd_ring[i].dma = ring_header->dma + offset;
982 rfd_ring[i].desc = (u8 *) ring_header->desc + offset;
983 rfd_ring[i].size = sizeof(struct atl1c_rx_free_desc) *
984 rfd_ring[i].count;
985 offset += roundup(rfd_ring[i].size, 8);
1009 struct atl1c_rfd_ring *rfd_ring = (struct atl1c_rfd_ring *)
1010 adapter->rfd_ring;
1037 (u32)((rfd_ring[0].dma & AT_DMA_HI_ADDR_MASK) >> 32));
1040 (u32)(rfd_ring[i].dma & AT_DMA_LO_ADDR_MASK));
1043 rfd_ring[0].count & RFD_RING_SIZE_MASK);
1726 struct atl1c_rfd_ring *rfd_ring = &adapter->rfd_ring[ringid];
1735 next_next = rfd_next_to_use = rfd_ring->next_to_use;
1736 if (++next_next == rfd_ring->count)
1738 buffer_info = &rfd_ring->buffer_info[rfd_next_to_use];
1739 next_info = &rfd_ring->buffer_info[next_next];
1742 rfd_desc = ATL1C_RFD_DESC(rfd_ring, rfd_next_to_use);
1767 if (++next_next == rfd_ring->count)
1769 buffer_info = &rfd_ring->buffer_info[rfd_next_to_use];
1770 next_info = &rfd_ring->buffer_info[next_next];
1777 rfd_ring->next_to_use = rfd_next_to_use;
1779 rfd_ring->next_to_use & MB_RFDX_PROD_IDX_MASK);
1798 static void atl1c_clean_rfd(struct atl1c_rfd_ring *rfd_ring,
1803 struct atl1c_buffer *buffer_info = rfd_ring->buffer_info;
1811 if (++rfd_index == rfd_ring->count)
1814 rfd_ring->next_to_clean = rfd_index;
1825 struct atl1c_rfd_ring *rfd_ring = &adapter->rfd_ring[que];
1850 atl1c_clean_rfd(rfd_ring, rrs, rfd_num);
1864 buffer_info = &rfd_ring->buffer_info[rfd_index];
1875 atl1c_clean_rfd(rfd_ring, rrs, rfd_num);