Lines Matching refs:encaps_sig_hdl
746 kref_put(&hl_cs_cmpl->encaps_sig_hdl->refcount, in cs_do_release()
751 kref_put(&cs->encaps_sig_hdl->refcount, hl_encaps_release_handle_and_put_ctx); in cs_do_release()
2112 struct hl_cs_encaps_sig_handle *encaps_sig_hdl; in cs_ioctl_unreserve_signals() local
2123 encaps_sig_hdl = idr_find(&mgr->handles, handle_id); in cs_ioctl_unreserve_signals()
2124 if (encaps_sig_hdl) { in cs_ioctl_unreserve_signals()
2126 handle_id, encaps_sig_hdl->hw_sob->sob_addr, in cs_ioctl_unreserve_signals()
2127 encaps_sig_hdl->count); in cs_ioctl_unreserve_signals()
2131 q_idx = encaps_sig_hdl->q_idx; in cs_ioctl_unreserve_signals()
2141 if (encaps_sig_hdl->pre_sob_val + encaps_sig_hdl->count in cs_ioctl_unreserve_signals()
2143 sob_addr != encaps_sig_hdl->hw_sob->sob_addr) { in cs_ioctl_unreserve_signals()
2145 encaps_sig_hdl->pre_sob_val, in cs_ioctl_unreserve_signals()
2146 (prop->next_sob_val - encaps_sig_hdl->count)); in cs_ioctl_unreserve_signals()
2157 prop->next_sob_val -= encaps_sig_hdl->count; in cs_ioctl_unreserve_signals()
2168 hl_ctx_put(encaps_sig_hdl->ctx); in cs_ioctl_unreserve_signals()
2169 kfree(encaps_sig_hdl); in cs_ioctl_unreserve_signals()
2188 struct hl_cs_encaps_sig_handle *encaps_sig_hdl = NULL; in cs_ioctl_signal_wait() local
2282 idr_for_each_entry(idp, encaps_sig_hdl, id) { in cs_ioctl_signal_wait()
2283 if (encaps_sig_hdl->cs_seq == signal_seq) { in cs_ioctl_signal_wait()
2292 if (kref_get_unless_zero(&encaps_sig_hdl->refcount)) in cs_ioctl_signal_wait()
2309 encaps_sig_hdl->count) { in cs_ioctl_signal_wait()
2312 encaps_sig_hdl->count); in cs_ioctl_signal_wait()
2383 cs->encaps_sig_hdl = encaps_sig_hdl; in cs_ioctl_signal_wait()
2441 kref_put(&encaps_sig_hdl->refcount, hl_encaps_release_handle_and_put_ctx); in cs_ioctl_signal_wait()