diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-06-25 08:52:23 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-08-22 06:20:03 -0400 |
commit | 9389339f28c2f0a32ad5043a1fe05444a7f3e677 (patch) | |
tree | 34d74f497b6aa222fbf0ba3ba18707b53bab18fa /arch/s390/pci | |
parent | a9a6f0341df9a634a98aaf252c89962af77d1376 (diff) |
s390/pci: cleanup function names
Rename s390pci_xyz to zpci_xxz and set_irq_ctrl to zpci_set_irq_ctrl.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/pci')
-rw-r--r-- | arch/s390/pci/pci.c | 12 | ||||
-rw-r--r-- | arch/s390/pci/pci_dma.c | 4 | ||||
-rw-r--r-- | arch/s390/pci/pci_insn.c | 18 |
3 files changed, 17 insertions, 17 deletions
diff --git a/arch/s390/pci/pci.c b/arch/s390/pci/pci.c index e2956ad39a4f..5b8feffe65dd 100644 --- a/arch/s390/pci/pci.c +++ b/arch/s390/pci/pci.c | |||
@@ -179,7 +179,7 @@ static int zpci_register_airq(struct zpci_dev *zdev, unsigned int aisb, | |||
179 | fib->aisb = (u64) bucket->aisb + aisb / 8; | 179 | fib->aisb = (u64) bucket->aisb + aisb / 8; |
180 | fib->aisbo = aisb & ZPCI_MSI_MASK; | 180 | fib->aisbo = aisb & ZPCI_MSI_MASK; |
181 | 181 | ||
182 | rc = s390pci_mod_fc(req, fib); | 182 | rc = zpci_mod_fc(req, fib); |
183 | pr_debug("%s mpcifc returned noi: %d\n", __func__, fib->noi); | 183 | pr_debug("%s mpcifc returned noi: %d\n", __func__, fib->noi); |
184 | 184 | ||
185 | free_page((unsigned long) fib); | 185 | free_page((unsigned long) fib); |
@@ -209,7 +209,7 @@ static int mod_pci(struct zpci_dev *zdev, int fn, u8 dmaas, struct mod_pci_args | |||
209 | fib->iota = args->iota; | 209 | fib->iota = args->iota; |
210 | fib->fmb_addr = args->fmb_addr; | 210 | fib->fmb_addr = args->fmb_addr; |
211 | 211 | ||
212 | rc = s390pci_mod_fc(req, fib); | 212 | rc = zpci_mod_fc(req, fib); |
213 | free_page((unsigned long) fib); | 213 | free_page((unsigned long) fib); |
214 | return rc; | 214 | return rc; |
215 | } | 215 | } |
@@ -283,7 +283,7 @@ static int zpci_cfg_load(struct zpci_dev *zdev, int offset, u32 *val, u8 len) | |||
283 | u64 data; | 283 | u64 data; |
284 | int rc; | 284 | int rc; |
285 | 285 | ||
286 | rc = s390pci_load(&data, req, offset); | 286 | rc = zpci_load(&data, req, offset); |
287 | if (!rc) { | 287 | if (!rc) { |
288 | data = data << ((8 - len) * 8); | 288 | data = data << ((8 - len) * 8); |
289 | data = le64_to_cpu(data); | 289 | data = le64_to_cpu(data); |
@@ -301,7 +301,7 @@ static int zpci_cfg_store(struct zpci_dev *zdev, int offset, u32 val, u8 len) | |||
301 | 301 | ||
302 | data = cpu_to_le64(data); | 302 | data = cpu_to_le64(data); |
303 | data = data >> ((8 - len) * 8); | 303 | data = data >> ((8 - len) * 8); |
304 | rc = s390pci_store(data, req, offset); | 304 | rc = zpci_store(data, req, offset); |
305 | return rc; | 305 | return rc; |
306 | } | 306 | } |
307 | 307 | ||
@@ -448,7 +448,7 @@ scan: | |||
448 | } | 448 | } |
449 | 449 | ||
450 | /* enable interrupts again */ | 450 | /* enable interrupts again */ |
451 | set_irq_ctrl(SIC_IRQ_MODE_SINGLE, NULL, PCI_ISC); | 451 | zpci_set_irq_ctrl(SIC_IRQ_MODE_SINGLE, NULL, PCI_ISC); |
452 | 452 | ||
453 | /* check again to not lose initiative */ | 453 | /* check again to not lose initiative */ |
454 | rmb(); | 454 | rmb(); |
@@ -727,7 +727,7 @@ static int __init zpci_irq_init(void) | |||
727 | per_cpu(next_sbit, cpu) = 0; | 727 | per_cpu(next_sbit, cpu) = 0; |
728 | 728 | ||
729 | spin_lock_init(&bucket->lock); | 729 | spin_lock_init(&bucket->lock); |
730 | set_irq_ctrl(SIC_IRQ_MODE_SINGLE, NULL, PCI_ISC); | 730 | zpci_set_irq_ctrl(SIC_IRQ_MODE_SINGLE, NULL, PCI_ISC); |
731 | return 0; | 731 | return 0; |
732 | 732 | ||
733 | out_ai: | 733 | out_ai: |
diff --git a/arch/s390/pci/pci_dma.c b/arch/s390/pci/pci_dma.c index a2343c1f6e04..2125310aa891 100644 --- a/arch/s390/pci/pci_dma.c +++ b/arch/s390/pci/pci_dma.c | |||
@@ -170,8 +170,8 @@ static int dma_update_trans(struct zpci_dev *zdev, unsigned long pa, | |||
170 | */ | 170 | */ |
171 | goto no_refresh; | 171 | goto no_refresh; |
172 | 172 | ||
173 | rc = s390pci_refresh_trans((u64) zdev->fh << 32, start_dma_addr, | 173 | rc = zpci_refresh_trans((u64) zdev->fh << 32, start_dma_addr, |
174 | nr_pages * PAGE_SIZE); | 174 | nr_pages * PAGE_SIZE); |
175 | 175 | ||
176 | no_refresh: | 176 | no_refresh: |
177 | spin_unlock_irqrestore(&zdev->dma_table_lock, irq_flags); | 177 | spin_unlock_irqrestore(&zdev->dma_table_lock, irq_flags); |
diff --git a/arch/s390/pci/pci_insn.c b/arch/s390/pci/pci_insn.c index 22eeb9d7ffeb..85267c058af8 100644 --- a/arch/s390/pci/pci_insn.c +++ b/arch/s390/pci/pci_insn.c | |||
@@ -27,7 +27,7 @@ static inline u8 __mpcifc(u64 req, struct zpci_fib *fib, u8 *status) | |||
27 | return cc; | 27 | return cc; |
28 | } | 28 | } |
29 | 29 | ||
30 | int s390pci_mod_fc(u64 req, struct zpci_fib *fib) | 30 | int zpci_mod_fc(u64 req, struct zpci_fib *fib) |
31 | { | 31 | { |
32 | u8 cc, status; | 32 | u8 cc, status; |
33 | 33 | ||
@@ -61,7 +61,7 @@ static inline u8 __rpcit(u64 fn, u64 addr, u64 range, u8 *status) | |||
61 | return cc; | 61 | return cc; |
62 | } | 62 | } |
63 | 63 | ||
64 | int s390pci_refresh_trans(u64 fn, u64 addr, u64 range) | 64 | int zpci_refresh_trans(u64 fn, u64 addr, u64 range) |
65 | { | 65 | { |
66 | u8 cc, status; | 66 | u8 cc, status; |
67 | 67 | ||
@@ -78,7 +78,7 @@ int s390pci_refresh_trans(u64 fn, u64 addr, u64 range) | |||
78 | } | 78 | } |
79 | 79 | ||
80 | /* Set Interruption Controls */ | 80 | /* Set Interruption Controls */ |
81 | void set_irq_ctrl(u16 ctl, char *unused, u8 isc) | 81 | void zpci_set_irq_ctrl(u16 ctl, char *unused, u8 isc) |
82 | { | 82 | { |
83 | asm volatile ( | 83 | asm volatile ( |
84 | " .insn rsy,0xeb00000000d1,%[ctl],%[isc],%[u]\n" | 84 | " .insn rsy,0xeb00000000d1,%[ctl],%[isc],%[u]\n" |
@@ -109,7 +109,7 @@ static inline int __pcilg(u64 *data, u64 req, u64 offset, u8 *status) | |||
109 | return cc; | 109 | return cc; |
110 | } | 110 | } |
111 | 111 | ||
112 | int s390pci_load(u64 *data, u64 req, u64 offset) | 112 | int zpci_load(u64 *data, u64 req, u64 offset) |
113 | { | 113 | { |
114 | u8 status; | 114 | u8 status; |
115 | int cc; | 115 | int cc; |
@@ -125,7 +125,7 @@ int s390pci_load(u64 *data, u64 req, u64 offset) | |||
125 | __func__, cc, status, req, offset); | 125 | __func__, cc, status, req, offset); |
126 | return (cc > 0) ? -EIO : cc; | 126 | return (cc > 0) ? -EIO : cc; |
127 | } | 127 | } |
128 | EXPORT_SYMBOL_GPL(s390pci_load); | 128 | EXPORT_SYMBOL_GPL(zpci_load); |
129 | 129 | ||
130 | /* PCI Store */ | 130 | /* PCI Store */ |
131 | static inline int __pcistg(u64 data, u64 req, u64 offset, u8 *status) | 131 | static inline int __pcistg(u64 data, u64 req, u64 offset, u8 *status) |
@@ -147,7 +147,7 @@ static inline int __pcistg(u64 data, u64 req, u64 offset, u8 *status) | |||
147 | return cc; | 147 | return cc; |
148 | } | 148 | } |
149 | 149 | ||
150 | int s390pci_store(u64 data, u64 req, u64 offset) | 150 | int zpci_store(u64 data, u64 req, u64 offset) |
151 | { | 151 | { |
152 | u8 status; | 152 | u8 status; |
153 | int cc; | 153 | int cc; |
@@ -163,7 +163,7 @@ int s390pci_store(u64 data, u64 req, u64 offset) | |||
163 | __func__, cc, status, req, offset); | 163 | __func__, cc, status, req, offset); |
164 | return (cc > 0) ? -EIO : cc; | 164 | return (cc > 0) ? -EIO : cc; |
165 | } | 165 | } |
166 | EXPORT_SYMBOL_GPL(s390pci_store); | 166 | EXPORT_SYMBOL_GPL(zpci_store); |
167 | 167 | ||
168 | /* PCI Store Block */ | 168 | /* PCI Store Block */ |
169 | static inline int __pcistb(const u64 *data, u64 req, u64 offset, u8 *status) | 169 | static inline int __pcistb(const u64 *data, u64 req, u64 offset, u8 *status) |
@@ -183,7 +183,7 @@ static inline int __pcistb(const u64 *data, u64 req, u64 offset, u8 *status) | |||
183 | return cc; | 183 | return cc; |
184 | } | 184 | } |
185 | 185 | ||
186 | int s390pci_store_block(const u64 *data, u64 req, u64 offset) | 186 | int zpci_store_block(const u64 *data, u64 req, u64 offset) |
187 | { | 187 | { |
188 | u8 status; | 188 | u8 status; |
189 | int cc; | 189 | int cc; |
@@ -199,4 +199,4 @@ int s390pci_store_block(const u64 *data, u64 req, u64 offset) | |||
199 | __func__, cc, status, req, offset); | 199 | __func__, cc, status, req, offset); |
200 | return (cc > 0) ? -EIO : cc; | 200 | return (cc > 0) ? -EIO : cc; |
201 | } | 201 | } |
202 | EXPORT_SYMBOL_GPL(s390pci_store_block); | 202 | EXPORT_SYMBOL_GPL(zpci_store_block); |