Lines Matching refs:csm

125 static struct radeon_cs_int *cs_gem_create(struct radeon_cs_manager *csm,  in cs_gem_create()  argument
138 csg->base.csm = csm; in cs_gem_create()
340 struct radeon_cs_manager_gem *csm; in cs_gem_dump_bof() local
345 csm = (struct radeon_cs_manager_gem *)cs->csm; in cs_gem_dump_bof()
350 device_id = bof_int32(csm->device_id); in cs_gem_dump_bof()
411 sprintf(tmp, "d-0x%04X-%08d.bof", csm->device_id, csm->nbof++); in cs_gem_dump_bof()
445 r = drmCommandWriteRead(cs->csm->fd, DRM_RADEON_CS, in cs_gem_emit()
455 cs->csm->read_used = 0; in cs_gem_emit()
456 cs->csm->vram_write_used = 0; in cs_gem_emit()
457 cs->csm->gart_write_used = 0; in cs_gem_emit()
504 struct radeon_cs_manager_gem *csm; in cs_gem_print() local
507 csm = (struct radeon_cs_manager_gem *)cs->csm; in cs_gem_print()
508 fprintf(file, "VENDORID:DEVICEID 0x%04X:0x%04X\n", 0x1002, csm->device_id); in cs_gem_print()
541 struct radeon_cs_manager_gem *csm; in radeon_cs_manager_gem_ctor() local
543 csm = calloc(1, sizeof(struct radeon_cs_manager_gem)); in radeon_cs_manager_gem_ctor()
544 if (csm == NULL) { in radeon_cs_manager_gem_ctor()
547 csm->base.funcs = &radeon_cs_gem_funcs; in radeon_cs_manager_gem_ctor()
548 csm->base.fd = fd; in radeon_cs_manager_gem_ctor()
549 radeon_get_device_id(fd, &csm->device_id); in radeon_cs_manager_gem_ctor()
550 return &csm->base; in radeon_cs_manager_gem_ctor()
553 drm_public void radeon_cs_manager_gem_dtor(struct radeon_cs_manager *csm) in radeon_cs_manager_gem_dtor() argument
555 free(csm); in radeon_cs_manager_gem_dtor()