Home
last modified time | relevance | path

Searched refs:to_write (Results 1 – 9 of 9) 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/spi/
Dspi-bcm53xx.c183 size_t to_write = min_t(size_t, 16, left); in bcm53xxspi_transfer_one() local
184 bool cont = left - to_write > 0; in bcm53xxspi_transfer_one()
186 bcm53xxspi_buf_write(b53spi, buf, to_write, cont); in bcm53xxspi_transfer_one()
187 left -= to_write; in bcm53xxspi_transfer_one()
188 buf += to_write; in bcm53xxspi_transfer_one()
/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.c281 int lnum, offs, err = 0, len, to_write = count; in ubi_more_update_data() local
291 to_write = count = vol->upd_bytes - vol->upd_received; in ubi_more_update_data()
372 err = to_write; in ubi_more_update_data()
/drivers/usb/dwc2/
Dgadget.c322 int to_write = hs_ep->size_loaded; in s3c_hsotg_write_fifo() local
328 to_write -= (buf_pos - hs_ep->last_load); in s3c_hsotg_write_fifo()
331 if (to_write == 0) in s3c_hsotg_write_fifo()
397 __func__, gnptxsts, can_write, to_write, max_transfer); in s3c_hsotg_write_fifo()
412 if (to_write > max_transfer) { in s3c_hsotg_write_fifo()
413 to_write = max_transfer; in s3c_hsotg_write_fifo()
424 if (to_write > can_write) { in s3c_hsotg_write_fifo()
425 to_write = can_write; in s3c_hsotg_write_fifo()
426 pkt_round = to_write % max_transfer; in s3c_hsotg_write_fifo()
437 to_write -= pkt_round; in s3c_hsotg_write_fifo()
[all …]
/drivers/char/
Dmem.c539 unsigned long to_write = min_t(unsigned long, count, in write_kmem() local
541 wrote = do_write_kmem(p, buf, to_write, ppos); in write_kmem()
542 if (wrote != to_write) in write_kmem()
/drivers/md/
Draid5.h253 int locked, uptodate, to_read, to_write, failed, written; member
Draid5.c2926 && s->failed && s->to_write && in fetch_block()
2927 (s->to_write - s->non_overwrite < in fetch_block()
3598 s->to_write++; in analyse_stripe()
3772 s.replacing || s.to_write || s.written) { in handle_stripe()
3788 s.locked, s.uptodate, s.to_read, s.to_write, s.failed, in handle_stripe()
3796 if (s.to_read+s.to_write+s.written) in handle_stripe()
3869 || (conf->level == 6 && s.to_write && s.failed) in handle_stripe()
3881 if (s.to_write && !sh->reconstruct_state && !sh->check_state) in handle_stripe()