Lines Matching full:resources
97 /* Routines to manage various kinds of resources:
106 * off-limits for client-visible resources. The next 8 bits are
169 ResourcePtr *resources; member
189 * Used by all resources that don't specify a function to calculate
190 * resource size. Currently this is used for all resources with
211 * Used by all resources that don't specify a function to iterate
212 * through subresources. Currently this is used for all resources with
327 * function is to gather accurate information on what resources
399 * this function is to gather accurate information on what resources a
568 * resources consumed by a resource.
617 * Returns the client bit offset in the client + resources ID field
647 clientTable[i = client->index].resources = in InitClientResources()
649 if (!clientTable[i].resources) in InitClientResources()
663 clientTable[i].resources[j] = NULL; in InitClientResources()
689 res = clientTable[client].resources[HashResourceID(id, clientTable[client].hashsize)]; in AvailableID()
712 for (resp = clientTable[client].resources, i = clientTable[client].buckets; in GetXIDRange()
815 head = &rrec->resources[HashResourceID(id, clientTable[client].hashsize)]; in AddResource()
836 ResourcePtr **tails, *resources; in RebuildTable() local
841 * on resources being free in the opposite order they are added. in RebuildTable()
848 resources = xallocarray(j, sizeof(ResourcePtr)); in RebuildTable()
849 if (!resources) { in RebuildTable()
853 for (rptr = resources, tptr = tails; --j >= 0; rptr++, tptr++) { in RebuildTable()
859 rptr = clientTable[client].resources; --j >= 0; rptr++) { in RebuildTable()
870 free(clientTable[client].resources); in RebuildTable()
871 clientTable[client].resources = resources; in RebuildTable()
895 head = &clientTable[cid].resources[HashResourceID(id, clientTable[cid].hashsize)]; in FreeResource()
929 head = &clientTable[cid].resources[HashResourceID(id, clientTable[cid].hashsize)]; in FreeResourceByType()
964 res = clientTable[cid].resources[HashResourceID(id, clientTable[cid].hashsize)]; in ChangeResourceValue()
975 /* Note: if func adds or deletes resources, then func can get called
976 * more than once for some resources. If func adds new resources,
978 * add and delete an equal number of resources!
985 ResourcePtr *resources; in FindClientResourcesByType() local
993 resources = clientTable[client->index].resources; in FindClientResourcesByType()
996 for (this = resources[i]; this; this = next) { in FindClientResourcesByType()
1002 next = resources[i]; /* start over */ in FindClientResourcesByType()
1020 ResourcePtr *resources; in FindAllClientResources() local
1028 resources = clientTable[client->index].resources; in FindAllClientResources()
1031 for (this = resources[i]; this; this = next) { in FindAllClientResources()
1036 next = resources[i]; /* start over */ in FindAllClientResources()
1046 ResourcePtr *resources; in LookupClientResourceComplex() local
1054 resources = clientTable[client->index].resources; in LookupClientResourceComplex()
1056 for (this = resources[i]; this; this = next) { in LookupClientResourceComplex()
1072 ResourcePtr *resources; in FreeClientNeverRetainResources() local
1081 resources = clientTable[client->index].resources; in FreeClientNeverRetainResources()
1084 prev = &resources[j]; in FreeClientNeverRetainResources()
1100 prev = &resources[j]; /* prev may no longer be valid */ in FreeClientNeverRetainResources()
1111 ResourcePtr *resources; in FreeClientResources() local
1123 resources = clientTable[client->index].resources; in FreeClientResources()
1136 head = &resources[j]; in FreeClientResources()
1149 free(clientTable[client->index].resources); in FreeClientResources()
1150 clientTable[client->index].resources = NULL; in FreeClientResources()
1202 res = clientTable[cid].resources[HashResourceID(id, clientTable[cid].hashsize)]; in dixLookupResourceByType()
1237 res = clientTable[cid].resources[HashResourceID(id, clientTable[cid].hashsize)]; in dixLookupResourceByClass()