Searched refs:tpd_ring (Results 1 – 4 of 4) sorted by relevance
788 adapter->tpd_ring[0].count = 1024; in atl1c_sw_init()869 struct atl1c_tpd_ring *tpd_ring = &adapter->tpd_ring[type]; in atl1c_clean_tx_ring() local874 ring_count = tpd_ring->count; in atl1c_clean_tx_ring()876 buffer_info = &tpd_ring->buffer_info[index]; in atl1c_clean_tx_ring()883 memset(tpd_ring->desc, 0, sizeof(struct atl1c_tpd_desc) * in atl1c_clean_tx_ring()885 atomic_set(&tpd_ring->next_to_clean, 0); in atl1c_clean_tx_ring()886 tpd_ring->next_to_use = 0; in atl1c_clean_tx_ring()918 struct atl1c_tpd_ring *tpd_ring = adapter->tpd_ring; in atl1c_init_ring_ptrs() local925 tpd_ring[i].next_to_use = 0; in atl1c_init_ring_ptrs()926 atomic_set(&tpd_ring[i].next_to_clean, 0); in atl1c_init_ring_ptrs()[all …]
553 struct atl1c_tpd_ring tpd_ring[AT_MAX_TRANSMIT_QUEUE]; member
1040 struct atl1_tpd_ring *tpd_ring = &adapter->tpd_ring; in atl1_setup_ring_resources() local1048 size = sizeof(struct atl1_buffer) * (tpd_ring->count + rfd_ring->count); in atl1_setup_ring_resources()1049 tpd_ring->buffer_info = kzalloc(size, GFP_KERNEL); in atl1_setup_ring_resources()1050 if (unlikely(!tpd_ring->buffer_info)) { in atl1_setup_ring_resources()1057 (tpd_ring->buffer_info + tpd_ring->count); in atl1_setup_ring_resources()1065 sizeof(struct tx_packet_desc) * tpd_ring->count in atl1_setup_ring_resources()1083 tpd_ring->dma = ring_header->dma; in atl1_setup_ring_resources()1084 offset = (tpd_ring->dma & 0x7) ? (8 - (ring_header->dma & 0x7)) : 0; in atl1_setup_ring_resources()1085 tpd_ring->dma += offset; in atl1_setup_ring_resources()1086 tpd_ring->desc = (u8 *) ring_header->desc + offset; in atl1_setup_ring_resources()[all …]
777 struct atl1_tpd_ring tpd_ring; member