ksz884x.c (787343ad3d321fc987e36715433050df88353465) ksz884x.c (9e903e085262ffbf1fc44a17ac06058aca03524a)
1/**
2 * drivers/net/ksx884x.c - Micrel KSZ8841/2 PCI Ethernet driver
3 *
4 * Copyright (c) 2009-2010 Micrel, Inc.
5 * Tristram Ha <Tristram.Ha@micrel.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 4686 unchanged lines hidden (view full) ---

4695
4696 /* Get a new descriptor. */
4697 get_tx_pkt(info, &desc);
4698
4699 /* Keep track of descriptors used so far. */
4700 ++hw->tx_int_cnt;
4701
4702 dma_buf = DMA_BUFFER(desc);
1/**
2 * drivers/net/ksx884x.c - Micrel KSZ8841/2 PCI Ethernet driver
3 *
4 * Copyright (c) 2009-2010 Micrel, Inc.
5 * Tristram Ha <Tristram.Ha@micrel.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 4686 unchanged lines hidden (view full) ---

4695
4696 /* Get a new descriptor. */
4697 get_tx_pkt(info, &desc);
4698
4699 /* Keep track of descriptors used so far. */
4700 ++hw->tx_int_cnt;
4701
4702 dma_buf = DMA_BUFFER(desc);
4703 dma_buf->len = this_frag->size;
4703 dma_buf->len = skb_frag_size(this_frag);
4704
4705 dma_buf->dma = pci_map_single(
4706 hw_priv->pdev,
4707 skb_frag_address(this_frag),
4708 dma_buf->len,
4709 PCI_DMA_TODEVICE);
4710 set_tx_buf(desc, dma_buf->dma);
4711 set_tx_len(desc, dma_buf->len);

--- 2577 unchanged lines hidden ---
4704
4705 dma_buf->dma = pci_map_single(
4706 hw_priv->pdev,
4707 skb_frag_address(this_frag),
4708 dma_buf->len,
4709 PCI_DMA_TODEVICE);
4710 set_tx_buf(desc, dma_buf->dma);
4711 set_tx_len(desc, dma_buf->len);

--- 2577 unchanged lines hidden ---