Home
last modified time | relevance | path

Searched refs:tosend (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/drivers/tty/
H A Dvcc.c388 size_t tosend = 0; in vcc_tx_timer() local
397 tosend = min(VCC_BUFF_LEN, port->chars_in_buffer); in vcc_tx_timer()
398 if (!tosend) in vcc_tx_timer()
403 pkt->tag.stype = tosend; in vcc_tx_timer()
406 rv = ldc_write(port->vio.lp, pkt, (VIO_TAG_SIZE + tosend)); in vcc_tx_timer()
823 size_t tosend = 0; in vcc_write() local
839 tosend = min_t(size_t, count, in vcc_write()
842 if (!tosend) in vcc_write()
846 tosend); in vcc_write()
847 port->chars_in_buffer += tosend; in vcc_write()
[all …]
/openbmc/linux/net/ipv4/
H A Dtcp_bpf.c389 u32 tosend, origsize, sent, delta = 0; in tcp_bpf_send_verdict() local
418 tosend = msg->sg.size; in tcp_bpf_send_verdict()
419 if (psock->apply_bytes && psock->apply_bytes < tosend) in tcp_bpf_send_verdict()
420 tosend = psock->apply_bytes; in tcp_bpf_send_verdict()
425 ret = tcp_bpf_push(sk, msg, tosend, flags, true); in tcp_bpf_send_verdict()
430 sk_msg_apply_bytes(psock, tosend); in tcp_bpf_send_verdict()
435 sk_msg_apply_bytes(psock, tosend); in tcp_bpf_send_verdict()
450 msg, tosend, flags); in tcp_bpf_send_verdict()
474 sk_msg_apply_bytes(psock, tosend); in tcp_bpf_send_verdict()
475 *copied -= (tosend + delta); in tcp_bpf_send_verdict()
/openbmc/u-boot/net/
H A Dtftp.c215 ulong tosend = len; in load_block() local
217 tosend = min(net_boot_file_size - offset, tosend); in load_block()
218 (void)memcpy(dst, (void *)(save_addr + offset), tosend); in load_block()
220 block, offset, len, tosend); in load_block()
221 return tosend; in load_block()
/openbmc/linux/drivers/media/i2c/
H A Dir-kbd-i2c.c423 int tosend = sizeof(*code_block) - i; in send_data_block() local
425 if (tosend > 4) in send_data_block()
426 tosend = 4; in send_data_block()
428 for (j = 0; j < tosend; ++j) in send_data_block()
430 dev_dbg(&ir->rc->dev, "%*ph", tosend + 1, buf); in send_data_block()
431 ret = i2c_master_send(ir->tx_c, buf, tosend + 1); in send_data_block()
432 if (ret != tosend + 1) { in send_data_block()
437 i += tosend; in send_data_block()
/openbmc/linux/drivers/tty/hvc/
H A Dhvcs.c1267 size_t tosend = 0; in hvcs_write() local
1302 tosend = min_t(size_t, count, in hvcs_write()
1308 if (!tosend) in hvcs_write()
1313 tosend); in hvcs_write()
1315 hvcsd->chars_in_buffer += tosend; in hvcs_write()
1335 total_sent+=tosend; in hvcs_write()
1336 count-=tosend; in hvcs_write()
/openbmc/linux/drivers/gpu/drm/display/
H A Ddrm_dp_mst_topology.c2728 int tosend, total, offset; in drm_dp_send_sideband_msg() local
2735 tosend = min3(mgr->max_dpcd_transaction_bytes, 16, total); in drm_dp_send_sideband_msg()
2739 tosend); in drm_dp_send_sideband_msg()
2740 if (ret != tosend) { in drm_dp_send_sideband_msg()
2745 drm_dbg_kms(mgr->dev, "failed to dpcd write %d %d\n", tosend, ret); in drm_dp_send_sideband_msg()
2749 offset += tosend; in drm_dp_send_sideband_msg()
2750 total -= tosend; in drm_dp_send_sideband_msg()
2790 int len, space, idx, tosend; in process_single_tx_qlock() local
2812 tosend = min(len, space); in process_single_tx_qlock()
2819 hdr.msg_len = tosend + 1; in process_single_tx_qlock()
[all …]