Lines Matching defs:xf86Entities
53 EntityPtr *xf86Entities = NULL; /* Bus slots claimed by drivers */
243 xf86Entities = xnfrealloc(xf86Entities,
245 xf86Entities[xf86NumEntities - 1] = xnfcalloc(1,sizeof(EntityRec));
246 xf86Entities[xf86NumEntities - 1]->entityPrivates =
254 EntityPtr pEnt = xf86Entities[entityIndex];
274 xf86Entities[entityIndex]->entityInit = init;
275 xf86Entities[entityIndex]->entityEnter = enter;
276 xf86Entities[entityIndex]->entityLeave = leave;
277 xf86Entities[entityIndex]->private = private;
286 if (xf86Entities[i]->driver == drvp)
297 if (xf86Entities[entityIndex]->inUse &&
298 !(xf86Entities[entityIndex]->entityProp & IS_SHARED_ACCEL)) {
307 xf86Entities[entityIndex]->inUse = TRUE;
311 pScrn->domainIOBase = xf86Entities[entityIndex]->domainIO;
362 xf86Entities[entityIndex]->inUse = FALSE;
382 xf86Entities[entityIndex]->inUse = FALSE;
403 pEnt = xf86Entities[entityIndex];
430 pEnt->location = xf86Entities[entityIndex]->bus;
431 pEnt->active = xf86Entities[entityIndex]->active;
432 pEnt->chipset = xf86Entities[entityIndex]->chipset;
433 pEnt->driver = xf86Entities[entityIndex]->driver;
434 if ( (xf86Entities[entityIndex]->devices) &&
435 (xf86Entities[entityIndex]->devices[0]) ) {
436 for (i = 0; i < xf86Entities[entityIndex]->numInstances; i++)
437 if (xf86Entities[entityIndex]->devices[i]->screen == 0)
439 pEnt->device = xf86Entities[entityIndex]->devices[i];
452 return xf86Entities[entityIndex]->numInstances;
461 if ( (!xf86Entities[entityIndex]->devices) ||
462 (!xf86Entities[entityIndex]->devices[0]) )
466 instance >= xf86Entities[entityIndex]->numInstances)
469 for (i = 0; i < xf86Entities[entityIndex]->numInstances; i++)
470 if (xf86Entities[entityIndex]->devices[i]->screen == instance)
472 return xf86Entities[entityIndex]->devices[i];
485 if (xf86Entities[i]->entityEnter)
486 xf86Entities[i]->entityEnter(i,xf86Entities[i]->private);
495 if (xf86Entities[i]->entityLeave)
496 xf86Entities[i]->entityLeave(i,xf86Entities[i]->private);
517 if (xf86Entities[i]->entityInit)
518 xf86Entities[i]->entityInit(i,xf86Entities[i]->private);
525 return xf86Entities[entityIndex]->lastScrnFlag;
535 xf86Entities[entityIndex]->lastScrnFlag = scrnIndex;
543 if(xf86Entities[entityIndex]->entityProp & IS_SHARED_ACCEL) {
554 xf86Entities[entityIndex]->entityProp |= IS_SHARED_ACCEL;
562 if(xf86Entities[entityIndex]->entityProp & ACCEL_IS_SHARABLE) {
573 xf86Entities[entityIndex]->entityProp |= ACCEL_IS_SHARABLE;
581 if(xf86Entities[entityIndex]->entityProp & SA_PRIM_INIT_DONE) {
592 xf86Entities[entityIndex]->entityProp |= SA_PRIM_INIT_DONE;
600 xf86Entities[entityIndex]->entityProp &= ~SA_PRIM_INIT_DONE;
618 pEnt = xf86Entities[i];
634 return &(xf86Entities[entityIndex]->entityPrivates[privIndex]);