init.c (91de76e661a266731fc2889a398ad1694df9d523) init.c (bcdc4bd356c76a5bab2f480a73f089dc8e0e4e89)
1/*
2 * Intel I/OAT DMA Linux driver
3 * Copyright(c) 2004 - 2015 Intel Corporation.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *

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

755
756 ioat_chan->ioat_dma = ioat_dma;
757 ioat_chan->reg_base = ioat_dma->reg_base + (0x80 * (idx + 1));
758 spin_lock_init(&ioat_chan->cleanup_lock);
759 ioat_chan->dma_chan.device = dma;
760 dma_cookie_init(&ioat_chan->dma_chan);
761 list_add_tail(&ioat_chan->dma_chan.device_node, &dma->channels);
762 ioat_dma->idx[idx] = ioat_chan;
1/*
2 * Intel I/OAT DMA Linux driver
3 * Copyright(c) 2004 - 2015 Intel Corporation.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *

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

755
756 ioat_chan->ioat_dma = ioat_dma;
757 ioat_chan->reg_base = ioat_dma->reg_base + (0x80 * (idx + 1));
758 spin_lock_init(&ioat_chan->cleanup_lock);
759 ioat_chan->dma_chan.device = dma;
760 dma_cookie_init(&ioat_chan->dma_chan);
761 list_add_tail(&ioat_chan->dma_chan.device_node, &dma->channels);
762 ioat_dma->idx[idx] = ioat_chan;
763 setup_timer(&ioat_chan->timer, ioat_timer_event, data);
763 timer_setup(&ioat_chan->timer, ioat_timer_event, 0);
764 tasklet_init(&ioat_chan->cleanup_task, ioat_cleanup_event, data);
765}
766
767#define IOAT_NUM_SRC_TEST 6 /* must be <= 8 */
768static int ioat_xor_val_self_test(struct ioatdma_device *ioat_dma)
769{
770 int i, src_idx;
771 struct page *dest;

--- 657 unchanged lines hidden ---
764 tasklet_init(&ioat_chan->cleanup_task, ioat_cleanup_event, data);
765}
766
767#define IOAT_NUM_SRC_TEST 6 /* must be <= 8 */
768static int ioat_xor_val_self_test(struct ioatdma_device *ioat_dma)
769{
770 int i, src_idx;
771 struct page *dest;

--- 657 unchanged lines hidden ---