drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r570/ofa.c

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r570/ofa.c

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r570/ofa.c
Extension
.c
Size
625 bytes
Lines
29
Domain
Driver Families
Bucket
drivers/gpu
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

#include <rm/engine.h>

#include "nvrm/ofa.h"

static int
r570_ofa_alloc(struct nvkm_gsp_object *parent, u32 handle, u32 oclass, int inst,
	       struct nvkm_gsp_object *ofa)
{
	NV_OFA_ALLOCATION_PARAMETERS *args;

	args = nvkm_gsp_rm_alloc_get(parent, handle, oclass, sizeof(*args), ofa);
	if (WARN_ON(IS_ERR(args)))
		return PTR_ERR(args);

	args->size = sizeof(*args);
	args->engineInstance = inst;

	return nvkm_gsp_rm_alloc_wr(ofa, args);
}

const struct nvkm_rm_api_engine
r570_ofa = {
	.alloc = r570_ofa_alloc,
};

Annotation

Implementation Notes