Searched refs:to_write (Results 1 – 9 of 9) sorted by relevance
/drivers/isdn/hardware/eicon/ |
D | istream.c | 78 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/ |
D | sas_host_smp.c | 331 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/ |
D | gluebi.c | 220 size_t to_write = mtd->erasesize - offs; in gluebi_write() local 222 if (to_write > bytes_left) in gluebi_write() 223 to_write = bytes_left; in gluebi_write() 225 err = ubi_leb_write(gluebi->desc, lnum, buf, offs, to_write); in gluebi_write() 231 bytes_left -= to_write; in gluebi_write() 232 buf += to_write; in gluebi_write()
|
D | upd.c | 281 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/spi/ |
D | spi-bcm53xx.c | 232 size_t to_write = min_t(size_t, 16, left); in bcm53xxspi_transfer_one() local 233 bool cont = left - to_write > 0; in bcm53xxspi_transfer_one() 235 bcm53xxspi_buf_write(b53spi, buf, to_write, cont); in bcm53xxspi_transfer_one() 236 left -= to_write; in bcm53xxspi_transfer_one() 237 buf += to_write; in bcm53xxspi_transfer_one()
|
/drivers/usb/dwc2/ |
D | gadget.c | 337 int to_write = hs_ep->size_loaded; in dwc2_hsotg_write_fifo() local 343 to_write -= (buf_pos - hs_ep->last_load); in dwc2_hsotg_write_fifo() 346 if (to_write == 0) in dwc2_hsotg_write_fifo() 413 __func__, gnptxsts, can_write, to_write, max_transfer); in dwc2_hsotg_write_fifo() 428 if (to_write > max_transfer) { in dwc2_hsotg_write_fifo() 429 to_write = max_transfer; in dwc2_hsotg_write_fifo() 440 if (to_write > can_write) { in dwc2_hsotg_write_fifo() 441 to_write = can_write; in dwc2_hsotg_write_fifo() 442 pkt_round = to_write % max_transfer; in dwc2_hsotg_write_fifo() 453 to_write -= pkt_round; in dwc2_hsotg_write_fifo() [all …]
|
/drivers/char/ |
D | mem.c | 544 unsigned long to_write = min_t(unsigned long, count, in write_kmem() local 546 wrote = do_write_kmem(p, buf, to_write, ppos); in write_kmem() 547 if (wrote != to_write) in write_kmem()
|
/drivers/md/ |
D | raid5.h | 265 int locked, uptodate, to_read, to_write, failed, written; member
|
D | raid5.c | 3207 s->to_write = 0; in handle_failed_stripe() 3331 if (!s->failed || !s->to_write) in need_this_block() 4099 s->to_write++; in analyse_stripe() 4386 s.replacing || s.to_write || s.written) { in handle_stripe() 4402 s.locked, s.uptodate, s.to_read, s.to_write, s.failed, in handle_stripe() 4411 if (s.to_read+s.to_write+s.written) in handle_stripe() 4484 || (conf->level == 6 && s.to_write && s.failed) in handle_stripe() 4496 if (s.to_write && !sh->reconstruct_state && !sh->check_state) in handle_stripe()
|