Home
last modified time | relevance | path

Searched refs:tpd_ring (Results 1 – 4 of 4) sorted by relevance

/linux-2.6.39/drivers/net/atlx/
Datl1.c1043 struct atl1_tpd_ring *tpd_ring = &adapter->tpd_ring; in atl1_setup_ring_resources() local
1051 size = sizeof(struct atl1_buffer) * (tpd_ring->count + rfd_ring->count); in atl1_setup_ring_resources()
1052 tpd_ring->buffer_info = kzalloc(size, GFP_KERNEL); in atl1_setup_ring_resources()
1053 if (unlikely(!tpd_ring->buffer_info)) { in atl1_setup_ring_resources()
1060 (struct atl1_buffer *)(tpd_ring->buffer_info + tpd_ring->count); in atl1_setup_ring_resources()
1068 sizeof(struct tx_packet_desc) * tpd_ring->count in atl1_setup_ring_resources()
1086 tpd_ring->dma = ring_header->dma; in atl1_setup_ring_resources()
1087 offset = (tpd_ring->dma & 0x7) ? (8 - (ring_header->dma & 0x7)) : 0; in atl1_setup_ring_resources()
1088 tpd_ring->dma += offset; in atl1_setup_ring_resources()
1089 tpd_ring->desc = (u8 *) ring_header->desc + offset; in atl1_setup_ring_resources()
[all …]
Datl1.h773 struct atl1_tpd_ring tpd_ring; member
/linux-2.6.39/drivers/net/atl1c/
Datl1c_main.c706 adapter->tpd_ring[0].count = 1024; in atl1c_sw_init()
803 struct atl1c_tpd_ring *tpd_ring = &adapter->tpd_ring[type]; in atl1c_clean_tx_ring() local
808 ring_count = tpd_ring->count; in atl1c_clean_tx_ring()
810 buffer_info = &tpd_ring->buffer_info[index]; in atl1c_clean_tx_ring()
815 memset(tpd_ring->desc, 0, sizeof(struct atl1c_tpd_desc) * in atl1c_clean_tx_ring()
817 atomic_set(&tpd_ring->next_to_clean, 0); in atl1c_clean_tx_ring()
818 tpd_ring->next_to_use = 0; in atl1c_clean_tx_ring()
852 struct atl1c_tpd_ring *tpd_ring = adapter->tpd_ring; in atl1c_init_ring_ptrs() local
859 tpd_ring[i].next_to_use = 0; in atl1c_init_ring_ptrs()
860 atomic_set(&tpd_ring[i].next_to_clean, 0); in atl1c_init_ring_ptrs()
[all …]
Datl1c.h589 struct atl1c_tpd_ring tpd_ring[AT_MAX_TRANSMIT_QUEUE]; member