Lines Matching refs:xf86Entities
54 EntityPtr *xf86Entities = NULL; /* Bus slots claimed by drivers */ variable
282 xf86Entities = xnfreallocarray(xf86Entities, in xf86AllocateEntity()
284 xf86Entities[xf86NumEntities - 1] = xnfcalloc(1, sizeof(EntityRec)); in xf86AllocateEntity()
285 xf86Entities[xf86NumEntities - 1]->entityPrivates = in xf86AllocateEntity()
293 EntityPtr pEnt = xf86Entities[entityIndex]; in xf86IsEntityPrimary()
321 if (xf86Entities[i]->driver == drvp) in xf86DriverHasEntities()
332 if (xf86Entities[entityIndex]->inUse && in xf86AddEntityToScreen()
333 !(xf86Entities[entityIndex]->entityProp & IS_SHARED_ACCEL)) { in xf86AddEntityToScreen()
342 xf86Entities[entityIndex]->inUse = TRUE; in xf86AddEntityToScreen()
398 xf86Entities[entityIndex]->inUse = FALSE; in xf86RemoveEntityFromScreen()
418 xf86Entities[entityIndex]->inUse = FALSE; in xf86ClearEntityListForScreen()
439 pEnt = xf86Entities[entityIndex]; in xf86AddDevToEntity()
456 pEnt = xf86Entities[entityIndex]; in xf86RemoveDevFromEntity()
486 pEnt->location = xf86Entities[entityIndex]->bus; in xf86GetEntityInfo()
487 pEnt->active = xf86Entities[entityIndex]->active; in xf86GetEntityInfo()
488 pEnt->chipset = xf86Entities[entityIndex]->chipset; in xf86GetEntityInfo()
489 pEnt->driver = xf86Entities[entityIndex]->driver; in xf86GetEntityInfo()
490 if ((xf86Entities[entityIndex]->devices) && in xf86GetEntityInfo()
491 (xf86Entities[entityIndex]->devices[0])) { in xf86GetEntityInfo()
492 for (i = 0; i < xf86Entities[entityIndex]->numInstances; i++) in xf86GetEntityInfo()
493 if (xf86Entities[entityIndex]->devices[i]->screen == 0) in xf86GetEntityInfo()
495 pEnt->device = xf86Entities[entityIndex]->devices[i]; in xf86GetEntityInfo()
509 return xf86Entities[entityIndex]->numInstances; in xf86GetNumEntityInstances()
518 if ((!xf86Entities[entityIndex]->devices) || in xf86GetDevFromEntity()
519 (!xf86Entities[entityIndex]->devices[0])) in xf86GetDevFromEntity()
523 instance >= xf86Entities[entityIndex]->numInstances) in xf86GetDevFromEntity()
526 for (i = 0; i < xf86Entities[entityIndex]->numInstances; i++) in xf86GetDevFromEntity()
527 if (xf86Entities[entityIndex]->devices[i]->screen == instance) in xf86GetDevFromEntity()
529 return xf86Entities[entityIndex]->devices[i]; in xf86GetDevFromEntity()
560 return xf86Entities[entityIndex]->lastScrnFlag; in xf86GetLastScrnFlag()
571 xf86Entities[entityIndex]->lastScrnFlag = scrnIndex; in xf86SetLastScrnFlag()
579 if (xf86Entities[entityIndex]->entityProp & IS_SHARED_ACCEL) { in xf86IsEntityShared()
590 xf86Entities[entityIndex]->entityProp |= IS_SHARED_ACCEL; in xf86SetEntityShared()
598 if (xf86Entities[entityIndex]->entityProp & ACCEL_IS_SHARABLE) { in xf86IsEntitySharable()
609 xf86Entities[entityIndex]->entityProp |= ACCEL_IS_SHARABLE; in xf86SetEntitySharable()
617 if (xf86Entities[entityIndex]->entityProp & SA_PRIM_INIT_DONE) { in xf86IsPrimInitDone()
628 xf86Entities[entityIndex]->entityProp |= SA_PRIM_INIT_DONE; in xf86SetPrimInitDone()
636 xf86Entities[entityIndex]->entityProp &= ~SA_PRIM_INIT_DONE; in xf86ClearPrimInitDone()
653 pEnt = xf86Entities[i]; in xf86AllocateEntityPrivateIndex()
669 return &(xf86Entities[entityIndex]->entityPrivates[privIndex]); in xf86GetEntityPrivate()