Home
last modified time | relevance | path

Searched refs:txdr (Results 1 – 2 of 2) sorted by relevance

/linux-2.4.37.9/drivers/net/e1000/
De1000_ethtool.c627 struct e1000_tx_ring *txdr = adapter->tx_ring; in e1000_get_ringparam() local
637 ring->tx_pending = txdr->count; in e1000_get_ringparam()
648 struct e1000_tx_ring *txdr, *tx_old; in e1000_set_ringparam() local
668 txdr = kzalloc(tx_ring_size, GFP_KERNEL); in e1000_set_ringparam()
669 if (!txdr) in e1000_set_ringparam()
676 adapter->tx_ring = txdr; in e1000_set_ringparam()
684 txdr->count = max(ring->tx_pending,(uint32_t)E1000_MIN_TXD); in e1000_set_ringparam()
685 txdr->count = min(txdr->count,(uint32_t)(mac_type < e1000_82544 ? in e1000_set_ringparam()
687 E1000_ROUNDUP(txdr->count, REQ_TX_DESCRIPTOR_MULTIPLE); in e1000_set_ringparam()
690 txdr[i].count = txdr->count; in e1000_set_ringparam()
[all …]
De1000_main.c138 struct e1000_tx_ring *txdr);
1544 struct e1000_tx_ring *txdr) argument
1549 size = sizeof(struct e1000_buffer) * txdr->count;
1550 txdr->buffer_info = vmalloc(size);
1551 if (!txdr->buffer_info) {
1556 memset(txdr->buffer_info, 0, size);
1560 txdr->size = txdr->count * sizeof(struct e1000_tx_desc);
1561 E1000_ROUNDUP(txdr->size, 4096);
1563 txdr->desc = pci_alloc_consistent(pdev, txdr->size, &txdr->dma);
1564 if (!txdr->desc) {
[all …]