aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/ioat
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/ioat')
-rw-r--r--drivers/dma/ioat/dca.c9
-rw-r--r--drivers/dma/ioat/dma.c12
-rw-r--r--drivers/dma/ioat/dma.h13
-rw-r--r--drivers/dma/ioat/dma_v2.c2
-rw-r--r--drivers/dma/ioat/dma_v2.h8
-rw-r--r--drivers/dma/ioat/dma_v3.c8
-rw-r--r--drivers/dma/ioat/pci.c9
7 files changed, 28 insertions, 33 deletions
diff --git a/drivers/dma/ioat/dca.c b/drivers/dma/ioat/dca.c
index d6668071bd0d..9b041858d10d 100644
--- a/drivers/dma/ioat/dca.c
+++ b/drivers/dma/ioat/dca.c
@@ -242,8 +242,7 @@ static struct dca_ops ioat_dca_ops = {
242}; 242};
243 243
244 244
245struct dca_provider * __devinit 245struct dca_provider *ioat_dca_init(struct pci_dev *pdev, void __iomem *iobase)
246ioat_dca_init(struct pci_dev *pdev, void __iomem *iobase)
247{ 246{
248 struct dca_provider *dca; 247 struct dca_provider *dca;
249 struct ioat_dca_priv *ioatdca; 248 struct ioat_dca_priv *ioatdca;
@@ -408,8 +407,7 @@ static int ioat2_dca_count_dca_slots(void __iomem *iobase, u16 dca_offset)
408 return slots; 407 return slots;
409} 408}
410 409
411struct dca_provider * __devinit 410struct dca_provider *ioat2_dca_init(struct pci_dev *pdev, void __iomem *iobase)
412ioat2_dca_init(struct pci_dev *pdev, void __iomem *iobase)
413{ 411{
414 struct dca_provider *dca; 412 struct dca_provider *dca;
415 struct ioat_dca_priv *ioatdca; 413 struct ioat_dca_priv *ioatdca;
@@ -621,8 +619,7 @@ static inline int dca3_tag_map_invalid(u8 *tag_map)
621 (tag_map[4] == DCA_TAG_MAP_VALID)); 619 (tag_map[4] == DCA_TAG_MAP_VALID));
622} 620}
623 621
624struct dca_provider * __devinit 622struct dca_provider *ioat3_dca_init(struct pci_dev *pdev, void __iomem *iobase)
625ioat3_dca_init(struct pci_dev *pdev, void __iomem *iobase)
626{ 623{
627 struct dca_provider *dca; 624 struct dca_provider *dca;
628 struct ioat_dca_priv *ioatdca; 625 struct ioat_dca_priv *ioatdca;
diff --git a/drivers/dma/ioat/dma.c b/drivers/dma/ioat/dma.c
index 73b2b65cb1de..1a68a8ba87e6 100644
--- a/drivers/dma/ioat/dma.c
+++ b/drivers/dma/ioat/dma.c
@@ -782,7 +782,7 @@ static void ioat1_dma_start_null_desc(struct ioat_dma_chan *ioat)
782 */ 782 */
783#define IOAT_TEST_SIZE 2000 783#define IOAT_TEST_SIZE 2000
784 784
785static void __devinit ioat_dma_test_callback(void *dma_async_param) 785static void ioat_dma_test_callback(void *dma_async_param)
786{ 786{
787 struct completion *cmp = dma_async_param; 787 struct completion *cmp = dma_async_param;
788 788
@@ -793,7 +793,7 @@ static void __devinit ioat_dma_test_callback(void *dma_async_param)
793 * ioat_dma_self_test - Perform a IOAT transaction to verify the HW works. 793 * ioat_dma_self_test - Perform a IOAT transaction to verify the HW works.
794 * @device: device to be tested 794 * @device: device to be tested
795 */ 795 */
796int __devinit ioat_dma_self_test(struct ioatdma_device *device) 796int ioat_dma_self_test(struct ioatdma_device *device)
797{ 797{
798 int i; 798 int i;
799 u8 *src; 799 u8 *src;
@@ -994,7 +994,7 @@ static void ioat_disable_interrupts(struct ioatdma_device *device)
994 writeb(0, device->reg_base + IOAT_INTRCTRL_OFFSET); 994 writeb(0, device->reg_base + IOAT_INTRCTRL_OFFSET);
995} 995}
996 996
997int __devinit ioat_probe(struct ioatdma_device *device) 997int ioat_probe(struct ioatdma_device *device)
998{ 998{
999 int err = -ENODEV; 999 int err = -ENODEV;
1000 struct dma_device *dma = &device->common; 1000 struct dma_device *dma = &device->common;
@@ -1049,7 +1049,7 @@ err_dma_pool:
1049 return err; 1049 return err;
1050} 1050}
1051 1051
1052int __devinit ioat_register(struct ioatdma_device *device) 1052int ioat_register(struct ioatdma_device *device)
1053{ 1053{
1054 int err = dma_async_device_register(&device->common); 1054 int err = dma_async_device_register(&device->common);
1055 1055
@@ -1183,7 +1183,7 @@ void ioat_kobject_del(struct ioatdma_device *device)
1183 } 1183 }
1184} 1184}
1185 1185
1186int __devinit ioat1_dma_probe(struct ioatdma_device *device, int dca) 1186int ioat1_dma_probe(struct ioatdma_device *device, int dca)
1187{ 1187{
1188 struct pci_dev *pdev = device->pdev; 1188 struct pci_dev *pdev = device->pdev;
1189 struct dma_device *dma; 1189 struct dma_device *dma;
@@ -1216,7 +1216,7 @@ int __devinit ioat1_dma_probe(struct ioatdma_device *device, int dca)
1216 return err; 1216 return err;
1217} 1217}
1218 1218
1219void __devexit ioat_dma_remove(struct ioatdma_device *device) 1219void ioat_dma_remove(struct ioatdma_device *device)
1220{ 1220{
1221 struct dma_device *dma = &device->common; 1221 struct dma_device *dma = &device->common;
1222 1222
diff --git a/drivers/dma/ioat/dma.h b/drivers/dma/ioat/dma.h
index 5e8fe01ba69d..087935f1565f 100644
--- a/drivers/dma/ioat/dma.h
+++ b/drivers/dma/ioat/dma.h
@@ -303,13 +303,12 @@ static inline void ioat_unmap(struct pci_dev *pdev, dma_addr_t addr, size_t len,
303 pci_unmap_page(pdev, addr, len, direction); 303 pci_unmap_page(pdev, addr, len, direction);
304} 304}
305 305
306int __devinit ioat_probe(struct ioatdma_device *device); 306int ioat_probe(struct ioatdma_device *device);
307int __devinit ioat_register(struct ioatdma_device *device); 307int ioat_register(struct ioatdma_device *device);
308int __devinit ioat1_dma_probe(struct ioatdma_device *dev, int dca); 308int ioat1_dma_probe(struct ioatdma_device *dev, int dca);
309int __devinit ioat_dma_self_test(struct ioatdma_device *device); 309int ioat_dma_self_test(struct ioatdma_device *device);
310void __devexit ioat_dma_remove(struct ioatdma_device *device); 310void ioat_dma_remove(struct ioatdma_device *device);
311struct dca_provider * __devinit ioat_dca_init(struct pci_dev *pdev, 311struct dca_provider *ioat_dca_init(struct pci_dev *pdev, void __iomem *iobase);
312 void __iomem *iobase);
313dma_addr_t ioat_get_current_completion(struct ioat_chan_common *chan); 312dma_addr_t ioat_get_current_completion(struct ioat_chan_common *chan);
314void ioat_init_channel(struct ioatdma_device *device, 313void ioat_init_channel(struct ioatdma_device *device,
315 struct ioat_chan_common *chan, int idx); 314 struct ioat_chan_common *chan, int idx);
diff --git a/drivers/dma/ioat/dma_v2.c b/drivers/dma/ioat/dma_v2.c
index b9d667851445..82d4e306c32e 100644
--- a/drivers/dma/ioat/dma_v2.c
+++ b/drivers/dma/ioat/dma_v2.c
@@ -862,7 +862,7 @@ struct kobj_type ioat2_ktype = {
862 .default_attrs = ioat2_attrs, 862 .default_attrs = ioat2_attrs,
863}; 863};
864 864
865int __devinit ioat2_dma_probe(struct ioatdma_device *device, int dca) 865int ioat2_dma_probe(struct ioatdma_device *device, int dca)
866{ 866{
867 struct pci_dev *pdev = device->pdev; 867 struct pci_dev *pdev = device->pdev;
868 struct dma_device *dma; 868 struct dma_device *dma;
diff --git a/drivers/dma/ioat/dma_v2.h b/drivers/dma/ioat/dma_v2.h
index be2a55b95c23..e100f644e344 100644
--- a/drivers/dma/ioat/dma_v2.h
+++ b/drivers/dma/ioat/dma_v2.h
@@ -155,10 +155,10 @@ static inline void ioat2_set_chainaddr(struct ioat2_dma_chan *ioat, u64 addr)
155 chan->reg_base + IOAT2_CHAINADDR_OFFSET_HIGH); 155 chan->reg_base + IOAT2_CHAINADDR_OFFSET_HIGH);
156} 156}
157 157
158int __devinit ioat2_dma_probe(struct ioatdma_device *dev, int dca); 158int ioat2_dma_probe(struct ioatdma_device *dev, int dca);
159int __devinit ioat3_dma_probe(struct ioatdma_device *dev, int dca); 159int ioat3_dma_probe(struct ioatdma_device *dev, int dca);
160struct dca_provider * __devinit ioat2_dca_init(struct pci_dev *pdev, void __iomem *iobase); 160struct dca_provider *ioat2_dca_init(struct pci_dev *pdev, void __iomem *iobase);
161struct dca_provider * __devinit ioat3_dca_init(struct pci_dev *pdev, void __iomem *iobase); 161struct dca_provider *ioat3_dca_init(struct pci_dev *pdev, void __iomem *iobase);
162int ioat2_check_space_lock(struct ioat2_dma_chan *ioat, int num_descs); 162int ioat2_check_space_lock(struct ioat2_dma_chan *ioat, int num_descs);
163int ioat2_enumerate_channels(struct ioatdma_device *device); 163int ioat2_enumerate_channels(struct ioatdma_device *device);
164struct dma_async_tx_descriptor * 164struct dma_async_tx_descriptor *
diff --git a/drivers/dma/ioat/dma_v3.c b/drivers/dma/ioat/dma_v3.c
index f7f1dc62c15c..e5fc944de1f0 100644
--- a/drivers/dma/ioat/dma_v3.c
+++ b/drivers/dma/ioat/dma_v3.c
@@ -836,7 +836,7 @@ ioat3_prep_interrupt_lock(struct dma_chan *c, unsigned long flags)
836 return &desc->txd; 836 return &desc->txd;
837} 837}
838 838
839static void __devinit ioat3_dma_test_callback(void *dma_async_param) 839static void ioat3_dma_test_callback(void *dma_async_param)
840{ 840{
841 struct completion *cmp = dma_async_param; 841 struct completion *cmp = dma_async_param;
842 842
@@ -844,7 +844,7 @@ static void __devinit ioat3_dma_test_callback(void *dma_async_param)
844} 844}
845 845
846#define IOAT_NUM_SRC_TEST 6 /* must be <= 8 */ 846#define IOAT_NUM_SRC_TEST 6 /* must be <= 8 */
847static int __devinit ioat_xor_val_self_test(struct ioatdma_device *device) 847static int ioat_xor_val_self_test(struct ioatdma_device *device)
848{ 848{
849 int i, src_idx; 849 int i, src_idx;
850 struct page *dest; 850 struct page *dest;
@@ -1096,7 +1096,7 @@ out:
1096 return err; 1096 return err;
1097} 1097}
1098 1098
1099static int __devinit ioat3_dma_self_test(struct ioatdma_device *device) 1099static int ioat3_dma_self_test(struct ioatdma_device *device)
1100{ 1100{
1101 int rc = ioat_dma_self_test(device); 1101 int rc = ioat_dma_self_test(device);
1102 1102
@@ -1187,7 +1187,7 @@ static bool is_snb_ioat(struct pci_dev *pdev)
1187 } 1187 }
1188} 1188}
1189 1189
1190int __devinit ioat3_dma_probe(struct ioatdma_device *device, int dca) 1190int ioat3_dma_probe(struct ioatdma_device *device, int dca)
1191{ 1191{
1192 struct pci_dev *pdev = device->pdev; 1192 struct pci_dev *pdev = device->pdev;
1193 int dca_en = system_has_dca_enabled(pdev); 1193 int dca_en = system_has_dca_enabled(pdev);
diff --git a/drivers/dma/ioat/pci.c b/drivers/dma/ioat/pci.c
index bfa9a3536e09..4f686c527ab6 100644
--- a/drivers/dma/ioat/pci.c
+++ b/drivers/dma/ioat/pci.c
@@ -109,9 +109,8 @@ static struct pci_device_id ioat_pci_tbl[] = {
109}; 109};
110MODULE_DEVICE_TABLE(pci, ioat_pci_tbl); 110MODULE_DEVICE_TABLE(pci, ioat_pci_tbl);
111 111
112static int __devinit ioat_pci_probe(struct pci_dev *pdev, 112static int ioat_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id);
113 const struct pci_device_id *id); 113static void ioat_remove(struct pci_dev *pdev);
114static void __devexit ioat_remove(struct pci_dev *pdev);
115 114
116static int ioat_dca_enabled = 1; 115static int ioat_dca_enabled = 1;
117module_param(ioat_dca_enabled, int, 0644); 116module_param(ioat_dca_enabled, int, 0644);
@@ -141,7 +140,7 @@ alloc_ioatdma(struct pci_dev *pdev, void __iomem *iobase)
141 return d; 140 return d;
142} 141}
143 142
144static int __devinit ioat_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) 143static int ioat_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
145{ 144{
146 void __iomem * const *iomap; 145 void __iomem * const *iomap;
147 struct device *dev = &pdev->dev; 146 struct device *dev = &pdev->dev;
@@ -195,7 +194,7 @@ static int __devinit ioat_pci_probe(struct pci_dev *pdev, const struct pci_devic
195 return 0; 194 return 0;
196} 195}
197 196
198static void __devexit ioat_remove(struct pci_dev *pdev) 197static void ioat_remove(struct pci_dev *pdev)
199{ 198{
200 struct ioatdma_device *device = pci_get_drvdata(pdev); 199 struct ioatdma_device *device = pci_get_drvdata(pdev);
201 200