Lines Matching refs:rrd_ring
1042 struct atl1_rrd_ring *rrd_ring = &adapter->rrd_ring; in atl1_setup_ring_resources() local
1067 + sizeof(struct rx_return_desc) * rrd_ring->count in atl1_setup_ring_resources()
1098 rrd_ring->dma = rfd_ring->dma + rfd_ring->size; in atl1_setup_ring_resources()
1099 offset = (rrd_ring->dma & 0x7) ? (8 - (rrd_ring->dma & 0x7)) : 0; in atl1_setup_ring_resources()
1100 rrd_ring->dma += offset; in atl1_setup_ring_resources()
1101 rrd_ring->desc = (u8 *) rfd_ring->desc + (rfd_ring->size + offset); in atl1_setup_ring_resources()
1102 rrd_ring->size = sizeof(struct rx_return_desc) * rrd_ring->count; in atl1_setup_ring_resources()
1106 adapter->cmb.dma = rrd_ring->dma + rrd_ring->size; in atl1_setup_ring_resources()
1110 ((u8 *) rrd_ring->desc + (rrd_ring->size + offset)); in atl1_setup_ring_resources()
1131 struct atl1_rrd_ring *rrd_ring = &adapter->rrd_ring; in atl1_init_ring_ptrs() local
1139 rrd_ring->next_to_use = 0; in atl1_init_ring_ptrs()
1140 atomic_set(&rrd_ring->next_to_clean, 0); in atl1_init_ring_ptrs()
1150 struct atl1_rrd_ring *rrd_ring = &adapter->rrd_ring; in atl1_clean_rx_ring() local
1179 rrd_ring->next_to_use = 0; in atl1_clean_rx_ring()
1180 atomic_set(&rrd_ring->next_to_clean, 0); in atl1_clean_rx_ring()
1234 struct atl1_rrd_ring *rrd_ring = &adapter->rrd_ring; in atl1_free_ring_resources() local
1252 rrd_ring->desc = NULL; in atl1_free_ring_resources()
1253 rrd_ring->dma = 0; in atl1_free_ring_resources()
1427 value = adapter->rrd_ring.count; in set_flow_ctrl_old()
1497 iowrite32((u32) (adapter->rrd_ring.dma & 0x00000000ffffffffULL), in atl1_configure()
1507 value = adapter->rrd_ring.count; in atl1_configure()
1520 ((atomic_read(&adapter->rrd_ring.next_to_clean) in atl1_configure()
1766 rrd_next_to_clean = atomic_read(&adapter->rrd_ring.next_to_clean); in atl1_update_mailbox()
1927 struct atl1_rrd_ring *rrd_ring = &adapter->rrd_ring; in atl1_intr_rx() local
1934 rrd_next_to_clean = atomic_read(&rrd_ring->next_to_clean); in atl1_intr_rx()
1937 rrd = ATL1_RRD_DESC(rrd_ring, rrd_next_to_clean); in atl1_intr_rx()
1983 if (++rrd_next_to_clean == rrd_ring->count) in atl1_intr_rx()
2000 if (++rrd_next_to_clean == rrd_ring->count) in atl1_intr_rx()
2043 atomic_set(&rrd_ring->next_to_clean, rrd_next_to_clean); in atl1_intr_rx()
2058 atomic_read(&adapter->rrd_ring.next_to_clean); in atl1_intr_rx()
2995 adapter->rfd_ring.count = adapter->rrd_ring.count = ATL1_DEFAULT_RFD; in atl1_probe()
3504 struct atl1_rrd_ring *rrdr = &adapter->rrd_ring; in atl1_set_ringparam()
3517 rrd_old = adapter->rrd_ring; in atl1_set_ringparam()
3546 rrd_new = adapter->rrd_ring; in atl1_set_ringparam()
3550 adapter->rrd_ring = rrd_old; in atl1_set_ringparam()
3561 adapter->rrd_ring = rrd_new; in atl1_set_ringparam()
3575 adapter->rrd_ring = rrd_old; in atl1_set_ringparam()