Lines Matching defs:privates

48     /* extension privates */
106 * privates system is restarted at server reset time. All other keys
107 * are expected to be statically allocated as the privates must be
120 dixGetPrivateAddr(PrivatePtr *privates, const DevPrivateKey key)
123 return (char *) (*privates) + key->offset;
134 dixGetPrivate(PrivatePtr *privates, const DevPrivateKey key)
137 return *(void **) dixGetPrivateAddr(privates, key);
141 * Associate 'val' with 'key' in 'privates' so that later calls to
142 * dixLookupPrivate(privates, key) will return 'val'.
145 dixSetPrivate(PrivatePtr *privates, const DevPrivateKey key, pointer val)
148 *(pointer *) dixGetPrivateAddr(privates, key) = val;
157 * For privates with defined storage, return the address of the
158 * storage. For privates without defined storage, return the pointer
162 dixLookupPrivate(PrivatePtr *privates, const DevPrivateKey key)
165 return dixGetPrivateAddr(privates, key);
167 return dixGetPrivate(privates, key);
174 * which is only valid for privates without predefined storage.
177 dixLookupPrivateAddr(PrivatePtr *privates, const DevPrivateKey key)
180 return (pointer *)dixGetPrivateAddr(privates, key);
187 * privates to be re-allocated as new private keys are registered.
193 dixAllocatePrivates(PrivatePtr *privates, DevPrivateType type);
199 dixFreePrivates(PrivatePtr privates, DevPrivateType type);
202 * Initialize privates by zeroing them
205 _dixInitPrivates(PrivatePtr *privates, void *addr, DevPrivateType type);
210 * Clean up privates
213 _dixFiniPrivates(PrivatePtr privates, DevPrivateType type);
228 _dixFreeObjectWithPrivates(void *object, PrivatePtr privates, DevPrivateType type);
233 * Return size of privates for the specified type
245 * Resets the privates subsystem. dixResetPrivates is called from the main loop
254 * Returns -1 if the specified resource has no dev privates.