Lines Matching refs:rrd_ring
1045 struct atl1_rrd_ring *rrd_ring = &adapter->rrd_ring; in atl1_setup_ring_resources() local
1070 + sizeof(struct rx_return_desc) * rrd_ring->count in atl1_setup_ring_resources()
1101 rrd_ring->dma = rfd_ring->dma + rfd_ring->size; in atl1_setup_ring_resources()
1102 offset = (rrd_ring->dma & 0x7) ? (8 - (rrd_ring->dma & 0x7)) : 0; in atl1_setup_ring_resources()
1103 rrd_ring->dma += offset; in atl1_setup_ring_resources()
1104 rrd_ring->desc = (u8 *) rfd_ring->desc + (rfd_ring->size + offset); in atl1_setup_ring_resources()
1105 rrd_ring->size = sizeof(struct rx_return_desc) * rrd_ring->count; in atl1_setup_ring_resources()
1109 adapter->cmb.dma = rrd_ring->dma + rrd_ring->size; in atl1_setup_ring_resources()
1113 ((u8 *) rrd_ring->desc + (rrd_ring->size + offset)); in atl1_setup_ring_resources()
1134 struct atl1_rrd_ring *rrd_ring = &adapter->rrd_ring; in atl1_init_ring_ptrs() local
1142 rrd_ring->next_to_use = 0; in atl1_init_ring_ptrs()
1143 atomic_set(&rrd_ring->next_to_clean, 0); in atl1_init_ring_ptrs()
1153 struct atl1_rrd_ring *rrd_ring = &adapter->rrd_ring; in atl1_clean_rx_ring() local
1182 rrd_ring->next_to_use = 0; in atl1_clean_rx_ring()
1183 atomic_set(&rrd_ring->next_to_clean, 0); in atl1_clean_rx_ring()
1237 struct atl1_rrd_ring *rrd_ring = &adapter->rrd_ring; in atl1_free_ring_resources() local
1255 rrd_ring->desc = NULL; in atl1_free_ring_resources()
1256 rrd_ring->dma = 0; in atl1_free_ring_resources()
1431 value = adapter->rrd_ring.count; in set_flow_ctrl_old()
1501 iowrite32((u32) (adapter->rrd_ring.dma & 0x00000000ffffffffULL), in atl1_configure()
1511 value = adapter->rrd_ring.count; in atl1_configure()
1524 ((atomic_read(&adapter->rrd_ring.next_to_clean) in atl1_configure()
1763 rrd_next_to_clean = atomic_read(&adapter->rrd_ring.next_to_clean); in atl1_update_mailbox()
1924 struct atl1_rrd_ring *rrd_ring = &adapter->rrd_ring; in atl1_intr_rx() local
1931 rrd_next_to_clean = atomic_read(&rrd_ring->next_to_clean); in atl1_intr_rx()
1934 rrd = ATL1_RRD_DESC(rrd_ring, rrd_next_to_clean); in atl1_intr_rx()
1980 if (++rrd_next_to_clean == rrd_ring->count) in atl1_intr_rx()
1997 if (++rrd_next_to_clean == rrd_ring->count) in atl1_intr_rx()
2039 atomic_set(&rrd_ring->next_to_clean, rrd_next_to_clean); in atl1_intr_rx()
2054 atomic_read(&adapter->rrd_ring.next_to_clean); in atl1_intr_rx()
2965 adapter->rfd_ring.count = adapter->rrd_ring.count = ATL1_DEFAULT_RFD; in atl1_probe()
3485 struct atl1_rrd_ring *rrdr = &adapter->rrd_ring; in atl1_set_ringparam()
3498 rrd_old = adapter->rrd_ring; in atl1_set_ringparam()
3527 rrd_new = adapter->rrd_ring; in atl1_set_ringparam()
3531 adapter->rrd_ring = rrd_old; in atl1_set_ringparam()
3542 adapter->rrd_ring = rrd_new; in atl1_set_ringparam()
3556 adapter->rrd_ring = rrd_old; in atl1_set_ringparam()