"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "drivers/net/ethernet/agere/et131x.c" between
linux-5.3-rc3.tar.gz and linux-5.3-rc4.tar.gz

About: The full source of the development Linux kernel 5.3 (release candidate).

et131x.c  (linux-5.3-rc3):et131x.c  (linux-5.3-rc4)
skipping to change at line 2365 skipping to change at line 2365
* memory. The device will update the "status" in memory each time it xmits a * memory. The device will update the "status" in memory each time it xmits a
* packet. * packet.
*/ */
static int et131x_tx_dma_memory_alloc(struct et131x_adapter *adapter) static int et131x_tx_dma_memory_alloc(struct et131x_adapter *adapter)
{ {
int desc_size = 0; int desc_size = 0;
struct tx_ring *tx_ring = &adapter->tx_ring; struct tx_ring *tx_ring = &adapter->tx_ring;
/* Allocate memory for the TCB's (Transmit Control Block) */ /* Allocate memory for the TCB's (Transmit Control Block) */
tx_ring->tcb_ring = kcalloc(NUM_TCB, sizeof(struct tcb), tx_ring->tcb_ring = kcalloc(NUM_TCB, sizeof(struct tcb),
GFP_ATOMIC | GFP_DMA); GFP_KERNEL | GFP_DMA);
if (!tx_ring->tcb_ring) if (!tx_ring->tcb_ring)
return -ENOMEM; return -ENOMEM;
desc_size = (sizeof(struct tx_desc) * NUM_DESC_PER_RING_TX); desc_size = (sizeof(struct tx_desc) * NUM_DESC_PER_RING_TX);
tx_ring->tx_desc_ring = dma_alloc_coherent(&adapter->pdev->dev, tx_ring->tx_desc_ring = dma_alloc_coherent(&adapter->pdev->dev,
desc_size, desc_size,
&tx_ring->tx_desc_ring_pa, &tx_ring->tx_desc_ring_pa,
GFP_KERNEL); GFP_KERNEL);
if (!tx_ring->tx_desc_ring) { if (!tx_ring->tx_desc_ring) {
dev_err(&adapter->pdev->dev, dev_err(&adapter->pdev->dev,
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)