Home
last modified time | relevance | path

Searched refs:toread (Results 1 – 7 of 7) sorted by relevance

/drivers/mtd/nand/raw/bcm47xxnflash/
Dops_bcm4706.c94 int toread; in bcm47xxnflash_ops_bcm4706_read() local
102 toread = min(len, 0x200); in bcm47xxnflash_ops_bcm4706_read()
120 for (i = 0; i < toread; i += 4, dest++) { in bcm47xxnflash_ops_bcm4706_read()
122 if (i == toread - 4) /* Last read goes without that */ in bcm47xxnflash_ops_bcm4706_read()
130 b47n->curr_column += toread; in bcm47xxnflash_ops_bcm4706_read()
131 len -= toread; in bcm47xxnflash_ops_bcm4706_read()
/drivers/mtd/maps/
Dpcmciamtd.c145 int toread = win_size - (from & (win_size-1)); in pcmcia_copy_from_remap() local
148 if(toread > len) in pcmcia_copy_from_remap()
149 toread = len; in pcmcia_copy_from_remap()
155 pr_debug("memcpy from %p to %p len = %d\n", addr, to, toread); in pcmcia_copy_from_remap()
156 memcpy_fromio(to, addr, toread); in pcmcia_copy_from_remap()
157 len -= toread; in pcmcia_copy_from_remap()
158 to += toread; in pcmcia_copy_from_remap()
159 from += toread; in pcmcia_copy_from_remap()
/drivers/iio/gyro/
Dmpu3050-core.c536 unsigned int toread; in mpu3050_trigger_handler() local
549 toread = bytes_per_datum + 2; in mpu3050_trigger_handler()
552 toread = bytes_per_datum; in mpu3050_trigger_handler()
561 toread); in mpu3050_trigger_handler()
578 fifocnt -= toread; in mpu3050_trigger_handler()
/drivers/net/can/c_can/
Dc_can.c849 u32 pkts = 0, pend = 0, toread, n; in c_can_do_rx_poll() local
867 toread = c_can_adjust_pending(pend); in c_can_do_rx_poll()
869 toread = pend; in c_can_do_rx_poll()
872 pend &= ~toread; in c_can_do_rx_poll()
874 n = c_can_read_objects(dev, priv, toread, quota); in c_can_do_rx_poll()
/drivers/md/
Draid5.h265 struct bio *toread, *read, *towrite, *written; member
Draid5.c588 if (dev->toread || dev->read || dev->towrite || dev->written || in init_stripe()
591 (unsigned long long)sh->sector, i, dev->toread, in init_stripe()
1423 dev->read = rbi = dev->toread; in ops_run_biofill()
1424 dev->toread = NULL; in ops_run_biofill()
3424 bip = &sh->dev[dd_idx].toread; in add_stripe_bio()
3627 bi = sh->dev[i].toread; in handle_failed_stripe()
3628 sh->dev[i].toread = NULL; in handle_failed_stripe()
3742 if (dev->toread || in need_this_block()
3754 if ((s->failed >= 1 && fdev[0]->toread) || in need_this_block()
3755 (s->failed >= 2 && fdev[1]->toread)) in need_this_block()
[all …]
/drivers/mtd/nand/raw/
Dnand_base.c3207 int toread = min(oobreadlen, max_oobsize); in nand_do_read_ops() local
3209 if (toread) { in nand_do_read_ops()
3211 toread); in nand_do_read_ops()
3212 oobreadlen -= toread; in nand_do_read_ops()
3311 int i, toread, sndrnd = 0, pos, ret; in nand_read_oob_syndrome() local
3334 toread = min_t(int, length, chunk); in nand_read_oob_syndrome()
3336 ret = nand_read_data_op(chip, bufpoi, toread, false, false); in nand_read_oob_syndrome()
3340 bufpoi += toread; in nand_read_oob_syndrome()
3341 length -= toread; in nand_read_oob_syndrome()