/Linux-v5.4/lib/ |
D | packing.c | 45 static void adjust_for_msb_right_quirk(u64 *to_write, int *box_start_bit, in adjust_for_msb_right_quirk() argument 51 *to_write >>= *box_end_bit; in adjust_for_msb_right_quirk() 52 *to_write = bit_reverse(*to_write, box_bit_width); in adjust_for_msb_right_quirk() 53 *to_write <<= *box_end_bit; in adjust_for_msb_right_quirk()
|
/Linux-v5.4/net/vmw_vsock/ |
D | hyperv_transport.c | 265 struct hvs_send_buf *send_buf, size_t to_write) in hvs_send_data() argument 268 send_buf->hdr.data_size = to_write; in hvs_send_data() 270 sizeof(send_buf->hdr) + to_write, in hvs_send_data() 669 ssize_t to_write, max_writable; in hvs_stream_enqueue() local 687 to_write = min_t(ssize_t, len, max_writable); in hvs_stream_enqueue() 688 to_write = min_t(ssize_t, to_write, HVS_SEND_BUF_SIZE); in hvs_stream_enqueue() 692 ret = memcpy_from_msg(send_buf->data, msg, to_write); in hvs_stream_enqueue() 696 ret = hvs_send_data(hvs->chan, send_buf, to_write); in hvs_stream_enqueue() 700 bytes_written += to_write; in hvs_stream_enqueue() 701 len -= to_write; in hvs_stream_enqueue()
|
/Linux-v5.4/drivers/mtd/ubi/ |
D | gluebi.c | 207 size_t to_write = mtd->erasesize - offs; in gluebi_write() local 209 if (to_write > bytes_left) in gluebi_write() 210 to_write = bytes_left; in gluebi_write() 212 err = ubi_leb_write(gluebi->desc, lnum, buf, offs, to_write); in gluebi_write() 218 bytes_left -= to_write; in gluebi_write() 219 buf += to_write; in gluebi_write()
|
D | upd.c | 268 int lnum, offs, err = 0, len, to_write = count; in ubi_more_update_data() local 278 to_write = count = vol->upd_bytes - vol->upd_received; in ubi_more_update_data() 359 err = to_write; in ubi_more_update_data()
|
/Linux-v5.4/drivers/scsi/libsas/ |
D | sas_host_smp.c | 307 int to_write = req_data[4]; in sas_smp_host_handler() local 310 base_frame_size + to_write * 4) { in sas_smp_host_handler() 315 to_write = sas_host_smp_write_gpio(sas_ha, resp_data, req_data[2], in sas_smp_host_handler() 316 req_data[3], to_write, &req_data[8]); in sas_smp_host_handler()
|
/Linux-v5.4/drivers/char/ipmi/ |
D | ipmi_ssif.c | 952 int left, to_write; in msg_written_handler() local 959 to_write = left; in msg_written_handler() 960 if (to_write > 32) in msg_written_handler() 961 to_write = 32; in msg_written_handler() 963 ssif_info->multi_data[ssif_info->multi_pos] = to_write; in msg_written_handler() 965 ssif_info->multi_pos += to_write; in msg_written_handler() 968 if (left == to_write) { in msg_written_handler() 972 } else if (to_write < 32) { in msg_written_handler()
|
/Linux-v5.4/drivers/usb/dwc2/ |
D | gadget.c | 498 int to_write = hs_ep->size_loaded; in dwc2_hsotg_write_fifo() local 504 to_write -= (buf_pos - hs_ep->last_load); in dwc2_hsotg_write_fifo() 507 if (to_write == 0) in dwc2_hsotg_write_fifo() 574 __func__, gnptxsts, can_write, to_write, max_transfer); in dwc2_hsotg_write_fifo() 589 if (to_write > max_transfer) { in dwc2_hsotg_write_fifo() 590 to_write = max_transfer; in dwc2_hsotg_write_fifo() 601 if (to_write > can_write) { in dwc2_hsotg_write_fifo() 602 to_write = can_write; in dwc2_hsotg_write_fifo() 603 pkt_round = to_write % max_transfer; in dwc2_hsotg_write_fifo() 614 to_write -= pkt_round; in dwc2_hsotg_write_fifo() [all …]
|
/Linux-v5.4/drivers/char/ |
D | mem.c | 585 unsigned long to_write = min_t(unsigned long, count, in write_kmem() local 587 wrote = do_write_kmem(p, buf, to_write, ppos); in write_kmem() 588 if (wrote != to_write) in write_kmem()
|
/Linux-v5.4/net/packet/ |
D | af_packet.c | 2458 int to_write, offset, len, nr_frags, len_max; in tpacket_fill_skb() local 2476 to_write = tp_len; in tpacket_fill_skb() 2495 to_write -= hdrlen; in tpacket_fill_skb() 2500 len = ((to_write > len_max) ? len_max : to_write); in tpacket_fill_skb() 2502 skb->data_len = to_write; in tpacket_fill_skb() 2503 skb->len += to_write; in tpacket_fill_skb() 2504 skb->truesize += to_write; in tpacket_fill_skb() 2505 refcount_add(to_write, &po->sk.sk_wmem_alloc); in tpacket_fill_skb() 2507 while (likely(to_write)) { in tpacket_fill_skb() 2521 to_write -= len; in tpacket_fill_skb() [all …]
|
/Linux-v5.4/drivers/md/ |
D | raid5.h | 275 int locked, uptodate, to_read, to_write, failed, written; member
|
D | raid5.c | 3453 s->to_write = 0; in handle_failed_stripe() 3570 if (!s->failed || !s->to_write) in need_this_block() 4427 s->to_write++; in analyse_stripe() 4730 s.replacing || s.to_write || s.written) { in handle_stripe() 4746 s.locked, s.uptodate, s.to_read, s.to_write, s.failed, in handle_stripe() 4760 if (s.to_read+s.to_write+s.written) in handle_stripe() 4838 || (conf->level == 6 && s.to_write && s.failed) in handle_stripe() 4862 if (s.to_write) in handle_stripe() 4868 if (s.to_write) in handle_stripe()
|
/Linux-v5.4/fs/gfs2/ |
D | quota.c | 698 unsigned to_write = bytes, pg_off = off; in gfs2_write_buf_to_page() local 741 if (to_write > (bsize - boff)) { in gfs2_write_buf_to_page() 743 to_write -= (bsize - boff); in gfs2_write_buf_to_page()
|
/Linux-v5.4/sound/pci/rme9652/ |
D | hdspm.c | 1846 int to_write; in snd_hdspm_midi_output_write() local 1861 to_write = snd_rawmidi_transmit (hmidi->output, buf, in snd_hdspm_midi_output_write() 1863 if (to_write > 0) { in snd_hdspm_midi_output_write() 1864 for (i = 0; i < to_write; ++i) in snd_hdspm_midi_output_write()
|
D | hdsp.c | 1319 int to_write; in snd_hdsp_midi_output_write() local 1332 if ((to_write = snd_rawmidi_transmit (hmidi->output, buf, n_pending)) > 0) { in snd_hdsp_midi_output_write() 1333 for (i = 0; i < to_write; ++i) in snd_hdsp_midi_output_write()
|