Searched refs:tpd_ring (Results 1 – 4 of 4) sorted by relevance
775 adapter->tpd_ring[0].count = 1024; in atl1c_sw_init()856 struct atl1c_tpd_ring *tpd_ring = &adapter->tpd_ring[type]; in atl1c_clean_tx_ring() local861 ring_count = tpd_ring->count; in atl1c_clean_tx_ring()863 buffer_info = &tpd_ring->buffer_info[index]; in atl1c_clean_tx_ring()870 memset(tpd_ring->desc, 0, sizeof(struct atl1c_tpd_desc) * in atl1c_clean_tx_ring()872 atomic_set(&tpd_ring->next_to_clean, 0); in atl1c_clean_tx_ring()873 tpd_ring->next_to_use = 0; in atl1c_clean_tx_ring()905 struct atl1c_tpd_ring *tpd_ring = adapter->tpd_ring; in atl1c_init_ring_ptrs() local912 tpd_ring[i].next_to_use = 0; in atl1c_init_ring_ptrs()913 atomic_set(&tpd_ring[i].next_to_clean, 0); in atl1c_init_ring_ptrs()[all …]
540 struct atl1c_tpd_ring tpd_ring[AT_MAX_TRANSMIT_QUEUE]; member
1023 struct atl1_tpd_ring *tpd_ring = &adapter->tpd_ring; in atl1_setup_ring_resources() local1031 size = sizeof(struct atl1_buffer) * (tpd_ring->count + rfd_ring->count); in atl1_setup_ring_resources()1032 tpd_ring->buffer_info = kzalloc(size, GFP_KERNEL); in atl1_setup_ring_resources()1033 if (unlikely(!tpd_ring->buffer_info)) { in atl1_setup_ring_resources()1040 (tpd_ring->buffer_info + tpd_ring->count); in atl1_setup_ring_resources()1048 sizeof(struct tx_packet_desc) * tpd_ring->count in atl1_setup_ring_resources()1064 tpd_ring->dma = ring_header->dma; in atl1_setup_ring_resources()1065 offset = (tpd_ring->dma & 0x7) ? (8 - (ring_header->dma & 0x7)) : 0; in atl1_setup_ring_resources()1066 tpd_ring->dma += offset; in atl1_setup_ring_resources()1067 tpd_ring->desc = (u8 *) ring_header->desc + offset; in atl1_setup_ring_resources()[all …]
764 struct atl1_tpd_ring tpd_ring; member