Lines Matching refs:rfd_ring

791 	adapter->rfd_ring[0].count = 512;  in atl1c_sw_init()
905 struct atl1c_rfd_ring *rfd_ring = &adapter->rfd_ring[queue]; in atl1c_clean_rx_ring() local
911 for (j = 0; j < rfd_ring->count; j++) { in atl1c_clean_rx_ring()
912 buffer_info = &rfd_ring->buffer_info[j]; in atl1c_clean_rx_ring()
916 memset(rfd_ring->desc, 0, rfd_ring->size); in atl1c_clean_rx_ring()
917 rfd_ring->next_to_clean = 0; in atl1c_clean_rx_ring()
918 rfd_ring->next_to_use = 0; in atl1c_clean_rx_ring()
929 struct atl1c_rfd_ring *rfd_ring = adapter->rfd_ring; in atl1c_init_ring_ptrs() local
943 rfd_ring[i].next_to_use = 0; in atl1c_init_ring_ptrs()
944 rfd_ring[i].next_to_clean = 0; in atl1c_init_ring_ptrs()
947 for (j = 0; j < rfd_ring[i].count; j++) { in atl1c_init_ring_ptrs()
948 buffer_info = &rfd_ring[i].buffer_info[j]; in atl1c_init_ring_ptrs()
987 struct atl1c_rfd_ring *rfd_ring = adapter->rfd_ring; in atl1c_setup_ring_resources() local
1007 rfd_ring->count * rqc); in atl1c_setup_ring_resources()
1022 rrd_ring[i].count = rfd_ring[0].count; in atl1c_setup_ring_resources()
1023 rfd_ring[i].count = rfd_ring[0].count; in atl1c_setup_ring_resources()
1024 rfd_ring[i].buffer_info = (tpd_ring->buffer_info + count); in atl1c_setup_ring_resources()
1025 count += rfd_ring->count; in atl1c_setup_ring_resources()
1035 sizeof(struct atl1c_rx_free_desc) * rfd_ring->count * rqc + in atl1c_setup_ring_resources()
1036 sizeof(struct atl1c_recv_ret_status) * rfd_ring->count * rqc + in atl1c_setup_ring_resources()
1058 rfd_ring[i].dma = ring_header->dma + offset; in atl1c_setup_ring_resources()
1059 rfd_ring[i].desc = (u8 *)ring_header->desc + offset; in atl1c_setup_ring_resources()
1060 rfd_ring[i].size = sizeof(struct atl1c_rx_free_desc) * in atl1c_setup_ring_resources()
1061 rfd_ring[i].count; in atl1c_setup_ring_resources()
1062 offset += roundup(rfd_ring[i].size, 8); in atl1c_setup_ring_resources()
1082 struct atl1c_rfd_ring *rfd_ring = adapter->rfd_ring; in atl1c_configure_des_ring() local
1105 (u32)((rfd_ring->dma & AT_DMA_HI_ADDR_MASK) >> 32)); in atl1c_configure_des_ring()
1108 (u32)(rfd_ring[i].dma & AT_DMA_LO_ADDR_MASK)); in atl1c_configure_des_ring()
1112 rfd_ring->count & RFD_RING_SIZE_MASK); in atl1c_configure_des_ring()
1749 struct atl1c_rfd_ring *rfd_ring = &adapter->rfd_ring[queue]; in atl1c_alloc_rx_buffer() local
1760 next_next = rfd_next_to_use = rfd_ring->next_to_use; in atl1c_alloc_rx_buffer()
1761 if (++next_next == rfd_ring->count) in atl1c_alloc_rx_buffer()
1763 buffer_info = &rfd_ring->buffer_info[rfd_next_to_use]; in atl1c_alloc_rx_buffer()
1764 next_info = &rfd_ring->buffer_info[next_next]; in atl1c_alloc_rx_buffer()
1767 rfd_desc = ATL1C_RFD_DESC(rfd_ring, rfd_next_to_use); in atl1c_alloc_rx_buffer()
1814 if (++next_next == rfd_ring->count) in atl1c_alloc_rx_buffer()
1816 buffer_info = &rfd_ring->buffer_info[rfd_next_to_use]; in atl1c_alloc_rx_buffer()
1817 next_info = &rfd_ring->buffer_info[next_next]; in atl1c_alloc_rx_buffer()
1824 rfd_ring->next_to_use = rfd_next_to_use; in atl1c_alloc_rx_buffer()
1826 rfd_ring->next_to_use & MB_RFDX_PROD_IDX_MASK); in atl1c_alloc_rx_buffer()
1845 static void atl1c_clean_rfd(struct atl1c_rfd_ring *rfd_ring, in atl1c_clean_rfd() argument
1850 struct atl1c_buffer *buffer_info = rfd_ring->buffer_info; in atl1c_clean_rfd()
1858 if (++rfd_index == rfd_ring->count) in atl1c_clean_rfd()
1861 rfd_ring->next_to_clean = rfd_index; in atl1c_clean_rfd()
1878 struct atl1c_rfd_ring *rfd_ring = &adapter->rfd_ring[rrd_ring->num]; in atl1c_clean_rx() local
1908 atl1c_clean_rfd(rfd_ring, rrs, rfd_num); in atl1c_clean_rx()
1922 buffer_info = &rfd_ring->buffer_info[rfd_index]; in atl1c_clean_rx()
1933 atl1c_clean_rfd(rfd_ring, rrs, rfd_num); in atl1c_clean_rx()