Lines Matching refs:kernel_ctx
1806 if (hdev->kernel_ctx && hl_ctx_put(hdev->kernel_ctx) == 1) in hl_device_reset()
1807 hdev->kernel_ctx = NULL; in hl_device_reset()
1852 if (hdev->kernel_ctx) { in hl_device_reset()
1868 hdev->kernel_ctx = kzalloc(sizeof(*hdev->kernel_ctx), in hl_device_reset()
1870 if (!hdev->kernel_ctx) { in hl_device_reset()
1878 rc = hl_ctx_init(hdev, hdev->kernel_ctx, true); in hl_device_reset()
1882 kfree(hdev->kernel_ctx); in hl_device_reset()
1883 hdev->kernel_ctx = NULL; in hl_device_reset()
2292 hdev->kernel_ctx = kzalloc(sizeof(*hdev->kernel_ctx), GFP_KERNEL); in hl_device_init()
2293 if (!hdev->kernel_ctx) { in hl_device_init()
2309 kfree(hdev->kernel_ctx); in hl_device_init()
2316 rc = hl_ctx_init(hdev, hdev->kernel_ctx, true); in hl_device_init()
2319 kfree(hdev->kernel_ctx); in hl_device_init()
2444 if (hl_ctx_put(hdev->kernel_ctx) != 1) in hl_device_init()
2601 if ((hdev->kernel_ctx) && (hl_ctx_put(hdev->kernel_ctx) != 1)) in hl_device_fini()