/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()
|
D | comm.c | 151 { int k; in comm_write_block() local 157 for (k=0;k<count;k++) { in comm_write_block() 158 w2(5); w0(buf[k^1]); w2(7); in comm_write_block() 164 for (k=0;k<count;k++) w4(buf[k^1]); in comm_write_block() 168 for (k=0;k<count/2;k++) w4w(pi_swab16(buf,k)); in comm_write_block() 172 for (k=0;k<count/4;k++) w4l(pi_swab32(buf,k)); in comm_write_block()
|
/drivers/md/bcache/ |
D | bset.c | 65 struct bkey *k = l->bottom; in bch_keylist_pop() local 67 if (k == l->top) in bch_keylist_pop() 70 while (bkey_next(k) != l->top) in bch_keylist_pop() 71 k = bkey_next(k); in bch_keylist_pop() 73 return l->top = k; in bch_keylist_pop() 78 bool __bch_ptr_invalid(struct cache_set *c, int level, const struct bkey *k) in __bch_ptr_invalid() argument 82 if (level && (!KEY_PTRS(k) || !KEY_SIZE(k) || KEY_DIRTY(k))) in __bch_ptr_invalid() 85 if (!level && KEY_SIZE(k) > KEY_OFFSET(k)) in __bch_ptr_invalid() 88 if (!KEY_SIZE(k)) in __bch_ptr_invalid() 91 for (i = 0; i < KEY_PTRS(k); i++) in __bch_ptr_invalid() [all …]
|
D | debug.c | 21 const char *bch_ptr_status(struct cache_set *c, const struct bkey *k) in bch_ptr_status() argument 25 for (i = 0; i < KEY_PTRS(k); i++) in bch_ptr_status() 26 if (ptr_available(c, k, i)) { in bch_ptr_status() 27 struct cache *ca = PTR_CACHE(c, k, i); in bch_ptr_status() 28 size_t bucket = PTR_BUCKET_NR(c, k, i); in bch_ptr_status() 29 size_t r = bucket_remainder(c, PTR_OFFSET(k, i)); in bch_ptr_status() 31 if (KEY_SIZE(k) + r > c->sb.bucket_size) in bch_ptr_status() 37 if (ptr_stale(c, k, i)) in bch_ptr_status() 41 if (!bkey_cmp(k, &ZERO_KEY)) in bch_ptr_status() 43 if (!KEY_PTRS(k)) in bch_ptr_status() [all …]
|
D | btree.c | 104 #define PTR_HASH(c, k) \ argument 105 (((k)->ptr[0] >> c->bucket_bits) | PTR_GEN(k, 0)) 120 static void bkey_put(struct cache_set *c, struct bkey *k, int level) in bkey_put() argument 122 if ((level && KEY_OFFSET(k)) || !level) in bkey_put() 123 __bkey_put(c, k); in bkey_put() 323 BKEY_PADDED(key) k; in do_btree_write() 333 bkey_copy(&k.key, &b->key); in do_btree_write() 334 SET_PTR_OFFSET(&k.key, 0, PTR_OFFSET(&k.key, 0) + bset_offset(b, i)); in do_btree_write() 346 bch_submit_bbio(b->bio, b->c, &k.key, 0); in do_btree_write() 354 bch_submit_bbio(b->bio, b->c, &k.key, 0); in do_btree_write() [all …]
|
D | bset.h | 148 struct bkey *k, *end; member 192 static inline size_t bkey_u64s(const struct bkey *k) in bkey_u64s() argument 194 BUG_ON(KEY_CSUM(k) > 1); in bkey_u64s() 195 return 2 + KEY_PTRS(k) + (KEY_CSUM(k) ? 1 : 0); in bkey_u64s() 198 static inline size_t bkey_bytes(const struct bkey *k) in bkey_bytes() argument 200 return bkey_u64s(k) * sizeof(uint64_t); in bkey_bytes() 217 static inline struct bkey *bkey_next(const struct bkey *k) in bkey_next() argument 219 uint64_t *d = (void *) k; in bkey_next() 220 return (struct bkey *) (d + bkey_u64s(k)); in bkey_next() 247 static inline void bch_keylist_add(struct keylist *l, struct bkey *k) in bch_keylist_add() argument [all …]
|
/drivers/spi/ |
D | spi-sh-msiof.c | 102 int k; in sh_msiof_modify_ctr_wait() local 109 for (k = 100; k > 0; k--) { in sh_msiof_modify_ctr_wait() 116 return k > 0 ? 0 : -ETIMEDOUT; in sh_msiof_modify_ctr_wait() 152 size_t k; in sh_msiof_spi_set_clk_regs() local 159 for (k = 0; k < ARRAY_SIZE(sh_msiof_spi_clk_table); k++) { in sh_msiof_spi_set_clk_regs() 160 if (sh_msiof_spi_clk_table[k].div >= div) in sh_msiof_spi_set_clk_regs() 164 k = min_t(int, k, ARRAY_SIZE(sh_msiof_spi_clk_table) - 1); in sh_msiof_spi_set_clk_regs() 166 sh_msiof_write(p, TSCR, sh_msiof_spi_clk_table[k].scr); in sh_msiof_spi_set_clk_regs() 167 sh_msiof_write(p, RSCR, sh_msiof_spi_clk_table[k].scr); in sh_msiof_spi_set_clk_regs() 226 int k; in sh_msiof_spi_write_fifo_8() local [all …]
|
/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 …]
|
/drivers/irqchip/ |
D | irq-renesas-intc-irqpin.c | 293 int k; in intc_irqpin_shared_irq_handler() local 295 for (k = 0; k < 8; k++) { in intc_irqpin_shared_irq_handler() 296 if (reg_source & BIT(7 - k)) { in intc_irqpin_shared_irq_handler() 297 if (BIT(k) & p->shared_irq_mask) in intc_irqpin_shared_irq_handler() 300 status |= intc_irqpin_irq_handler(irq, &p->irq[k]); in intc_irqpin_shared_irq_handler() 340 int k; in intc_irqpin_probe() local 359 for (k = 0; k < INTC_IRQPIN_REG_NR; k++) { in intc_irqpin_probe() 360 io[k] = platform_get_resource(pdev, IORESOURCE_MEM, k); in intc_irqpin_probe() 361 if (!io[k]) { in intc_irqpin_probe() 369 for (k = 0; k < INTC_IRQPIN_MAX; k++) { in intc_irqpin_probe() [all …]
|
/drivers/staging/wlan-ng/ |
D | p80211wep.c | 154 u32 i, j, k, crc, keylen; in wep_decrypt() local 201 for (k = 0; k < len; k++) { in wep_decrypt() 205 buf[k] ^= s[(s[i] + s[j]) & 0xff]; in wep_decrypt() 206 crc = wep_crc32_table[(crc ^ buf[k]) & 0xff] ^ (crc >> 8); in wep_decrypt() 216 for (k = 0; k < 4; k++) { in wep_decrypt() 220 if ((c_crc[k] ^ s[(s[i] + s[j]) & 0xff]) != icv[k]) in wep_decrypt() 221 return -(4 | (k << 4)); /* ICV mismatch */ in wep_decrypt() 231 u32 i, j, k, crc, keylen; in wep_encrypt() local 278 for (k = 0; k < len; k++) { in wep_encrypt() 279 crc = wep_crc32_table[(crc ^ buf[k]) & 0xff] ^ (crc >> 8); in wep_encrypt() [all …]
|
/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 …]
|
/drivers/staging/comedi/drivers/ |
D | s626.c | 576 static uint32_t ReadLatch(struct comedi_device *dev, struct enc_private *k) in ReadLatch() argument 581 value = (uint32_t) DEBIread(dev, k->MyLatchLsw); in ReadLatch() 584 value |= ((uint32_t) DEBIread(dev, k->MyLatchLsw + 2) << 16); in ReadLatch() 594 static void SetLatchSource(struct comedi_device *dev, struct enc_private *k, in SetLatchSource() argument 597 DEBIreplace(dev, k->MyCRB, in SetLatchSource() 603 static void Preload(struct comedi_device *dev, struct enc_private *k, in Preload() argument 606 DEBIwrite(dev, (uint16_t) (k->MyLatchLsw), (uint16_t) value); in Preload() 607 DEBIwrite(dev, (uint16_t) (k->MyLatchLsw + 2), in Preload() 709 struct enc_private *k = &encpriv[5]; in handle_dio_interrupt() local 712 k->SetEnable(dev, k, CLKENAB_ALWAYS); in handle_dio_interrupt() [all …]
|
/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 …]
|
/drivers/sh/intc/ |
D | core.c | 190 unsigned int i, k, smp; in register_intc_controller() local 217 for (k = 0; k < d->nr_windows; k++) { in register_intc_controller() 218 res = desc->resource + k; in register_intc_controller() 220 d->window[k].phys = res->start; in register_intc_controller() 221 d->window[k].size = resource_size(res); in register_intc_controller() 222 d->window[k].virt = ioremap_nocache(res->start, in register_intc_controller() 224 if (!d->window[k].virt) in register_intc_controller() 248 k = 0; in register_intc_controller() 253 k += save_reg(d, k, hw->mask_regs[i].set_reg, smp); in register_intc_controller() 254 k += save_reg(d, k, hw->mask_regs[i].clr_reg, smp); in register_intc_controller() [all …]
|
/drivers/hwmon/ |
D | ads1015.c | 154 int k; in ads1015_remove() local 157 for (k = 0; k < ADS1015_CHANNELS; ++k) in ads1015_remove() 158 device_remove_file(&client->dev, &ads1015_in[k].dev_attr); in ads1015_remove() 225 unsigned int k; in ads1015_get_channels_config() local 242 for (k = 0; k < ADS1015_CHANNELS; ++k) { in ads1015_get_channels_config() 243 data->channel_data[k].enabled = true; in ads1015_get_channels_config() 244 data->channel_data[k].pga = ADS1015_DEFAULT_PGA; in ads1015_get_channels_config() 245 data->channel_data[k].data_rate = ADS1015_DEFAULT_DATA_RATE; in ads1015_get_channels_config() 254 unsigned int k; in ads1015_probe() local 266 for (k = 0; k < ADS1015_CHANNELS; ++k) { in ads1015_probe() [all …]
|
/drivers/scsi/aic7xxx/ |
D | aic7xxx_93cx6.c | 159 u_int k = 0; in ahc_read_seeprom() local 167 for (k = start_addr; k < count + start_addr; k++) { in ahc_read_seeprom() 177 if ((k & (1 << i)) != 0) in ahc_read_seeprom() 183 if ((k & (1 << i)) != 0) in ahc_read_seeprom() 204 buf[k - start_addr] = v; in ahc_read_seeprom() 211 for (k = 0; k < count; k = k + 1) { in ahc_read_seeprom() 212 if (((k % 8) == 0) && (k != 0)) { in ahc_read_seeprom() 215 printk(KERN_CONT " 0x%x", buf[k]); in ahc_read_seeprom() 233 int i, k; in ahc_write_seeprom() local 253 for (k = start_addr; k < count + start_addr; k++) { in ahc_write_seeprom() [all …]
|
/drivers/staging/iio/Documentation/ |
D | generic_buffer.c | 99 int k; in process_scan() local 100 for (k = 0; k < num_channels; k++) in process_scan() 101 switch (channels[k].bytes) { in process_scan() 104 print2byte(*(uint16_t *)(data + channels[k].location), in process_scan() 105 &channels[k]); in process_scan() 108 if (!channels[k].is_signed) { in process_scan() 110 (data + channels[k].location); in process_scan() 112 channels[k].offset)* in process_scan() 113 channels[k].scale); in process_scan() 118 if (channels[k].is_signed) { in process_scan() [all …]
|