Lines Matching refs:tx_info
531 struct tx_ring_info tx_info[TX_RING_SIZE]; member
1174 memset(&np->tx_info[i], 0, sizeof(np->tx_info[i])); in init_ring()
1209 np->tx_info[entry].skb = skb; in start_tx()
1225 np->tx_info[entry].mapping = in start_tx()
1232 np->tx_info[entry].mapping = in start_tx()
1238 if (dma_mapping_error(&np->pci_dev->dev, np->tx_info[entry].mapping)) { in start_tx()
1243 np->tx_ring[entry].addr = cpu_to_dma(np->tx_info[entry].mapping); in start_tx()
1250 np->tx_info[entry].used_slots = TX_RING_SIZE - entry; in start_tx()
1251 np->cur_tx += np->tx_info[entry].used_slots; in start_tx()
1254 np->tx_info[entry].used_slots = 1; in start_tx()
1255 np->cur_tx += np->tx_info[entry].used_slots; in start_tx()
1279 np->tx_info[entry].skb = NULL; in start_tx()
1282 np->tx_info[entry].mapping, in start_tx()
1284 np->tx_info[entry].mapping = 0; in start_tx()
1285 entry = (entry + np->tx_info[entry].used_slots) % TX_RING_SIZE; in start_tx()
1288 np->tx_info[entry].mapping, in start_tx()
1362 struct sk_buff *skb = np->tx_info[entry].skb; in intr_handler()
1363 np->tx_info[entry].skb = NULL; in intr_handler()
1365 np->tx_info[entry].mapping, in intr_handler()
1368 np->tx_info[entry].mapping = 0; in intr_handler()
1369 np->dirty_tx += np->tx_info[entry].used_slots; in intr_handler()
1370 entry = (entry + np->tx_info[entry].used_slots) % TX_RING_SIZE; in intr_handler()
1375 np->tx_info[entry].mapping, in intr_handler()
1982 struct sk_buff *skb = np->tx_info[i].skb; in netdev_close()
1985 dma_unmap_single(&np->pci_dev->dev, np->tx_info[i].mapping, in netdev_close()
1987 np->tx_info[i].mapping = 0; in netdev_close()
1989 np->tx_info[i].skb = NULL; in netdev_close()