/linux-2.4.37.9/include/asm-i386/ |
D | xor.h | 53 #define BLOCK(i) \ in xor_pII_mmx_2() argument 54 LD(i,0) \ in xor_pII_mmx_2() 55 LD(i+1,1) \ in xor_pII_mmx_2() 56 LD(i+2,2) \ in xor_pII_mmx_2() 57 LD(i+3,3) \ in xor_pII_mmx_2() 58 XO1(i,0) \ in xor_pII_mmx_2() 59 ST(i,0) \ in xor_pII_mmx_2() 60 XO1(i+1,1) \ in xor_pII_mmx_2() 61 ST(i+1,1) \ in xor_pII_mmx_2() 62 XO1(i+2,2) \ in xor_pII_mmx_2() [all …]
|
/linux-2.4.37.9/fs/hpfs/ |
D | inode.c | 57 void hpfs_read_inode(struct inode *i) in hpfs_read_inode() argument 61 struct super_block *sb = i->i_sb; in hpfs_read_inode() 64 init_MUTEX(&i->i_hpfs_sem); in hpfs_read_inode() 65 i->i_uid = sb->s_hpfs_uid; in hpfs_read_inode() 66 i->i_gid = sb->s_hpfs_gid; in hpfs_read_inode() 67 i->i_mode = sb->s_hpfs_mode; in hpfs_read_inode() 68 i->i_hpfs_conv = sb->s_hpfs_conv; in hpfs_read_inode() 69 i->i_blksize = 512; in hpfs_read_inode() 70 i->i_size = -1; in hpfs_read_inode() 71 i->i_blocks = -1; in hpfs_read_inode() [all …]
|
/linux-2.4.37.9/drivers/net/hamradio/soundmodem/ |
D | gentbl.c | 37 int i; in gentbl_offscostab() local 44 for (i = 0; i < (1<<nbits); i++) { in gentbl_offscostab() 46 (128+127.0*cos(i*2.0*M_PI/(1<<nbits)))); in gentbl_offscostab() 47 if (i < (1<<nbits)-1) in gentbl_offscostab() 48 fprintf(f, "%s", (i & 7) == 7 ? ",\n\t" : ","); in gentbl_offscostab() 59 int i; in gentbl_costab() local 63 for (i = 0; i < (1<<nbits); i++) { in gentbl_costab() 64 if (!(i & 7)) in gentbl_costab() 66 fprintf(f, "%6d", (int)(32767.0*cos(i*2.0*M_PI/(1<<nbits)))); in gentbl_costab() 67 if (i != ((1<<nbits)-1)) in gentbl_costab() [all …]
|
/linux-2.4.37.9/drivers/mtd/devices/ |
D | docecc.c | 138 register int i, mask; in generate_gf() local 142 for (i = 0; i < MM; i++) { in generate_gf() 143 Alpha_to[i] = mask; in generate_gf() 144 Index_of[Alpha_to[i]] = i; in generate_gf() 146 if (Pp[i] != 0) in generate_gf() 157 for (i = MM + 1; i < NN; i++) { in generate_gf() 158 if (Alpha_to[i - 1] >= mask) in generate_gf() 159 Alpha_to[i] = Alpha_to[MM] ^ ((Alpha_to[i - 1] ^ mask) << 1); in generate_gf() 161 Alpha_to[i] = Alpha_to[i - 1] << 1; in generate_gf() 162 Index_of[Alpha_to[i]] = i; in generate_gf() [all …]
|
/linux-2.4.37.9/drivers/char/joystick/ |
D | gamecon.c | 108 int i; in gc_n64_read_packet() local 117 for (i = 0; i < GC_N64_REQUEST_LENGTH; i++) { in gc_n64_read_packet() 118 parport_write_data(gc->pd->port, GC_N64_POWER_W | ((GC_N64_REQUEST >> i) & 1 ? GC_N64_OUT : 0)); in gc_n64_read_packet() 133 for (i = 0; i < GC_N64_LENGTH; i++) { in gc_n64_read_packet() 135 data[i] = parport_read_status(gc->pd->port); in gc_n64_read_packet() 170 int i; in gc_nes_read_packet() local 176 for (i = 0; i < length; i++) { in gc_nes_read_packet() 179 data[i] = parport_read_status(gc->pd->port) ^ 0x7f; in gc_nes_read_packet() 198 int i; in gc_multi_read_packet() local 200 for (i = 0; i < length; i++) { in gc_multi_read_packet() [all …]
|
D | cobra.c | 64 int i, j, ret; in cobra_read_packet() local 68 for (i = 0; i < 2; i++) { in cobra_read_packet() 69 r[i] = buf[i] = 0; in cobra_read_packet() 70 t[i] = COBRA_MAX_STROBE; in cobra_read_packet() 81 for (i = 0, w = u ^ v; i < 2 && w; i++, w >>= 2) in cobra_read_packet() 83 if ((w & 0x30) < 0x30 && r[i] < COBRA_LENGTH && t[i] > 0) { in cobra_read_packet() 84 buf[i] |= (__u64)((w >> 5) & 1) << r[i]++; in cobra_read_packet() 85 t[i] = strobe; in cobra_read_packet() 87 } else t[i] = 0; in cobra_read_packet() 95 for (i = 0; i < 2; i++) { in cobra_read_packet() [all …]
|
D | amijoy.c | 55 int i, data = 0, button = 0; in amijoy_interrupt() local 57 for (i = 0; i < 2; i++) in amijoy_interrupt() 58 if (amijoy[i]) { in amijoy_interrupt() 60 switch (i) { in amijoy_interrupt() 65 input_report_key(amijoy_dev + i, BTN_TRIGGER, button); in amijoy_interrupt() 67 input_report_abs(amijoy_dev + i, ABS_X, ((data >> 1) & 1) - ((data >> 9) & 1)); in amijoy_interrupt() 69 input_report_abs(amijoy_dev + i, ABS_Y, ((data >> 1) & 1) - ((data >> 9) & 1)); in amijoy_interrupt() 99 int i; in amijoy_setup() local 102 for (i = 0; i <= ints[0] && i < 2; i++) amijoy[i] = ints[i+1]; in amijoy_setup() 109 int i, j; in amijoy_init() local [all …]
|
D | interact.c | 96 int i; in interact_read_packet() local 98 i = 0; in interact_read_packet() 108 while (t > 0 && i < length) { in interact_read_packet() 115 i++; in interact_read_packet() 122 return i; in interact_read_packet() 134 int i; in interact_timer() local 142 for (i = 0; i < 3; i++) in interact_timer() 143 data[i] <<= INTERACT_MAX_LENGTH - interact->length; in interact_timer() 149 for (i = 0; i < 4; i++) in interact_timer() 150 input_report_abs(dev, interact_abs_hhfx[i], (data[i & 1] >> ((i >> 1) << 3)) & 0xff); in interact_timer() [all …]
|
D | turbografx.c | 84 int data1, data2, i; in tgfx_timer() local 86 for (i = 0; i < 7; i++) in tgfx_timer() 87 if (tgfx->sticks & (1 << i)) { in tgfx_timer() 89 dev = tgfx->dev + i; in tgfx_timer() 91 parport_write_data(tgfx->pd->port, ~(1 << i)); in tgfx_timer() 137 int i, j; in tgfx_probe() local 168 for (i = 0; i < 7; i++) in tgfx_probe() 169 if (config[i+1] > 0 && config[i+1] < 6) { in tgfx_probe() 171 tgfx->sticks |= (1 << i); in tgfx_probe() 173 tgfx->dev[i].private = tgfx; in tgfx_probe() [all …]
|
D | lightning.c | 82 int i, result = -1; in l4_cooked_read() local 93 for (i = 0; i < 4; i++) in l4_cooked_read() 94 if (status & (1 << i)) { in l4_cooked_read() 96 axes[i] = inb(L4_PORT); in l4_cooked_read() 97 if (axes[i] > 252) axes[i] = -1; in l4_cooked_read() 126 int i, result = -1; in l4_getcal() local 140 for (i = 0; i < 4; i++) { in l4_getcal() 142 cal[i] = inb(L4_PORT); in l4_getcal() 157 int i, result = -1; in l4_setcal() local 171 for (i = 0; i < 4; i++) { in l4_setcal() [all …]
|
D | adi.c | 142 int t[2], s[2], i; in adi_read_packet() local 145 for (i = 0; i < 2; i++) { in adi_read_packet() 146 adi[i].ret = -1; in adi_read_packet() 147 t[i] = gameport_time(gameport, ADI_MAX_START); in adi_read_packet() 148 s[i] = 0; in adi_read_packet() 160 for (i = 0; i < 2; i++, w >>= 2, x >>= 2) { in adi_read_packet() 161 t[i]--; in adi_read_packet() 162 if ((w & 0x30) && s[i]) { in adi_read_packet() 163 if ((w & 0x30) < 0x30 && adi[i].ret < ADI_MAX_LENGTH && t[i] > 0) { in adi_read_packet() 164 adi[i].data[++adi[i].ret] = w; in adi_read_packet() [all …]
|
D | gf2k.c | 97 int i; in gf2k_read_packet() local 104 i = 0; in gf2k_read_packet() 112 while (t > 0 && i < length) { in gf2k_read_packet() 116 data[i++] = v >> 5; in gf2k_read_packet() 123 return i; in gf2k_read_packet() 135 int i, t; in gf2k_trigger_seq() local 140 i = 0; in gf2k_trigger_seq() 145 udelay(seq[i]); in gf2k_trigger_seq() 146 } while (seq[++i]); in gf2k_trigger_seq() 165 int i; in gf2k_get_bits() local [all …]
|
/linux-2.4.37.9/fs/ufs/ |
D | util.c | 29 unsigned i, j, count; in _ubh_bread_() local 41 for (i = 0; i < count; i++) in _ubh_bread_() 42 if (!(ubh->bh[i] = sb_bread(sb, fragment + i))) in _ubh_bread_() 44 for (; i < UFS_MAXFRAG; i++) in _ubh_bread_() 45 ubh->bh[i] = NULL; in _ubh_bread_() 48 for (j = 0; j < i; j++) in _ubh_bread_() 57 unsigned i, j, count; in ubh_bread_uspi() local 65 for (i = 0; i < count; i++) in ubh_bread_uspi() 66 if (!(USPI_UBH->bh[i] = sb_bread(sb, fragment + i))) in ubh_bread_uspi() 68 for (; i < UFS_MAXFRAG; i++) in ubh_bread_uspi() [all …]
|
/linux-2.4.37.9/drivers/media/video/ |
D | i2c-old.c | 52 int i,j,ack=1; in i2c_attach_device() local 71 for (i = 0; i < I2C_DEVICE_MAX; i++) in i2c_attach_device() 72 if (NULL == driver->devices[i]) in i2c_attach_device() 74 if (I2C_DEVICE_MAX == i) in i2c_attach_device() 96 driver->devices[i] = device; in i2c_attach_device() 108 int i; in i2c_detach_device() local 114 for (i = 0; i < I2C_DEVICE_MAX; i++) in i2c_detach_device() 115 if (device == device->driver->devices[i]) in i2c_detach_device() 117 if (I2C_DEVICE_MAX == i) in i2c_detach_device() 123 device->driver->devices[i] = NULL; in i2c_detach_device() [all …]
|
/linux-2.4.37.9/include/asm-ia64/ |
D | atomic.h | 25 #define ATOMIC_INIT(i) ((atomic_t) { (i) }) argument 28 #define atomic_set(v,i) (((v)->counter) = (i)) argument 31 ia64_atomic_add (int i, atomic_t *v) in ia64_atomic_add() argument 39 new = old + i; in ia64_atomic_add() 40 } while (ia64_cmpxchg("acq", v, old, old + i, sizeof(atomic_t)) != old); in ia64_atomic_add() 45 ia64_atomic_sub (int i, atomic_t *v) in ia64_atomic_sub() argument 53 new = old - i; in ia64_atomic_sub() 63 atomic_add_negative (int i, atomic_t *v) in atomic_add_negative() argument 65 return ia64_atomic_add(i, v) < 0; in atomic_add_negative() 68 #define atomic_add_return(i,v) \ argument [all …]
|
/linux-2.4.37.9/drivers/mtd/ |
D | mtdcore.c | 43 int i; in add_mtd_device() local 47 for (i=0; i< MAX_MTD_DEVICES; i++) in add_mtd_device() 48 if (!mtd_table[i]) in add_mtd_device() 52 mtd_table[i] = mtd; in add_mtd_device() 53 mtd->index = i; in add_mtd_device() 54 DEBUG(0, "mtd: Giving out device %d to %s\n",i, mtd->name); in add_mtd_device() 82 int i; in del_mtd_device() local 86 for (i=0; i < MAX_MTD_DEVICES; i++) in del_mtd_device() 88 if (mtd_table[i] == mtd) in del_mtd_device() 95 mtd_table[i] = NULL; in del_mtd_device() [all …]
|
/linux-2.4.37.9/arch/ppc64/kernel/ |
D | lmb.c | 41 unsigned long i; in lmb_coalesce_regions() local 44 for (i=r2; i < rgn->cnt-1 ;i++) { in lmb_coalesce_regions() 45 rgn->region[i].base = rgn->region[i+1].base; in lmb_coalesce_regions() 46 rgn->region[i].physbase = rgn->region[i+1].physbase; in lmb_coalesce_regions() 47 rgn->region[i].size = rgn->region[i+1].size; in lmb_coalesce_regions() 48 rgn->region[i].type = rgn->region[i+1].type; in lmb_coalesce_regions() 80 unsigned long i; in lmb_analyze() local 90 for (i=0; i < _lmb->memory.cnt ;i++) { in lmb_analyze() 91 unsigned long lmb_type = _lmb->memory.region[i].type; in lmb_analyze() 97 lmb_size = _lmb->memory.region[i].size; in lmb_analyze() [all …]
|
/linux-2.4.37.9/drivers/char/ |
D | consolemap.c | 185 static void set_inverse_transl(struct vc_data *conp, struct uni_pagedir *p, int i) in set_inverse_transl() argument 188 unsigned short *t = translations[i]; in set_inverse_transl() 192 q = p->inverse_translations[i]; in set_inverse_transl() 195 q = p->inverse_translations[i] = (unsigned char *) in set_inverse_transl() 237 int i; in update_user_maps() local 240 for (i = 0; i < MAX_NR_CONSOLES; i++) { in update_user_maps() 241 if (!vc_cons_allocated(i)) in update_user_maps() 243 p = (struct uni_pagedir *)*vc_cons[i].d->vc_uni_pagedir_loc; in update_user_maps() 245 set_inverse_transl(vc_cons[i].d, p, USER_MAP); in update_user_maps() 261 int i; in con_set_trans_old() local [all …]
|
/linux-2.4.37.9/drivers/block/paride/ |
D | bpck.c | 109 { int i; in bpck_write_block() local 115 for (i=0;i<count;i++) { w0(buf[i]); t2(4); } in bpck_write_block() 121 for (i=0;i<count;i++) { w0(buf[i]); t2(4); } in bpck_write_block() 127 for (i=0;i<count;i++) w4(buf[i]); in bpck_write_block() 134 for (i=0;i<count/2;i++) w4w(((u16 *)buf)[i]); in bpck_write_block() 141 for (i=0;i<count/4;i++) w4l(((u32 *)buf)[i]); in bpck_write_block() 150 { int i, l, h; in bpck_read_block() local 156 for (i=0;i<count;i++) { in bpck_read_block() 159 buf[i] = j44(l,h); in bpck_read_block() 166 for(i=0;i<count;i++) { t2(4); buf[i] = r0(); } in bpck_read_block() [all …]
|
/linux-2.4.37.9/drivers/cdrom/ |
D | sbpcd.c | 851 static void mark_timeout_delay(u_long i) in mark_timeout_delay() argument 859 static void mark_timeout_data(u_long i) in mark_timeout_data() argument 868 static void mark_timeout_audio(u_long i) 934 static INLINE u_char swap_nibbles(u_char i) in swap_nibbles() argument 936 return ((i<<4)|(i>>4)); in swap_nibbles() 939 static INLINE u_char byt2bcd(u_char i) in byt2bcd() argument 941 return (((i/10)<<4)+i%10); in byt2bcd() 952 int i; in msf2blk() local 955 i=(msf.c[2] * CD_SECS + msf.c[1]) * CD_FRAMES + msf.c[0] - CD_MSF_OFFSET; in msf2blk() 956 if (i<0) return (0); in msf2blk() [all …]
|
/linux-2.4.37.9/drivers/ide/arm/ |
D | rapide.c | 33 int i; in rapide_register() local 37 for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) { in rapide_register() 38 hw.io_ports[i] = (ide_ioreg_t)port; in rapide_register() 49 int i; in rapide_init() local 51 for (i = 0; i < MAX_ECARDS; i++) in rapide_init() 52 ec[i] = NULL; in rapide_init() 56 for (i = 0; ; i++) { in rapide_init() 57 if ((ec[i] = ecard_find(0, rapide_cids)) == NULL) in rapide_init() 60 ecard_claim(ec[i]); in rapide_init() 61 result[i] = rapide_register(ec[i]); in rapide_init() [all …]
|
/linux-2.4.37.9/fs/xfs/ |
D | xfs_error.c | 63 int i; in xfs_error_trap() local 67 for (i = 0; i < XFS_ERROR_NTRAP; i++) { in xfs_error_trap() 68 if (xfs_etrap[i] == 0) in xfs_error_trap() 70 if (e != xfs_etrap[i]) in xfs_error_trap() 99 int i; in xfs_error_test() local 107 for (i = 0; i < XFS_NUM_INJECT_ERROR; i++) { in xfs_error_test() 108 if (xfs_etest[i] == error_tag && xfs_etest_fsid[i] == fsid) { in xfs_error_test() 111 expression, file, line, xfs_etest_fsname[i]); in xfs_error_test() 122 int i; in xfs_errortag_add() local 128 for (i = 0; i < XFS_NUM_INJECT_ERROR; i++) { in xfs_errortag_add() [all …]
|
/linux-2.4.37.9/arch/sh64/lib/ |
D | panic.c | 17 int i; in panic_handler() local 25 for (i = 0; i < 8; i++) { in panic_handler() 26 nibble = ((panicPC >> (i * 4)) & 0xf); in panic_handler() 29 HDSP2534_ADDR + 0xe0 + ((7 - i) << 2)); in panic_handler() 32 for (i = 0; i < 2500000; i++) { in panic_handler() 35 for (i = 0; i < 8; i++) { in panic_handler() 36 nibble = ((panicSSR >> (i * 4)) & 0xf); in panic_handler() 39 HDSP2534_ADDR + 0xe0 + ((7 - i) << 2)); in panic_handler() 42 for (i = 0; i < 2500000; i++) { in panic_handler() 45 for (i = 0; i < 8; i++) { in panic_handler() [all …]
|
/linux-2.4.37.9/arch/sparc/kernel/ |
D | sun4m_smp.c | 153 int i = 0; in smp4m_boot_cpus() local 161 for(i=0; i < linux_num_cpus; i++) in smp4m_boot_cpus() 162 cpu_present_map |= (1<<i); in smp4m_boot_cpus() 164 for(i=0; i < NR_CPUS; i++) { in smp4m_boot_cpus() 165 cpu_offset[i] = (char *)&cpu_data[i] - (char *)&cpu_data; in smp4m_boot_cpus() 166 __cpu_number_map[i] = -1; in smp4m_boot_cpus() 167 __cpu_logical_map[i] = -1; in smp4m_boot_cpus() 182 for(i = 0; i < NR_CPUS; i++) { in smp4m_boot_cpus() 183 if(i == boot_cpu_id) in smp4m_boot_cpus() 186 if(cpu_present_map & (1 << i)) { in smp4m_boot_cpus() [all …]
|
/linux-2.4.37.9/fs/fat/ |
D | cvf.c | 58 { int i,j; in register_cvf_format() local 60 for(i=0;i<MAX_CVF_FORMATS;++i) in register_cvf_format() 61 { if(cvf_formats[i]==NULL) in register_cvf_format() 72 cvf_formats[i]=cvf_format; in register_cvf_format() 73 cvf_format_use_count[i]=0; in register_cvf_format() 85 { int i; in unregister_cvf_format() local 87 for(i=0;i<MAX_CVF_FORMATS;++i) in unregister_cvf_format() 88 { if(cvf_formats[i]) in unregister_cvf_format() 89 { if(cvf_formats[i]->cvf_version==cvf_format->cvf_version) in unregister_cvf_format() 90 { if(cvf_format_use_count[i]) in unregister_cvf_format() [all …]
|