Lines Matching refs:rsvp

26 	((h)->rsvp && ((h)->rsvp->enc_id != (r)->enc_id))
97 struct dpu_rm_rsvp *rsvp; member
118 struct dpu_rm_rsvp *rsvp; in _dpu_rm_print_rsvps() local
124 list_for_each_entry(rsvp, &rm->rsvps, list) { in _dpu_rm_print_rsvps()
125 DRM_DEBUG_KMS("%d rsvp[s%ue%u] topology %d\n", stage, rsvp->seq, in _dpu_rm_print_rsvps()
126 rsvp->enc_id, rsvp->topology); in _dpu_rm_print_rsvps()
131 if (!blk->rsvp && !blk->rsvp_nxt) in _dpu_rm_print_rsvps()
135 (blk->rsvp) ? blk->rsvp->seq : 0, in _dpu_rm_print_rsvps()
136 (blk->rsvp) ? blk->rsvp->enc_id : 0, in _dpu_rm_print_rsvps()
191 struct dpu_rm_rsvp *rsvp = i->blk->rsvp; in _dpu_rm_get_hw_locked() local
199 if ((i->enc_id == 0) || (rsvp && rsvp->enc_id == i->enc_id)) { in _dpu_rm_get_hw_locked()
475 struct dpu_rm_rsvp *rsvp, in _dpu_rm_check_lm_and_get_connected_blks() argument
502 if (RESERVED_BY_OTHER(lm, rsvp)) { in _dpu_rm_check_lm_and_get_connected_blks()
520 if (RESERVED_BY_OTHER(*pp, rsvp)) { in _dpu_rm_check_lm_and_get_connected_blks()
531 struct dpu_rm_rsvp *rsvp, in _dpu_rm_reserve_lms() argument
557 rm, rsvp, reqs, lm[lm_count], in _dpu_rm_reserve_lms()
572 rm, rsvp, reqs, iter_j.blk, in _dpu_rm_reserve_lms()
590 lm[i]->rsvp_nxt = rsvp; in _dpu_rm_reserve_lms()
591 pp[i]->rsvp_nxt = rsvp; in _dpu_rm_reserve_lms()
593 trace_dpu_rm_reserve_lms(lm[i]->id, lm[i]->type, rsvp->enc_id, in _dpu_rm_reserve_lms()
602 struct dpu_rm_rsvp *rsvp, in _dpu_rm_reserve_ctls() argument
617 if (RESERVED_BY_OTHER(iter.blk, rsvp)) in _dpu_rm_reserve_ctls()
638 ctls[i]->rsvp_nxt = rsvp; in _dpu_rm_reserve_ctls()
640 rsvp->enc_id); in _dpu_rm_reserve_ctls()
648 struct dpu_rm_rsvp *rsvp, in _dpu_rm_reserve_cdm() argument
662 if (RESERVED_BY_OTHER(iter.blk, rsvp)) in _dpu_rm_reserve_cdm()
669 iter.blk->type, iter.blk->id, rsvp->enc_id, in _dpu_rm_reserve_cdm()
676 rsvp->enc_id); in _dpu_rm_reserve_cdm()
677 iter.blk->rsvp_nxt = rsvp; in _dpu_rm_reserve_cdm()
691 struct dpu_rm_rsvp *rsvp, in _dpu_rm_reserve_intf() argument
705 if (RESERVED_BY_OTHER(iter.blk, rsvp)) { in _dpu_rm_reserve_intf()
710 iter.blk->rsvp_nxt = rsvp; in _dpu_rm_reserve_intf()
712 rsvp->enc_id); in _dpu_rm_reserve_intf()
723 ret = _dpu_rm_reserve_cdm(rm, rsvp, id, type); in _dpu_rm_reserve_intf()
730 struct dpu_rm_rsvp *rsvp, in _dpu_rm_reserve_intf_related_hw() argument
740 ret = _dpu_rm_reserve_intf(rm, rsvp, id, in _dpu_rm_reserve_intf_related_hw()
754 struct dpu_rm_rsvp *rsvp, in _dpu_rm_make_next_rsvp() argument
761 rsvp->seq = ++rm->rsvp_next_seq; in _dpu_rm_make_next_rsvp()
762 rsvp->enc_id = enc->base.id; in _dpu_rm_make_next_rsvp()
763 rsvp->topology = reqs->topology->top_name; in _dpu_rm_make_next_rsvp()
764 list_add_tail(&rsvp->list, &rm->rsvps); in _dpu_rm_make_next_rsvp()
766 ret = _dpu_rm_reserve_lms(rm, rsvp, reqs); in _dpu_rm_make_next_rsvp()
777 _dpu_rm_reserve_ctls(rm, rsvp, reqs->topology); in _dpu_rm_make_next_rsvp()
781 _dpu_rm_reserve_ctls(rm, rsvp, &topology); in _dpu_rm_make_next_rsvp()
789 ret = _dpu_rm_reserve_intf_related_hw(rm, rsvp, &reqs->hw_res); in _dpu_rm_make_next_rsvp()
884 struct dpu_rm_rsvp *rsvp, in _dpu_rm_release_rsvp() argument
891 if (!rsvp) in _dpu_rm_release_rsvp()
894 DPU_DEBUG("rel rsvp %d enc %d\n", rsvp->seq, rsvp->enc_id); in _dpu_rm_release_rsvp()
897 if (rsvp == rsvp_c) { in _dpu_rm_release_rsvp()
905 if (blk->rsvp == rsvp) { in _dpu_rm_release_rsvp()
906 blk->rsvp = NULL; in _dpu_rm_release_rsvp()
908 rsvp->seq, rsvp->enc_id, in _dpu_rm_release_rsvp()
911 if (blk->rsvp_nxt == rsvp) { in _dpu_rm_release_rsvp()
914 rsvp->seq, rsvp->enc_id, in _dpu_rm_release_rsvp()
920 kfree(rsvp); in _dpu_rm_release_rsvp()
925 struct dpu_rm_rsvp *rsvp; in dpu_rm_release() local
935 rsvp = _dpu_rm_get_rsvp(rm, enc); in dpu_rm_release()
936 if (!rsvp) { in dpu_rm_release()
947 _dpu_rm_release_rsvp(rm, rsvp, conn); in dpu_rm_release()
954 struct dpu_rm_rsvp *rsvp, in _dpu_rm_commit_rsvp() argument
965 blk->rsvp = blk->rsvp_nxt; in _dpu_rm_commit_rsvp()
972 DRM_DEBUG_KMS("rsrv enc %d topology %d\n", rsvp->enc_id, in _dpu_rm_commit_rsvp()
973 rsvp->topology); in _dpu_rm_commit_rsvp()