Lines Matching refs:handle

1030 	struct hl_cs_encaps_sig_handle *handle;  in release_reserved_encaps_signals()  local
1039 idr_for_each_entry(&mgr->handles, handle, id) in release_reserved_encaps_signals()
1040 if (handle->cs_seq == ULLONG_MAX) in release_reserved_encaps_signals()
1041 kref_put(&handle->refcount, hl_encaps_release_handle_and_put_sob_ctx); in release_reserved_encaps_signals()
1973 hl_cb_destroy(&hdev->kernel_mem_mgr, cb->buf->handle); in cs_ioctl_signal_wait_create_jobs()
1996 struct hl_cs_encaps_sig_handle *handle; in cs_ioctl_reserve_signals() local
2028 handle = kzalloc(sizeof(*handle), GFP_KERNEL); in cs_ioctl_reserve_signals()
2029 if (!handle) { in cs_ioctl_reserve_signals()
2034 handle->count = count; in cs_ioctl_reserve_signals()
2037 handle->ctx = hpriv->ctx; in cs_ioctl_reserve_signals()
2041 hdl_id = idr_alloc(&mgr->handles, handle, 1, 0, GFP_ATOMIC); in cs_ioctl_reserve_signals()
2050 handle->id = hdl_id; in cs_ioctl_reserve_signals()
2051 handle->q_idx = q_idx; in cs_ioctl_reserve_signals()
2052 handle->hdev = hdev; in cs_ioctl_reserve_signals()
2053 kref_init(&handle->refcount); in cs_ioctl_reserve_signals()
2076 handle->hw_sob = hw_sob; in cs_ioctl_reserve_signals()
2081 handle->pre_sob_val = prop->next_sob_val - handle->count; in cs_ioctl_reserve_signals()
2083 handle->cs_seq = ULLONG_MAX; in cs_ioctl_reserve_signals()
2088 *sob_addr = handle->hw_sob->sob_addr; in cs_ioctl_reserve_signals()
2093 hw_sob->sob_id, handle->hw_sob->sob_addr, in cs_ioctl_reserve_signals()
2103 hl_ctx_put(handle->ctx); in cs_ioctl_reserve_signals()
2104 kfree(handle); in cs_ioctl_reserve_signals()