Lines Matching refs:key

70     DevPrivateKey key;
90 * This initializes the specified key and optionally requests pre-allocated
92 * may set and get a single pointer value using this private key. Otherwise,
96 * You may call dixRegisterPrivateKey more than once on the same key, but the
103 dixRegisterPrivateKey(DevPrivateKey key, DevPrivateType type, unsigned size);
106 * Check whether a private key has been registered
109 dixPrivateKeyRegistered(DevPrivateKey key)
111 return key->initialized;
121 dixGetPrivateAddr(PrivatePtr *privates, const DevPrivateKey key)
123 assert(key->initialized);
124 return (char *) (*privates) + key->offset;
135 dixGetPrivate(PrivatePtr *privates, const DevPrivateKey key)
137 assert(key->size == 0);
138 return *(void **) dixGetPrivateAddr(privates, key);
142 * Associate 'val' with 'key' in 'privates' so that later calls to
143 * dixLookupPrivate(privates, key) will return 'val'.
146 dixSetPrivate(PrivatePtr *privates, const DevPrivateKey key, pointer val)
148 assert(key->size == 0);
149 *(pointer *) dixGetPrivateAddr(privates, key) = val;
163 dixLookupPrivate(PrivatePtr *privates, const DevPrivateKey key)
165 if (key->size)
166 return dixGetPrivateAddr(privates, key);
168 return dixGetPrivate(privates, key);
178 dixLookupPrivateAddr(PrivatePtr *privates, const DevPrivateKey key)
180 assert(key->size == 0);
181 return (pointer *) dixGetPrivateAddr(privates, key);
186 dixRegisterScreenPrivateKey(DevScreenPrivateKey key, ScreenPtr pScreen,
190 _dixGetScreenPrivateKey(const DevScreenPrivateKey key, ScreenPtr pScreen);
193 dixGetScreenPrivateAddr(PrivatePtr *privates, const DevScreenPrivateKey key,
196 return dixGetPrivateAddr(privates, _dixGetScreenPrivateKey(key, pScreen));
200 dixGetScreenPrivate(PrivatePtr *privates, const DevScreenPrivateKey key,
203 return dixGetPrivate(privates, _dixGetScreenPrivateKey(key, pScreen));
207 dixSetScreenPrivate(PrivatePtr *privates, const DevScreenPrivateKey key,
210 dixSetPrivate(privates, _dixGetScreenPrivateKey(key, pScreen), val);
214 dixLookupScreenPrivate(PrivatePtr *privates, const DevScreenPrivateKey key,
217 return dixLookupPrivate(privates, _dixGetScreenPrivateKey(key, pScreen));
221 dixLookupScreenPrivateAddr(PrivatePtr *privates, const DevScreenPrivateKey key,
225 _dixGetScreenPrivateKey(key, pScreen));
233 * windows, pixmaps, gcs, pictures and colormaps. This key is
234 * used just like any other key using dixGetPrivate and friends.
245 dixRegisterScreenSpecificPrivateKey(ScreenPtr pScreen, DevPrivateKey key,