Searched refs:to_write (Results 1 – 2 of 2) sorted by relevance
/net/vmw_vsock/ |
D | hyperv_transport.c | 229 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()
|
/net/packet/ |
D | af_packet.c | 2535 int to_write, offset, len, nr_frags, len_max; in tpacket_fill_skb() local 2553 to_write = tp_len; in tpacket_fill_skb() 2572 to_write -= hdrlen; in tpacket_fill_skb() 2577 len = ((to_write > len_max) ? len_max : to_write); in tpacket_fill_skb() 2579 skb->data_len = to_write; in tpacket_fill_skb() 2580 skb->len += to_write; in tpacket_fill_skb() 2581 skb->truesize += to_write; in tpacket_fill_skb() 2582 refcount_add(to_write, &po->sk.sk_wmem_alloc); in tpacket_fill_skb() 2584 while (likely(to_write)) { in tpacket_fill_skb() 2598 to_write -= len; in tpacket_fill_skb() [all …]
|