Home
last modified time | relevance | path

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

/drivers/net/ethernet/pasemi/
Dpasemi_mac.c510 struct pasemi_mac_txring *txring = tx_ring(mac); in pasemi_mac_free_tx_resources() local
517 start = txring->next_to_clean; in pasemi_mac_free_tx_resources()
518 limit = txring->next_to_fill; in pasemi_mac_free_tx_resources()
525 info = &txring->ring_info[(i+1) & (TX_RING_SIZE-1)]; in pasemi_mac_free_tx_resources()
529 dmas[j] = txring->ring_info[(i+1+j) & in pasemi_mac_free_tx_resources()
538 kfree(txring->ring_info); in pasemi_mac_free_tx_resources()
539 pasemi_dma_free_chan(&txring->chan); in pasemi_mac_free_tx_resources()
814 static int pasemi_mac_clean_tx(struct pasemi_mac_txring *txring) in pasemi_mac_clean_tx() argument
816 struct pasemi_dmachan *chan = &txring->chan; in pasemi_mac_clean_tx()
817 struct pasemi_mac *mac = txring->mac; in pasemi_mac_clean_tx()
[all …]
/drivers/net/ethernet/
Djme.c559 struct jme_ring *txring = &(jme->txring[0]); in jme_setup_tx_resources() local
561 txring->alloc = dma_alloc_coherent(&(jme->pdev->dev), in jme_setup_tx_resources()
563 &(txring->dmaalloc), in jme_setup_tx_resources()
566 if (!txring->alloc) in jme_setup_tx_resources()
572 txring->desc = (void *)ALIGN((unsigned long)(txring->alloc), in jme_setup_tx_resources()
574 txring->dma = ALIGN(txring->dmaalloc, RING_DESC_ALIGN); in jme_setup_tx_resources()
575 txring->next_to_use = 0; in jme_setup_tx_resources()
576 atomic_set(&txring->next_to_clean, 0); in jme_setup_tx_resources()
577 atomic_set(&txring->nr_free, jme->tx_ring_size); in jme_setup_tx_resources()
579 txring->bufinf = kcalloc(jme->tx_ring_size, in jme_setup_tx_resources()
[all …]
Djme.h405 struct jme_ring txring[TX_RING_NR]; member
/drivers/net/ethernet/tundra/
Dtsi108_eth.c103 tx_desc *txring; member
608 if (data->txring[tx].misc & TSI108_TX_OWN) in tsi108_complete_tx()
613 if (!(data->txring[tx].misc & TSI108_TX_OK)) in tsi108_complete_tx()
615 dev->name, data->txring[tx].misc); in tsi108_complete_tx()
620 if (data->txring[tx].misc & TSI108_TX_EOF) { in tsi108_complete_tx()
684 data->txring[tx].buf0 = dma_map_single(&data->pdev->dev, in tsi108_send_packet()
687 data->txring[tx].len = skb_headlen(skb); in tsi108_send_packet()
692 data->txring[tx].buf0 = in tsi108_send_packet()
696 data->txring[tx].len = skb_frag_size(frag); in tsi108_send_packet()
710 data->txring[tx].misc = misc | TSI108_TX_OWN; in tsi108_send_packet()
[all …]