Lines Matching refs:rfd_ring

1041 	struct atl1_rfd_ring *rfd_ring = &adapter->rfd_ring;  in atl1_setup_ring_resources()  local
1048 size = sizeof(struct atl1_buffer) * (tpd_ring->count + rfd_ring->count); in atl1_setup_ring_resources()
1056 rfd_ring->buffer_info = in atl1_setup_ring_resources()
1066 + sizeof(struct rx_free_desc) * rfd_ring->count in atl1_setup_ring_resources()
1090 rfd_ring->dma = tpd_ring->dma + tpd_ring->size; in atl1_setup_ring_resources()
1091 offset = (rfd_ring->dma & 0x7) ? (8 - (rfd_ring->dma & 0x7)) : 0; in atl1_setup_ring_resources()
1092 rfd_ring->dma += offset; in atl1_setup_ring_resources()
1093 rfd_ring->desc = (u8 *) tpd_ring->desc + (tpd_ring->size + offset); in atl1_setup_ring_resources()
1094 rfd_ring->size = sizeof(struct rx_free_desc) * rfd_ring->count; in atl1_setup_ring_resources()
1098 rrd_ring->dma = rfd_ring->dma + rfd_ring->size; in atl1_setup_ring_resources()
1101 rrd_ring->desc = (u8 *) rfd_ring->desc + (rfd_ring->size + offset); in atl1_setup_ring_resources()
1130 struct atl1_rfd_ring *rfd_ring = &adapter->rfd_ring; in atl1_init_ring_ptrs() local
1136 rfd_ring->next_to_clean = 0; in atl1_init_ring_ptrs()
1137 atomic_set(&rfd_ring->next_to_use, 0); in atl1_init_ring_ptrs()
1149 struct atl1_rfd_ring *rfd_ring = &adapter->rfd_ring; in atl1_clean_rx_ring() local
1157 for (i = 0; i < rfd_ring->count; i++) { in atl1_clean_rx_ring()
1158 buffer_info = &rfd_ring->buffer_info[i]; in atl1_clean_rx_ring()
1170 size = sizeof(struct atl1_buffer) * rfd_ring->count; in atl1_clean_rx_ring()
1171 memset(rfd_ring->buffer_info, 0, size); in atl1_clean_rx_ring()
1174 memset(rfd_ring->desc, 0, rfd_ring->size); in atl1_clean_rx_ring()
1176 rfd_ring->next_to_clean = 0; in atl1_clean_rx_ring()
1177 atomic_set(&rfd_ring->next_to_use, 0); in atl1_clean_rx_ring()
1233 struct atl1_rfd_ring *rfd_ring = &adapter->rfd_ring; in atl1_free_ring_resources() local
1248 rfd_ring->buffer_info = NULL; in atl1_free_ring_resources()
1249 rfd_ring->desc = NULL; in atl1_free_ring_resources()
1250 rfd_ring->dma = 0; in atl1_free_ring_resources()
1416 value = adapter->rfd_ring.count; in set_flow_ctrl_old()
1495 iowrite32((u32) (adapter->rfd_ring.dma & 0x00000000ffffffffULL), in atl1_configure()
1509 value += adapter->rfd_ring.count; in atl1_configure()
1522 ((atomic_read(&adapter->rfd_ring.next_to_use) in atl1_configure()
1765 rfd_next_to_use = atomic_read(&adapter->rfd_ring.next_to_use); in atl1_update_mailbox()
1782 struct atl1_rfd_ring *rfd_ring = &adapter->rfd_ring; in atl1_clean_alloc_flag() local
1784 while (rfd_ring->next_to_clean != (rrd->buf_indx + offset)) { in atl1_clean_alloc_flag()
1785 rfd_ring->buffer_info[rfd_ring->next_to_clean].alloced = 0; in atl1_clean_alloc_flag()
1786 if (++rfd_ring->next_to_clean == rfd_ring->count) { in atl1_clean_alloc_flag()
1787 rfd_ring->next_to_clean = 0; in atl1_clean_alloc_flag()
1853 struct atl1_rfd_ring *rfd_ring = &adapter->rfd_ring; in atl1_alloc_rx_buffers() local
1863 next_next = rfd_next_to_use = atomic_read(&rfd_ring->next_to_use); in atl1_alloc_rx_buffers()
1864 if (++next_next == rfd_ring->count) in atl1_alloc_rx_buffers()
1866 buffer_info = &rfd_ring->buffer_info[rfd_next_to_use]; in atl1_alloc_rx_buffers()
1867 next_info = &rfd_ring->buffer_info[next_next]; in atl1_alloc_rx_buffers()
1875 rfd_desc = ATL1_RFD_DESC(rfd_ring, rfd_next_to_use); in atl1_alloc_rx_buffers()
1899 if (unlikely(++next_next == rfd_ring->count)) in atl1_alloc_rx_buffers()
1902 buffer_info = &rfd_ring->buffer_info[rfd_next_to_use]; in atl1_alloc_rx_buffers()
1903 next_info = &rfd_ring->buffer_info[next_next]; in atl1_alloc_rx_buffers()
1915 atomic_set(&rfd_ring->next_to_use, (int)rfd_next_to_use); in atl1_alloc_rx_buffers()
1926 struct atl1_rfd_ring *rfd_ring = &adapter->rfd_ring; in atl1_intr_rx() local
1995 buffer_info = &rfd_ring->buffer_info[rrd->buf_indx]; in atl1_intr_rx()
1996 if (++rfd_ring->next_to_clean == rfd_ring->count) in atl1_intr_rx()
1997 rfd_ring->next_to_clean = 0; in atl1_intr_rx()
2056 atomic_read(&adapter->rfd_ring.next_to_use); in atl1_intr_rx()
2995 adapter->rfd_ring.count = adapter->rrd_ring.count = ATL1_DEFAULT_RFD; in atl1_probe()
3491 struct atl1_rfd_ring *rxdr = &adapter->rfd_ring; in atl1_get_ringparam()
3505 struct atl1_rfd_ring *rfdr = &adapter->rfd_ring; in atl1_set_ringparam()
3516 rfd_old = adapter->rfd_ring; in atl1_set_ringparam()
3545 rfd_new = adapter->rfd_ring; in atl1_set_ringparam()
3549 adapter->rfd_ring = rfd_old; in atl1_set_ringparam()
3560 adapter->rfd_ring = rfd_new; in atl1_set_ringparam()
3574 adapter->rfd_ring = rfd_old; in atl1_set_ringparam()