Lines Matching refs:keys

71 } keys[PRIVATE_LAST];
117 if (!fixup(&screenInfo.screens[s]->devPrivates, keys[PRIVATE_SCREEN].offset, bytes))
126 return fixup(&serverClient->devPrivates, keys[PRIVATE_CLIENT].offset, bytes);
136 if (!fixup(&extension->devPrivates, keys[PRIVATE_EXTENSION].offset, bytes))
149 if (cmap && !fixup(&cmap->devPrivates, keys[PRIVATE_COLORMAP].offset, bytes))
190 /* Update offsets for all affected keys */
199 assert (!keys[t].created);
204 /* Move all existing keys up in the privates space to make
209 for (k = keys[t].key; k; k = k->next)
211 keys[t].offset += bytes;
221 assert(!keys[type].created);
224 offset = keys[type].offset;
225 keys[type].offset += bytes;
234 key->next = keys[type].key;
235 keys[type].key = key;
277 keys[type].created++;
279 keys[PRIVATE_XSELINUX].created++;
280 if (keys[type].offset == 0)
283 memset(addr, '\0', keys[type].offset);
292 keys[type].created--;
294 keys[PRIVATE_XSELINUX].created--;
315 totalSize = baseSize + keys[type].offset;
341 size = keys[type].offset;
350 ++keys[type].allocated;
375 --keys[type].allocated;
387 return keys[type].offset;
423 /* XSELinux uses the same private keys for numerous objects */
428 /* These can have objects created before all of the keys are registered */
433 /* These cannot have any objects before all relevant keys are registered */
462 if (keys[t].offset) {
464 key_names[t], keys[t].created, keys[t].offset, keys[t].created * keys[t].offset,
465 keys[t].allocated);
466 bytes += keys[t].created * keys[t].offset;
467 objects += keys[t].created;
468 alloc += keys[t].allocated;
483 for (key = keys[t].key; key; key = next) {
492 if (keys[t].created) {
494 keys[t].created, key_names[t]);
497 keys[t].key = NULL;
498 keys[t].offset = 0;
499 keys[t].created = 0;
500 keys[t].allocated = 0;