Lines Matching refs:tosend
2776 int tosend, total, offset; in drm_dp_send_sideband_msg() local
2783 tosend = min3(mgr->max_dpcd_transaction_bytes, 16, total); in drm_dp_send_sideband_msg()
2787 tosend); in drm_dp_send_sideband_msg()
2788 if (ret != tosend) { in drm_dp_send_sideband_msg()
2793 drm_dbg_kms(mgr->dev, "failed to dpcd write %d %d\n", tosend, ret); in drm_dp_send_sideband_msg()
2797 offset += tosend; in drm_dp_send_sideband_msg()
2798 total -= tosend; in drm_dp_send_sideband_msg()
2838 int len, space, idx, tosend; in process_single_tx_qlock() local
2860 tosend = min(len, space); in process_single_tx_qlock()
2867 hdr.msg_len = tosend + 1; in process_single_tx_qlock()
2869 memcpy(&chunk[idx], &txmsg->msg[txmsg->cur_offset], tosend); in process_single_tx_qlock()
2871 drm_dp_crc_sideband_chunk_req(&chunk[idx], tosend); in process_single_tx_qlock()
2872 idx += tosend + 1; in process_single_tx_qlock()
2885 txmsg->cur_offset += tosend; in process_single_tx_qlock()