Searched refs:toread (Results 1 – 5 of 5) sorted by relevance
/drivers/mtd/maps/ |
D | pcmciamtd.c | 169 int toread = win_size - (from & (win_size-1)); in pcmcia_copy_from_remap() local 172 if(toread > len) in pcmcia_copy_from_remap() 173 toread = len; in pcmcia_copy_from_remap() 179 DEBUG(4, "memcpy from %p to %p len = %d", addr, to, toread); in pcmcia_copy_from_remap() 180 memcpy_fromio(to, addr, toread); in pcmcia_copy_from_remap() 181 len -= toread; in pcmcia_copy_from_remap() 182 to += toread; in pcmcia_copy_from_remap() 183 from += toread; in pcmcia_copy_from_remap()
|
/drivers/media/video/usbvideo/ |
D | usbvideo.c | 145 int rql, toread; in RingQueue_Dequeue() local 158 toread = len; in RingQueue_Dequeue() 161 int read = (toread < (rq->length - rq->ri)) ? toread : rq->length - rq->ri; in RingQueue_Dequeue() 163 toread -= read; in RingQueue_Dequeue() 167 if(toread) { in RingQueue_Dequeue() 169 memcpy(dst, rq->queue + rq->ri, toread); in RingQueue_Dequeue() 170 rq->ri = (rq->ri + toread) & (rq->length-1); in RingQueue_Dequeue()
|
/drivers/md/ |
D | raid5.c | 299 if (dev->toread || dev->read || dev->towrite || dev->written || in init_stripe() 302 (unsigned long long)sh->sector, i, dev->toread, in init_stripe() 570 dev->read = rbi = dev->toread; in ops_run_biofill() 571 dev->toread = NULL; in ops_run_biofill() 1744 bip = &sh->dev[dd_idx].toread; in add_stripe_bio() 1880 bi = sh->dev[i].toread; in handle_failed_stripe() 1881 sh->dev[i].toread = NULL; in handle_failed_stripe() 1923 (dev->toread || in fetch_block5() 1927 (failed_dev->toread || in fetch_block5() 1989 (dev->toread || (dev->towrite && in handle_stripe_fill6() [all …]
|
/drivers/net/wan/ |
D | cycx_x25.c | 968 u16 size, toread, link, msg_code; in cycx_x25_irq_log() local 975 toread = size < 20 ? size : 20; in cycx_x25_irq_log() 976 cycx_peek(&card->hw, cmd->buf + 10, &bf, toread); in cycx_x25_irq_log() 977 cycx_peek(&card->hw, cmd->buf + 10 + toread, &code, 1); in cycx_x25_irq_log() 978 cycx_peek(&card->hw, cmd->buf + 10 + toread + 1, &routine, 1); in cycx_x25_irq_log() 987 hex_dump("Message", bf, toread); in cycx_x25_irq_log()
|
/drivers/mtd/nand/ |
D | nand_base.c | 1097 int toread = min(oobreadlen, in nand_do_read_ops() local 1099 if (toread) { in nand_do_read_ops() 1101 oob, ops, toread); in nand_do_read_ops() 1102 oobreadlen -= toread; in nand_do_read_ops() 1236 int i, toread, sndrnd = 0, pos; in nand_read_oob_syndrome() local 1248 toread = min_t(int, length, chunk); in nand_read_oob_syndrome() 1249 chip->read_buf(mtd, bufpoi, toread); in nand_read_oob_syndrome() 1250 bufpoi += toread; in nand_read_oob_syndrome() 1251 length -= toread; in nand_read_oob_syndrome()
|