Skip to content

Commit 8ef5b28

Browse files
SShubh123hdeller
authored andcommitted
parisc: ccio-dma.c: Added tab instead of spaces
Single spaces has been removed and replaced with tabs. This is done to maintain code uniformity. Signed-off-by: Shubhankar Kuranagatti <shubhankarvk@gmail.com> Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Helge Deller <deller@gmx.de>
1 parent ab9c13a commit 8ef5b28

1 file changed

Lines changed: 43 additions & 43 deletions

File tree

drivers/parisc/ccio-dma.c

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -111,29 +111,29 @@
111111
#define CMD_TLB_PURGE 33 /* IO_COMMAND to Purge I/O TLB entry */
112112

113113
struct ioa_registers {
114-
/* Runway Supervisory Set */
115-
int32_t unused1[12];
116-
uint32_t io_command; /* Offset 12 */
117-
uint32_t io_status; /* Offset 13 */
118-
uint32_t io_control; /* Offset 14 */
119-
int32_t unused2[1];
120-
121-
/* Runway Auxiliary Register Set */
122-
uint32_t io_err_resp; /* Offset 0 */
123-
uint32_t io_err_info; /* Offset 1 */
124-
uint32_t io_err_req; /* Offset 2 */
125-
uint32_t io_err_resp_hi; /* Offset 3 */
126-
uint32_t io_tlb_entry_m; /* Offset 4 */
127-
uint32_t io_tlb_entry_l; /* Offset 5 */
128-
uint32_t unused3[1];
129-
uint32_t io_pdir_base; /* Offset 7 */
130-
uint32_t io_io_low_hv; /* Offset 8 */
131-
uint32_t io_io_high_hv; /* Offset 9 */
132-
uint32_t unused4[1];
133-
uint32_t io_chain_id_mask; /* Offset 11 */
134-
uint32_t unused5[2];
135-
uint32_t io_io_low; /* Offset 14 */
136-
uint32_t io_io_high; /* Offset 15 */
114+
/* Runway Supervisory Set */
115+
int32_t unused1[12];
116+
uint32_t io_command; /* Offset 12 */
117+
uint32_t io_status; /* Offset 13 */
118+
uint32_t io_control; /* Offset 14 */
119+
int32_t unused2[1];
120+
121+
/* Runway Auxiliary Register Set */
122+
uint32_t io_err_resp; /* Offset 0 */
123+
uint32_t io_err_info; /* Offset 1 */
124+
uint32_t io_err_req; /* Offset 2 */
125+
uint32_t io_err_resp_hi; /* Offset 3 */
126+
uint32_t io_tlb_entry_m; /* Offset 4 */
127+
uint32_t io_tlb_entry_l; /* Offset 5 */
128+
uint32_t unused3[1];
129+
uint32_t io_pdir_base; /* Offset 7 */
130+
uint32_t io_io_low_hv; /* Offset 8 */
131+
uint32_t io_io_high_hv; /* Offset 9 */
132+
uint32_t unused4[1];
133+
uint32_t io_chain_id_mask; /* Offset 11 */
134+
uint32_t unused5[2];
135+
uint32_t io_io_low; /* Offset 14 */
136+
uint32_t io_io_high; /* Offset 15 */
137137
};
138138

139139
/*
@@ -198,7 +198,7 @@ struct ioa_registers {
198198
** In order for a Runway address to reside within GSC+ extended address space:
199199
** Runway Address [0:7] must identically compare to 8'b11111111
200200
** Runway Address [8:11] must be equal to IO_IO_LOW(_HV)[16:19]
201-
** Runway Address [12:23] must be greater than or equal to
201+
** Runway Address [12:23] must be greater than or equal to
202202
** IO_IO_LOW(_HV)[20:31] and less than IO_IO_HIGH(_HV)[20:31].
203203
** Runway Address [24:39] is not used in the comparison.
204204
**
@@ -226,10 +226,10 @@ struct ioc {
226226
struct ioa_registers __iomem *ioc_regs; /* I/O MMU base address */
227227
u8 *res_map; /* resource map, bit == pdir entry */
228228
u64 *pdir_base; /* physical base address */
229-
u32 pdir_size; /* bytes, function of IOV Space size */
230-
u32 res_hint; /* next available IOVP -
229+
u32 pdir_size; /* bytes, function of IOV Space size */
230+
u32 res_hint; /* next available IOVP -
231231
circular search */
232-
u32 res_size; /* size of resource map in bytes */
232+
u32 res_size; /* size of resource map in bytes */
233233
spinlock_t res_lock;
234234

