Home
last modified time | relevance | path

Searched refs:to_write (Results 1 – 8 of 8) sorted by relevance

/drivers/isdn/hardware/eicon/
Distream.c78 int written = 0, to_write = -1; in diva_istream_write() local
91 if (to_write < 0) in diva_istream_write()
95 to_write = min(length, DIVA_DFIFO_DATA_SZ); in diva_istream_write()
96 if (to_write) { in diva_istream_write()
104 (word)to_write); in diva_istream_write()
105 length -= to_write; in diva_istream_write()
106 written += to_write; in diva_istream_write()
107 data_ptr += to_write; in diva_istream_write()
109 tmp[1] = (char)to_write; in diva_istream_write()
/drivers/scsi/libsas/
Dsas_host_smp.c331 int to_write = req_data[4]; in sas_smp_host_handler() local
333 if (blk_rq_bytes(req) < base_frame_size + to_write * 4 || in sas_smp_host_handler()
334 req->resid_len < base_frame_size + to_write * 4) { in sas_smp_host_handler()
339 to_write = sas_host_smp_write_gpio(sas_ha, resp_data, req_data[2], in sas_smp_host_handler()
340 req_data[3], to_write, &req_data[8]); in sas_smp_host_handler()
341 req->resid_len -= base_frame_size + to_write * 4; in sas_smp_host_handler()
/drivers/mtd/ubi/
Dgluebi.c225 size_t to_write = mtd->erasesize - offs; in gluebi_write() local
227 if (to_write > bytes_left) in gluebi_write()
228 to_write = bytes_left; in gluebi_write()
230 err = ubi_leb_write(gluebi->desc, lnum, buf, offs, to_write); in gluebi_write()
236 bytes_left -= to_write; in gluebi_write()
237 buf += to_write; in gluebi_write()
Dupd.c279 int lnum, offs, err = 0, len, to_write = count; in ubi_more_update_data() local
289 to_write = count = vol->upd_bytes - vol->upd_received; in ubi_more_update_data()
370 err = to_write; in ubi_more_update_data()
/drivers/usb/gadget/
Ds3c-hsotg.c466 int to_write = hs_ep->size_loaded; in s3c_hsotg_write_fifo() local
471 to_write -= (buf_pos - hs_ep->last_load); in s3c_hsotg_write_fifo()
474 if (to_write == 0) in s3c_hsotg_write_fifo()
538 __func__, gnptxsts, can_write, to_write, hs_ep->ep.maxpacket); in s3c_hsotg_write_fifo()
553 if (to_write > hs_ep->ep.maxpacket) { in s3c_hsotg_write_fifo()
554 to_write = hs_ep->ep.maxpacket; in s3c_hsotg_write_fifo()
563 if (to_write > can_write) { in s3c_hsotg_write_fifo()
564 to_write = can_write; in s3c_hsotg_write_fifo()
565 pkt_round = to_write % hs_ep->ep.maxpacket; in s3c_hsotg_write_fifo()
576 to_write -= pkt_round; in s3c_hsotg_write_fifo()
[all …]
/drivers/char/
Dmem.c542 unsigned long to_write = min_t(unsigned long, count, in write_kmem() local
544 wrote = do_write_kmem(p, buf, to_write, ppos); in write_kmem()
545 if (wrote != to_write) in write_kmem()
/drivers/md/
Draid5.h249 int locked, uptodate, to_read, to_write, failed, written; member
Draid5.c2664 (sh->raid_conf->level == 6 && s->failed && s->to_write))) { in fetch_block()
3312 s->to_write++; in analyse_stripe()
3485 s.replacing || s.to_write || s.written) { in handle_stripe()
3501 s.locked, s.uptodate, s.to_read, s.to_write, s.failed, in handle_stripe()
3509 if (s.to_read+s.to_write+s.written) in handle_stripe()
3580 || (conf->level == 6 && s.to_write && s.failed) in handle_stripe()
3592 if (s.to_write && !sh->reconstruct_state && !sh->check_state) in handle_stripe()