init.c (16d79cd4e23b1964d36c041ab027505ceacbbeeb) init.c (af49b016c0f97515ee193991af338c624271d839)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Intel I/OAT DMA Linux driver
4 * Copyright(c) 2004 - 2015 Intel Corporation.
5 */
6
7#include <linux/init.h>
8#include <linux/module.h>

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

597 break;
598 }
599 }
600 dma->chancnt = i;
601}
602
603/**
604 * ioat_free_chan_resources - release all the descriptors
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Intel I/OAT DMA Linux driver
4 * Copyright(c) 2004 - 2015 Intel Corporation.
5 */
6
7#include <linux/init.h>
8#include <linux/module.h>

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

597 break;
598 }
599 }
600 dma->chancnt = i;
601}
602
603/**
604 * ioat_free_chan_resources - release all the descriptors
605 * @chan: the channel to be cleaned
605 * @c: the channel to be cleaned
606 */
607static void ioat_free_chan_resources(struct dma_chan *c)
608{
609 struct ioatdma_chan *ioat_chan = to_ioat_chan(c);
610 struct ioatdma_device *ioat_dma = ioat_chan->ioat_dma;
611 struct ioat_ring_ent *desc;
612 const int total_descs = 1 << ioat_chan->alloc_order;
613 int descs;

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

1262
1263 /* no need to reset as shutdown already did that */
1264 }
1265}
1266
1267#define DRV_NAME "ioatdma"
1268
1269static pci_ers_result_t ioat_pcie_error_detected(struct pci_dev *pdev,
606 */
607static void ioat_free_chan_resources(struct dma_chan *c)
608{
609 struct ioatdma_chan *ioat_chan = to_ioat_chan(c);
610 struct ioatdma_device *ioat_dma = ioat_chan->ioat_dma;
611 struct ioat_ring_ent *desc;
612 const int total_descs = 1 << ioat_chan->alloc_order;
613 int descs;

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

1262
1263 /* no need to reset as shutdown already did that */
1264 }
1265}
1266
1267#define DRV_NAME "ioatdma"
1268
1269static pci_ers_result_t ioat_pcie_error_detected(struct pci_dev *pdev,
1270 pci_channel_state_t error)
1270 enum pci_channel_state error)
1271{
1272 dev_dbg(&pdev->dev, "%s: PCIe AER error %d\n", DRV_NAME, error);
1273
1274 /* quiesce and block I/O */
1275 ioat_shutdown(pdev);
1276
1277 return PCI_ERS_RESULT_NEED_RESET;
1278}

--- 187 unchanged lines hidden ---
1271{
1272 dev_dbg(&pdev->dev, "%s: PCIe AER error %d\n", DRV_NAME, error);
1273
1274 /* quiesce and block I/O */
1275 ioat_shutdown(pdev);
1276
1277 return PCI_ERS_RESULT_NEED_RESET;
1278}

--- 187 unchanged lines hidden ---