Lines Matching refs:rfd_ring
1040 struct atl1_rfd_ring *rfd_ring = &adapter->rfd_ring;
1047 size = sizeof(struct atl1_buffer) * (tpd_ring->count + rfd_ring->count);
1055 rfd_ring->buffer_info =
1065 + sizeof(struct rx_free_desc) * rfd_ring->count
1089 rfd_ring->dma = tpd_ring->dma + tpd_ring->size;
1090 offset = (rfd_ring->dma & 0x7) ? (8 - (rfd_ring->dma & 0x7)) : 0;
1091 rfd_ring->dma += offset;
1092 rfd_ring->desc = (u8 *) tpd_ring->desc + (tpd_ring->size + offset);
1093 rfd_ring->size = sizeof(struct rx_free_desc) * rfd_ring->count;
1097 rrd_ring->dma = rfd_ring->dma + rfd_ring->size;
1100 rrd_ring->desc = (u8 *) rfd_ring->desc + (rfd_ring->size + offset);
1129 struct atl1_rfd_ring *rfd_ring = &adapter->rfd_ring;
1135 rfd_ring->next_to_clean = 0;
1136 atomic_set(&rfd_ring->next_to_use, 0);
1148 struct atl1_rfd_ring *rfd_ring = &adapter->rfd_ring;
1156 for (i = 0; i < rfd_ring->count; i++) {
1157 buffer_info = &rfd_ring->buffer_info[i];
1169 size = sizeof(struct atl1_buffer) * rfd_ring->count;
1170 memset(rfd_ring->buffer_info, 0, size);
1173 memset(rfd_ring->desc, 0, rfd_ring->size);
1175 rfd_ring->next_to_clean = 0;
1176 atomic_set(&rfd_ring->next_to_use, 0);
1232 struct atl1_rfd_ring *rfd_ring = &adapter->rfd_ring;
1247 rfd_ring->buffer_info = NULL;
1248 rfd_ring->desc = NULL;
1249 rfd_ring->dma = 0;
1416 value = adapter->rfd_ring.count;
1495 iowrite32((u32) (adapter->rfd_ring.dma & 0x00000000ffffffffULL),
1509 value += adapter->rfd_ring.count;
1522 ((atomic_read(&adapter->rfd_ring.next_to_use)
1758 rfd_next_to_use = atomic_read(&adapter->rfd_ring.next_to_use);
1775 struct atl1_rfd_ring *rfd_ring = &adapter->rfd_ring;
1777 while (rfd_ring->next_to_clean != (rrd->buf_indx + offset)) {
1778 rfd_ring->buffer_info[rfd_ring->next_to_clean].alloced = 0;
1779 if (++rfd_ring->next_to_clean == rfd_ring->count) {
1780 rfd_ring->next_to_clean = 0;
1846 struct atl1_rfd_ring *rfd_ring = &adapter->rfd_ring;
1856 next_next = rfd_next_to_use = atomic_read(&rfd_ring->next_to_use);
1857 if (++next_next == rfd_ring->count)
1859 buffer_info = &rfd_ring->buffer_info[rfd_next_to_use];
1860 next_info = &rfd_ring->buffer_info[next_next];
1868 rfd_desc = ATL1_RFD_DESC(rfd_ring, rfd_next_to_use);
1892 if (unlikely(++next_next == rfd_ring->count))
1895 buffer_info = &rfd_ring->buffer_info[rfd_next_to_use];
1896 next_info = &rfd_ring->buffer_info[next_next];
1908 atomic_set(&rfd_ring->next_to_use, (int)rfd_next_to_use);
1919 struct atl1_rfd_ring *rfd_ring = &adapter->rfd_ring;
1988 buffer_info = &rfd_ring->buffer_info[rrd->buf_indx];
1989 if (++rfd_ring->next_to_clean == rfd_ring->count)
1990 rfd_ring->next_to_clean = 0;
2048 atomic_read(&adapter->rfd_ring.next_to_use);
2979 adapter->rfd_ring.count = adapter->rrd_ring.count = ATL1_DEFAULT_RFD;
3481 struct atl1_rfd_ring *rxdr = &adapter->rfd_ring;
3499 struct atl1_rfd_ring *rfdr = &adapter->rfd_ring;
3510 rfd_old = adapter->rfd_ring;
3539 rfd_new = adapter->rfd_ring;
3543 adapter->rfd_ring = rfd_old;
3554 adapter->rfd_ring = rfd_new;
3568 adapter->rfd_ring = rfd_old;