Lines Matching refs:kernel_ctx
1665 if (hdev->kernel_ctx && hl_ctx_put(hdev->kernel_ctx) == 1) in hl_device_reset()
1666 hdev->kernel_ctx = NULL; in hl_device_reset()
1709 if (hdev->kernel_ctx) { in hl_device_reset()
1725 hdev->kernel_ctx = kzalloc(sizeof(*hdev->kernel_ctx), in hl_device_reset()
1727 if (!hdev->kernel_ctx) { in hl_device_reset()
1735 rc = hl_ctx_init(hdev, hdev->kernel_ctx, true); in hl_device_reset()
1739 kfree(hdev->kernel_ctx); in hl_device_reset()
1740 hdev->kernel_ctx = NULL; in hl_device_reset()
2163 hdev->kernel_ctx = kzalloc(sizeof(*hdev->kernel_ctx), GFP_KERNEL); in hl_device_init()
2164 if (!hdev->kernel_ctx) { in hl_device_init()
2180 kfree(hdev->kernel_ctx); in hl_device_init()
2187 rc = hl_ctx_init(hdev, hdev->kernel_ctx, true); in hl_device_init()
2190 kfree(hdev->kernel_ctx); in hl_device_init()
2301 if (hl_ctx_put(hdev->kernel_ctx) != 1) in hl_device_init()
2449 if ((hdev->kernel_ctx) && (hl_ctx_put(hdev->kernel_ctx) != 1)) in hl_device_fini()