/arch/x86/include/asm/ |
D | xor.h | 63 #define BLK64(pf, op, i) \ argument 64 pf(i) \ 65 op(i, 0) \ 66 op(i + 1, 1) \ 67 op(i + 2, 2) \ 68 op(i + 3, 3) 79 #define BLOCK(i) \ in xor_sse_2() argument 80 LD(i, 0) \ in xor_sse_2() 81 LD(i + 1, 1) \ in xor_sse_2() 82 PF1(i) \ in xor_sse_2() [all …]
|
D | xor_32.h | 40 #define BLOCK(i) \ in xor_pII_mmx_2() argument 41 LD(i, 0) \ in xor_pII_mmx_2() 42 LD(i + 1, 1) \ in xor_pII_mmx_2() 43 LD(i + 2, 2) \ in xor_pII_mmx_2() 44 LD(i + 3, 3) \ in xor_pII_mmx_2() 45 XO1(i, 0) \ in xor_pII_mmx_2() 46 ST(i, 0) \ in xor_pII_mmx_2() 47 XO1(i+1, 1) \ in xor_pII_mmx_2() 48 ST(i+1, 1) \ in xor_pII_mmx_2() 49 XO1(i + 2, 2) \ in xor_pII_mmx_2() [all …]
|
/arch/x86/mm/ |
D | testmmiotrace.c | 21 static unsigned v16(unsigned i) in v16() argument 23 return i * 12 + 7; in v16() 26 static unsigned v32(unsigned i) in v32() argument 28 return i * 212371 + 13; in v32() 33 unsigned int i; in do_write_test() local 37 for (i = 0; i < 256; i++) in do_write_test() 38 iowrite8(i, p + i); in do_write_test() 40 for (i = 1024; i < (5 * 1024); i += 2) in do_write_test() 41 iowrite16(v16(i), p + i); in do_write_test() 43 for (i = (5 * 1024); i < (16 * 1024); i += 4) in do_write_test() [all …]
|
/arch/x86/oprofile/ |
D | op_model_ppro.c | 35 int i; in ppro_shutdown() local 37 for (i = 0; i < num_counters; ++i) { in ppro_shutdown() 38 if (!msrs->counters[i].addr) in ppro_shutdown() 40 release_perfctr_nmi(MSR_P6_PERFCTR0 + i); in ppro_shutdown() 41 release_evntsel_nmi(MSR_P6_EVNTSEL0 + i); in ppro_shutdown() 47 int i; in ppro_fill_in_addresses() local 49 for (i = 0; i < num_counters; i++) { in ppro_fill_in_addresses() 50 if (!reserve_perfctr_nmi(MSR_P6_PERFCTR0 + i)) in ppro_fill_in_addresses() 52 if (!reserve_evntsel_nmi(MSR_P6_EVNTSEL0 + i)) { in ppro_fill_in_addresses() 53 release_perfctr_nmi(MSR_P6_PERFCTR0 + i); in ppro_fill_in_addresses() [all …]
|
/arch/arm/mach-pxa/ |
D | mfp-pxa2xx.c | 140 int i, gpio; in pxa2xx_mfp_config() local 142 for (i = 0, c = mfp_cfgs; i < num; i++, c++) { in pxa2xx_mfp_config() 230 int i; in pxa25x_mfp_init() local 238 for (i = 0; i <= pxa_last_gpio; i++) in pxa25x_mfp_init() 239 gpio_desc[i].valid = 1; in pxa25x_mfp_init() 241 for (i = 0; i <= 15; i++) { in pxa25x_mfp_init() 242 gpio_desc[i].can_wakeup = 1; in pxa25x_mfp_init() 243 gpio_desc[i].mask = GPIO_bit(i); in pxa25x_mfp_init() 249 for (i = 86; i <= pxa_last_gpio; i++) in pxa25x_mfp_init() 250 gpio_desc[i].dir_inverted = 1; in pxa25x_mfp_init() [all …]
|
D | am300epd.c | 108 int i; in am300_init_gpio_regs() local 112 for (i = 0; i < ARRAY_SIZE(gpios); i++) { in am300_init_gpio_regs() 113 err = gpio_request(gpios[i], gpio_names[i]); in am300_init_gpio_regs() 116 "gpio %s, err=%d\n", gpio_names[i], err); in am300_init_gpio_regs() 122 for (i = DB0_GPIO_PIN; i <= DB15_GPIO_PIN; i++) { in am300_init_gpio_regs() 123 sprintf(dbname, "DB%d", i); in am300_init_gpio_regs() 124 err = gpio_request(i, dbname); in am300_init_gpio_regs() 127 "gpio %d, err=%d\n", i, err); in am300_init_gpio_regs() 146 for (i = DB0_GPIO_PIN; i <= DB15_GPIO_PIN; i++) in am300_init_gpio_regs() 147 gpio_direction_output(i, 0); in am300_init_gpio_regs() [all …]
|
/arch/sparc/kernel/ |
D | kgdb_32.c | 20 int i; in pt_regs_to_gdb_regs() local 23 for (i = 0; i < 15; i++) in pt_regs_to_gdb_regs() 24 gdb_regs[GDB_G1 + i] = regs->u_regs[UREG_G1 + i]; in pt_regs_to_gdb_regs() 27 for (i = 0; i < 8; i++) in pt_regs_to_gdb_regs() 28 gdb_regs[GDB_L0 + i] = win->locals[i]; in pt_regs_to_gdb_regs() 29 for (i = 0; i < 8; i++) in pt_regs_to_gdb_regs() 30 gdb_regs[GDB_I0 + i] = win->ins[i]; in pt_regs_to_gdb_regs() 32 for (i = GDB_F0; i <= GDB_F31; i++) in pt_regs_to_gdb_regs() 33 gdb_regs[i] = 0; in pt_regs_to_gdb_regs() 49 int i; in sleeping_thread_to_gdb_regs() local [all …]
|
D | kgdb_64.c | 18 int i; in pt_regs_to_gdb_regs() local 21 for (i = 0; i < 15; i++) in pt_regs_to_gdb_regs() 22 gdb_regs[GDB_G1 + i] = regs->u_regs[UREG_G1 + i]; in pt_regs_to_gdb_regs() 25 for (i = 0; i < 8; i++) in pt_regs_to_gdb_regs() 26 gdb_regs[GDB_L0 + i] = win->locals[i]; in pt_regs_to_gdb_regs() 27 for (i = 0; i < 8; i++) in pt_regs_to_gdb_regs() 28 gdb_regs[GDB_I0 + i] = win->ins[i]; in pt_regs_to_gdb_regs() 30 for (i = GDB_F0; i <= GDB_F62; i++) in pt_regs_to_gdb_regs() 31 gdb_regs[i] = 0; in pt_regs_to_gdb_regs() 48 int i; in sleeping_thread_to_gdb_regs() local [all …]
|
/arch/mips/lantiq/xway/ |
D | prom.c | 37 void __init ltq_soc_detect(struct ltq_soc_info *i) in ltq_soc_detect() argument 39 i->partnum = (ltq_r32(LTQ_MPS_CHIPID) & PART_MASK) >> PART_SHIFT; in ltq_soc_detect() 40 i->rev = (ltq_r32(LTQ_MPS_CHIPID) & REV_MASK) >> REV_SHIFT; in ltq_soc_detect() 41 sprintf(i->rev_type, "1.%d", i->rev); in ltq_soc_detect() 42 switch (i->partnum) { in ltq_soc_detect() 45 i->name = SOC_DANUBE; in ltq_soc_detect() 46 i->type = SOC_TYPE_DANUBE; in ltq_soc_detect() 47 i->compatible = COMP_DANUBE; in ltq_soc_detect() 51 i->name = SOC_TWINPASS; in ltq_soc_detect() 52 i->type = SOC_TYPE_DANUBE; in ltq_soc_detect() [all …]
|
/arch/arm/tools/ |
D | gen-mach-types | 37 for (i = 0; i < nr; i++) 38 if (num[i] ~ /..*/) 39 printf("#define %-30s %d\n", mach_type[i], num[i]); 43 for (i = 0; i < nr; i++) 44 if (num[i] ~ /..*/) { 45 printf("#ifdef %s\n", config[i]); 50 printf("# define machine_arch_type\t%s\n", mach_type[i]); 52 printf("# define %s()\t(machine_arch_type == %s)\n", machine_is[i], mach_type[i]); 54 printf("# define %s()\t(0)\n", machine_is[i]); 59 for (i = 0; i < nr; i++) [all …]
|
/arch/unicore32/kernel/ |
D | dma.c | 41 int i, found = 0; in puv3_request_dma() local 51 for (i = 0; i < MAX_DMA_CHANNELS; i++) { in puv3_request_dma() 52 if ((dma_channels[i].prio == prio) && in puv3_request_dma() 53 !dma_channels[i].name) { in puv3_request_dma() 62 dma_channels[i].name = name; in puv3_request_dma() 63 dma_channels[i].irq_handler = irq_handler; in puv3_request_dma() 64 dma_channels[i].err_handler = err_handler; in puv3_request_dma() 65 dma_channels[i].data = data; in puv3_request_dma() 69 i = -ENODEV; in puv3_request_dma() 73 return i; in puv3_request_dma() [all …]
|
/arch/powerpc/sysdev/ |
D | micropatch.c | 637 int i; in cpm_load_patch() local 645 for (i=0; i<(sizeof(patch_2000)/4); i++) in cpm_load_patch() 646 *dp++ = patch_2000[i]; in cpm_load_patch() 649 for (i=0; i<(sizeof(patch_2f00)/4); i++) in cpm_load_patch() 650 *dp++ = patch_2f00[i]; in cpm_load_patch() 663 for (i=0; i<(sizeof(patch_2000)/4); i++) in cpm_load_patch() 664 *dp++ = patch_2000[i]; in cpm_load_patch() 667 for (i=0; i<(sizeof(patch_2f00)/4); i++) in cpm_load_patch() 668 *dp++ = patch_2f00[i]; in cpm_load_patch() 676 i = (RPBASE + sizeof(iic_t) + 31) & ~31; in cpm_load_patch() [all …]
|
/arch/powerpc/net/ |
D | bpf_jit.h | 66 #define IMM_H(i) ((uintptr_t)(i)>>16) argument 67 #define IMM_HA(i) (((uintptr_t)(i)>>16) + \ argument 68 (((uintptr_t)(i) & 0x8000) >> 15)) 69 #define IMM_L(i) ((uintptr_t)(i) & 0xffff) argument 79 #define PPC_ADDI(d, a, i) EMIT(PPC_INST_ADDI | ___PPC_RT(d) | \ argument 80 ___PPC_RA(a) | IMM_L(i)) 82 #define PPC_LI(r, i) PPC_ADDI(r, 0, i) argument 83 #define PPC_ADDIS(d, a, i) EMIT(PPC_INST_ADDIS | \ argument 84 ___PPC_RS(d) | ___PPC_RA(a) | IMM_L(i)) 85 #define PPC_LIS(r, i) PPC_ADDIS(r, 0, i) argument [all …]
|
/arch/arm/mach-s5p64x0/ |
D | irq-pm.c | 42 int i; in s5p64x0_irq_pm_suspend() local 48 for (i = 0; i < CONFIG_SERIAL_SAMSUNG_UARTS; i++) in s5p64x0_irq_pm_suspend() 49 irq_uart_mask[i] = __raw_readl(S3C_VA_UARTx(i) + S3C64XX_UINTM); in s5p64x0_irq_pm_suspend() 51 for (i = 0; i < ARRAY_SIZE(eint_grp_save); i++, grp++) { in s5p64x0_irq_pm_suspend() 52 grp->con = __raw_readl(S5P64X0_EINT12CON + (i * 4)); in s5p64x0_irq_pm_suspend() 53 grp->mask = __raw_readl(S5P64X0_EINT12MASK + (i * 4)); in s5p64x0_irq_pm_suspend() 54 grp->fltcon = __raw_readl(S5P64X0_EINT12FLTCON + (i * 4)); in s5p64x0_irq_pm_suspend() 63 int i; in s5p64x0_irq_pm_resume() local 69 for (i = 0; i < CONFIG_SERIAL_SAMSUNG_UARTS; i++) in s5p64x0_irq_pm_resume() 70 __raw_writel(irq_uart_mask[i], S3C_VA_UARTx(i) + S3C64XX_UINTM); in s5p64x0_irq_pm_resume() [all …]
|
/arch/mips/ar7/ |
D | prom.c | 43 int i; in prom_getenv() local 45 for (i = 0; (i < MAX_ENTRY) && adam2_env[i].name; i++) in prom_getenv() 46 if (!strcmp(name, adam2_env[i].name)) in prom_getenv() 47 return adam2_env[i].value; in prom_getenv() 55 int i; in ar7_init_cmdline() local 57 for (i = 1; i < argc; i++) { in ar7_init_cmdline() 58 strlcat(arcs_cmdline, argv[i], COMMAND_LINE_SIZE); in ar7_init_cmdline() 59 if (i < (argc - 1)) in ar7_init_cmdline() 131 int i; in lookup_psp_var_map() local 133 for (i = 0; i < ARRAY_SIZE(psp_var_map); i++) in lookup_psp_var_map() [all …]
|
/arch/arm/mach-imx/ |
D | gpc.c | 33 int i; in imx_gpc_pre_suspend() local 38 for (i = 0; i < IMR_NUM; i++) { in imx_gpc_pre_suspend() 39 gpc_saved_imrs[i] = readl_relaxed(reg_imr1 + i * 4); in imx_gpc_pre_suspend() 40 writel_relaxed(~gpc_wake_irqs[i], reg_imr1 + i * 4); in imx_gpc_pre_suspend() 47 int i; in imx_gpc_post_resume() local 52 for (i = 0; i < IMR_NUM; i++) in imx_gpc_post_resume() 53 writel_relaxed(gpc_saved_imrs[i], reg_imr1 + i * 4); in imx_gpc_post_resume() 75 int i; in imx_gpc_mask_all() local 77 for (i = 0; i < IMR_NUM; i++) { in imx_gpc_mask_all() 78 gpc_saved_imrs[i] = readl_relaxed(reg_imr1 + i * 4); in imx_gpc_mask_all() [all …]
|
/arch/m68k/platform/coldfire/ |
D | vectors.c | 44 int i; in trap_init() local 52 for (i = 3; (i <= 23); i++) in trap_init() 53 _ramvec[i] = trap; in trap_init() 54 for (i = 33; (i <= 63); i++) in trap_init() 55 _ramvec[i] = trap; in trap_init() 56 for (i = 24; (i <= 31); i++) in trap_init() 57 _ramvec[i] = inthandler; in trap_init() 58 for (i = 64; (i < 255); i++) in trap_init() 59 _ramvec[i] = inthandler; in trap_init()
|
/arch/microblaze/kernel/ |
D | selfmod.c | 34 __func__, i, addr[i], i + 1, addr[i + 1]); \ 35 addr[i] = OPCODE_IMM + (base >> 16); \ 37 addr[i + 1] = (addr[i + 1] & 0xffff00ff) + (base & 0xffff); \ 38 __invalidate_icache(addr[i]); \ 39 __invalidate_icache(addr[i + 1]); \ 41 __func__, i, addr[i], i + 1, addr[i + 1]); } 49 unsigned int flags, i, j, *addr = NULL; in selfmod_function() local 60 for (i = 0; ; i++) { in selfmod_function() 62 __func__, i, addr[i]); in selfmod_function() 63 if (addr[i] == IMM_BASE) { in selfmod_function() [all …]
|
D | kgdb.c | 38 int i; in pt_regs_to_gdb_regs() local 42 for (i = 0; i < (sizeof(struct pt_regs) / 4) - 1; i++) in pt_regs_to_gdb_regs() 43 gdb_regs[i] = pt_regb[i]; in pt_regs_to_gdb_regs() 50 for (i = 0; i < sizeof(struct pvr_s)/4; i++) in pt_regs_to_gdb_regs() 51 gdb_regs[GDB_PVR + i] = pvr.pvr[i]; in pt_regs_to_gdb_regs() 70 int i; in gdb_regs_to_pt_regs() local 76 for (i = 1; i < (sizeof(struct pt_regs) / 4) - 1; i++) in gdb_regs_to_pt_regs() 77 pt_regb[i] = gdb_regs[i]; in gdb_regs_to_pt_regs() 94 int i; in sleeping_thread_to_gdb_regs() local 98 for (i = 0; i < (sizeof(struct pt_regs) / 4) - 1; i++) in sleeping_thread_to_gdb_regs() [all …]
|
/arch/mips/sgi-ip22/ |
D | ip22-int.c | 242 int i; in arch_init_irq() local 245 for (i = 0; i < 256; i++) { in arch_init_irq() 246 if (i & 0x80) { in arch_init_irq() 247 lc0msk_to_irqnr[i] = SGINT_LOCAL0 + 7; in arch_init_irq() 248 lc1msk_to_irqnr[i] = SGINT_LOCAL1 + 7; in arch_init_irq() 249 lc2msk_to_irqnr[i] = SGINT_LOCAL2 + 7; in arch_init_irq() 250 lc3msk_to_irqnr[i] = SGINT_LOCAL3 + 7; in arch_init_irq() 251 } else if (i & 0x40) { in arch_init_irq() 252 lc0msk_to_irqnr[i] = SGINT_LOCAL0 + 6; in arch_init_irq() 253 lc1msk_to_irqnr[i] = SGINT_LOCAL1 + 6; in arch_init_irq() [all …]
|
/arch/sh/kernel/cpu/sh4a/ |
D | ubc.c | 49 int i; in sh4a_ubc_enable_all() local 51 for (i = 0; i < sh4a_ubc.num_events; i++) in sh4a_ubc_enable_all() 52 if (mask & (1 << i)) in sh4a_ubc_enable_all() 53 __raw_writel(__raw_readl(UBC_CBR(i)) | UBC_CBR_CE, in sh4a_ubc_enable_all() 54 UBC_CBR(i)); in sh4a_ubc_enable_all() 59 int i; in sh4a_ubc_disable_all() local 61 for (i = 0; i < sh4a_ubc.num_events; i++) in sh4a_ubc_disable_all() 62 __raw_writel(__raw_readl(UBC_CBR(i)) & ~UBC_CBR_CE, in sh4a_ubc_disable_all() 63 UBC_CBR(i)); in sh4a_ubc_disable_all() 69 int i; in sh4a_ubc_active_mask() local [all …]
|
/arch/x86/mm/kmemcheck/ |
D | shadow.c | 104 unsigned int i; in kmemcheck_mark_unallocated_pages() local 106 for (i = 0; i < n; ++i) in kmemcheck_mark_unallocated_pages() 107 kmemcheck_mark_unallocated(page_address(&p[i]), PAGE_SIZE); in kmemcheck_mark_unallocated_pages() 112 unsigned int i; in kmemcheck_mark_uninitialized_pages() local 114 for (i = 0; i < n; ++i) in kmemcheck_mark_uninitialized_pages() 115 kmemcheck_mark_uninitialized(page_address(&p[i]), PAGE_SIZE); in kmemcheck_mark_uninitialized_pages() 120 unsigned int i; in kmemcheck_mark_initialized_pages() local 122 for (i = 0; i < n; ++i) in kmemcheck_mark_initialized_pages() 123 kmemcheck_mark_initialized(page_address(&p[i]), PAGE_SIZE); in kmemcheck_mark_initialized_pages() 130 unsigned int i; in kmemcheck_shadow_test() local [all …]
|
/arch/arm/mach-s3c64xx/ |
D | irq-pm.c | 60 int i; in s3c64xx_irq_pm_suspend() local 66 for (i = 0; i < CONFIG_SERIAL_SAMSUNG_UARTS; i++) in s3c64xx_irq_pm_suspend() 67 irq_uart_mask[i] = __raw_readl(S3C_VA_UARTx(i) + S3C64XX_UINTM); in s3c64xx_irq_pm_suspend() 69 for (i = 0; i < ARRAY_SIZE(eint_grp_save); i++, grp++) { in s3c64xx_irq_pm_suspend() 70 grp->con = __raw_readl(S3C64XX_EINT12CON + (i * 4)); in s3c64xx_irq_pm_suspend() 71 grp->mask = __raw_readl(S3C64XX_EINT12MASK + (i * 4)); in s3c64xx_irq_pm_suspend() 72 grp->fltcon = __raw_readl(S3C64XX_EINT12FLTCON + (i * 4)); in s3c64xx_irq_pm_suspend() 81 int i; in s3c64xx_irq_pm_resume() local 87 for (i = 0; i < CONFIG_SERIAL_SAMSUNG_UARTS; i++) in s3c64xx_irq_pm_resume() 88 __raw_writel(irq_uart_mask[i], S3C_VA_UARTx(i) + S3C64XX_UINTM); in s3c64xx_irq_pm_resume() [all …]
|
/arch/mips/txx9/generic/ |
D | setup_tx3927.c | 33 int i; in tx3927_setup() local 40 for (i = 0; i < 8; i++) { in tx3927_setup() 41 if (!(tx3927_romcptr->cr[i] & 0x8)) in tx3927_setup() 43 txx9_ce_res[i].start = (unsigned long)TX3927_ROMC_BA(i); in tx3927_setup() 44 txx9_ce_res[i].end = in tx3927_setup() 45 txx9_ce_res[i].start + TX3927_ROMC_SIZE(i) - 1; in tx3927_setup() 46 request_resource(&iomem_resource, &txx9_ce_res[i]); in tx3927_setup() 75 for (i = 0; i < TX3927_NR_TMR; i++) in tx3927_setup() 76 txx9_tmr_init(TX3927_TMR_REG(i)); in tx3927_setup() 80 for (i = 0; i < ARRAY_SIZE(tx3927_dmaptr->ch); i++) { in tx3927_setup() [all …]
|
/arch/arm/mach-s3c24xx/ |
D | irq-pm.c | 75 unsigned int i; in s3c24xx_irq_suspend() local 77 for (i = 0; i < ARRAY_SIZE(save_extint); i++) in s3c24xx_irq_suspend() 78 save_extint[i] = __raw_readl(S3C24XX_EXTINT0 + (i*4)); in s3c24xx_irq_suspend() 80 for (i = 0; i < ARRAY_SIZE(save_eintflt); i++) in s3c24xx_irq_suspend() 81 save_eintflt[i] = __raw_readl(S3C24XX_EINFLT0 + (i*4)); in s3c24xx_irq_suspend() 91 unsigned int i; in s3c24xx_irq_resume() local 93 for (i = 0; i < ARRAY_SIZE(save_extint); i++) in s3c24xx_irq_resume() 94 __raw_writel(save_extint[i], S3C24XX_EXTINT0 + (i*4)); in s3c24xx_irq_resume() 96 for (i = 0; i < ARRAY_SIZE(save_eintflt); i++) in s3c24xx_irq_resume() 97 __raw_writel(save_eintflt[i], S3C24XX_EINFLT0 + (i*4)); in s3c24xx_irq_resume()
|