Searched refs:fw_ctx_id (Results 1 – 5 of 5) sorted by relevance
| /linux/drivers/accel/amdxdna/ |
| H A D | aie2_message.c | 287 hwctx->fw_ctx_id = resp.context_id; in aie2_create_context() 288 if (WARN_ON_ONCE(hwctx->fw_ctx_id == -1)) in aie2_create_context() 292 ret = aie2_runtime_cfg(ndev, AIE2_RT_CFG_FORCE_PREEMPT, &hwctx->fw_ctx_id); in aie2_create_context() 334 XDNA_DBG(xdna, "Created fw ctx %d pasid %d", hwctx->fw_ctx_id, hwctx->client->pasid); in aie2_create_context() 341 aie2_destroy_context_req(ndev, hwctx->fw_ctx_id); in aie2_create_context() 354 ret = aie2_destroy_context_req(ndev, hwctx->fw_ctx_id); in aie2_destroy_context() 356 XDNA_DBG(xdna, "Destroyed fw ctx %d", hwctx->fw_ctx_id); in aie2_destroy_context() 358 hwctx->fw_ctx_id = -1; in aie2_destroy_context()
|
| H A D | amdxdna_ctx.h | 103 u32 fw_ctx_id; member
|
| H A D | aie2_pci.c | 877 ret = aie2_query_app_health(ndev, hwctx->fw_ctx_id, &report); in aie2_hwctx_status_cb() 953 if (hwctx->fw_ctx_id >= xdna->dev_handle->priv->hwctx_limit) { in aie2_fill_hwctx_map() 954 XDNA_ERR(xdna, "Invalid fw ctx id %d/%d ", hwctx->fw_ctx_id, in aie2_fill_hwctx_map() 959 map[hwctx->fw_ctx_id] = hwctx->id; in aie2_fill_hwctx_map()
|
| H A D | amdxdna_ctx.c | 221 hwctx->fw_ctx_id = -1; in amdxdna_drm_create_hwctx_ioctl() 239 hwctx->name = kasprintf(GFP_KERNEL, "hwctx.%d.%d", client->pid, hwctx->fw_ctx_id); in amdxdna_drm_create_hwctx_ioctl()
|
| H A D | aie2_ctx.c | 81 ret = aie2_map_host_buf(xdna->dev_handle, hwctx->fw_ctx_id, in aie2_hwctx_restart() 424 ret = aie2_query_app_health(xdna->dev_handle, hwctx->fw_ctx_id, report); in aie2_sched_job_timedout() 699 ret = aie2_map_host_buf(xdna->dev_handle, hwctx->fw_ctx_id, in aie2_hwctx_init()
|