Lines Matching refs:rfd_ring

789 	adapter->rfd_ring.count = 512;  in atl1c_sw_init()
895 struct atl1c_rfd_ring *rfd_ring = &adapter->rfd_ring; in atl1c_clean_rx_ring() local
901 for (j = 0; j < rfd_ring->count; j++) { in atl1c_clean_rx_ring()
902 buffer_info = &rfd_ring->buffer_info[j]; in atl1c_clean_rx_ring()
906 memset(rfd_ring->desc, 0, rfd_ring->size); in atl1c_clean_rx_ring()
907 rfd_ring->next_to_clean = 0; in atl1c_clean_rx_ring()
908 rfd_ring->next_to_use = 0; in atl1c_clean_rx_ring()
919 struct atl1c_rfd_ring *rfd_ring = &adapter->rfd_ring; in atl1c_init_ring_ptrs() local
932 rfd_ring->next_to_use = 0; in atl1c_init_ring_ptrs()
933 rfd_ring->next_to_clean = 0; in atl1c_init_ring_ptrs()
936 for (j = 0; j < rfd_ring->count; j++) { in atl1c_init_ring_ptrs()
937 buffer_info = &rfd_ring->buffer_info[j]; in atl1c_init_ring_ptrs()
979 struct atl1c_rfd_ring *rfd_ring = &adapter->rfd_ring; in atl1c_setup_ring_resources() local
988 rrd_ring->count = rfd_ring->count; in atl1c_setup_ring_resources()
995 rfd_ring->count); in atl1c_setup_ring_resources()
1006 rfd_ring->buffer_info = in atl1c_setup_ring_resources()
1008 count += rfd_ring->count; in atl1c_setup_ring_resources()
1009 rx_desc_count += rfd_ring->count; in atl1c_setup_ring_resources()
1040 rfd_ring->dma = ring_header->dma + offset; in atl1c_setup_ring_resources()
1041 rfd_ring->desc = (u8 *) ring_header->desc + offset; in atl1c_setup_ring_resources()
1042 rfd_ring->size = sizeof(struct atl1c_rx_free_desc) * rfd_ring->count; in atl1c_setup_ring_resources()
1043 offset += roundup(rfd_ring->size, 8); in atl1c_setup_ring_resources()
1062 struct atl1c_rfd_ring *rfd_ring = &adapter->rfd_ring; in atl1c_configure_des_ring() local
1084 (u32)((rfd_ring->dma & AT_DMA_HI_ADDR_MASK) >> 32)); in atl1c_configure_des_ring()
1086 (u32)(rfd_ring->dma & AT_DMA_LO_ADDR_MASK)); in atl1c_configure_des_ring()
1089 rfd_ring->count & RFD_RING_SIZE_MASK); in atl1c_configure_des_ring()
1701 struct atl1c_rfd_ring *rfd_ring = &adapter->rfd_ring; in atl1c_alloc_rx_buffer() local
1711 next_next = rfd_next_to_use = rfd_ring->next_to_use; in atl1c_alloc_rx_buffer()
1712 if (++next_next == rfd_ring->count) in atl1c_alloc_rx_buffer()
1714 buffer_info = &rfd_ring->buffer_info[rfd_next_to_use]; in atl1c_alloc_rx_buffer()
1715 next_info = &rfd_ring->buffer_info[next_next]; in atl1c_alloc_rx_buffer()
1718 rfd_desc = ATL1C_RFD_DESC(rfd_ring, rfd_next_to_use); in atl1c_alloc_rx_buffer()
1752 if (++next_next == rfd_ring->count) in atl1c_alloc_rx_buffer()
1754 buffer_info = &rfd_ring->buffer_info[rfd_next_to_use]; in atl1c_alloc_rx_buffer()
1755 next_info = &rfd_ring->buffer_info[next_next]; in atl1c_alloc_rx_buffer()
1762 rfd_ring->next_to_use = rfd_next_to_use; in atl1c_alloc_rx_buffer()
1764 rfd_ring->next_to_use & MB_RFDX_PROD_IDX_MASK); in atl1c_alloc_rx_buffer()
1783 static void atl1c_clean_rfd(struct atl1c_rfd_ring *rfd_ring, in atl1c_clean_rfd() argument
1788 struct atl1c_buffer *buffer_info = rfd_ring->buffer_info; in atl1c_clean_rfd()
1796 if (++rfd_index == rfd_ring->count) in atl1c_clean_rfd()
1799 rfd_ring->next_to_clean = rfd_index; in atl1c_clean_rfd()
1810 struct atl1c_rfd_ring *rfd_ring = &adapter->rfd_ring; in atl1c_clean_rx_irq() local
1835 atl1c_clean_rfd(rfd_ring, rrs, rfd_num); in atl1c_clean_rx_irq()
1849 buffer_info = &rfd_ring->buffer_info[rfd_index]; in atl1c_clean_rx_irq()
1860 atl1c_clean_rfd(rfd_ring, rrs, rfd_num); in atl1c_clean_rx_irq()