Lines Matching refs:key
78 * This initializes the specified key and optionally requests pre-allocated
80 * may set and get a single pointer value using this private key. Otherwise,
84 * You may call dixRegisterPrivateKey more than once on the same key, but the
91 dixRegisterPrivateKey(DevPrivateKey key, DevPrivateType type, unsigned size);
94 * Check whether a private key has been registered
97 dixPrivateKeyRegistered(DevPrivateKey key)
99 return key->initialized;
103 * Allocate a new private key.
105 * This manages the storage of the key object itself, freeing it when the
120 dixGetPrivateAddr(PrivatePtr *privates, const DevPrivateKey key)
122 assert(key->initialized);
123 return (char *) (*privates) + key->offset;
134 dixGetPrivate(PrivatePtr *privates, const DevPrivateKey key)
136 assert (key->size == 0);
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)
147 assert (key->size == 0);
148 *(pointer *) dixGetPrivateAddr(privates, key) = val;
162 dixLookupPrivate(PrivatePtr *privates, const DevPrivateKey key)
164 if (key->size)
165 return dixGetPrivateAddr(privates, key);
167 return dixGetPrivate(privates, key);
177 dixLookupPrivateAddr(PrivatePtr *privates, const DevPrivateKey key)
179 assert (key->size == 0);
180 return (pointer *)dixGetPrivateAddr(privates, key);