FILE
client.c
File preview with syntax highlighting.
linux-6.19.14/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r570/client.c
1/* SPDX-License-Identifier: MIT 2 * 3 * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved. 4 */ 5#include <rm/rm.h> 6 7#include "nvrm/client.h" 8 9static int 10r570_gsp_client_ctor(struct nvkm_gsp_client *client, u32 handle) 11{ 12 NV0000_ALLOC_PARAMETERS *args; 13 14 args = nvkm_gsp_rm_alloc_get(&client->object, handle, NV01_ROOT, sizeof(*args), 15 &client->object); 16 if (IS_ERR(args)) 17 return PTR_ERR(args); 18 19 args->hClient = client->object.handle; 20 args->processID = ~0; 21 22 return nvkm_gsp_rm_alloc_wr(&client->object, args); 23} 24 25const struct nvkm_rm_api_client 26r570_client = { 27 .ctor = r570_gsp_client_ctor, 28};
~/
Read-only file preview.