Searched refs:key (Results 26 - 50 of 142) sorted by relevance

123456

/darwin-on-arm/xnu/libkern/c++/
H A DOSDictionary.cpp138 const OSSymbol *key = OSSymbol::withString(*keys++); local
141 if (!key)
144 if (!newObject || !setObject(key, newObject)) {
145 key->release();
149 key->release();
177 if (!setObject(dict->dictionary[i].key, dict->dictionary[i].value)) {
187 dictionary[i].key->taggedRetain(OSTypeID(OSCollection));
311 dictionary[i].key->taggedRelease(OSTypeID(OSCollection));
326 // if the key exists, replace the object
330 exists = (i < count) && (aKey == dictionary[i].key);
596 const OSSymbol *key = dictionary[i].key; local
[all...]
/darwin-on-arm/xnu/bsd/crypto/rc4/
H A Drc4.c54 * Initialize an RC4 state buffer using the supplied key,
58 rc4_init(struct rc4_state *const state, const u_char *key, int keylen) argument
69 /* Randomize the permutation using key data */
71 j += state->perm[i] + key[i % keylen];
/darwin-on-arm/xnu/bsd/hfs/hfscommon/headers/
H A DCatalogPrivate.h109 CatalogKey *key);
112 u_int32_t length, CatalogKey *key, u_int32_t *textEncoding);
H A DBTreeScanner.h111 void * * key,
H A DBTreesPrivate.h235 u_int32_t CalcKeySize(const BTreeControlBlock *btcb, const BTreeKey *key);
236 #define CalcKeySize(btcb, key) ( ((btcb)->attributes & kBTBigKeysMask) ? ((key)->length16 + 2) : ((key)->length8 + 1) )
238 u_int32_t KeyLength(const BTreeControlBlock *btcb, const BTreeKey *key);
239 #define KeyLength(btcb, key) ( ((btcb)->attributes & kBTBigKeysMask) ? (key)->length16 : (key)->length8 )
/darwin-on-arm/xnu/tools/tests/libMicro/apple/
H A Dod_query_create_with_node.c103 static CFStringRef *key; // username array variable
221 key = malloc(sizeof(CFStringRef) * optRecords);
223 // user, group, hosts key to lookup
230 key[i] = CFStringCreateWithFormat( kCFAllocatorDefault,
235 // CFShow(key[i]); // print user name to check
246 // 2. create user key
300 key[i % optRecords], // inQueryValueOrList
320 CFShow (key[i % optRecords]);
328 CFShow (key[i % optRecords]);
365 CFRelease(key[
[all...]
/darwin-on-arm/xnu/bsd/hfs/
H A Dhfs_catalog.c63 HFSPlusCatalogKey key; member in struct:btobj
108 static int getkey(struct hfsmount *hfsmp, cnid_t cnid, CatalogKey * key);
111 HFSPlusCatalogKey *key, int retry);
113 static void buildthreadkey(HFSCatalogNodeID parentID, int std_hfs, CatalogKey *key);
119 static int builddesc(const HFSPlusCatalogKey *key, cnid_t cnid, u_int32_t hint, u_int32_t encoding,
233 * Convert a raw catalog key and record into an in-core catalog descriptor.
241 CatalogKey *key,
251 promotekey(hfsmp, (HFSCatalogKey *)key, pluskey, &encoding);
254 pluskey = (HFSPlusCatalogKey *)key;
336 // make MacRoman key fro
239 cat_convertkey( struct hfsmount *hfsmp, CatalogKey *key, CatalogRecord * recp, struct cat_desc *descp) argument
2497 getentriesattr_callback(const CatalogKey *key, const CatalogRecord *rec, struct readattr_state *state) argument
2601 CatalogKey * key; local
3200 CatalogKey * key; local
3607 buildkey(struct hfsmount *hfsmp, struct cat_desc *descp, HFSPlusCatalogKey *key, int retry) argument
3748 getkey(struct hfsmount *hfsmp, cnid_t cnid, CatalogKey * key) argument
3810 cat_getkeyplusattr(struct hfsmount *hfsmp, cnid_t cnid, CatalogKey * key, struct cat_attr *attrp) argument
3932 builddesc(const HFSPlusCatalogKey *key, cnid_t cnid, u_int32_t hint, u_int32_t encoding, int isdir, struct cat_desc *descp) argument
4219 HFSCatalogKey *key = (HFSCatalogKey *)keyp; local
4232 HFSPlusCatalogKey *key = (HFSPlusCatalogKey *)keyp; local
4257 buildthreadkey(HFSCatalogNodeID parentID, int std_hfs, CatalogKey *key) argument
[all...]
/darwin-on-arm/xnu/bsd/hfs/hfscommon/BTree/
H A DBTreeMiscOps.c121 Routine: CalcKeyRecordSize - Return size of combined key/record structure.
126 Input: keySize - length of key (including length field)
131 Result: u_int16_t - size of combined key/record that will be inserted in btree
371 foundIt = SearchNode (btreePtr, middle->buffer, &iterator->key, &index);
408 foundIt = SearchNode (btreePtr, left->buffer, &iterator->key, &leftIndex);
458 foundIt = SearchNode (btreePtr, right->buffer, &iterator->key, &rightIndex);
485 err = SearchTree ( btreePtr, &iterator->key, treePathTable, &nodeNum, middle, &index);
538 // check total key/record size limit
539 if ( CalcKeyRecordSize (CalcKeySize(btreePtr, &iterator->key), recordLen) > (btreePtr->nodeSize >> 1))
550 Function: If a hint exitst for the iterator, attempt to find the key i
[all...]
H A DBTreeTreeOps.c155 InsertKey *key,
167 const BTreeKey *key,
177 Routine: SearchTree - Search BTree for key and set up Tree Path Table.
179 Function: Searches BTree for specified key, setting up the Tree Path Table to
184 keyPtr - pointer to the key to search for
187 Output: nodeNum - number of the node containing the key position
190 Result: noErr - key found, index is record index
191 fsBTRecordNotFoundErr - key not found, index is insert index
192 fsBTEmptyErr - key not found, return params are nil
425 // If inserting the secondaryKey changes the first key o
557 InsertNode(BTreeControlBlockPtr btreePtr, InsertKey *key, BlockDescriptor *rightNode, u_int32_t node, u_int16_t index, u_int32_t *newNode, u_int16_t *newIndex, BlockDescriptor *leftNode, Boolean *updateParent, Boolean *insertParent, Boolean *rootSplit ) argument
1334 GetKeyLength( const BTreeControlBlock *btreePtr, const BTreeKey *key, Boolean forLeafNode ) argument
[all...]
H A DBTree.c201 * Subsequent opens allow key compare proc to be changed.
385 block and key descriptor associated with the file if filePtr is last
429 Routine: BTSearchRecord - Search BTree for a record with a matching key.
443 searchKey - pointer to search key to match.
513 foundRecord = SearchNode (btreePtr, node.buffer, &searchIterator->key, &index);
538 err = SearchTree ( btreePtr, &searchIterator->key, treePathTable, &nodeNum, &node, &index);
589 // copy the key in the BTree when found rather than searchIterator->key to get proper case/diacriticals
591 BlockMoveData ((Ptr)keyPtr, (Ptr)&resultIterator->key, CalcKeySize(btreePtr, keyPtr));
593 BlockMoveData ((Ptr)&searchIterator->key, (Pt
[all...]
/darwin-on-arm/xnu/iokit/Kernel/
H A DIOPMPowerSource.cpp142 OSSymbol *key; local
144 key = OSDynamicCast(OSSymbol, iteratorKey);
145 if (!key) continue;
146 obj = properties->getObject(key);
148 setProperty(key, obj);
165 void IOPMPowerSource::setPSProperty(const OSSymbol *key, OSObject *val) argument
169 if(!key || !val) return;
176 if( (lastVal = properties->getObject(key)) ) {
189 properties->setObject(key, val);
H A DIOCatalogue.cpp169 IOLog("Missing or bad \"%s\" key\n",
243 const OSSymbol * key; local
259 while ((key = (const OSSymbol *) iter->getNextObject()))
261 array = (OSArray *) personalities->getObject(key);
399 const OSSymbol * key; local
418 while ((key = (const OSSymbol *) iter->getNextObject()))
420 array = (OSArray *) personalities->getObject(key);
483 * in the IOPersonalityPublisher key, and we record it as requested here.
493 /* If a personality doesn't hold the "CFBundleIdentifier" key
582 const OSSymbol * key; local
707 const OSSymbol * key; local
768 const OSSymbol * key; local
[all...]
H A DIORegistryEntry.cpp194 char key[ kIOMaxPlaneName + 16 ]; local
197 strlcpy( key, name, kIOMaxPlaneName + 1 );
198 end = key + strlen( key );
200 nameKey = OSSymbol::withCString( key);
203 parentKey = OSSymbol::withCString( key);
206 childKey = OSSymbol::withCString( key);
209 pathNameKey = OSSymbol::withCString( key);
212 pathLocationKey = OSSymbol::withCString( key);
561 IOLog("%s: IORegistryEntry name %s with key \"
785 const OSSymbol * key; local
812 const OSSymbol * key; local
1115 const OSSymbol * key; local
1599 const OSSymbol *key; local
1656 const OSSymbol *key; local
[all...]
/darwin-on-arm/xnu/EXTERNAL_HEADERS/corecrypto/
H A Dcchmac.h57 unsigned long key_len, const void *key);
64 const void *key, unsigned long data_len, const void *data,
72 const void *key; member in struct:cchmac_test_input
/darwin-on-arm/xnu/bsd/net/
H A Dflowhash.c184 net_flowhash_mh3_x86_32(const void *key, u_int32_t len, const u_int32_t seed) argument
186 const u_int8_t *data = (const u_int8_t *)key;
242 net_flowhash_mh3_x64_128(const void *key, u_int32_t len, const u_int32_t seed) argument
244 const u_int8_t *data = (const u_int8_t *)key;
381 net_flowhash_jhash(const void *key, u_int32_t len, const u_int32_t seed) argument
388 if (ALIGNED32(key)) {
390 const u_int32_t *k = (const u_int32_t *)key;
486 /* need to read the key one byte at a time */
487 const u_int8_t *k = (const u_int8_t *)key;
561 net_flowhash_jhash(const void *key, u_int32_ argument
[all...]
H A Dpf.c400 *state = pf_find_state(kif, &key, direction); \
1101 pf_find_state_byid(struct pf_state_cmp *key) argument
1106 (struct pf_state *)(void *)key));
1110 pf_find_state(struct pfi_kif *kif, struct pf_state_key_cmp *key, u_int dir) argument
1120 (struct pf_state_key *)key);
1124 (struct pf_state_key *)key);
1140 pf_find_state_all(struct pf_state_key_cmp *key, u_int dir, int *more) argument
1150 &pf_statetbl_lan_ext, (struct pf_state_key *)key);
1154 &pf_statetbl_ext_gwy, (struct pf_state_key *)key);
1417 /* key exist
2944 pf_hash(struct pf_addr *inaddr, struct pf_addr *hash, struct pf_poolhashkey *key, sa_family_t af) argument
3174 struct pf_state_key_cmp key; local
5644 struct pf_state_key_cmp key; local
5795 struct pf_state_key_cmp key; local
6319 struct pf_state_key_cmp key; local
6466 struct pf_state_key_cmp key; local
7130 struct pf_state_key_cmp key; local
7232 struct pf_state_key_cmp key; local
7388 struct pf_state_key_cmp key; local
[all...]
H A Dpf_ruleset.c199 struct pf_anchor *key, *found; local
201 key = (struct pf_anchor *)rs_malloc(sizeof (*key));
202 memset(key, 0, sizeof (*key));
203 strlcpy(key->path, path, sizeof (key->path));
204 found = RB_FIND(pf_anchor_global, &pf_anchors, key);
205 rs_free(key);
H A Dpf_table.c1181 struct pfr_ktable *p, *q, *r, key; local
1190 for (i = 0; i < size; i++, tbl += sizeof (key.pfrkt_t)) {
1191 if (COPYIN(tbl, &key.pfrkt_t, sizeof (key.pfrkt_t), flags))
1193 pfr_table_copyin_cleanup(&key.pfrkt_t);
1194 if (pfr_validate_table(&key.pfrkt_t, PFR_TFLAG_USRMASK,
1197 key.pfrkt_flags |= PFR_TFLAG_ACTIVE;
1198 p = RB_FIND(pfr_ktablehead, &pfr_ktables, &key);
1200 p = pfr_create_ktable(&key.pfrkt_t, tzero, 1);
1209 if (!key
1260 struct pfr_ktable *p, *q, key; local
1378 struct pfr_ktable *p, key; local
1412 struct pfr_ktable *p, *q, key; local
1501 struct pfr_ktable *kt, *rt, *shadow, key; local
[all...]
/darwin-on-arm/xnu/bsd/netkey/
H A DMakefile25 key.h
/darwin-on-arm/xnu/osfmk/gssd/
H A Dgssd_mach.defs69 out key : gssd_byte_buffer, dealloc;
86 out key : gssd_byte_buffer, dealloc;
117 out key : gssd_byte_buffer, dealloc;
136 out key : gssd_byte_buffer, dealloc;
/darwin-on-arm/xnu/osfmk/kern/
H A Dledger.h88 extern int ledger_entry_add(ledger_template_t template, const char *key,
92 extern int ledger_key_lookup(ledger_template_t template, const char *key);
/darwin-on-arm/xnu/bsd/sys/
H A Dipc.h149 key_t key; /* Reserved for internal use */ member in struct:__ipc_perm_old
160 #define IPC_CREAT 001000 /* Create entry if key does not exist */
161 #define IPC_EXCL 002000 /* Fail if key exists */
165 #define IPC_PRIVATE ((key_t)0) /* Private key */
/darwin-on-arm/xnu/libkern/libkern/c++/
H A DOSSymbol.h379 const void * key,
/darwin-on-arm/xnu/libkern/
H A Dmkext.c206 u_int8_t *key; local
209 key = &sp->text_buf[r];
210 p = N + 1 + key[0];
232 if ((cmp = key[i] - sp->text_buf[p + i]) != 0)
/darwin-on-arm/xnu/bsd/hfs/hfscommon/Misc/
H A DFileExtentMapping.c47 Compare two extents file keys (a search key and a trial
48 key). Used by the BTree manager when searching for,
53 Compare two extents file keys (a search key and a trial
54 key). Used by the BTree manager when searching for,
133 HFSPlusExtentKey *key,
212 // foundKey The key data for the record actually found
248 extentKeyPtr = (HFSExtentKey*) &btIterator->key;
278 // Copy the found key back for the caller
305 extentKeyPtr = (HFSPlusExtentKey*) &btIterator->key;
334 // Copy the found key bac
351 CreateExtentRecord( ExtendedVCB *vcb, HFSPlusExtentKey *key, HFSPlusExtentRecord extents, u_int32_t *hint) argument
642 HFSPlusExtentKey key; local
1353 HFSPlusExtentKey key; // key for current extent record; key->keyLength == 0 if FCB's extent record local
1939 HFSExtentKey * key; // Actual extent key used on disk in HFS local
2092 HFSPlusExtentKey key; local
[all...]

Completed in 125 milliseconds

123456