Lines Matching refs:nfrags
243 const int nfrags, in pasemi_mac_unmap_tx_skb() argument
252 for (f = 0; f < nfrags; f++) { in pasemi_mac_unmap_tx_skb()
262 return (nfrags + 3) & ~1; in pasemi_mac_unmap_tx_skb()
513 int freed, nfrags; in pasemi_mac_free_tx_resources() local
526 nfrags = skb_shinfo(info->skb)->nr_frags; in pasemi_mac_free_tx_resources()
527 for (j = 0; j <= nfrags; j++) in pasemi_mac_free_tx_resources()
530 freed = pasemi_mac_unmap_tx_skb(mac, nfrags, in pasemi_mac_free_tx_resources()
1346 const int nfrags = skb_shinfo(skb)->nr_frags; in pasemi_mac_queue_csdesc() local
1380 for (i = 1; i <= nfrags; i++) in pasemi_mac_queue_csdesc()
1432 int i, nfrags; in pasemi_mac_start_tx() local
1441 nfrags = skb_shinfo(skb)->nr_frags; in pasemi_mac_start_tx()
1449 for (i = 0; i < nfrags; i++) { in pasemi_mac_start_tx()
1456 nfrags = i; in pasemi_mac_start_tx()
1486 if (RING_AVAIL(txring) < nfrags + 14) { in pasemi_mac_start_tx()
1502 TX_DESC_INFO(txring, fill).dma = nfrags; in pasemi_mac_start_tx()
1505 for (i = 0; i <= nfrags; i++) { in pasemi_mac_start_tx()
1515 if (nfrags & 1) in pasemi_mac_start_tx()
1516 nfrags++; in pasemi_mac_start_tx()
1518 txring->next_to_fill = (fill + nfrags + 1) & (TX_RING_SIZE-1); in pasemi_mac_start_tx()
1525 write_dma_reg(PAS_DMA_TXCHAN_INCR(txring->chan.chno), (nfrags+2) >> 1); in pasemi_mac_start_tx()
1532 while (nfrags--) in pasemi_mac_start_tx()
1533 pci_unmap_single(mac->dma_pdev, map[nfrags], map_size[nfrags], in pasemi_mac_start_tx()