Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/lib/
Dpacking.c45 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()
/kernel/linux/linux-5.10/net/vmw_vsock/
Dhyperv_transport.c229 struct hvs_send_buf *send_buf, size_t to_write) in hvs_send_data() argument
232 send_buf->hdr.data_size = to_write; in hvs_send_data()
234 sizeof(send_buf->hdr) + to_write, in hvs_send_data()
632 ssize_t to_write, max_writable; in hvs_stream_enqueue() local
650 to_write = min_t(ssize_t, len, max_writable); in hvs_stream_enqueue()
651 to_write = min_t(ssize_t, to_write, HVS_SEND_BUF_SIZE); in hvs_stream_enqueue()
655 ret = memcpy_from_msg(send_buf->data, msg, to_write); in hvs_stream_enqueue()
659 ret = hvs_send_data(hvs->chan, send_buf, to_write); in hvs_stream_enqueue()
663 bytes_written += to_write; in hvs_stream_enqueue()
664 len -= to_write; in hvs_stream_enqueue()
/kernel/linux/linux-5.10/drivers/mtd/ubi/
Dgluebi.c207 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()
Dupd.c268 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()
/kernel/linux/linux-5.10/drivers/scsi/libsas/
Dsas_host_smp.c307 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()
/kernel/linux/linux-5.10/drivers/char/ipmi/
Dipmi_ssif.c950 int left, to_write; in msg_written_handler() local
957 to_write = left; in msg_written_handler()
958 if (to_write > 32) in msg_written_handler()
959 to_write = 32; in msg_written_handler()
961 ssif_info->multi_data[ssif_info->multi_pos] = to_write; in msg_written_handler()
963 ssif_info->multi_pos += to_write; in msg_written_handler()
966 if (left == to_write) { in msg_written_handler()
970 } else if (to_write < 32) { in msg_written_handler()
/kernel/linux/linux-5.10/drivers/usb/dwc2/
Dgadget.c511 int to_write = hs_ep->size_loaded; in dwc2_hsotg_write_fifo() local
517 to_write -= (buf_pos - hs_ep->last_load); in dwc2_hsotg_write_fifo()
520 if (to_write == 0) in dwc2_hsotg_write_fifo()
587 __func__, gnptxsts, can_write, to_write, max_transfer); in dwc2_hsotg_write_fifo()
602 if (to_write > max_transfer) { in dwc2_hsotg_write_fifo()
603 to_write = max_transfer; in dwc2_hsotg_write_fifo()
614 if (to_write > can_write) { in dwc2_hsotg_write_fifo()
615 to_write = can_write; in dwc2_hsotg_write_fifo()
616 pkt_round = to_write % max_transfer; in dwc2_hsotg_write_fifo()
627 to_write -= pkt_round; in dwc2_hsotg_write_fifo()
[all …]
/kernel/linux/linux-5.10/drivers/char/
Dmem.c589 unsigned long to_write = min_t(unsigned long, count, in write_kmem() local
591 wrote = do_write_kmem(p, buf, to_write, ppos); in write_kmem()
592 if (wrote != to_write) in write_kmem()
/kernel/linux/linux-5.10/net/packet/
Daf_packet.c2532 int to_write, offset, len, nr_frags, len_max; in tpacket_fill_skb() local
2550 to_write = tp_len; in tpacket_fill_skb()
2569 to_write -= hdrlen; in tpacket_fill_skb()
2574 len = ((to_write > len_max) ? len_max : to_write); in tpacket_fill_skb()
2576 skb->data_len = to_write; in tpacket_fill_skb()
2577 skb->len += to_write; in tpacket_fill_skb()
2578 skb->truesize += to_write; in tpacket_fill_skb()
2579 refcount_add(to_write, &po->sk.sk_wmem_alloc); in tpacket_fill_skb()
2581 while (likely(to_write)) { in tpacket_fill_skb()
2595 to_write -= len; in tpacket_fill_skb()
[all …]
/kernel/linux/linux-5.10/drivers/md/
Draid5.h284 int locked, uptodate, to_read, to_write, failed, written; member
Draid5.c3653 s->to_write = 0; in handle_failed_stripe()
3771 if (!s->failed || !s->to_write) in need_this_block()
4635 s->to_write++; in analyse_stripe()
4943 s.replacing || s.to_write || s.written) { in handle_stripe()
4959 s.locked, s.uptodate, s.to_read, s.to_write, s.failed, in handle_stripe()
4973 if (s.to_read+s.to_write+s.written) in handle_stripe()
5051 || (s.to_write && s.failed) in handle_stripe()
5075 if (s.to_write) in handle_stripe()
5081 if (s.to_write) in handle_stripe()
/kernel/linux/linux-5.10/fs/gfs2/
Dquota.c713 unsigned to_write = bytes, pg_off = off; in gfs2_write_buf_to_page() local
756 if (to_write > (bsize - boff)) { in gfs2_write_buf_to_page()
758 to_write -= (bsize - boff); in gfs2_write_buf_to_page()
/kernel/linux/linux-5.10/sound/pci/rme9652/
Dhdspm.c1850 int to_write; in snd_hdspm_midi_output_write() local
1865 to_write = snd_rawmidi_transmit (hmidi->output, buf, in snd_hdspm_midi_output_write()
1867 if (to_write > 0) { in snd_hdspm_midi_output_write()
1868 for (i = 0; i < to_write; ++i) in snd_hdspm_midi_output_write()
Dhdsp.c1314 int to_write; in snd_hdsp_midi_output_write() local
1327 if ((to_write = snd_rawmidi_transmit (hmidi->output, buf, n_pending)) > 0) { in snd_hdsp_midi_output_write()
1328 for (i = 0; i < to_write; ++i) in snd_hdsp_midi_output_write()