Lines Matching refs:handle

515 	/* We need to handle tdr only once for the complete staged submission.
760 /* decrement refcount to handle when first staged cs
781 * to handle hw_sob for signal/wait
1048 struct hl_cs_encaps_sig_handle *handle;
1057 idr_for_each_entry(&mgr->handles, handle, id)
1058 if (handle->cs_seq == ULLONG_MAX)
1059 kref_put(&handle->refcount, hl_encaps_release_handle_and_put_sob_ctx);
1282 dev_err(hdev->dev, "CB handle 0x%llx invalid\n", chunk->cb_handle);
1789 * hl_cs_signal_sob_wraparound_handler: handle SOB value wrapaound case.
1988 hl_cb_destroy(&hdev->kernel_mem_mgr, cb->buf->handle);
2011 struct hl_cs_encaps_sig_handle *handle;
2043 handle = kzalloc(sizeof(*handle), GFP_KERNEL);
2044 if (!handle) {
2049 handle->count = count;
2052 handle->ctx = hpriv->ctx;
2056 hdl_id = idr_alloc(&mgr->handles, handle, 1, 0, GFP_ATOMIC);
2065 handle->id = hdl_id;
2066 handle->q_idx = q_idx;
2067 handle->hdev = hdev;
2068 kref_init(&handle->refcount);
2088 /* set the hw_sob to the handle after calling the sob wraparound handler
2091 handle->hw_sob = hw_sob;
2096 handle->pre_sob_val = prop->next_sob_val - handle->count;
2098 handle->cs_seq = ULLONG_MAX;
2103 *sob_addr = handle->hw_sob->sob_addr;
2108 hw_sob->sob_id, handle->hw_sob->sob_addr,
2118 hl_ctx_put(handle->ctx);
2119 kfree(handle);
2140 dev_dbg(hdev->dev, "unreserve signals, handle: %u, SOB:0x%x, count: %u\n",
2178 /* Release the id and free allocated memory of the handle */
2290 * signals handle
2299 /* get refcount to protect removing this handle from idr,
2302 * Since kref_put of this handle is executed outside the
2303 * current lock, it is possible that the handle refcount
2305 * case need to consider the handle as not valid.
2316 dev_dbg(hdev->dev, "Cannot find encapsulated signals handle for seq 0x%llx\n",
2388 * for encaps signals case, we save the cs sequence and handle pointer
2393 /* store the handle pointer, so we don't have to
2752 * re-initialize the completion here to handle 2 possible cases:
3173 "user process got signal while waiting for CS handle %llu\n",
3348 dev_dbg(hdev->dev, "Timestamp registration: interrupt id: %u, handle: 0x%llx, ts offset: %llu, cq_offset: %llu\n",
3459 * same list could have nodes for different cq counter handle.