Searched refs:fw_ctx_id (Results 1 – 5 of 5) sorted by relevance
| /linux/drivers/accel/amdxdna/ |
| H A D | aie2_message.c | 266 hwctx->fw_ctx_id = resp.context_id; in aie2_create_context() 267 if (WARN_ON_ONCE(hwctx->fw_ctx_id == -1)) in aie2_create_context() 271 ret = aie2_runtime_cfg(ndev, AIE2_RT_CFG_FORCE_PREEMPT, &hwctx->fw_ctx_id); in aie2_create_context() 313 XDNA_DBG(xdna, "Created fw ctx %d pasid %d", hwctx->fw_ctx_id, hwctx->client->pasid); in aie2_create_context() 320 aie2_destroy_context_req(ndev, hwctx->fw_ctx_id); in aie2_create_context() 333 ret = aie2_destroy_context_req(ndev, hwctx->fw_ctx_id); in aie2_destroy_context() 335 XDNA_DBG(xdna, "Destroyed fw ctx %d", hwctx->fw_ctx_id); in aie2_destroy_context() 337 hwctx->fw_ctx_id = -1; in aie2_destroy_context()
|
| H A D | amdxdna_ctx.h | 96 u32 fw_ctx_id; member
|
| H A D | amdxdna_ctx.c | 205 hwctx->fw_ctx_id = -1; in amdxdna_drm_create_hwctx_ioctl() 223 hwctx->name = kasprintf(GFP_KERNEL, "hwctx.%d.%d", client->pid, hwctx->fw_ctx_id); in amdxdna_drm_create_hwctx_ioctl()
|
| H A D | aie2_pci.c | 888 if (hwctx->fw_ctx_id >= xdna->dev_handle->priv->hwctx_limit) { in aie2_fill_hwctx_map() 889 XDNA_ERR(xdna, "Invalid fw ctx id %d/%d ", hwctx->fw_ctx_id, in aie2_fill_hwctx_map() 894 map[hwctx->fw_ctx_id] = hwctx->id; in aie2_fill_hwctx_map()
|
| H A D | aie2_ctx.c | 70 ret = aie2_map_host_buf(xdna->dev_handle, hwctx->fw_ctx_id, in aie2_hwctx_restart() 639 ret = aie2_map_host_buf(xdna->dev_handle, hwctx->fw_ctx_id, in aie2_hwctx_init()
|