/haiku/src/add-ons/kernel/file_systems/exfat/ |
H A D | Volume.h | 32 struct node_key key; member in struct:node 46 return node->key; 54 static int Compare(KeyType key, const NodeType* node) argument 56 if (key.cluster == node->key.cluster) { 57 if (key.offset == node->key.offset) 59 return key.offset < node->key.offset ? -1 : 1; 61 return key 79 Compare(KeyType key, const NodeType* node) argument [all...] |
/haiku/src/bin/bfs_tools/lib/ |
H A D | Hashtable.cpp | 95 bool Hashtable::ContainsKey(const void *key) argument 97 return GetHashEntry(key) ? true : false; 101 void *Hashtable::GetValue(const void *key) argument 103 Entry *entry = GetHashEntry(key); 109 bool Hashtable::Put(const void *key, void *value) argument 111 Entry *entry = GetHashEntry(key); 112 int hash = fHashFunc(key); 124 fTable[index] = new Entry(fTable[index], key, value); 131 void *Hashtable::Remove(const void *key) argument 138 hash = (func = fHashFunc)(key); 277 GetHashEntry(const void *key) argument [all...] |
/haiku/src/system/kernel/arch/x86/ |
H A D | arch_debug_console.cpp | 111 uint8 key; local 113 key = in8(PS2_PORT_DATA); 114 //dprintf("debug_keyboard_interrupt: key = 0x%x\n", key); 116 if (key & 0x80) { 117 if (key == LEFT_CONTROL) 119 else if (key == LEFT_ALT) 121 else if (key == SYS_REQ) 127 switch (key) { 148 if (debug_emergency_key_pressed(kUnshiftedKeymap[key])) { 197 uint8 key = 0; local [all...] |
/haiku/src/libs/compat/openbsd_wlan/crypto/ |
H A D | hmac.c | 33 HMAC_MD5_Init(HMAC_MD5_CTX *ctx, const u_int8_t *key, u_int key_len) argument 40 MD5Update(&ctx->ctx, key, key_len); 41 MD5Final(ctx->key, &ctx->ctx); 44 bcopy(key, ctx->key, key_len); 49 memcpy(k_ipad, ctx->key, ctx->key_len); 74 memcpy(k_opad, ctx->key, ctx->key_len); 87 HMAC_SHA1_Init(HMAC_SHA1_CTX *ctx, const u_int8_t *key, u_int key_len) argument 94 SHA1Update(&ctx->ctx, key, key_len); 95 SHA1Final(ctx->key, 141 HMAC_SHA256_Init(HMAC_SHA256_CTX *ctx, const u_int8_t *key, u_int key_len) argument [all...] |
/haiku/src/kits/support/ |
H A D | PointerList.cpp | 44 Returns the index of the item that matches key or 48 int32 BinarySearchIndex(const void *key, const BList *list); 50 Returns the item that matches key or NULL if the item could 53 void* BinarySearch(const void *key, const BList *list); 79 void* BinarySearch(const void *key, const void **items, int32 numItems, 84 int virtual Compare(const void *key, const void* item) = 0; 114 AbstractPointerListHelper::BinarySearchIndex(const void *key, const BList *list) argument 118 BinarySearch(key, items, list->CountItems(), index); 124 AbstractPointerListHelper::BinarySearch(const void *key, const BList *list) argument 128 return BinarySearch(key, item 155 BinarySearch(const void *key, const void **items, int32 numItems, int32 &index) argument 320 BinarySearch(const void *key, GenericCompareFunction compareFunc) const argument 329 BinarySearch(const void *key, GenericCompareFunctionWithState compareFunc, void *state) const argument 338 BinarySearchIndex(const void *key, GenericCompareFunction compareFunc) const argument 347 BinarySearchIndex(const void *key, GenericCompareFunctionWithState compareFunc, void *state) const argument 356 BinarySearchIndexByPredicate(const void *key, UnaryPredicateGlue predicate) const argument [all...] |
/haiku/src/system/libnetwork/netresolv/dst/ |
H A D | hmac_link.c | 65 * priv_key key to use for signing. 82 HMAC_Key *key; local 96 key = (HMAC_Key *) d_key->dk_KEY_struct; 100 MD5Update(ctx, key->hk_ipad, HMAC_LEN); 113 MD5Update(ctx, key->hk_opad, HMAC_LEN); 136 * dkey key to use for verify. 151 HMAC_Key *key; local 164 key = (HMAC_Key *) d_key->dk_KEY_struct; 167 MD5Update(ctx, key->hk_ipad, HMAC_LEN); 174 if (signature == NULL || key 210 dst_buffer_to_hmac_md5(DST_KEY *dkey, const u_char *key, const int keylen) argument 271 u_char key[HMAC_LEN]; local 333 u_char key[HMAC_LEN+1]; /* b64_pton needs more than 64 bytes do decode local 419 dst_hmac_md5_free_key_structure(void *key) argument 436 dst_hmac_md5_generate_key(DST_KEY *key, const int nothing) argument [all...] |
/haiku/src/add-ons/kernel/debugger/usb_keyboard/ |
H A D | usb_keyboard.cpp | 189 write_key(int key) argument 191 sBufferedChars[sBufferWriteIndex++] = key; 256 uint8 key = sKeyTable[current[i]]; local 257 if (key & 0x80) { 261 key &= ~0x80; 262 write_key(key); 264 if (key == '5' || key == '6' || key == '3') 269 char c = kShiftedKeymap[key]; [all...] |
/haiku/headers/private/shared/ |
H A D | LRUCache.h | 30 LRUOrderingNode(const Key& key, const Value& value) argument 32 fKey(key), 77 status_t Put(const Key& key, const Value& value) argument 79 LRUNode* node = fMap.Get(key); 87 node = new(std::nothrow) LRUNode(key, value); 90 status_t result = fMap.Put(key, node); 102 Value Remove(const Key& key) argument 104 LRUNode* node = fMap.Get(key); 108 fMap.Remove(key); 125 Value Get(const Key& key) argument [all...] |
H A D | HashMap.h | 33 HashMapElement(const Key& key, const Value& value) argument 35 fKey(key), 53 size_t HashKey(const KeyType& key) const 54 { return key.GetHashCode(); } 57 bool Compare(const KeyType& key, const ValueType* value) const argument 58 { return value->fKey == key; } 71 Entry(const Key& key, Value value) : key(key), value(value) {} argument 73 Key key; member in class:BPrivate::HashMap::Entry 173 Put(const Key& key, const Value& value) argument 181 Remove(const Key& key) argument 376 Put(const Key& key, const Value& value) argument 401 Remove(const Key& key) argument 463 Get(const Key& key, Value*& _value) const argument [all...] |
/haiku/src/apps/haikudepot/util/ |
H A D | AppUtils.cpp | 44 AppUtils::MarkItemWithKeyValueInMenuOrFirst(BMenu* menu, const BString& key, const BString& value) argument 46 status_t result = AppUtils::MarkItemWithKeyValueInMenu(menu, key, value); 54 AppUtils::MarkItemWithKeyValueInMenu(BMenu* menu, const BString& key, const BString& value) argument 59 int32 index = AppUtils::IndexOfKeyValueInMenu(menu, key, value); 62 HDINFO("unable to find the menu item with [%s] = [%s]", key.String(), value.String()); 72 AppUtils::IndexOfKeyValueInMenu(BMenu* menu, const BString& key, const BString& value) argument 76 if (AppUtils::GetValueForKeyAtIndexInMenu(menu, i, key, &itemCode) == B_OK) { 87 AppUtils::GetValueForKeyAtIndexInMenu(BMenu* menu, int32 index, const BString& key, BString* result) argument 92 return itemMessage->FindString(key, result);
|
/haiku/src/add-ons/print/drivers/gutenprint/ |
H A D | GPCapabilityExtractor.h | 36 const char* key); 38 void StringParameter(const char* name, const char* key, 40 void ResolutionParameter(const char* name, const char* key, 42 void PageSizeParameter(const char* name, const char* key, 64 const char* key);
|
/haiku/src/apps/debuganalyzer/gui/ |
H A D | SubWindow.cpp | 37 const ObjectSubWindowKey* key local 39 return key != NULL && fObject == key->fObject; 73 SubWindow::AddToSubWindowManager(SubWindowKey* key) argument 77 fSubWindowKey = key;
|
/haiku/src/add-ons/kernel/file_systems/packagefs/volume/ |
H A D | PackagesDirectory.h | 67 size_t HashKey(const node_ref& key) const 69 return (size_t)key.device ^ (size_t)key.node; 77 bool Compare(const node_ref& key, const PackagesDirectory* value) const argument 79 return key == value->NodeRef();
|
/haiku/src/add-ons/kernel/file_systems/btrfs/ |
H A D | AttributeIterator.cpp | 26 btrfs_key key; local 27 key.SetType(BTRFS_KEY_TYPE_XATTR_ITEM); 28 key.SetObjectID(inode->ID()); 29 key.SetOffset(BTREE_BEGIN); 31 key);
|
/haiku/src/system/libroot/posix/musl/search/ |
H A D | tdelete.c | 5 void *tdelete(const void *__restrict key, void **__restrict rootp, argument 25 int c = cmp(key, n->key); 42 deleted->key = n->key;
|
H A D | hsearch.c | 69 if (e->key) { 70 for (i=keyhash(e->key),j=1; ; i+=j++) { 72 if (!newe->key) 91 static ENTRY *lookup(char *key, size_t hash, struct hsearch_data *htab) argument 98 if (!e->key || strcmp(e->key, key) == 0) 138 size_t hash = keyhash(item.key); 139 ENTRY *e = lookup(item.key, hash, htab); 141 if (e->key) { [all...] |
/haiku/src/libs/compat/openbsd_wlan/net80211/ |
H A D | ieee80211_pae_input.c | 81 struct ieee80211_eapol_key *key; local 94 if (m->m_pkthdr.len < sizeof(*key)) 96 if (m->m_len < sizeof(*key) && 97 (m = m_pullup(m, sizeof(*key))) == NULL) { 101 key = mtod(m, struct ieee80211_eapol_key *); 103 if (key->type != EAPOL_KEY) 108 key->desc != EAPOL_KEY_DESC_IEEE80211) || 110 key->desc != EAPOL_KEY_DESC_WPA)) 114 bodylen = BE_READ_2(key->len); 119 /* check key dat 187 ieee80211_recv_4way_msg1(struct ieee80211com *ic, struct ieee80211_eapol_key *key, struct ieee80211_node *ni) argument 283 ieee80211_recv_4way_msg2(struct ieee80211com *ic, struct ieee80211_eapol_key *key, struct ieee80211_node *ni, const u_int8_t *rsnie) argument 361 ieee80211_recv_4way_msg3(struct ieee80211com *ic, struct ieee80211_eapol_key *key, struct ieee80211_node *ni) argument 691 ieee80211_recv_4way_msg4(struct ieee80211com *ic, struct ieee80211_eapol_key *key, struct ieee80211_node *ni) argument 763 ieee80211_recv_4way_msg2or4(struct ieee80211com *ic, struct ieee80211_eapol_key *key, struct ieee80211_node *ni) argument 810 ieee80211_recv_rsn_group_msg1(struct ieee80211com *ic, struct ieee80211_eapol_key *key, struct ieee80211_node *ni) argument 976 ieee80211_recv_wpa_group_msg1(struct ieee80211com *ic, struct ieee80211_eapol_key *key, struct ieee80211_node *ni) argument 1082 ieee80211_recv_group_msg2(struct ieee80211com *ic, struct ieee80211_eapol_key *key, struct ieee80211_node *ni) argument 1135 ieee80211_recv_eapol_key_req(struct ieee80211com *ic, struct ieee80211_eapol_key *key, struct ieee80211_node *ni) argument [all...] |
/haiku/src/apps/terminal/ |
H A D | PrefHandler.cpp | 241 const char *key; local 245 fContainer.GetInfo(B_STRING_TYPE, i, &key, &type) == B_OK; 247 fContainer.GetInfo(B_STRING_TYPE, i, (char**)&key, &type) == B_OK; 251 key, getString(key)); 318 PrefHandler::getInt32(const char *key) argument 320 const char *value = fContainer.FindString(key); 329 PrefHandler::getFloat(const char *key) argument 331 const char *value = fContainer.FindString(key); 343 PrefHandler::getString(const char *key) argument 355 getBool(const char *key) argument 366 getCursor(const char *key) argument 385 getRGB(const char *key) argument 409 setInt32(const char *key, int32 data) argument 420 setFloat(const char *key, float data) argument 431 setBool(const char *key, bool data) argument 443 setString(const char *key, const char *data) argument 454 setRGB(const char *key, const rgb_color data) argument 527 char key[B_FIELD_NAME_LENGTH], data[512]; local [all...] |
/haiku/src/add-ons/kernel/file_systems/bfs/ |
H A D | BPlusTree.h | 279 const uint8* key, uint16 keyLength, 282 const uint8* key, uint16 keyLength, 285 status_t Remove(Transaction& transaction, const char* key, 287 status_t Insert(Transaction& transaction, const char* key, 289 status_t Insert(Transaction& transaction, int32 key, 291 status_t Insert(Transaction& transaction, uint32 key, 293 status_t Insert(Transaction& transaction, int64 key, 295 status_t Insert(Transaction& transaction, uint64 key, 297 status_t Insert(Transaction& transaction, float key, 299 status_t Insert(Transaction& transaction, double key, 448 Remove(Transaction& transaction, const char* key, off_t value) argument 457 Insert(Transaction& transaction, const char* key, off_t value) argument 466 Insert(Transaction& transaction, int32 key, off_t value) argument 475 Insert(Transaction& transaction, uint32 key, off_t value) argument 484 Insert(Transaction& transaction, int64 key, off_t value) argument 493 Insert(Transaction& transaction, uint64 key, off_t value) argument 502 Insert(Transaction& transaction, float key, off_t value) argument 511 Insert(Transaction& transaction, double key, off_t value) argument 531 GetNextEntry(void* key, uint16* keyLength, uint16 maxLength, off_t* value, uint16* duplicate) argument 540 GetPreviousEntry(void* key, uint16* keyLength, uint16 maxLength, off_t* value, uint16* duplicate) argument [all...] |
/haiku/src/preferences/keymap/ |
H A D | ModifierKeysWindow.cpp | 80 BStringView* keyRole = new BStringView("key role", 81 B_TRANSLATE_COMMENT("Role", "As in the role of a modifier key")); 85 BStringView* keyLabel = new BStringView("key label", 86 B_TRANSLATE_COMMENT("Key", "As in a computer keyboard key")); 91 B_TRANSLATE_COMMENT("Caps Lock:", "Caps Lock key role name")); 93 B_TRANSLATE_COMMENT("Shift:", "Shift key role name")); 95 B_TRANSLATE_COMMENT("Control:", "Control key role name")); 97 B_TRANSLATE_COMMENT("Option:", "Option key role name")); 99 B_TRANSLATE_COMMENT("Command:", "Command key role name")); 171 int32 key local 283 _CreateMenuField(BPopUpMenu** _menu, BMenuField** _menuField, uint32 key, const char* label) argument 357 _KeyToString(int32 key) argument 391 _KeyToKeyCode(int32 key, bool right) argument [all...] |
/haiku/src/tools/fs_shell/ |
H A D | hash.h | 22 int compare_func(void *element, const void *key), 23 uint32_t hash_func(void *element, const void *key, uint32_t range)); 30 void *hash_lookup(struct hash_table *table, const void *key); 38 * uint32 hash_func(void *e, const void *key, uint32 range); 39 * hash function should calculate hash on either e or key, 42 * int compare_func(void *e, const void *key); 44 * the key, returning 0 if equal, other if not
|
/haiku/src/apps/serialconnect/libvterm/src/ |
H A D | input.c | 125 void vterm_input_push_key(VTerm *vt, VTermModifier mod, VTermKey key) argument 132 if(key == VTERM_KEY_NONE) 135 if(key < VTERM_KEY_FUNCTION_0) { 136 if(key >= sizeof(keycodes)/sizeof(keycodes[0])) 138 k = keycodes[key]; 140 else if(key >= VTERM_KEY_FUNCTION_0 && key <= VTERM_KEY_FUNCTION_MAX) { 141 if((key - VTERM_KEY_FUNCTION_0) >= sizeof(keycodes_fn)/sizeof(keycodes_fn[0])) 143 k = keycodes_fn[key - VTERM_KEY_FUNCTION_0]; 145 else if(key > [all...] |
/haiku/src/libs/compat/freebsd_wlan/crypto/rijndael/ |
H A D | rijndael-api.c | 40 rijndael_set_key(rijndael_ctx *ctx, const u_char *key, int bits) argument 43 ctx->Nr = rijndaelKeySetupEnc(ctx->ek, key, bits); 44 rijndaelKeySetupDec(ctx->dk, key, bits);
|
/haiku/headers/private/kernel/boot/platform/generic/ |
H A D | text_console.h | 55 #define TEXT_CONSOLE_IS_CURSOR_KEY(key) \ 56 (key >= TEXT_CONSOLE_CURSOR_KEYS_START \ 57 && key < TEXT_CONSOLE_CURSOR_KEYS_END)
|
/haiku/headers/private/userlandfs/fuse/ |
H A D | fuse_opt.h | 35 * ii) The processing function is called, with 'value' as the key 87 * Value to set the variable to, or to be passed as 'key' to the 95 * called with the specified key. 97 #define FUSE_OPT_KEY(templ, key) { templ, -1U, key } 139 * Special key value for options to keep 147 * Special key value for options to discard 175 * @param key determines why the processing function was called 179 typedef int (*fuse_opt_proc_t)(void *data, const char *arg, int key,
|