Lines Matching refs:tosend
2725 int tosend, total, offset; in drm_dp_send_sideband_msg() local
2732 tosend = min3(mgr->max_dpcd_transaction_bytes, 16, total); in drm_dp_send_sideband_msg()
2736 tosend); in drm_dp_send_sideband_msg()
2737 if (ret != tosend) { in drm_dp_send_sideband_msg()
2742 drm_dbg_kms(mgr->dev, "failed to dpcd write %d %d\n", tosend, ret); in drm_dp_send_sideband_msg()
2746 offset += tosend; in drm_dp_send_sideband_msg()
2747 total -= tosend; in drm_dp_send_sideband_msg()
2787 int len, space, idx, tosend; in process_single_tx_qlock() local
2809 tosend = min(len, space); in process_single_tx_qlock()
2816 hdr.msg_len = tosend + 1; in process_single_tx_qlock()
2818 memcpy(&chunk[idx], &txmsg->msg[txmsg->cur_offset], tosend); in process_single_tx_qlock()
2820 drm_dp_crc_sideband_chunk_req(&chunk[idx], tosend); in process_single_tx_qlock()
2821 idx += tosend + 1; in process_single_tx_qlock()
2834 txmsg->cur_offset += tosend; in process_single_tx_qlock()