Lines Matching refs:key
83 * This initializes the specified key and optionally requests pre-allocated
85 * may set and get a single pointer value using this private key. Otherwise,
89 * You may call dixRegisterPrivateKey more than once on the same key, but the
96 dixRegisterPrivateKey(DevPrivateKey key, DevPrivateType type, unsigned size);
99 * Check whether a private key has been registered
102 dixPrivateKeyRegistered(DevPrivateKey key)
104 return key->initialized;
114 dixGetPrivateAddr(PrivatePtr *privates, const DevPrivateKey key)
116 assert(key->initialized);
117 return (char *) (*privates) + key->offset;
128 dixGetPrivate(PrivatePtr *privates, const DevPrivateKey key)
130 assert (key->size == 0);
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)
141 assert (key->size == 0);
142 *(pointer *) dixGetPrivateAddr(privates, key) = val;
156 dixLookupPrivate(PrivatePtr *privates, const DevPrivateKey key)
158 if (key->size)
159 return dixGetPrivateAddr(privates, key);
161 return dixGetPrivate(privates, key);
171 dixLookupPrivateAddr(PrivatePtr *privates, const DevPrivateKey key)
173 assert (key->size == 0);
174 return (pointer *)dixGetPrivateAddr(privates, key);
178 dixRegisterScreenPrivateKey(DevScreenPrivateKey key, ScreenPtr pScreen, DevPrivateType type, unsigned size);
181 _dixGetScreenPrivateKey(const DevScreenPrivateKey key, ScreenPtr pScreen);
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));