/linux-3.4.99/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-3.4.99/arch/arm/mach-shmobile/ |
D | intc-sh7372.c | 579 int k; in sh7372_intcs_suspend() local 581 for (k = 0x00; k <= 0x30; k += 4) in sh7372_intcs_suspend() 582 ffd2[k] = __raw_readw(intcs_ffd2 + k); in sh7372_intcs_suspend() 584 for (k = 0x80; k <= 0xb0; k += 4) in sh7372_intcs_suspend() 585 ffd2[k] = __raw_readb(intcs_ffd2 + k); in sh7372_intcs_suspend() 587 for (k = 0x180; k <= 0x188; k += 4) in sh7372_intcs_suspend() 588 ffd2[k] = __raw_readb(intcs_ffd2 + k); in sh7372_intcs_suspend() 590 for (k = 0x00; k <= 0x3c; k += 4) in sh7372_intcs_suspend() 591 ffd5[k] = __raw_readw(intcs_ffd5 + k); in sh7372_intcs_suspend() 593 for (k = 0x80; k <= 0x9c; k += 4) in sh7372_intcs_suspend() [all …]
|
/linux-3.4.99/arch/sparc/include/asm/ |
D | termios.h | 103 #define user_termios_to_kernel_termios(k, u) \ argument 106 err = get_user((k)->c_iflag, &(u)->c_iflag); \ 107 err |= get_user((k)->c_oflag, &(u)->c_oflag); \ 108 err |= get_user((k)->c_cflag, &(u)->c_cflag); \ 109 err |= get_user((k)->c_lflag, &(u)->c_lflag); \ 110 err |= get_user((k)->c_line, &(u)->c_line); \ 111 err |= copy_from_user((k)->c_cc, (u)->c_cc, NCCS); \ 112 if ((k)->c_lflag & ICANON) { \ 113 err |= get_user((k)->c_cc[VEOF], &(u)->c_cc[VEOF]); \ 114 err |= get_user((k)->c_cc[VEOL], &(u)->c_cc[VEOL]); \ [all …]
|
/linux-3.4.99/lib/ |
D | bitmap.c | 45 int k, lim = bits/BITS_PER_LONG; in __bitmap_empty() local 46 for (k = 0; k < lim; ++k) in __bitmap_empty() 47 if (bitmap[k]) in __bitmap_empty() 51 if (bitmap[k] & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_empty() 60 int k, lim = bits/BITS_PER_LONG; in __bitmap_full() local 61 for (k = 0; k < lim; ++k) in __bitmap_full() 62 if (~bitmap[k]) in __bitmap_full() 66 if (~bitmap[k] & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_full() 76 int k, lim = bits/BITS_PER_LONG; in __bitmap_equal() local 77 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-3.4.99/drivers/spi/ |
D | spi-sh-msiof.c | 101 int k; in sh_msiof_modify_ctr_wait() local 108 for (k = 100; k > 0; k--) { in sh_msiof_modify_ctr_wait() 115 return k > 0 ? 0 : -ETIMEDOUT; in sh_msiof_modify_ctr_wait() 151 size_t k; in sh_msiof_spi_set_clk_regs() local 158 for (k = 0; k < ARRAY_SIZE(sh_msiof_spi_clk_table); k++) { in sh_msiof_spi_set_clk_regs() 159 if (sh_msiof_spi_clk_table[k].div >= div) in sh_msiof_spi_set_clk_regs() 163 k = min_t(int, k, ARRAY_SIZE(sh_msiof_spi_clk_table) - 1); in sh_msiof_spi_set_clk_regs() 165 sh_msiof_write(p, TSCR, sh_msiof_spi_clk_table[k].scr); in sh_msiof_spi_set_clk_regs() 166 sh_msiof_write(p, RSCR, sh_msiof_spi_clk_table[k].scr); in sh_msiof_spi_set_clk_regs() 225 int k; in sh_msiof_spi_write_fifo_8() local [all …]
|
/linux-3.4.99/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-3.4.99/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-3.4.99/crypto/ |
D | serpent_generic.c | 34 ({ b ^= d; b ^= c; b ^= a; b ^= PHI ^ i; b = rol32(b, 11); k[j] = b; }) 37 ({ x0 = k[i]; x1 = k[i+1]; x2 = k[i+2]; x3 = k[i+3]; }) 40 ({ 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]; \ 57 x0 ^= x3; x2 ^= x4; x3 ^= k[4*i+3]; \ 58 x1 ^= k[4*i+1]; x0 = rol32(x0, 5); x2 = rol32(x2, 22);\ 59 x0 ^= k[4*i+0]; x2 ^= k[4*i+2]; \ 63 x0 ^= k[4*i+0]; x1 ^= k[4*i+1]; x2 ^= k[4*i+2]; \ 64 x3 ^= k[4*i+3]; x0 = ror32(x0, 5); x2 = ror32(x2, 22);\ [all …]
|
/linux-3.4.99/tools/perf/util/ |
D | bitmap.c | 12 int k, w = 0, lim = bits/BITS_PER_LONG; in __bitmap_weight() local 14 for (k = 0; k < lim; k++) in __bitmap_weight() 15 w += hweight_long(bitmap[k]); in __bitmap_weight() 18 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight() 26 int k; in __bitmap_or() local 29 for (k = 0; k < nr; k++) in __bitmap_or() 30 dst[k] = bitmap1[k] | bitmap2[k]; in __bitmap_or()
|
/linux-3.4.99/drivers/net/ethernet/neterion/vxge/ |
D | vxge-ethtool.c | 210 int j, k; in vxge_get_ethtool_stats() local 276 for (k = 0; k < vdev->no_of_vpath; k++) { in vxge_get_ethtool_stats() 279 vpath = &vdev->vpaths[k]; in vxge_get_ethtool_stats() 353 for (k = 0; k < vdev->max_config_port; k++) { in vxge_get_ethtool_stats() 354 *ptr++ = xmac_stats->aggr_stats[k].tx_frms; in vxge_get_ethtool_stats() 355 *ptr++ = xmac_stats->aggr_stats[k].tx_data_octets; in vxge_get_ethtool_stats() 356 *ptr++ = xmac_stats->aggr_stats[k].tx_mcast_frms; in vxge_get_ethtool_stats() 357 *ptr++ = xmac_stats->aggr_stats[k].tx_bcast_frms; in vxge_get_ethtool_stats() 358 *ptr++ = xmac_stats->aggr_stats[k].tx_discarded_frms; in vxge_get_ethtool_stats() 359 *ptr++ = xmac_stats->aggr_stats[k].tx_errored_frms; in vxge_get_ethtool_stats() [all …]
|
/linux-3.4.99/fs/proc/ |
D | page.c | 82 u64 k; in stable_page_flags() local 92 k = page->flags; in stable_page_flags() 135 u |= kpf_copy_bit(k, KPF_LOCKED, PG_locked); in stable_page_flags() 137 u |= kpf_copy_bit(k, KPF_SLAB, PG_slab); in stable_page_flags() 139 u |= kpf_copy_bit(k, KPF_ERROR, PG_error); in stable_page_flags() 140 u |= kpf_copy_bit(k, KPF_DIRTY, PG_dirty); in stable_page_flags() 141 u |= kpf_copy_bit(k, KPF_UPTODATE, PG_uptodate); in stable_page_flags() 142 u |= kpf_copy_bit(k, KPF_WRITEBACK, PG_writeback); in stable_page_flags() 144 u |= kpf_copy_bit(k, KPF_LRU, PG_lru); in stable_page_flags() 145 u |= kpf_copy_bit(k, KPF_REFERENCED, PG_referenced); in stable_page_flags() [all …]
|
/linux-3.4.99/drivers/sh/ |
D | pfc.c | 27 int k; in pfc_iounmap() local 29 for (k = 0; k < pip->num_resources; k++) in pfc_iounmap() 30 if (pip->window[k].virt) in pfc_iounmap() 31 iounmap(pip->window[k].virt); in pfc_iounmap() 40 int k; in pfc_ioremap() local 50 for (k = 0; k < pip->num_resources; k++) { in pfc_ioremap() 51 res = pip->resource + k; in pfc_ioremap() 53 pip->window[k].phys = res->start; in pfc_ioremap() 54 pip->window[k].size = resource_size(res); in pfc_ioremap() 55 pip->window[k].virt = ioremap_nocache(res->start, in pfc_ioremap() [all …]
|
/linux-3.4.99/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-3.4.99/drivers/net/ethernet/ibm/ehea/ |
D | ehea_ethtool.c | 231 int i, k, tmp; in ehea_get_ethtool_stats() local 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.poll_receive_errors; in ehea_get_ethtool_stats() 246 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats() 247 tmp += port->port_res[k].p_stats.err_tcp_cksum; in ehea_get_ethtool_stats() 250 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats() 251 tmp += port->port_res[k].p_stats.err_ip_cksum; in ehea_get_ethtool_stats() 254 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats() 255 tmp += port->port_res[k].p_stats.err_frame_crc; in ehea_get_ethtool_stats() 258 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats() [all …]
|
/linux-3.4.99/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-3.4.99/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 …]
|