···213213 if ( NULL != p )214214 {215215 memcpy(p, dev, sizeof(dbdev_tab_t));216216- p->dev_id = DSCR_DEV2CUSTOM_ID(new_id,dev->dev_id);216216+ p->dev_id = DSCR_DEV2CUSTOM_ID(new_id, dev->dev_id);217217 ret = p->dev_id;218218 new_id++;219219#if 0···671671 * parts. If it is fixedin the future, these dma_cache_inv will just672672 * be nothing more than empty macros. See io.h.673673 * */674674- dma_cache_inv((unsigned long)buf,nbytes);674674+ dma_cache_inv((unsigned long)buf, nbytes);675675 dp->dscr_cmd0 |= DSCR_CMD0_V; /* Let it rip */676676 au_sync();677677 dma_cache_wback_inv((unsigned long)dp, sizeof(dp));
+1-1
arch/mips/au1000/common/dbg_io.c
···53535454/* memory-mapped read/write of the port */5555#define UART16550_READ(y) (au_readl(DEBUG_BASE + y) & 0xff)5656-#define UART16550_WRITE(y,z) (au_writel(z&0xff, DEBUG_BASE + y))5656+#define UART16550_WRITE(y, z) (au_writel(z&0xff, DEBUG_BASE + y))57575858extern unsigned long get_au1x00_uart_baud_base(void);5959extern unsigned long cal_r4koff(void);
···4848/* convert denormal to normalized with extended exponent */4949#define SPDNORMx(m,e) \5050 while( (m >> SP_MBITS) == 0) { m <<= 1; e--; }5151-#define SPDNORMX SPDNORMx(xm,xe)5252-#define SPDNORMY SPDNORMx(ym,ye)5151+#define SPDNORMX SPDNORMx(xm, xe)5252+#define SPDNORMY SPDNORMx(ym, ye)53535454static __inline ieee754sp buildsp(int s, int bx, unsigned m)5555{···7777extern ieee754sp ieee754sp_format(int, int, unsigned);787879798080-#define SPNORMRET2(s,e,m,name,a0,a1) \8080+#define SPNORMRET2(s, e, m, name, a0, a1) \8181{ \8282- ieee754sp V = ieee754sp_format(s,e,m); \8282+ ieee754sp V = ieee754sp_format(s, e, m); \8383 if(TSTX()) \8484- return ieee754sp_xcpt(V,name,a0,a1); \8484+ return ieee754sp_xcpt(V, name, a0, a1); \8585 else \8686 return V; \8787}88888989-#define SPNORMRET1(s,e,m,name,a0) SPNORMRET2(s,e,m,name,a0,a0)8989+#define SPNORMRET1(s, e, m, name, a0) SPNORMRET2(s, e, m, name, a0, a0)
+1-1
arch/mips/mips-boards/atlas/atlas_gdb.c
···2222#include <asm/mips-boards/saa9730_uart.h>23232424#define INB(a) inb((unsigned long)a)2525-#define OUTB(x,a) outb(x,(unsigned long)a)2525+#define OUTB(x, a) outb(x, (unsigned long)a)26262727/*2828 * This is the interface to the remote debugger stub
+1-1
arch/mips/mips-boards/malta/malta_int.c
···124124{125125 unsigned int intedge, intsteer, pcicmd, pcibadaddr;126126 unsigned int pcimstat, intisr, inten, intpol;127127- unsigned int intrcause,datalo,datahi;127127+ unsigned int intrcause, datalo, datahi;128128 struct pt_regs *regs = get_irq_regs();129129130130 printk("CoreHI interrupt, shouldn't happen, so we die here!!!\n");
···5656 int cpu = smp_processor_id();57575858 if (cpu_context(cpu, mm) != 0)5959- drop_mmu_context(mm,cpu);5959+ drop_mmu_context(mm, cpu);6060}61616262void local_flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
···176176 unsigned long gp = (unsigned long)task_thread_info(idle);177177 unsigned long sp = __KSTK_TOS(idle);178178179179- LAUNCH_SLAVE(cputonasid(cpu),cputoslice(cpu),179179+ LAUNCH_SLAVE(cputonasid(cpu), cputoslice(cpu),180180 (launch_proc_t)MAPPED_KERN_RW_TO_K0(smp_bootstrap),181181 0, (void *) sp, (void *) gp);182182}
+4-4
arch/mips/sibyte/bcm1480/irq.c
···289289 if (irq >= BCM1480_NR_IRQS)290290 return -EINVAL;291291292292- spin_lock_irqsave(&desc->lock,flags);292292+ spin_lock_irqsave(&desc->lock, flags);293293 /* Don't allow sharing at all for these */294294 if (desc->action != NULL)295295 retval = -EBUSY;···297297 desc->action = &bcm1480_dummy_action;298298 desc->depth = 0;299299 }300300- spin_unlock_irqrestore(&desc->lock,flags);300300+ spin_unlock_irqrestore(&desc->lock, flags);301301 return 0;302302}303303···431431432432#include <linux/delay.h>433433434434-#define duart_out(reg, val) csr_out32(val, IOADDR(A_DUART_CHANREG(kgdb_port,reg)))435435-#define duart_in(reg) csr_in32(IOADDR(A_DUART_CHANREG(kgdb_port,reg)))434434+#define duart_out(reg, val) csr_out32(val, IOADDR(A_DUART_CHANREG(kgdb_port, reg)))435435+#define duart_in(reg) csr_in32(IOADDR(A_DUART_CHANREG(kgdb_port, reg)))436436437437static void bcm1480_kgdb_interrupt(void)438438{
+1-1
arch/mips/sibyte/cfe/console.c
···1414{1515 int i, last, written;16161717- for (i=0,last=0; i<count; i++) {1717+ for (i=0, last=0; i<count; i++) {1818 if (!str[i])1919 /* XXXKW can/should this ever happen? */2020 return;
···122122 printk( "%s(%s:%u)::%s", __FUNCTION__, __FILE__, __LINE__, tmp ); \123123 }124124#else125125-#define TOSHIBA_RBTX4927_SETUP_DPRINTK(flag,str...)125125+#define TOSHIBA_RBTX4927_SETUP_DPRINTK(flag, str...)126126#endif127127128128/* These functions are used for rebooting or halting the machine*/···497497 "Internal");498498 called = 1;499499 }500500- printk("%s PCIC --%s PCICLK:",toshiba_name,500500+ printk("%s PCIC --%s PCICLK:", toshiba_name,501501 (tx4927_ccfgptr->ccfg & TX4927_CCFG_PCI66) ? " PCI66" : "");502502 if (tx4927_ccfgptr->pcfg & TX4927_PCFG_PCICLKEN_ALL) {503503 int pciclk = 0;
+2-2
arch/mips/tx4938/toshiba_rbtx4938/setup.c
···457457static int __init tx4938_pcibios_init(void)458458{459459 unsigned long mem_base[2];460460- unsigned long mem_size[2] = {TX4938_PCIMEM_SIZE_0,TX4938_PCIMEM_SIZE_1}; /* MAX 128M,64K */460460+ unsigned long mem_size[2] = {TX4938_PCIMEM_SIZE_0, TX4938_PCIMEM_SIZE_1}; /* MAX 128M,64K */461461 unsigned long io_base[2];462462- unsigned long io_size[2] = {TX4938_PCIIO_SIZE_0,TX4938_PCIIO_SIZE_1}; /* MAX 16M,64K */462462+ unsigned long io_size[2] = {TX4938_PCIIO_SIZE_0, TX4938_PCIIO_SIZE_1}; /* MAX 16M,64K */463463 /* TX4938 PCIC1: 64K MEM/IO is enough for ETH0,ETH1 */464464 int extarb = !(tx4938_ccfgptr->ccfg & TX4938_CCFG_PCIXARB);465465
···3939 *4040 * Atomically sets the value of @v to @i.4141 */4242-#define atomic_set(v,i) ((v)->counter = (i))4242+#define atomic_set(v, i) ((v)->counter = (i))43434444/*4545 * atomic_add - add integer to atomic variable···335335}336336#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)337337338338-#define atomic_dec_return(v) atomic_sub_return(1,(v))339339-#define atomic_inc_return(v) atomic_add_return(1,(v))338338+#define atomic_dec_return(v) atomic_sub_return(1, (v))339339+#define atomic_inc_return(v) atomic_add_return(1, (v))340340341341/*342342 * atomic_sub_and_test - subtract value from variable and test result···347347 * true if the result is zero, or false for all348348 * other cases.349349 */350350-#define atomic_sub_and_test(i,v) (atomic_sub_return((i), (v)) == 0)350350+#define atomic_sub_and_test(i, v) (atomic_sub_return((i), (v)) == 0)351351352352/*353353 * atomic_inc_and_test - increment and test···381381 *382382 * Atomically increments @v by 1.383383 */384384-#define atomic_inc(v) atomic_add(1,(v))384384+#define atomic_inc(v) atomic_add(1, (v))385385386386/*387387 * atomic_dec - decrement and test···389389 *390390 * Atomically decrements @v by 1.391391 */392392-#define atomic_dec(v) atomic_sub(1,(v))392392+#define atomic_dec(v) atomic_sub(1, (v))393393394394/*395395 * atomic_add_negative - add and test if negative···400400 * if the result is negative, or false when401401 * result is greater than or equal to zero.402402 */403403-#define atomic_add_negative(i,v) (atomic_add_return(i, (v)) < 0)403403+#define atomic_add_negative(i, v) (atomic_add_return(i, (v)) < 0)404404405405#ifdef CONFIG_64BIT406406···420420 * @v: pointer of type atomic64_t421421 * @i: required value422422 */423423-#define atomic64_set(v,i) ((v)->counter = (i))423423+#define atomic64_set(v, i) ((v)->counter = (i))424424425425/*426426 * atomic64_add - add integer to atomic variable···718718719719#define atomic64_inc_not_zero(v) atomic64_add_unless((v), 1, 0)720720721721-#define atomic64_dec_return(v) atomic64_sub_return(1,(v))722722-#define atomic64_inc_return(v) atomic64_add_return(1,(v))721721+#define atomic64_dec_return(v) atomic64_sub_return(1, (v))722722+#define atomic64_inc_return(v) atomic64_add_return(1, (v))723723724724/*725725 * atomic64_sub_and_test - subtract value from variable and test result···730730 * true if the result is zero, or false for all731731 * other cases.732732 */733733-#define atomic64_sub_and_test(i,v) (atomic64_sub_return((i), (v)) == 0)733733+#define atomic64_sub_and_test(i, v) (atomic64_sub_return((i), (v)) == 0)734734735735/*736736 * atomic64_inc_and_test - increment and test···764764 *765765 * Atomically increments @v by 1.766766 */767767-#define atomic64_inc(v) atomic64_add(1,(v))767767+#define atomic64_inc(v) atomic64_add(1, (v))768768769769/*770770 * atomic64_dec - decrement and test···772772 *773773 * Atomically decrements @v by 1.774774 */775775-#define atomic64_dec(v) atomic64_sub(1,(v))775775+#define atomic64_dec(v) atomic64_sub(1, (v))776776777777/*778778 * atomic64_add_negative - add and test if negative···783783 * if the result is negative, or false when784784 * result is greater than or equal to zero.785785 */786786-#define atomic64_add_negative(i,v) (atomic64_add_return(i, (v)) < 0)786786+#define atomic64_add_negative(i, v) (atomic64_add_return(i, (v)) < 0)787787788788#endif /* CONFIG_64BIT */789789
···81818282#define __udelay_val cpu_data[raw_smp_processor_id()].udelay_val83838484-#define udelay(usecs) __udelay((usecs),__udelay_val)8484+#define udelay(usecs) __udelay((usecs), __udelay_val)85858686/* make sure "usecs *= ..." in udelay do not overflow. */8787#if HZ >= 1000
+1-1
include/asm-mips/floppy.h
···4949 * Actually this needs to be a bit more complicated since the so much different5050 * hardware available with MIPS CPUs ...5151 */5252-#define CROSS_64KB(a,s) ((unsigned long)(a)/K_64 != ((unsigned long)(a) + (s) - 1) / K_64)5252+#define CROSS_64KB(a, s) ((unsigned long)(a)/K_64 != ((unsigned long)(a) + (s) - 1) / K_64)53535454#define EXTRA_FLOPPY_PARAMS5555
···1515#define LOCAL_INIT(i) { ATOMIC_LONG_INIT(i) }16161717#define local_read(l) atomic_long_read(&(l)->a)1818-#define local_set(l,i) atomic_long_set(&(l)->a, (i))1818+#define local_set(l, i) atomic_long_set(&(l)->a, (i))19192020-#define local_add(i,l) atomic_long_add((i),(&(l)->a))2121-#define local_sub(i,l) atomic_long_sub((i),(&(l)->a))2020+#define local_add(i, l) atomic_long_add((i), (&(l)->a))2121+#define local_sub(i, l) atomic_long_sub((i), (&(l)->a))2222#define local_inc(l) atomic_long_inc(&(l)->a)2323#define local_dec(l) atomic_long_dec(&(l)->a)2424···117117118118#define local_cmpxchg(l, o, n) \119119 ((long)cmpxchg_local(&((l)->a.counter), (o), (n)))120120-#define local_xchg(l, n) (xchg_local(&((l)->a.counter),(n)))120120+#define local_xchg(l, n) (xchg_local(&((l)->a.counter), (n)))121121122122/**123123 * local_add_unless - add unless the number is a given value···138138})139139#define local_inc_not_zero(l) local_add_unless((l), 1, 0)140140141141-#define local_dec_return(l) local_sub_return(1,(l))142142-#define local_inc_return(l) local_add_return(1,(l))141141+#define local_dec_return(l) local_sub_return(1, (l))142142+#define local_inc_return(l) local_add_return(1, (l))143143144144/*145145 * local_sub_and_test - subtract value from variable and test result···150150 * true if the result is zero, or false for all151151 * other cases.152152 */153153-#define local_sub_and_test(i,l) (local_sub_return((i), (l)) == 0)153153+#define local_sub_and_test(i, l) (local_sub_return((i), (l)) == 0)154154155155/*156156 * local_inc_and_test - increment and test···181181 * if the result is negative, or false when182182 * result is greater than or equal to zero.183183 */184184-#define local_add_negative(i,l) (local_add_return(i, (l)) < 0)184184+#define local_add_negative(i, l) (local_add_return(i, (l)) < 0)185185186186/* Use these for per-cpu local_t variables: on some archs they are187187 * much more efficient than these naive implementations. Note they take···190190191191#define __local_inc(l) ((l)->a.counter++)192192#define __local_dec(l) ((l)->a.counter++)193193-#define __local_add(i,l) ((l)->a.counter+=(i))194194-#define __local_sub(i,l) ((l)->a.counter-=(i))193193+#define __local_add(i, l) ((l)->a.counter+=(i))194194+#define __local_sub(i, l) ((l)->a.counter-=(i))195195196196/* Need to disable preemption for the cpu local counters otherwise we could197197 still access a variable of a previous CPU in a non atomic way. */
+7-7
include/asm-mips/mach-au1x00/au1xxx_dbdma.h
···199199#define DSCR_CMD0_ALWAYS 31200200#define DSCR_NDEV_IDS 32201201/* THis macro is used to find/create custom device types */202202-#define DSCR_DEV2CUSTOM_ID(x,d) (((((x)&0xFFFF)<<8)|0x32000000)|((d)&0xFF))202202+#define DSCR_DEV2CUSTOM_ID(x, d) (((((x)&0xFFFF)<<8)|0x32000000)|((d)&0xFF))203203#define DSCR_CUSTOM2DEV_ID(x) ((x)&0xFF)204204205205···373373 Some compatibilty macros --374374 Needed to make changes to API without breaking existing drivers375375*/376376-#define au1xxx_dbdma_put_source(chanid,buf,nbytes)_au1xxx_dbdma_put_source(chanid, buf, nbytes, DDMA_FLAGS_IE)377377-#define au1xxx_dbdma_put_source_flags(chanid,buf,nbytes,flags) _au1xxx_dbdma_put_source(chanid, buf, nbytes, flags)378378-#define put_source_flags(chanid,buf,nbytes,flags) au1xxx_dbdma_put_source_flags(chanid,buf,nbytes,flags)376376+#define au1xxx_dbdma_put_source(chanid, buf, nbytes)_au1xxx_dbdma_put_source(chanid, buf, nbytes, DDMA_FLAGS_IE)377377+#define au1xxx_dbdma_put_source_flags(chanid, buf, nbytes, flags) _au1xxx_dbdma_put_source(chanid, buf, nbytes, flags)378378+#define put_source_flags(chanid, buf, nbytes, flags) au1xxx_dbdma_put_source_flags(chanid, buf, nbytes, flags)379379380380381381-#define au1xxx_dbdma_put_dest(chanid,buf,nbytes) _au1xxx_dbdma_put_dest(chanid, buf, nbytes, DDMA_FLAGS_IE)382382-#define au1xxx_dbdma_put_dest_flags(chanid,buf,nbytes,flags) _au1xxx_dbdma_put_dest(chanid, buf, nbytes, flags)383383-#define put_dest_flags(chanid,buf,nbytes,flags) au1xxx_dbdma_put_dest_flags(chanid,buf,nbytes,flags)381381+#define au1xxx_dbdma_put_dest(chanid, buf, nbytes) _au1xxx_dbdma_put_dest(chanid, buf, nbytes, DDMA_FLAGS_IE)382382+#define au1xxx_dbdma_put_dest_flags(chanid, buf, nbytes, flags) _au1xxx_dbdma_put_dest(chanid, buf, nbytes, flags)383383+#define put_dest_flags(chanid, buf, nbytes, flags) au1xxx_dbdma_put_dest_flags(chanid, buf, nbytes, flags)384384385385/*386386 * Flags for the put_source/put_dest functions.
···107107108108#else /* CONFIG_MIPS_MT_SMTC */109109110110-#define get_new_mmu_context(mm,cpu) smtc_get_new_mmu_context((mm),(cpu))110110+#define get_new_mmu_context(mm, cpu) smtc_get_new_mmu_context((mm), (cpu))111111112112#endif /* CONFIG_MIPS_MT_SMTC */113113···191191{192192}193193194194-#define deactivate_mm(tsk,mm) do { } while (0)194194+#define deactivate_mm(tsk, mm) do { } while (0)195195196196/*197197 * After we have set current->mm to a new value, this activates
···9595 __free_pages(pte, PTE_ORDER);9696}97979898-#define __pte_free_tlb(tlb,pte) tlb_remove_page((tlb),(pte))9898+#define __pte_free_tlb(tlb, pte) tlb_remove_page((tlb), (pte))9999100100#ifdef CONFIG_32BIT101101···104104 * inside the pgd, so has no extra memory associated with it.105105 */106106#define pmd_free(x) do { } while (0)107107-#define __pmd_free_tlb(tlb,x) do { } while (0)107107+#define __pmd_free_tlb(tlb, x) do { } while (0)108108109109#endif110110···125125 free_pages((unsigned long)pmd, PMD_ORDER);126126}127127128128-#define __pmd_free_tlb(tlb,x) pmd_free(x)128128+#define __pmd_free_tlb(tlb, x) pmd_free(x)129129130130#endif131131
+1-1
include/asm-mips/pgtable-32.h
···140140#define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))141141142142/* to find an entry in a page-table-directory */143143-#define pgd_offset(mm,addr) ((mm)->pgd + pgd_index(addr))143143+#define pgd_offset(mm, addr) ((mm)->pgd + pgd_index(addr))144144145145/* Find an entry in the third-level page table.. */146146#define __pte_offset(address) \
···106106#undef SI_TIMER107107#undef SI_MESGQ108108#define SI_ASYNCIO -2 /* sent by AIO completion */109109-#define SI_TIMER __SI_CODE(__SI_TIMER,-3) /* sent by timer expiration */110110-#define SI_MESGQ __SI_CODE(__SI_MESGQ,-4) /* sent by real time mesq state change */109109+#define SI_TIMER __SI_CODE(__SI_TIMER, -3) /* sent by timer expiration */110110+#define SI_MESGQ __SI_CODE(__SI_MESGQ, -4) /* sent by real time mesq state change */111111112112#ifdef __KERNEL__113113
···393393 * and disable interrupts only for the394394 * current TC, using the TCStatus register.395395 */396396- mfc0 t0,CP0_TCSTATUS396396+ mfc0 t0, CP0_TCSTATUS397397 /* Fortunately CU 0 is in the same place in both registers */398398 /* Set TCU0, TMX, TKSU (for later inversion) and IXMT */399399 li t1, ST0_CU0 | 0x08001c00400400- or t0,t1400400+ or t0, t1401401 /* Clear TKSU, leave IXMT */402402 xori t0, 0x00001800403403 mtc0 t0, CP0_TCSTATUS···429429 * current TC, using the TCStatus register.430430 */431431 _ehb432432- mfc0 t0,CP0_TCSTATUS432432+ mfc0 t0, CP0_TCSTATUS433433 /* Fortunately CU 0 is in the same place in both registers */434434 /* Set TCU0, TKSU (for later inversion) and IXMT */435435 li t1, ST0_CU0 | 0x08001c00436436- or t0,t1436436+ or t0, t1437437 /* Clear TKSU *and* IXMT */438438 xori t0, 0x00001c00439439 mtc0 t0, CP0_TCSTATUS
+2-2
include/asm-mips/system.h
···6262#define __mips_mt_fpaff_switch_to(prev) do { (void) (prev); } while (0)6363#endif64646565-#define switch_to(prev,next,last) \6565+#define switch_to(prev, next, last) \6666do { \6767 __mips_mt_fpaff_switch_to(prev); \6868 if (cpu_has_dsp) \···193193 return x;194194}195195196196-#define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))196196+#define xchg(ptr, x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), sizeof(*(ptr))))197197198198extern void set_handler(unsigned long offset, void *addr, unsigned long len);199199extern void set_uncached_handler(unsigned long offset, void *addr, unsigned long len);