Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 57) sorted by relevance

123

/wlan-driver/qca-wifi-host-cmn/qdf/test/
Dqdf_hashtable_test.c28 uintptr_t key; member
34 struct qdf_ht_test_item item = { .key = (uintptr_t)&bits }; in qdf_ht_test_single()
41 qdf_ht_add(ht, &item.entry, item.key); in qdf_ht_test_single()
43 qdf_ht_get(ht, cursor, entry, item.key, key); in qdf_ht_test_single()
45 QDF_BUG(cursor->key == item.key); in qdf_ht_test_single()
49 QDF_BUG(cursor->key == item.key); in qdf_ht_test_single()
55 qdf_ht_for_each_in_bucket(ht, cursor, entry, item.key) { in qdf_ht_test_single()
56 QDF_BUG(cursor->key == item.key); in qdf_ht_test_single()
62 qdf_ht_for_each_match(ht, cursor, entry, item.key, key) { in qdf_ht_test_single()
63 QDF_BUG(cursor->key == item.key); in qdf_ht_test_single()
/wlan-driver/qca-wifi-host-cmn/qdf/inc/
Dqdf_ptr_hash.h77 uintptr_t key; member
224 __qdf_ptr_hash_get_bucket(struct qdf_ptr_hash *ht, uintptr_t key) in __qdf_ptr_hash_get_bucket() argument
226 return ht->buckets + __qdf_ptr_hash_key(key, ht->bits); in __qdf_ptr_hash_get_bucket()
238 #define qdf_ptr_hash_add(ht, key, item, entry_field) \ argument
239 __qdf_ptr_hash_add(ht, (uintptr_t)key, &(item)->entry_field)
241 static inline void __qdf_ptr_hash_add(struct qdf_ptr_hash *ht, uintptr_t key, in __qdf_ptr_hash_add() argument
244 entry->key = key; in __qdf_ptr_hash_add()
246 qdf_ptr_hash_dup_check_in_bucket(__qdf_ptr_hash_get_bucket(ht, key), in __qdf_ptr_hash_add()
248 qdf_slist_push(&__qdf_ptr_hash_get_bucket(ht, key)->list, entry, node); in __qdf_ptr_hash_add()
260 #define qdf_ptr_hash_remove(ht, key, cursor, entry_field) ({ \ argument
[all …]
Dqdf_hashtable.h80 #define qdf_ht_add(table, entry, key) __qdf_ht_add(table, entry, key) argument
119 #define qdf_ht_for_each_in_bucket(table, cursor, entry_field, key) \ argument
120 __qdf_ht_for_each_in_bucket(table, cursor, entry_field, key)
130 #define qdf_ht_for_each_match(table, cursor, entry_field, key, key_field) \ argument
131 __qdf_ht_for_each_match(table, cursor, entry_field, key, key_field)
141 #define qdf_ht_get(table, cursor, entry_field, key, key_field) \ argument
142 __qdf_ht_get(table, cursor, entry_field, key, key_field)
Dqdf_crypto.h89 int qdf_get_hmac_hash(uint8_t *type, uint8_t *key,
118 uint32_t optional_data_len, uint8_t *key,
134 int qdf_get_keyed_hash(const char *alg, const uint8_t *key,
158 int qdf_aes_s2v(const uint8_t *key, unsigned int key_len, const uint8_t *s[],
173 int qdf_aes_ctr(const uint8_t *key, unsigned int key_len, uint8_t *siv,
188 int qdf_crypto_aes_gmac(const uint8_t *key, uint16_t key_length,
201 int qdf_crypto_aes_128_cmac(const uint8_t *key, const uint8_t *data,
Dqdf_parse.h31 const char *key,
/wlan-driver/qca-wifi-host-cmn/qdf/src/
Dqdf_parse.c42 char *key = cursor; in qdf_ini_read_values() local
89 key = qdf_str_trim(key); in qdf_ini_read_values()
97 *read_key = key; in qdf_ini_read_values()
102 } else if (key[0] == '[') { in qdf_ini_read_values()
103 qdf_size_t len = qdf_str_len(key); in qdf_ini_read_values()
105 if (key[len - 1] != ']') { in qdf_ini_read_values()
106 qdf_err("Invalid *.ini syntax '%s'", key); in qdf_ini_read_values()
109 key[len - 1] = '\0'; in qdf_ini_read_values()
110 *read_key = key + 1; in qdf_ini_read_values()
115 } else if (key[0] != '\0') { in qdf_ini_read_values()
[all …]
Dqdf_talloc.c107 uintptr_t key; member
121 pmeta->key = (uintptr_t)parent; in qdf_talloc_parent_meta_alloc()
123 qdf_ht_add(__qdf_talloc_meta_ht, &pmeta->entry, pmeta->key); in qdf_talloc_parent_meta_alloc()
139 uintptr_t key = (uintptr_t)parent; in qdf_talloc_parent_meta_lookup() local
141 qdf_ht_get(__qdf_talloc_meta_ht, pmeta, entry, key, key); in qdf_talloc_parent_meta_lookup()
/wlan-driver/qca-wifi-host-cmn/umac/cmn_services/crypto/src/
Dwlan_crypto_global_api.c146 static QDF_STATUS wlan_crypto_set_igtk_key(struct wlan_crypto_key *key) in wlan_crypto_set_igtk_key() argument
766 struct wlan_crypto_key *key = NULL; in wlan_crypto_setkey() local
879 key = qdf_mem_malloc(sizeof(struct wlan_crypto_key)); in wlan_crypto_setkey()
880 if (!key) in wlan_crypto_setkey()
889 priv_key->igtk_key[igtk_idx] = key; in wlan_crypto_setkey()
898 priv_key->bigtk_key[bigtk_idx] = key; in wlan_crypto_setkey()
911 if (!priv_key->key[req_key->keyix]) { in wlan_crypto_setkey()
912 priv_key->key[req_key->keyix] in wlan_crypto_setkey()
915 if (!priv_key->key[req_key->keyix]) in wlan_crypto_setkey()
918 key = priv_key->key[req_key->keyix]; in wlan_crypto_setkey()
[all …]
Dwlan_crypto_obj_mgr.c262 crypto_entry->keys.key[key_index] = crypto_key; in crypto_add_entry()
294 if (crypto_entry->keys.key[i]) { in crypto_remove_entry()
295 qdf_mem_free(crypto_entry->keys.key[i]); in crypto_remove_entry()
296 crypto_entry->keys.key[i] = NULL; in crypto_remove_entry()
612 if (crypto_key->key[i]) { in wlan_crypto_free_key()
613 qdf_mem_free(crypto_key->key[i]); in wlan_crypto_free_key()
614 crypto_key->key[i] = NULL; in wlan_crypto_free_key()
/wlan-driver/qca-wifi-host-cmn/qdf/linux/src/
Di_qdf_hashtable.h30 #define __qdf_ht_add(table, entry, key) hash_add(table, entry, key) argument
36 #define __qdf_ht_for_each_in_bucket(table, cursor, entry_field, key) \ argument
37 hash_for_each_possible(table, cursor, entry_field, key)
39 #define __qdf_ht_for_each_match(table, cursor, entry_field, key, key_field) \ argument
40 hash_for_each_possible(table, (cursor), entry_field, (key)) \
41 if ((cursor)->key_field == (key))
43 #define __qdf_ht_get(table, cursor, entry_field, key, key_field) \ argument
46 __qdf_ht_for_each_match(table, cursor, entry_field, key, key_field) \
Dqdf_crypto.c61 int qdf_get_hmac_hash(uint8_t *type, uint8_t *key, in qdf_get_hmac_hash() argument
78 return qdf_get_keyed_hash(type, key, keylen, (const uint8_t **)addr, in qdf_get_hmac_hash()
85 uint32_t optional_data_len, uint8_t *key, in qdf_default_hmac_sha256_kdf() argument
117 qdf_mem_copy(key + current_position, tmp_hash, remaining_data); in qdf_default_hmac_sha256_kdf()
132 qdf_mem_copy(key + current_position, tmp_hash, remaining_data); in qdf_default_hmac_sha256_kdf()
258 int qdf_crypto_aes_128_cmac(const uint8_t *key, const uint8_t *data, in qdf_crypto_aes_128_cmac() argument
272 ret = aes_expandkey(&aes_ctx, key, AES_KEYSIZE_128); in qdf_crypto_aes_128_cmac()
316 int qdf_crypto_aes_128_cmac(const uint8_t *key, const uint8_t *data, in qdf_crypto_aes_128_cmac() argument
337 ret = crypto_cipher_setkey(tfm, key, AES_KEYSIZE_128); in qdf_crypto_aes_128_cmac()
405 int qdf_get_keyed_hash(const char *alg, const uint8_t *key, in qdf_get_keyed_hash() argument
[all …]
Di_qdf_ptr_hash.h24 #define __qdf_ptr_hash_key(key, bits) hash_long(key, bits) argument
/wlan-driver/qca-wifi-host-cmn/hal/wifi3.0/
Dhal_flow.h80 key_bitwise_shift_left(uint8_t *key, int len, int shift) in key_bitwise_shift_left() argument
88 next = (key[i - 1] & 0x80 ? 1 : 0); in key_bitwise_shift_left()
91 key[i] = (key[i] << 1) | next; in key_bitwise_shift_left()
Dhal_rx_flow.c214 qdf_mem_copy(key_bytes, fst->key, HAL_FST_HASH_KEY_SIZE_BYTES); in hal_rx_fst_key_configure()
301 uint8_t *key = fst->shifted_key; in hal_flow_toeplitz_create_cache() local
307 uint32_t cur_key = (key[0] << 24) | (key[1] << 16) | (key[2] << 8) | in hal_flow_toeplitz_create_cache()
308 key[3]; in hal_flow_toeplitz_create_cache()
315 new_key_byte = key[i + 4]; in hal_flow_toeplitz_create_cache()
373 fst->key = hash_key; in hal_rx_fst_attach()
414 (void *)fst->key, HAL_FST_HASH_KEY_SIZE_BYTES); in hal_rx_fst_attach()
Dhal_rx_flow_info.h67 uint8_t *key; member
/wlan-driver/qca-wifi-host-cmn/umac/cmn_services/crypto/inc/
Dwlan_crypto_global_api.h616 wlan_crypto_cipher_type wlan_crypto_get_key_type(struct wlan_crypto_key *key);
672 uint8_t wlan_crypto_get_key_header(struct wlan_crypto_key *key);
682 uint8_t wlan_crypto_get_key_trailer(struct wlan_crypto_key *key);
692 uint8_t wlan_crypto_get_key_miclen(struct wlan_crypto_key *key);
831 static inline int wlan_crypto_aes_gmac(const uint8_t *key, size_t key_len, in wlan_crypto_aes_gmac() argument
836 return qdf_crypto_aes_gmac(key, key_len, iv, aad, in wlan_crypto_aes_gmac()
844 static inline int omac1_aes_128(const uint8_t *key, const uint8_t *data, in omac1_aes_128() argument
847 return qdf_crypto_aes_128_cmac(key, data, data_len, mac); in omac1_aes_128()
850 static inline int omac1_aes_256(const uint8_t *key, const uint8_t *data, in omac1_aes_256() argument
Dwlan_crypto_global_def.h549 struct wlan_crypto_key *key[WLAN_CRYPTO_MAX_VLANKEYIX]; member
645 struct wlan_crypto_key *key,
648 struct wlan_crypto_key *key,
651 struct wlan_crypto_key *key,
656 struct wlan_crypto_key *key,
/wlan-driver/qca-wifi-host-cmn/umac/mlme/connection_mgr/utf/src/
Dwlan_cm_utf_main.c465 if (cm_utf->req.crypto.wep_keys.key) { in wlan_cm_utf_detach()
466 qdf_mem_free(cm_utf->req.crypto.wep_keys.key); in wlan_cm_utf_detach()
467 cm_utf->req.crypto.wep_keys.key = NULL; in wlan_cm_utf_detach()
797 if (cm_utf->req.crypto.wep_keys.key) { in wlan_cm_utf_update_connect_param()
798 qdf_mem_free(cm_utf->req.crypto.wep_keys.key); in wlan_cm_utf_update_connect_param()
799 cm_utf->req.crypto.wep_keys.key = NULL; in wlan_cm_utf_update_connect_param()
874 cm_utf->req.crypto.wep_keys.key = in wlan_cm_utf_update_connect_param()
876 if (!cm_utf->req.crypto.wep_keys.key) { in wlan_cm_utf_update_connect_param()
880 qdf_mem_copy(cm_utf->req.crypto.wep_keys.key, token, in wlan_cm_utf_update_connect_param()
/wlan-driver/qcacld-3.0/components/tdls/core/src/
Dwlan_tdls_peer.c36 uint8_t i, key; in calculate_hash_key() local
38 for (i = 0, key = 0; i < 6; i++) in calculate_hash_key()
39 key ^= macaddr[i]; in calculate_hash_key()
41 return key % WLAN_TDLS_PEER_LIST_SIZE; in calculate_hash_key()
47 uint8_t key; in tdls_find_peer() local
53 key = calculate_hash_key(macaddr); in tdls_find_peer()
54 head = &vdev_obj->peer_list[key]; in tdls_find_peer()
270 uint8_t key = 0; in tdls_add_peer() local
284 key = calculate_hash_key(macaddr); in tdls_add_peer()
285 head = &vdev_obj->peer_list[key]; in tdls_add_peer()
[all …]
/wlan-driver/qcacld-3.0/core/dp/txrx/
Dol_rx_defrag.h86 const uint8_t *key, qdf_nbuf_t msdu, uint16_t hdrlen);
111 const uint8_t *key,
Dol_rx_defrag.c761 uint8_t key[DEFRAG_IEEE80211_KEY_LEN]; in ol_rx_defrag() local
892 qdf_mem_copy(key, in ol_rx_defrag()
895 if (!ol_rx_frag_tkip_demic(pdev, key, msdu, hdr_space)) { in ol_rx_defrag()
1011 ol_rx_frag_tkip_demic(ol_txrx_pdev_handle pdev, const uint8_t *key, in ol_rx_frag_tkip_demic() argument
1029 status = ol_rx_defrag_mic(pdev, key, msdu, hdrlen, in ol_rx_frag_tkip_demic()
1156 const uint8_t *key, in ol_rx_defrag_mic() argument
1176 l = get_le32(key); in ol_rx_defrag_mic()
1177 r = get_le32(key + 4); in ol_rx_defrag_mic()
/wlan-driver/qcacld-3.0/core/mac/src/pe/include/
Dlim_fils_defs.h212 uint8_t key[FT_GTK_KEY_LEN]; member
228 uint8_t key[FT_IGTK_KEY_LEN]; member
/wlan-driver/qcacld-3.0/core/hdd/src/
Dwlan_hdd_fips.c210 fips_request->key = &user_request->key[0]; in __hdd_fips_test()
Dwlan_hdd_fips.h40 uint8_t key[FIPS_KEY_LEN]; member
/wlan-driver/qcacld-3.0/core/sme/src/qos/
Dsme_qos.c309 union sme_qos_searchkey key; member
1476 search_key.key.ac_type = ac; in sme_qos_internal_setup_req()
1589 search_key.key.QosFlowID = QosFlowID; in sme_qos_internal_modify_req()
1740 search_key.key.ac_type = ac; in sme_qos_internal_modify_req()
1763 search_key.key.ac_type = ac; in sme_qos_internal_modify_req()
1895 search_key.key.QosFlowID = QosFlowID; in sme_qos_internal_release_req()
1992 search_key.key.ac_type = ac; in sme_qos_internal_release_req()
2035 search_key.key.ac_type = ac; in sme_qos_internal_release_req()
2146 search_key.key.ac_type = ac; in sme_qos_internal_release_req()
3983 search_key.key.ac_type = ac; in sme_qos_process_del_ts_ind()
[all …]

123