init.c (c9f289701540baeef9ac7c9977d67a7259f404db) init.c (bd2bf302eef21aafa6da2cf829b87a9e33150658)
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>

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

646
647 for (i = 0; i < total_descs - descs; i++) {
648 desc = ioat_get_ring_ent(ioat_chan, ioat_chan->tail + i);
649 dump_desc_dbg(ioat_chan, desc);
650 ioat_free_ring_ent(desc, c);
651 }
652
653 for (i = 0; i < ioat_chan->desc_chunks; i++) {
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>

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

646
647 for (i = 0; i < total_descs - descs; i++) {
648 desc = ioat_get_ring_ent(ioat_chan, ioat_chan->tail + i);
649 dump_desc_dbg(ioat_chan, desc);
650 ioat_free_ring_ent(desc, c);
651 }
652
653 for (i = 0; i < ioat_chan->desc_chunks; i++) {
654 dma_free_coherent(to_dev(ioat_chan), SZ_2M,
654 dma_free_coherent(to_dev(ioat_chan), IOAT_CHUNK_SIZE,
655 ioat_chan->descs[i].virt,
656 ioat_chan->descs[i].hw);
657 ioat_chan->descs[i].virt = NULL;
658 ioat_chan->descs[i].hw = 0;
659 }
660 ioat_chan->desc_chunks = 0;
661
662 kfree(ioat_chan->ring);

--- 803 unchanged lines hidden ---
655 ioat_chan->descs[i].virt,
656 ioat_chan->descs[i].hw);
657 ioat_chan->descs[i].virt = NULL;
658 ioat_chan->descs[i].hw = 0;
659 }
660 ioat_chan->desc_chunks = 0;
661
662 kfree(ioat_chan->ring);

--- 803 unchanged lines hidden ---