Skip to content

Commit 3372de5

Browse files
davejiangVinod Koul
authored andcommitted
dmaengine: ioatdma: removal of dma_v3.c and relevant ioat3 references
Moving the relevant functions to their respective .c files and removal of dma_v3.c file. Also removed various ioat3 references when appropriate. Signed-off-by: Dave Jiang <[email protected]> Acked-by: Dan Williams <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
1 parent 599d49d commit 3372de5

File tree

6 files changed

+487
-617
lines changed

6 files changed

+487
-617
lines changed

drivers/dma/ioat/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
obj-$(CONFIG_INTEL_IOATDMA) += ioatdma.o
2-
ioatdma-y := init.o dma.o dma_v3.o prep.o dca.o sysfs.o
2+
ioatdma-y := init.o dma.o prep.o dca.o sysfs.o

drivers/dma/ioat/dca.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static int ioat_dca_dev_managed(struct dca_provider *dca,
132132
return 0;
133133
}
134134

135-
static int ioat3_dca_add_requester(struct dca_provider *dca, struct device *dev)
135+
static int ioat_dca_add_requester(struct dca_provider *dca, struct device *dev)
136136
{
137137
struct ioat_dca_priv *ioatdca = dca_priv(dca);
138138
struct pci_dev *pdev;
@@ -166,7 +166,7 @@ static int ioat3_dca_add_requester(struct dca_provider *dca, struct device *dev)
166166
return -EFAULT;
167167
}
168168

169-
static int ioat3_dca_remove_requester(struct dca_provider *dca,
169+
static int ioat_dca_remove_requester(struct dca_provider *dca,
170170
struct device *dev)
171171
{
172172
struct ioat_dca_priv *ioatdca = dca_priv(dca);
@@ -193,7 +193,7 @@ static int ioat3_dca_remove_requester(struct dca_provider *dca,
193193
return -ENODEV;
194194
}
195195

196-
static u8 ioat3_dca_get_tag(struct dca_provider *dca,
196+
static u8 ioat_dca_get_tag(struct dca_provider *dca,
197197
struct device *dev,
198198
int cpu)
199199
{
@@ -224,14 +224,14 @@ static u8 ioat3_dca_get_tag(struct dca_provider *dca,
224224
return tag;
225225
}
226226

227-
static struct dca_ops ioat3_dca_ops = {
228-
.add_requester = ioat3_dca_add_requester,
229-
.remove_requester = ioat3_dca_remove_requester,
230-
.get_tag = ioat3_dca_get_tag,
227+
static struct dca_ops ioat_dca_ops = {
228+
.add_requester = ioat_dca_add_requester,
229+
.remove_requester = ioat_dca_remove_requester,
230+
.get_tag = ioat_dca_get_tag,
231231
.dev_managed = ioat_dca_dev_managed,
232232
};
233233

234-
static int ioat3_dca_count_dca_slots(void *iobase, u16 dca_offset)
234+
static int ioat_dca_count_dca_slots(void *iobase, u16 dca_offset)
235235
{
236236
int slots = 0;
237237
u32 req;
@@ -266,7 +266,7 @@ static inline int dca3_tag_map_invalid(u8 *tag_map)
266266
(tag_map[4] == DCA_TAG_MAP_VALID));
267267
}
268268

269-
struct dca_provider *ioat3_dca_init(struct pci_dev *pdev, void __iomem *iobase)
269+
struct dca_provider *ioat_dca_init(struct pci_dev *pdev, void __iomem *iobase)
270270
{
271271
struct dca_provider *dca;
272272
struct ioat_dca_priv *ioatdca;
@@ -293,11 +293,11 @@ struct dca_provider *ioat3_dca_init(struct pci_dev *pdev, void __iomem *iobase)
293293
if (dca_offset == 0)
294294
return NULL;
295295

296-
slots = ioat3_dca_count_dca_slots(iobase, dca_offset);
296+
slots = ioat_dca_count_dca_slots(iobase, dca_offset);
297297
if (slots == 0)
298298
return NULL;
299299

300-
dca = alloc_dca_provider(&ioat3_dca_ops,
300+
dca = alloc_dca_provider(&ioat_dca_ops,
301301
sizeof(*ioatdca)
302302
+ (sizeof(struct ioat_dca_slot) * slots));
303303
if (!dca)

0 commit comments

Comments
 (0)