/linux-4.4.14/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()
|
/linux-4.4.14/fs/ncpfs/ |
D | file.c | 202 size_t to_write = min_t(size_t, in ncp_file_write_iter() local 206 if (copy_from_iter(bouncebuffer, to_write, from) != to_write) { in ncp_file_write_iter() 212 pos, to_write, bouncebuffer, &written_this_time) != 0) { in ncp_file_write_iter() 219 if (written_this_time != to_write) in ncp_file_write_iter()
|
D | ncplib_kernel.c | 1037 __u32 offset, __u16 to_write, in ncp_write_kernel() argument 1046 ncp_add_be16(server, to_write); in ncp_write_kernel() 1047 ncp_add_mem(server, source, to_write); in ncp_write_kernel() 1050 *bytes_written = to_write; in ncp_write_kernel()
|
/linux-4.4.14/drivers/spi/ |
D | spi-bcm53xx.c | 183 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()
|
/linux-4.4.14/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()
|
/linux-4.4.14/drivers/mtd/ubi/ |
D | gluebi.c | 225 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()
|
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()
|
/linux-4.4.14/drivers/usb/dwc2/ |
D | gadget.c | 318 int to_write = hs_ep->size_loaded; in dwc2_hsotg_write_fifo() local 324 to_write -= (buf_pos - hs_ep->last_load); in dwc2_hsotg_write_fifo() 327 if (to_write == 0) in dwc2_hsotg_write_fifo() 393 __func__, gnptxsts, can_write, to_write, max_transfer); in dwc2_hsotg_write_fifo() 408 if (to_write > max_transfer) { in dwc2_hsotg_write_fifo() 409 to_write = max_transfer; in dwc2_hsotg_write_fifo() 420 if (to_write > can_write) { in dwc2_hsotg_write_fifo() 421 to_write = can_write; in dwc2_hsotg_write_fifo() 422 pkt_round = to_write % max_transfer; in dwc2_hsotg_write_fifo() 433 to_write -= pkt_round; in dwc2_hsotg_write_fifo() [all …]
|
/linux-4.4.14/drivers/char/ |
D | mem.c | 516 unsigned long to_write = min_t(unsigned long, count, in write_kmem() local 518 wrote = do_write_kmem(p, buf, to_write, ppos); in write_kmem() 519 if (wrote != to_write) in write_kmem()
|
/linux-4.4.14/net/packet/ |
D | af_packet.c | 2347 int to_write, offset, len, tp_len, nr_frags, len_max; in tpacket_fill_skb() local 2407 to_write = tp_len; in tpacket_fill_skb() 2427 to_write -= hdrlen; in tpacket_fill_skb() 2432 len = ((to_write > len_max) ? len_max : to_write); in tpacket_fill_skb() 2434 skb->data_len = to_write; in tpacket_fill_skb() 2435 skb->len += to_write; in tpacket_fill_skb() 2436 skb->truesize += to_write; in tpacket_fill_skb() 2437 atomic_add(to_write, &po->sk.sk_wmem_alloc); in tpacket_fill_skb() 2439 while (likely(to_write)) { in tpacket_fill_skb() 2453 to_write -= len; in tpacket_fill_skb() [all …]
|
/linux-4.4.14/drivers/md/ |
D | raid5.h | 265 int locked, uptodate, to_read, to_write, failed, written; member
|
D | raid5.c | 3183 s->to_write = 0; in handle_failed_stripe() 3304 if (!s->failed || !s->to_write) in need_this_block() 4063 s->to_write++; in analyse_stripe() 4347 s.replacing || s.to_write || s.written) { in handle_stripe() 4363 s.locked, s.uptodate, s.to_read, s.to_write, s.failed, in handle_stripe() 4372 if (s.to_read+s.to_write+s.written) in handle_stripe() 4445 || (conf->level == 6 && s.to_write && s.failed) in handle_stripe() 4457 if (s.to_write && !sh->reconstruct_state && !sh->check_state) in handle_stripe()
|
/linux-4.4.14/fs/gfs2/ |
D | quota.c | 668 unsigned to_write = bytes, pg_off = off; in gfs2_write_buf_to_page() local 708 if (to_write > (bsize - boff)) { in gfs2_write_buf_to_page() 710 to_write -= (bsize - boff); in gfs2_write_buf_to_page()
|
/linux-4.4.14/sound/pci/rme9652/ |
D | hdspm.c | 1856 int to_write; in snd_hdspm_midi_output_write() local 1871 to_write = snd_rawmidi_transmit (hmidi->output, buf, in snd_hdspm_midi_output_write() 1873 if (to_write > 0) { in snd_hdspm_midi_output_write() 1874 for (i = 0; i < to_write; ++i) in snd_hdspm_midi_output_write()
|
D | hdsp.c | 1336 int to_write; in snd_hdsp_midi_output_write() local 1349 if ((to_write = snd_rawmidi_transmit (hmidi->output, buf, n_pending)) > 0) { in snd_hdsp_midi_output_write() 1350 for (i = 0; i < to_write; ++i) in snd_hdsp_midi_output_write()
|