Lines Matching refs:tosend
2728 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()
2821 memcpy(&chunk[idx], &txmsg->msg[txmsg->cur_offset], tosend); in process_single_tx_qlock()
2823 drm_dp_crc_sideband_chunk_req(&chunk[idx], tosend); in process_single_tx_qlock()
2824 idx += tosend + 1; in process_single_tx_qlock()
2839 txmsg->cur_offset += tosend; in process_single_tx_qlock()