Lines Matching refs:txdr

75 				    struct e1000_tx_ring *txdr);
1499 struct e1000_tx_ring *txdr) in e1000_setup_tx_resources() argument
1504 size = sizeof(struct e1000_tx_buffer) * txdr->count; in e1000_setup_tx_resources()
1505 txdr->buffer_info = vzalloc(size); in e1000_setup_tx_resources()
1506 if (!txdr->buffer_info) in e1000_setup_tx_resources()
1511 txdr->size = txdr->count * sizeof(struct e1000_tx_desc); in e1000_setup_tx_resources()
1512 txdr->size = ALIGN(txdr->size, 4096); in e1000_setup_tx_resources()
1514 txdr->desc = dma_alloc_coherent(&pdev->dev, txdr->size, &txdr->dma, in e1000_setup_tx_resources()
1516 if (!txdr->desc) { in e1000_setup_tx_resources()
1518 vfree(txdr->buffer_info); in e1000_setup_tx_resources()
1523 if (!e1000_check_64k_bound(adapter, txdr->desc, txdr->size)) { in e1000_setup_tx_resources()
1524 void *olddesc = txdr->desc; in e1000_setup_tx_resources()
1525 dma_addr_t olddma = txdr->dma; in e1000_setup_tx_resources()
1527 txdr->size, txdr->desc); in e1000_setup_tx_resources()
1529 txdr->desc = dma_alloc_coherent(&pdev->dev, txdr->size, in e1000_setup_tx_resources()
1530 &txdr->dma, GFP_KERNEL); in e1000_setup_tx_resources()
1532 if (!txdr->desc) { in e1000_setup_tx_resources()
1533 dma_free_coherent(&pdev->dev, txdr->size, olddesc, in e1000_setup_tx_resources()
1538 if (!e1000_check_64k_bound(adapter, txdr->desc, txdr->size)) { in e1000_setup_tx_resources()
1540 dma_free_coherent(&pdev->dev, txdr->size, txdr->desc, in e1000_setup_tx_resources()
1541 txdr->dma); in e1000_setup_tx_resources()
1542 dma_free_coherent(&pdev->dev, txdr->size, olddesc, in e1000_setup_tx_resources()
1546 vfree(txdr->buffer_info); in e1000_setup_tx_resources()
1550 dma_free_coherent(&pdev->dev, txdr->size, olddesc, in e1000_setup_tx_resources()
1554 memset(txdr->desc, 0, txdr->size); in e1000_setup_tx_resources()
1556 txdr->next_to_use = 0; in e1000_setup_tx_resources()
1557 txdr->next_to_clean = 0; in e1000_setup_tx_resources()
2433 struct e1000_tx_ring *txdr = adapter->tx_ring; in e1000_watchdog() local
2514 if (E1000_DESC_UNUSED(txdr) + 1 < txdr->count) { in e1000_watchdog()