Searched refs:txring (Results 1 – 4 of 4) sorted by relevance
509 struct pasemi_mac_txring *txring = tx_ring(mac); in pasemi_mac_free_tx_resources() local516 start = txring->next_to_clean; in pasemi_mac_free_tx_resources()517 limit = txring->next_to_fill; in pasemi_mac_free_tx_resources()524 info = &txring->ring_info[(i+1) & (TX_RING_SIZE-1)]; in pasemi_mac_free_tx_resources()528 dmas[j] = txring->ring_info[(i+1+j) & in pasemi_mac_free_tx_resources()537 kfree(txring->ring_info); in pasemi_mac_free_tx_resources()538 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() argument816 struct pasemi_dmachan *chan = &txring->chan; in pasemi_mac_clean_tx()817 struct pasemi_mac *mac = txring->mac; in pasemi_mac_clean_tx()[all …]
558 struct jme_ring *txring = &(jme->txring[0]); in jme_setup_tx_resources() local560 txring->alloc = dma_alloc_coherent(&(jme->pdev->dev), in jme_setup_tx_resources()562 &(txring->dmaalloc), in jme_setup_tx_resources()565 if (!txring->alloc) in jme_setup_tx_resources()571 txring->desc = (void *)ALIGN((unsigned long)(txring->alloc), in jme_setup_tx_resources()573 txring->dma = ALIGN(txring->dmaalloc, RING_DESC_ALIGN); in jme_setup_tx_resources()574 txring->next_to_use = 0; in jme_setup_tx_resources()575 atomic_set(&txring->next_to_clean, 0); in jme_setup_tx_resources()576 atomic_set(&txring->nr_free, jme->tx_ring_size); in jme_setup_tx_resources()578 txring->bufinf = kcalloc(jme->tx_ring_size, in jme_setup_tx_resources()[all …]
407 struct jme_ring txring[TX_RING_NR]; member
106 tx_desc *txring; member621 if (data->txring[tx].misc & TSI108_TX_OWN) in tsi108_complete_tx()626 if (!(data->txring[tx].misc & TSI108_TX_OK)) in tsi108_complete_tx()628 dev->name, data->txring[tx].misc); in tsi108_complete_tx()633 if (data->txring[tx].misc & TSI108_TX_EOF) { in tsi108_complete_tx()697 data->txring[tx].buf0 = dma_map_single(&data->pdev->dev, in tsi108_send_packet()700 data->txring[tx].len = skb_headlen(skb); in tsi108_send_packet()705 data->txring[tx].buf0 = in tsi108_send_packet()709 data->txring[tx].len = skb_frag_size(frag); in tsi108_send_packet()723 data->txring[tx].misc = misc | TSI108_TX_OWN; in tsi108_send_packet()[all …]