235235
#ifdef CCIO_COLLECT_STATS
@@ -249,7 +249,7 @@ struct ioc {
249249
unsigned short cujo20_bug;
250250

251251
/* STUFF We don't need in performance path */
252-
u32 chainid_shift; /* specify bit location of chain_id */
252+
u32 chainid_shift; /* specify bit location of chain_id */
253253
struct ioc *next; /* Linked list of discovered iocs */
254254
const char *name; /* device name from firmware */
255255
unsigned int hw_path; /* the hardware path this ioc is associatd with */
@@ -293,7 +293,7 @@ static int ioc_count;
293293
** cause the kernel to panic anyhow.
294294
*/
295295
#define CCIO_SEARCH_LOOP(ioc, res_idx, mask, size) \
296-
for(; res_ptr < res_end; ++res_ptr) { \
296+
for (; res_ptr < res_end; ++res_ptr) { \
297297
int ret;\
298298
unsigned int idx;\
299299
idx = (unsigned int)((unsigned long)res_ptr - (unsigned long)ioc->res_map); \
@@ -309,9 +309,9 @@ static int ioc_count;
309309
#define CCIO_FIND_FREE_MAPPING(ioa, res_idx, mask, size) \
310310
u##size *res_ptr = (u##size *)&((ioc)->res_map[ioa->res_hint & ~((size >> 3) - 1)]); \
311311
u##size *res_end = (u##size *)&(ioc)->res_map[ioa->res_size]; \
312-
CCIO_SEARCH_LOOP(ioc, res_idx, mask, size); \
313-
res_ptr = (u##size *)&(ioc)->res_map[0]; \
314-
CCIO_SEARCH_LOOP(ioa, res_idx, mask, size);
312+
CCIO_SEARCH_LOOP(ioc, res_idx, mask, size); \
313+
res_ptr = (u##size *)&(ioc)->res_map[0]; \
314+
CCIO_SEARCH_LOOP(ioa, res_idx, mask, size);
315315

316316
/*
317317
** Find available bit in this ioa's resource map.
@@ -348,9 +348,9 @@ ccio_alloc_range(struct ioc *ioc, struct device *dev, size_t size)
348348

349349
BUG_ON(pages_needed == 0);
350350
BUG_ON((pages_needed * IOVP_SIZE) > DMA_CHUNK_SIZE);
351-
352-
DBG_RES("%s() size: %d pages_needed %d\n",
353-
__func__, size, pages_needed);
351+
352+
DBG_RES("%s() size: %d pages_needed %d\n",
353+
__func__, size, pages_needed);
354354

355355
/*
356356
** "seek and ye shall find"...praying never hurts either...
@@ -416,7 +416,7 @@ ccio_alloc_range(struct ioc *ioc, struct device *dev, size_t size)
416416
#define CCIO_FREE_MAPPINGS(ioc, res_idx, mask, size) \
417417
u##size *res_ptr = (u##size *)&((ioc)->res_map[res_idx]); \
418418
BUG_ON((*res_ptr & mask) != mask); \
419-
*res_ptr &= ~(mask);
419+
*res_ptr &= ~(mask);
420420

421421
/**
422422
* ccio_free_range - Free pages from the ioc's resource map.
@@ -845,7 +845,7 @@ static void *
845845
ccio_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t flag,
846846
unsigned long attrs)
847847
{
848-
void *ret;
848+
void *ret;
849849
#if 0
850850
/* GRANT Need to establish hierarchy for non-PCI devs as well
851851
** and then provide matching gsc_map_xxx() functions for them as well.
@@ -856,7 +856,7 @@ ccio_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t flag,
856856
return 0;
857857
}
858858
#endif
859-
ret = (void *) __get_free_pages(flag, get_order(size));
859+
ret = (void *) __get_free_pages(flag, get_order(size));
860860

861861
if (ret) {
862862
memset(ret, 0, size);
@@ -1022,8 +1022,8 @@ static const struct dma_map_ops ccio_ops = {
10221022
.free = ccio_free,
10231023
.map_page = ccio_map_page,
10241024
.unmap_page = ccio_unmap_page,
1025-
.map_sg = ccio_map_sg,
1026-
.unmap_sg = ccio_unmap_sg,
1025+
.map_sg = ccio_map_sg,
1026+
.unmap_sg = ccio_unmap_sg,
10271027
.get_sgtable = dma_common_get_sgtable,
10281028
.alloc_pages = dma_common_alloc_pages,
10291029
.free_pages = dma_common_free_pages,
@@ -1080,7 +1080,7 @@ static int ccio_proc_info(struct seq_file *m, void *p)
10801080
max = ioc->usingle_pages - ioc->usg_pages;
10811081
seq_printf(m, "pci_unmap_single: %8ld calls %8ld pages (avg %d/1000)\n",
10821082
min, max, (int)((max * 1000)/min));
1083-
1083+
10841084
seq_printf(m, "pci_map_sg() : %8ld calls %8ld pages (avg %d/1000)\n",
10851085
ioc->msg_calls, ioc->msg_pages,
10861086
(int)((ioc->msg_pages * 1000)/ioc->msg_calls));
@@ -1169,7 +1169,7 @@ void __init ccio_cujo20_fixup(struct parisc_device *cujo, u32 iovp)
11691169
idx = PDIR_INDEX(iovp) >> 3;
11701170

11711171
while (idx < ioc->res_size) {
1172-
res_ptr[idx] |= 0xff;
1172+
res_ptr[idx] |= 0xff;
11731173
idx += PDIR_INDEX(CUJO_20_STEP) >> 3;
11741174
}
11751175
}
@@ -1297,7 +1297,7 @@ ccio_ioc_init(struct ioc *ioc)
12971297
DBG_INIT(" base %p\n", ioc->pdir_base);
12981298

12991299
/* resource map size dictated by pdir_size */
1300-
ioc->res_size = (ioc->pdir_size / sizeof(u64)) >> 3;
1300+
ioc->res_size = (ioc->pdir_size / sizeof(u64)) >> 3;
13011301
DBG_INIT("%s() res_size 0x%x\n", __func__, ioc->res_size);
13021302

13031303
ioc->res_map = (u8 *)__get_free_pages(GFP_KERNEL,

0 commit comments

Comments
 (0)