/linux-2.6.39/drivers/block/paride/ |
D | epat.c | 99 { int k, ph, a, b; in epat_read_block() local 105 for(k=0;k<count;k++) { in epat_read_block() 106 if (k == count-1) w0(0xfd); in epat_read_block() 110 buf[k] = j44(a,b); in epat_read_block() 118 for(k=0;k<count;k++) { in epat_read_block() 119 if (k == count-1) w0(0xfd); in epat_read_block() 122 buf[k] = j53(a,b); in epat_read_block() 130 for(k=0;k<count-1;k++) { in epat_read_block() 132 buf[k] = r0(); in epat_read_block() 140 for(k=0;k<count-1;k++) buf[k] = r4(); in epat_read_block() [all …]
|
D | epia.c | 138 { int k, ph, a, b; in epia_read_block() local 144 for (k=0;k<count;k++) { in epia_read_block() 147 buf[k] = j44(a,b); in epia_read_block() 156 for (k=0;k<count;k++) { in epia_read_block() 159 buf[k] = j53(a,b); in epia_read_block() 167 for (k=0;k<count;k++) { in epia_read_block() 169 buf[k] = r0(); in epia_read_block() 177 for (k=0;k<count;k++) buf[k] = r4(); in epia_read_block() 183 for (k=0;k<count/2;k++) ((u16 *)buf)[k] = r4w(); in epia_read_block() 189 for (k=0;k<count/4;k++) ((u32 *)buf)[k] = r4l(); in epia_read_block() [all …]
|
D | friq.c | 79 { int h, l, k, ph; in friq_read_block_int() local 84 for (k=0;k<count;k++) { in friq_read_block_int() 87 buf[k] = j44(l,h); in friq_read_block_int() 95 for (k=0;k<count;k++) { in friq_read_block_int() 97 buf[k] = r0(); in friq_read_block_int() 104 for (k=0;k<count-2;k++) buf[k] = r4(); in friq_read_block_int() 112 for (k=0;k<(count/2)-1;k++) ((u16 *)buf)[k] = r4w(); in friq_read_block_int() 120 for (k=0;k<(count/4)-1;k++) ((u32 *)buf)[k] = r4l(); in friq_read_block_int() 139 { int k; in friq_write_block() local 145 for (k=0;k<count;k++) { in friq_write_block() [all …]
|
D | frpw.c | 76 { int h, l, k, ph; in frpw_read_block_int() local 81 for (k=0;k<count;k++) { in frpw_read_block_int() 84 buf[k] = j44(l,h); in frpw_read_block_int() 92 for (k=0;k<count;k++) { in frpw_read_block_int() 94 buf[k] = r0(); in frpw_read_block_int() 101 for (k=0;k<count;k++) buf[k] = r4(); in frpw_read_block_int() 107 for (k=0;k<count-2;k++) buf[k] = r4(); in frpw_read_block_int() 115 for (k=0;k<(count/2)-1;k++) ((u16 *)buf)[k] = r4w(); in frpw_read_block_int() 123 for (k=0;k<(count/4)-1;k++) ((u32 *)buf)[k] = r4l(); in frpw_read_block_int() 142 { int k; in frpw_write_block() local [all …]
|
D | dstr.c | 117 { int k, a, b; in dstr_read_block() local 125 case 0: for (k=0;k<count;k++) { in dstr_read_block() 128 buf[k] = j44(a,b); in dstr_read_block() 133 for (k=0;k<count;k++) { in dstr_read_block() 134 w2(0x26); buf[k] = r0(); w2(0x24); in dstr_read_block() 140 for (k=0;k<count;k++) buf[k] = r4(); in dstr_read_block() 145 for (k=0;k<count/2;k++) ((u16 *)buf)[k] = r4w(); in dstr_read_block() 150 for (k=0;k<count/4;k++) ((u32 *)buf)[k] = r4l(); in dstr_read_block() 159 { int k; in dstr_write_block() local 168 case 1: for (k=0;k<count;k++) { in dstr_write_block() [all …]
|
D | kbic.c | 136 { int k, a, b; in kbic_read_block() local 141 for (k=0;k<count/2;k++) { in kbic_read_block() 144 buf[2*k] = j44(a,b); in kbic_read_block() 147 buf[2*k+1] = j44(a,b); in kbic_read_block() 153 for (k=0;k<count/4;k++) { in kbic_read_block() 156 w0(8); buf[4*k] = j53(r12w()); in kbic_read_block() 157 w0(0xb8); buf[4*k+1] = j53(r12w()); in kbic_read_block() 159 buf[4*k+3] = j53(r12w()); in kbic_read_block() 160 w0(8); buf[4*k+2] = j53(r12w()); in kbic_read_block() 166 for (k=0;k<count/2;k++) { in kbic_read_block() [all …]
|
D | on26.c | 188 { int k, a, b; in on26_read_block() local 194 for (k=0;k<count;k++) { in on26_read_block() 197 buf[k] = j44(a,b); in on26_read_block() 204 for (k=0;k<count/2;k++) { in on26_read_block() 205 w2(0x26); buf[2*k] = r0(); in on26_read_block() 206 w2(0x24); buf[2*k+1] = r0(); in on26_read_block() 214 for (k=0;k<count;k++) buf[k] = r4(); in on26_read_block() 221 for (k=0;k<count/2;k++) ((u16 *)buf)[k] = r4w(); in on26_read_block() 228 for (k=0;k<count/4;k++) ((u32 *)buf)[k] = r4l(); in on26_read_block() 237 { int k; in on26_write_block() local [all …]
|
D | fit3.c | 97 { int k, a, b, c, d; in fit3_read_block() local 102 for (k=0;k<count/2;k++) { in fit3_read_block() 107 buf[2*k ] = j44(a,b); in fit3_read_block() 108 buf[2*k+1] = j44(c,d); in fit3_read_block() 115 for (k=0;k<count/2;k++) { in fit3_read_block() 118 buf[2*k ] = a; in fit3_read_block() 119 buf[2*k+1] = b; in fit3_read_block() 127 for (k=0;k<count;k++) buf[k] = r4(); in fit3_read_block() 136 { int k; in fit3_write_block() local 142 for (k=0;k<count/2;k++) { in fit3_write_block() [all …]
|
D | aten.c | 72 { int k, a, b, c, d; in aten_read_block() local 77 for (k=0;k<count/2;k++) { in aten_read_block() 81 buf[2*k] = j44(c,d); in aten_read_block() 82 buf[2*k+1] = j44(a,b); in aten_read_block() 88 for (k=0;k<count/2;k++) { in aten_read_block() 91 buf[2*k] = b; buf[2*k+1] = a; in aten_read_block() 100 { int k; in aten_write_block() local 103 for (k=0;k<count/2;k++) { in aten_write_block() 104 w0(buf[2*k+1]); w2(0xe); w2(6); in aten_write_block() 105 w0(buf[2*k]); w2(7); w2(6); in aten_write_block()
|
/linux-2.6.39/lib/ |
D | bitmap.c | 43 int k, lim = bits/BITS_PER_LONG; in __bitmap_empty() local 44 for (k = 0; k < lim; ++k) in __bitmap_empty() 45 if (bitmap[k]) in __bitmap_empty() 49 if (bitmap[k] & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_empty() 58 int k, lim = bits/BITS_PER_LONG; in __bitmap_full() local 59 for (k = 0; k < lim; ++k) in __bitmap_full() 60 if (~bitmap[k]) in __bitmap_full() 64 if (~bitmap[k] & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_full() 74 int k, lim = bits/BITS_PER_LONG; in __bitmap_equal() local 75 for (k = 0; k < lim; ++k) in __bitmap_equal() [all …]
|
D | klist.c | 85 void klist_init(struct klist *k, void (*get)(struct klist_node *), in klist_init() argument 88 INIT_LIST_HEAD(&k->k_list); in klist_init() 89 spin_lock_init(&k->k_lock); in klist_init() 90 k->get = get; in klist_init() 91 k->put = put; in klist_init() 95 static void add_head(struct klist *k, struct klist_node *n) in add_head() argument 97 spin_lock(&k->k_lock); in add_head() 98 list_add(&n->n_node, &k->k_list); in add_head() 99 spin_unlock(&k->k_lock); in add_head() 102 static void add_tail(struct klist *k, struct klist_node *n) in add_tail() argument [all …]
|
/linux-2.6.39/arch/sparc/include/asm/ |
D | termios.h | 104 #define user_termios_to_kernel_termios(k, u) \ argument 107 err = get_user((k)->c_iflag, &(u)->c_iflag); \ 108 err |= get_user((k)->c_oflag, &(u)->c_oflag); \ 109 err |= get_user((k)->c_cflag, &(u)->c_cflag); \ 110 err |= get_user((k)->c_lflag, &(u)->c_lflag); \ 111 err |= get_user((k)->c_line, &(u)->c_line); \ 112 err |= copy_from_user((k)->c_cc, (u)->c_cc, NCCS); \ 113 if ((k)->c_lflag & ICANON) { \ 114 err |= get_user((k)->c_cc[VEOF], &(u)->c_cc[VEOF]); \ 115 err |= get_user((k)->c_cc[VEOL], &(u)->c_cc[VEOL]); \ [all …]
|
/linux-2.6.39/net/ceph/ |
D | ceph_hash.c | 25 const unsigned char *k = (const unsigned char *)str; in ceph_str_hash_rjenkins() local 37 a = a + (k[0] + ((__u32)k[1] << 8) + ((__u32)k[2] << 16) + in ceph_str_hash_rjenkins() 38 ((__u32)k[3] << 24)); in ceph_str_hash_rjenkins() 39 b = b + (k[4] + ((__u32)k[5] << 8) + ((__u32)k[6] << 16) + in ceph_str_hash_rjenkins() 40 ((__u32)k[7] << 24)); in ceph_str_hash_rjenkins() 41 c = c + (k[8] + ((__u32)k[9] << 8) + ((__u32)k[10] << 16) + in ceph_str_hash_rjenkins() 42 ((__u32)k[11] << 24)); in ceph_str_hash_rjenkins() 44 k = k + 12; in ceph_str_hash_rjenkins() 52 c = c + ((__u32)k[10] << 24); in ceph_str_hash_rjenkins() 54 c = c + ((__u32)k[9] << 16); in ceph_str_hash_rjenkins() [all …]
|
/linux-2.6.39/drivers/net/ehea/ |
D | ehea_ethtool.c | 219 int i, k, tmp; in ehea_get_ethtool_stats() local 230 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats() 231 tmp += port->port_res[k].p_stats.poll_receive_errors; in ehea_get_ethtool_stats() 234 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats() 235 tmp += port->port_res[k].p_stats.err_tcp_cksum; in ehea_get_ethtool_stats() 238 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats() 239 tmp += port->port_res[k].p_stats.err_ip_cksum; in ehea_get_ethtool_stats() 242 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats() 243 tmp += port->port_res[k].p_stats.err_frame_crc; in ehea_get_ethtool_stats() 246 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats() [all …]
|
/linux-2.6.39/drivers/spi/ |
D | spi_sh_msiof.c | 100 int k; in sh_msiof_modify_ctr_wait() local 107 for (k = 100; k > 0; k--) { in sh_msiof_modify_ctr_wait() 114 return k > 0 ? 0 : -ETIMEDOUT; in sh_msiof_modify_ctr_wait() 150 size_t k; in sh_msiof_spi_set_clk_regs() local 157 for (k = 0; k < ARRAY_SIZE(sh_msiof_spi_clk_table); k++) { in sh_msiof_spi_set_clk_regs() 158 if (sh_msiof_spi_clk_table[k].div >= div) in sh_msiof_spi_set_clk_regs() 162 k = min_t(int, k, ARRAY_SIZE(sh_msiof_spi_clk_table) - 1); in sh_msiof_spi_set_clk_regs() 164 sh_msiof_write(p, TSCR, sh_msiof_spi_clk_table[k].scr); in sh_msiof_spi_set_clk_regs() 165 sh_msiof_write(p, RSCR, sh_msiof_spi_clk_table[k].scr); in sh_msiof_spi_set_clk_regs() 224 int k; in sh_msiof_spi_write_fifo_8() local [all …]
|
/linux-2.6.39/include/linux/ |
D | jhash.h | 73 const u8 *k = key; in jhash() local 80 a += __get_unaligned_cpu32(k); in jhash() 81 b += __get_unaligned_cpu32(k + 4); in jhash() 82 c += __get_unaligned_cpu32(k + 8); in jhash() 85 k += 12; in jhash() 90 case 12: c += (u32)k[11]<<24; in jhash() 91 case 11: c += (u32)k[10]<<16; in jhash() 92 case 10: c += (u32)k[9]<<8; in jhash() 93 case 9: c += k[8]; in jhash() 94 case 8: b += (u32)k[7]<<24; in jhash() [all …]
|
/linux-2.6.39/drivers/net/vxge/ |
D | vxge-ethtool.c | 202 int j, k; in vxge_get_ethtool_stats() local 268 for (k = 0; k < vdev->no_of_vpath; k++) { in vxge_get_ethtool_stats() 271 vpath = &vdev->vpaths[k]; in vxge_get_ethtool_stats() 345 for (k = 0; k < vdev->max_config_port; k++) { in vxge_get_ethtool_stats() 346 *ptr++ = xmac_stats->aggr_stats[k].tx_frms; in vxge_get_ethtool_stats() 347 *ptr++ = xmac_stats->aggr_stats[k].tx_data_octets; in vxge_get_ethtool_stats() 348 *ptr++ = xmac_stats->aggr_stats[k].tx_mcast_frms; in vxge_get_ethtool_stats() 349 *ptr++ = xmac_stats->aggr_stats[k].tx_bcast_frms; in vxge_get_ethtool_stats() 350 *ptr++ = xmac_stats->aggr_stats[k].tx_discarded_frms; in vxge_get_ethtool_stats() 351 *ptr++ = xmac_stats->aggr_stats[k].tx_errored_frms; in vxge_get_ethtool_stats() [all …]
|
/linux-2.6.39/crypto/ |
D | serpent.c | 37 b ^= d; b ^= c; b ^= a; b ^= PHI ^ i; b = rol32(b,11); k[j] = b; 40 x0=k[i]; x1=k[i+1]; x2=k[i+2]; x3=k[i+3]; 43 k[i]=x0; k[i+1]=x1; k[i+2]=x2; k[i+3]=x3; 46 x3 ^= k[4*(i)+3]; x2 ^= k[4*(i)+2]; \ 47 x1 ^= k[4*(i)+1]; x0 ^= k[4*(i)+0]; 56 x0 ^= x3; x2 ^= x4; x3 ^= k[4*i+3]; \ 57 x1 ^= k[4*i+1]; x0=rol32(x0,5); x2=rol32(x2,22);\ 58 x0 ^= k[4*i+0]; x2 ^= k[4*i+2]; 61 x0 ^= k[4*i+0]; x1 ^= k[4*i+1]; x2 ^= k[4*i+2]; \ 62 x3 ^= k[4*i+3]; x0=ror32(x0,5); x2=ror32(x2,22);\ [all …]
|
/linux-2.6.39/fs/proc/ |
D | page.c | 82 u64 k; in stable_page_flags() local 92 k = page->flags; in stable_page_flags() 127 u |= kpf_copy_bit(k, KPF_LOCKED, PG_locked); in stable_page_flags() 129 u |= kpf_copy_bit(k, KPF_SLAB, PG_slab); in stable_page_flags() 131 u |= kpf_copy_bit(k, KPF_ERROR, PG_error); in stable_page_flags() 132 u |= kpf_copy_bit(k, KPF_DIRTY, PG_dirty); in stable_page_flags() 133 u |= kpf_copy_bit(k, KPF_UPTODATE, PG_uptodate); in stable_page_flags() 134 u |= kpf_copy_bit(k, KPF_WRITEBACK, PG_writeback); in stable_page_flags() 136 u |= kpf_copy_bit(k, KPF_LRU, PG_lru); in stable_page_flags() 137 u |= kpf_copy_bit(k, KPF_REFERENCED, PG_referenced); in stable_page_flags() [all …]
|
/linux-2.6.39/drivers/staging/wlan-ng/ |
D | p80211wep.c | 156 u32 i, j, k, crc, keylen; in wep_decrypt() local 205 for (k = 0; k < len; k++) { in wep_decrypt() 209 buf[k] ^= s[(s[i] + s[j]) & 0xff]; in wep_decrypt() 210 crc = wep_crc32_table[(crc ^ buf[k]) & 0xff] ^ (crc >> 8); in wep_decrypt() 220 for (k = 0; k < 4; k++) { in wep_decrypt() 224 if ((c_crc[k] ^ s[(s[i] + s[j]) & 0xff]) != icv[k]) in wep_decrypt() 225 return -(4 | (k << 4)); /* ICV mismatch */ in wep_decrypt() 235 u32 i, j, k, crc, keylen; in wep_encrypt() local 284 for (k = 0; k < len; k++) { in wep_encrypt() 285 crc = wep_crc32_table[(crc ^ buf[k]) & 0xff] ^ (crc >> 8); in wep_encrypt() [all …]
|
/linux-2.6.39/drivers/staging/iio/Documentation/ |
D | generic_buffer.c | 68 int k; in process_scan() local 69 for (k = 0; k < num_channels; k++) in process_scan() 70 switch (infoarray[k].bytes) { in process_scan() 73 if (infoarray[k].is_signed) { in process_scan() 76 + infoarray[k].location); in process_scan() 77 if ((val >> infoarray[k].bits_used) & 1) in process_scan() 78 val = (val & infoarray[k].mask) | in process_scan() 79 ~infoarray[k].mask; in process_scan() 81 infoarray[k].offset)* in process_scan() 82 infoarray[k].scale); in process_scan() [all …]
|
/linux-2.6.39/arch/powerpc/platforms/powermac/ |
D | udbg_adb.c | 76 int k, t, on; in udbg_adb_local_getc() local 83 k = -1; in udbg_adb_local_getc() 93 k = udbg_adb_old_getc_poll(); in udbg_adb_local_getc() 94 } while (k == -1 && xmon_adb_keycode == -1); in udbg_adb_local_getc() 97 if (k != -1) in udbg_adb_local_getc() 98 return k; in udbg_adb_local_getc() 99 k = xmon_adb_keycode; in udbg_adb_local_getc() 102 if ((k & 0x7f) == 0x38 || (k & 0x7f) == 0x7b) { in udbg_adb_local_getc() 103 xmon_adb_shiftstate = (k & 0x80) == 0; in udbg_adb_local_getc() 106 if (k >= 0x80) in udbg_adb_local_getc() [all …]
|
/linux-2.6.39/drivers/staging/comedi/drivers/ |
D | s626.c | 354 static void s626_timer_load(struct comedi_device *dev, struct enc_private *k, 356 static uint32_t ReadLatch(struct comedi_device *dev, struct enc_private *k); 357 static void ResetCapFlags_A(struct comedi_device *dev, struct enc_private *k); 358 static void ResetCapFlags_B(struct comedi_device *dev, struct enc_private *k); 359 static uint16_t GetMode_A(struct comedi_device *dev, struct enc_private *k); 360 static uint16_t GetMode_B(struct comedi_device *dev, struct enc_private *k); 361 static void SetMode_A(struct comedi_device *dev, struct enc_private *k, 363 static void SetMode_B(struct comedi_device *dev, struct enc_private *k, 365 static void SetEnable_A(struct comedi_device *dev, struct enc_private *k, 367 static void SetEnable_B(struct comedi_device *dev, struct enc_private *k, [all …]
|
/linux-2.6.39/arch/sh/kernel/ |
D | io_trapped.c | 50 int k, n; in register_trapped_io() local 59 for (k = 0; k < tiop->num_resources; k++) { in register_trapped_io() 60 res = tiop->resource + k; in register_trapped_io() 74 for (k = 0; k < n; k++) in register_trapped_io() 75 pages[k] = virt_to_page(tiop); in register_trapped_io() 82 for (k = 0; k < tiop->num_resources; k++) { in register_trapped_io() 83 res = tiop->resource + k; in register_trapped_io() 118 int k, len; in match_trapped_io_handler() local 124 for (k = 0; k < tiop->num_resources; k++) { in match_trapped_io_handler() 125 res = tiop->resource + k; in match_trapped_io_handler() [all …]
|
/linux-2.6.39/drivers/input/joystick/ |
D | tmdc.c | 151 int i[2], j[2], t[2], p, k; in tmdc_read_packet() local 155 for (k = 0; k < 2; k++) { in tmdc_read_packet() 156 t[k] = gameport_time(gameport, TMDC_MAX_START); in tmdc_read_packet() 157 i[k] = j[k] = 0; in tmdc_read_packet() 169 for (k = 0, v = w, u = x; k < 2; k++, v >>= 2, u >>= 2) { in tmdc_read_packet() 171 if (t[k] <= 0 || i[k] >= TMDC_MAX_LENGTH) continue; in tmdc_read_packet() 172 t[k] = p; in tmdc_read_packet() 173 if (j[k] == 0) { /* Start bit */ in tmdc_read_packet() 174 if (~v & 1) t[k] = 0; in tmdc_read_packet() 175 data[k][i[k]] = 0; j[k]++; continue; in tmdc_read_packet() [all …]
|