Lines Matching refs:encaps_sig_hdl
764 kref_put(&hl_cs_cmpl->encaps_sig_hdl->refcount, in cs_do_release()
769 kref_put(&cs->encaps_sig_hdl->refcount, hl_encaps_release_handle_and_put_ctx); in cs_do_release()
2127 struct hl_cs_encaps_sig_handle *encaps_sig_hdl; in cs_ioctl_unreserve_signals() local
2138 encaps_sig_hdl = idr_find(&mgr->handles, handle_id); in cs_ioctl_unreserve_signals()
2139 if (encaps_sig_hdl) { in cs_ioctl_unreserve_signals()
2141 handle_id, encaps_sig_hdl->hw_sob->sob_addr, in cs_ioctl_unreserve_signals()
2142 encaps_sig_hdl->count); in cs_ioctl_unreserve_signals()
2146 q_idx = encaps_sig_hdl->q_idx; in cs_ioctl_unreserve_signals()
2156 if (encaps_sig_hdl->pre_sob_val + encaps_sig_hdl->count in cs_ioctl_unreserve_signals()
2158 sob_addr != encaps_sig_hdl->hw_sob->sob_addr) { in cs_ioctl_unreserve_signals()
2160 encaps_sig_hdl->pre_sob_val, in cs_ioctl_unreserve_signals()
2161 (prop->next_sob_val - encaps_sig_hdl->count)); in cs_ioctl_unreserve_signals()
2172 prop->next_sob_val -= encaps_sig_hdl->count; in cs_ioctl_unreserve_signals()
2183 hl_ctx_put(encaps_sig_hdl->ctx); in cs_ioctl_unreserve_signals()
2184 kfree(encaps_sig_hdl); in cs_ioctl_unreserve_signals()
2203 struct hl_cs_encaps_sig_handle *encaps_sig_hdl = NULL; in cs_ioctl_signal_wait() local
2297 idr_for_each_entry(idp, encaps_sig_hdl, id) { in cs_ioctl_signal_wait()
2298 if (encaps_sig_hdl->cs_seq == signal_seq) { in cs_ioctl_signal_wait()
2307 if (kref_get_unless_zero(&encaps_sig_hdl->refcount)) in cs_ioctl_signal_wait()
2324 encaps_sig_hdl->count) { in cs_ioctl_signal_wait()
2327 encaps_sig_hdl->count); in cs_ioctl_signal_wait()
2398 cs->encaps_sig_hdl = encaps_sig_hdl; in cs_ioctl_signal_wait()
2456 kref_put(&encaps_sig_hdl->refcount, hl_encaps_release_handle_and_put_ctx); in cs_ioctl_signal_wait()