Searched refs:tpd_ring (Results 1 – 4 of 4) sorted by relevance
805 adapter->tpd_ring[0].count = 1024; in atl1c_sw_init()892 struct atl1c_tpd_ring *tpd_ring = &adapter->tpd_ring[queue]; in atl1c_clean_tx_ring() local897 ring_count = tpd_ring->count; in atl1c_clean_tx_ring()899 buffer_info = &tpd_ring->buffer_info[index]; in atl1c_clean_tx_ring()906 memset(tpd_ring->desc, 0, sizeof(struct atl1c_tpd_desc) * in atl1c_clean_tx_ring()908 atomic_set(&tpd_ring->next_to_clean, 0); in atl1c_clean_tx_ring()909 tpd_ring->next_to_use = 0; in atl1c_clean_tx_ring()942 struct atl1c_tpd_ring *tpd_ring = adapter->tpd_ring; in atl1c_init_ring_ptrs() local949 tpd_ring[i].next_to_use = 0; in atl1c_init_ring_ptrs()950 atomic_set(&tpd_ring[i].next_to_clean, 0); in atl1c_init_ring_ptrs()[all …]
546 struct atl1c_tpd_ring tpd_ring[AT_MAX_TRANSMIT_QUEUE]; member
1021 struct atl1_tpd_ring *tpd_ring = &adapter->tpd_ring; in atl1_setup_ring_resources() local1029 size = sizeof(struct atl1_buffer) * (tpd_ring->count + rfd_ring->count); in atl1_setup_ring_resources()1030 tpd_ring->buffer_info = kzalloc(size, GFP_KERNEL); in atl1_setup_ring_resources()1031 if (unlikely(!tpd_ring->buffer_info)) { in atl1_setup_ring_resources()1038 (tpd_ring->buffer_info + tpd_ring->count); in atl1_setup_ring_resources()1046 sizeof(struct tx_packet_desc) * tpd_ring->count in atl1_setup_ring_resources()1062 tpd_ring->dma = ring_header->dma; in atl1_setup_ring_resources()1063 offset = (tpd_ring->dma & 0x7) ? (8 - (ring_header->dma & 0x7)) : 0; in atl1_setup_ring_resources()1064 tpd_ring->dma += offset; in atl1_setup_ring_resources()1065 tpd_ring->desc = (u8 *) ring_header->desc + offset; in atl1_setup_ring_resources()[all …]
764 struct atl1_tpd_ring tpd_ring; member