Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/tty/
Dvcc.c396 int tosend = 0; in vcc_tx_timer() local
405 tosend = min(VCC_BUFF_LEN, port->chars_in_buffer); in vcc_tx_timer()
406 if (!tosend) in vcc_tx_timer()
411 pkt->tag.stype = tosend; in vcc_tx_timer()
414 rv = ldc_write(port->vio.lp, pkt, (VIO_TAG_SIZE + tosend)); in vcc_tx_timer()
845 int tosend = 0; in vcc_write() local
866 tosend = min(count, (VCC_BUFF_LEN - port->chars_in_buffer)); in vcc_write()
868 if (!tosend) in vcc_write()
872 tosend); in vcc_write()
873 port->chars_in_buffer += tosend; in vcc_write()
[all …]
/kernel/linux/linux-4.19/drivers/tty/
Dvcc.c395 int tosend = 0; in vcc_tx_timer() local
404 tosend = min(VCC_BUFF_LEN, port->chars_in_buffer); in vcc_tx_timer()
405 if (!tosend) in vcc_tx_timer()
410 pkt->tag.stype = tosend; in vcc_tx_timer()
413 rv = ldc_write(port->vio.lp, pkt, (VIO_TAG_SIZE + tosend)); in vcc_tx_timer()
844 int tosend = 0; in vcc_write() local
865 tosend = min(count, (VCC_BUFF_LEN - port->chars_in_buffer)); in vcc_write()
867 if (!tosend) in vcc_write()
871 tosend); in vcc_write()
872 port->chars_in_buffer += tosend; in vcc_write()
[all …]
/kernel/linux/linux-5.10/net/ipv4/
Dtcp_bpf.c319 u32 tosend, delta = 0; in tcp_bpf_send_verdict() local
348 tosend = msg->sg.size; in tcp_bpf_send_verdict()
349 if (psock->apply_bytes && psock->apply_bytes < tosend) in tcp_bpf_send_verdict()
350 tosend = psock->apply_bytes; in tcp_bpf_send_verdict()
354 ret = tcp_bpf_push(sk, msg, tosend, flags, true); in tcp_bpf_send_verdict()
359 sk_msg_apply_bytes(psock, tosend); in tcp_bpf_send_verdict()
363 sk_msg_apply_bytes(psock, tosend); in tcp_bpf_send_verdict()
374 sk_msg_return(sk, msg, tosend); in tcp_bpf_send_verdict()
377 ret = tcp_bpf_sendmsg_redir(sk_redir, msg, tosend, flags); in tcp_bpf_send_verdict()
398 sk_msg_free_partial(sk, msg, tosend); in tcp_bpf_send_verdict()
[all …]
/kernel/linux/linux-5.10/drivers/media/i2c/
Dir-kbd-i2c.c386 int tosend = sizeof(*code_block) - i; in send_data_block() local
388 if (tosend > 4) in send_data_block()
389 tosend = 4; in send_data_block()
391 for (j = 0; j < tosend; ++j) in send_data_block()
393 dev_dbg(&ir->rc->dev, "%*ph", tosend + 1, buf); in send_data_block()
394 ret = i2c_master_send(ir->tx_c, buf, tosend + 1); in send_data_block()
395 if (ret != tosend + 1) { in send_data_block()
400 i += tosend; in send_data_block()
/kernel/linux/linux-4.19/drivers/media/i2c/
Dir-kbd-i2c.c396 int tosend = sizeof(*code_block) - i; in send_data_block() local
398 if (tosend > 4) in send_data_block()
399 tosend = 4; in send_data_block()
401 for (j = 0; j < tosend; ++j) in send_data_block()
403 dev_dbg(&ir->rc->dev, "%*ph", tosend + 1, buf); in send_data_block()
404 ret = i2c_master_send(ir->tx_c, buf, tosend + 1); in send_data_block()
405 if (ret != tosend + 1) { in send_data_block()
410 i += tosend; in send_data_block()
/kernel/linux/linux-4.19/drivers/tty/hvc/
Dhvcs.c1313 int tosend = 0; in hvcs_write() local
1348 tosend = min(count, (HVCS_BUFF_LEN - hvcsd->chars_in_buffer)); in hvcs_write()
1353 if (!tosend) in hvcs_write()
1358 tosend); in hvcs_write()
1360 hvcsd->chars_in_buffer += tosend; in hvcs_write()
1380 total_sent+=tosend; in hvcs_write()
1381 count-=tosend; in hvcs_write()
/kernel/linux/linux-5.10/drivers/tty/hvc/
Dhvcs.c1311 int tosend = 0; in hvcs_write() local
1346 tosend = min(count, (HVCS_BUFF_LEN - hvcsd->chars_in_buffer)); in hvcs_write()
1351 if (!tosend) in hvcs_write()
1356 tosend); in hvcs_write()
1358 hvcsd->chars_in_buffer += tosend; in hvcs_write()
1378 total_sent+=tosend; in hvcs_write()
1379 count-=tosend; in hvcs_write()
/kernel/linux/linux-4.19/drivers/gpu/drm/
Ddrm_dp_mst_topology.c1427 int tosend, total, offset; in drm_dp_send_sideband_msg() local
1434 tosend = min3(mgr->max_dpcd_transaction_bytes, 16, total); in drm_dp_send_sideband_msg()
1438 tosend); in drm_dp_send_sideband_msg()
1439 if (ret != tosend) { in drm_dp_send_sideband_msg()
1444 DRM_DEBUG_KMS("failed to dpcd write %d %d\n", tosend, ret); in drm_dp_send_sideband_msg()
1448 offset += tosend; in drm_dp_send_sideband_msg()
1449 total -= tosend; in drm_dp_send_sideband_msg()
1499 int len, space, idx, tosend; in process_single_tx_qlock() local
1521 tosend = min(len, space); in process_single_tx_qlock()
1528 hdr.msg_len = tosend + 1; in process_single_tx_qlock()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_dp_mst_topology.c2773 int tosend, total, offset; in drm_dp_send_sideband_msg() local
2780 tosend = min3(mgr->max_dpcd_transaction_bytes, 16, total); in drm_dp_send_sideband_msg()
2784 tosend); in drm_dp_send_sideband_msg()
2785 if (ret != tosend) { in drm_dp_send_sideband_msg()
2790 DRM_DEBUG_KMS("failed to dpcd write %d %d\n", tosend, ret); in drm_dp_send_sideband_msg()
2794 offset += tosend; in drm_dp_send_sideband_msg()
2795 total -= tosend; in drm_dp_send_sideband_msg()
2835 int len, space, idx, tosend; in process_single_tx_qlock() local
2857 tosend = min(len, space); in process_single_tx_qlock()
2864 hdr.msg_len = tosend + 1; in process_single_tx_qlock()
[all …]