Lines Matching defs:privates

48     /* extension privates */
114 dixGetPrivateAddr(PrivatePtr *privates, const DevPrivateKey key)
117 return (char *) (*privates) + key->offset;
128 dixGetPrivate(PrivatePtr *privates, const DevPrivateKey key)
131 return *(void **) dixGetPrivateAddr(privates, key);
135 * Associate 'val' with 'key' in 'privates' so that later calls to
136 * dixLookupPrivate(privates, key) will return 'val'.
139 dixSetPrivate(PrivatePtr *privates, const DevPrivateKey key, pointer val)
142 *(pointer *) dixGetPrivateAddr(privates, key) = val;
151 * For privates with defined storage, return the address of the
152 * storage. For privates without defined storage, return the pointer
156 dixLookupPrivate(PrivatePtr *privates, const DevPrivateKey key)
159 return dixGetPrivateAddr(privates, key);
161 return dixGetPrivate(privates, key);
168 * which is only valid for privates without predefined storage.
171 dixLookupPrivateAddr(PrivatePtr *privates, const DevPrivateKey key)
174 return (pointer *)dixGetPrivateAddr(privates, key);
184 dixGetScreenPrivateAddr(PrivatePtr *privates, const DevScreenPrivateKey key, ScreenPtr pScreen)
186 return dixGetPrivateAddr(privates, _dixGetScreenPrivateKey(key, pScreen));
190 dixGetScreenPrivate(PrivatePtr *privates, const DevScreenPrivateKey key, ScreenPtr pScreen)
192 return dixGetPrivate(privates, _dixGetScreenPrivateKey(key, pScreen));
196 dixSetScreenPrivate(PrivatePtr *privates, const DevScreenPrivateKey key, ScreenPtr pScreen, pointer val)
198 dixSetPrivate(privates, _dixGetScreenPrivateKey(key, pScreen), val);
202 dixLookupScreenPrivate(PrivatePtr *privates, const DevScreenPrivateKey key, ScreenPtr pScreen)
204 return dixLookupPrivate(privates, _dixGetScreenPrivateKey(key, pScreen));
208 dixLookupScreenPrivateAddr(PrivatePtr *privates, const DevScreenPrivateKey key, ScreenPtr pScreen)
210 return dixLookupPrivateAddr(privates, _dixGetScreenPrivateKey(key, pScreen));
217 * privates to be re-allocated as new private keys are registered.
223 dixAllocatePrivates(PrivatePtr *privates, DevPrivateType type);
229 dixFreePrivates(PrivatePtr privates, DevPrivateType type);
232 * Initialize privates by zeroing them
235 _dixInitPrivates(PrivatePtr *privates, void *addr, DevPrivateType type);
240 * Clean up privates
243 _dixFiniPrivates(PrivatePtr privates, DevPrivateType type);
258 _dixFreeObjectWithPrivates(void *object, PrivatePtr privates, DevPrivateType type);
263 * Return size of privates for the specified type
275 * Resets the privates subsystem. dixResetPrivates is called from the main loop
284 * Returns -1 if the specified resource has no dev privates.