Home
last modified time | relevance | path

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

12345678910>>...28

/AliOS-Things-master/components/ble_host/bt_host/port/core/
A Datomic_c.c47 unsigned int key; in atomic_cas() local
50 key = irq_lock(); in atomic_cas()
57 irq_unlock(key); in atomic_cas()
77 unsigned int key; in atomic_add() local
80 key = irq_lock(); in atomic_add()
85 irq_unlock(key); in atomic_add()
105 unsigned int key; in atomic_sub() local
108 key = irq_lock(); in atomic_sub()
113 irq_unlock(key); in atomic_sub()
139 irq_unlock(key); in atomic_inc()
[all …]
/AliOS-Things-master/hardware/chip/haas1000/
A D_haas1000_alios_lds.py21 key = match.group(1) variable
30 if key in key_value.keys():
31 key_value[key] = key_value[key].replace("#", " ")
36 for ch in key_value[key]:
45 if key in key_value.keys():
52 if key in key_value.keys():
53 key_value[key] = key_value[key].strip('"')
57 for key in key_value.keys():
58 print("%s is %s" %(key, key_value[key]))
66 if key in key_value.keys():
[all …]
/AliOS-Things-master/components/ble_host/bt_host/host/
A Dkeys_br.c29 struct bt_keys_link_key *key; in bt_keys_find_link_key() local
35 key = &key_pool[i]; in bt_keys_find_link_key()
38 return key; in bt_keys_find_link_key()
47 struct bt_keys_link_key *key; in bt_keys_get_link_key() local
50 if (key) { in bt_keys_get_link_key()
51 return key; in bt_keys_get_link_key()
55 if (key) { in bt_keys_get_link_key()
59 return key; in bt_keys_get_link_key()
76 struct bt_keys_link_key *key; in bt_keys_link_key_clear_addr() local
84 if (key) { in bt_keys_link_key_clear_addr()
[all …]
/AliOS-Things-master/components/uvoice/audio/
A Daudio_mixer.c75 char *key = NULL; in volume_set() local
79 key = SPK_VOLUME_ID; in volume_set()
82 key = HPH_VOLUME_ID; in volume_set()
84 key = REC_VOLUME_ID; in volume_set()
86 key = SPK_AND_HPH_VOLUME_ID; in volume_set()
98 snd_debug("%s not found\n", key); in volume_set()
122 char *key = NULL; in volume_get() local
126 key = SPK_VOLUME_ID; in volume_get()
129 key = HPH_VOLUME_ID; in volume_get()
131 key = REC_VOLUME_ID; in volume_get()
[all …]
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/ruy/cmake/
A Dbazel_to_cmake.py71 for key in dict:
74 default_value = dict[key]
78 elif re.search(r':ppc$', key):
80 elif re.search(r':s390x$', key):
192 if key in select_cache:
209 for key in kwargs.keys():
210 values = kwargs[key]
218 if key == 'visibility':
222 if key == 'tags':
229 if key == 'deps':
[all …]
/AliOS-Things-master/components/ble_host/bt_crypto/tinycrypt/source/
A Dhmac.c44 key[i] = inner_pad ^ new_key[i]; in rekey()
45 key[i + TC_SHA256_BLOCK_SIZE] = outer_pad ^ new_key[i]; in rekey()
48 key[i] = inner_pad; key[i + TC_SHA256_BLOCK_SIZE] = outer_pad; in rekey()
52 int tc_hmac_set_key(TCHmacState_t ctx, const uint8_t *key, in tc_hmac_set_key() argument
58 key == (const uint8_t *) 0 || in tc_hmac_set_key()
82 rekey(ctx->key, key, key_size); in tc_hmac_set_key()
85 (void)tc_sha256_update(&ctx->hash_state, key, key_size); in tc_hmac_set_key()
86 (void)tc_sha256_final(&ctx->key[TC_SHA256_DIGEST_SIZE], in tc_hmac_set_key()
88 rekey(ctx->key, in tc_hmac_set_key()
89 &ctx->key[TC_SHA256_DIGEST_SIZE], in tc_hmac_set_key()
[all …]
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/utils/kv/
A Dmodule_kv.c22 const char *key = NULL; in native_kv_setStorage() local
26 if (key == NULL) { in native_kv_setStorage()
45 if (key != NULL) { in native_kv_setStorage()
46 JS_FreeCString(ctx, key); in native_kv_setStorage()
59 const char *key = NULL; in native_kv_getStorage() local
64 if (key == NULL) { in native_kv_getStorage()
84 if (key != NULL) { in native_kv_getStorage()
97 const char *key = NULL; in native_kv_removeStorage() local
100 if (key == NULL) { in native_kv_removeStorage()
105 ret = aos_kv_del(key); in native_kv_removeStorage()
[all …]
/AliOS-Things-master/components/lwip/lwip2.0.0/netif/ppp/
A Dpppcrypt.c55 void pppcrypt_56_to_64_bit_key(u_char *key, u_char * des_key) { in pppcrypt_56_to_64_bit_key() argument
56 des_key[0] = pppcrypt_get_7bits(key, 0); in pppcrypt_56_to_64_bit_key()
57 des_key[1] = pppcrypt_get_7bits(key, 7); in pppcrypt_56_to_64_bit_key()
58 des_key[2] = pppcrypt_get_7bits(key, 14); in pppcrypt_56_to_64_bit_key()
59 des_key[3] = pppcrypt_get_7bits(key, 21); in pppcrypt_56_to_64_bit_key()
60 des_key[4] = pppcrypt_get_7bits(key, 28); in pppcrypt_56_to_64_bit_key()
61 des_key[5] = pppcrypt_get_7bits(key, 35); in pppcrypt_56_to_64_bit_key()
62 des_key[6] = pppcrypt_get_7bits(key, 42); in pppcrypt_56_to_64_bit_key()
63 des_key[7] = pppcrypt_get_7bits(key, 49); in pppcrypt_56_to_64_bit_key()
A Dmultilink.c211 key.dptr = bundle_id; in mp_join_bundle()
277 TDB_DATA key; in mp_bundle_terminated() local
293 key.dptr = blinks_id; in mp_bundle_terminated()
306 TDB_DATA key, rec; in make_bundle_links() local
346 TDB_DATA key, rec; in remove_bundle_link() local
392 key.dptr = p; in iterate_bundle_links()
393 key.dsize = q - p; in iterate_bundle_links()
409 const char *key;
417 p += strlen(key);
431 owns_unit(key, unit) in owns_unit() argument
[all …]
/AliOS-Things-master/components/py_engine/engine/extmod/
A Dmodbtree.c101 DBT key, val; in btree_put() local
102 key.data = (void *)mp_obj_str_get_data(args[1], &key.size); in btree_put()
110 DBT key, val; in btree_get() local
111 key.data = (void *)mp_obj_str_get_data(args[1], &key.size); in btree_get()
128 DBT key, val; in btree_seq() local
130 key.data = (void *)mp_obj_str_get_data(args[2], &key.size); in btree_seq()
141 pair->items[0] = mp_obj_new_bytes(key.data, key.size); in btree_seq()
199 DBT key, val; in btree_iternext() local
240 return mp_obj_new_bytes(key.data, key.size); in btree_iternext()
257 DBT key; in btree_subscr() local
[all …]
/AliOS-Things-master/components/mbedtls/platform/yoc/
A Drsa_alt.c260 unsigned char *key; in mbedtls_rsa_pkcs1_encrypt() local
279 if (!key) { in mbedtls_rsa_pkcs1_encrypt()
301 mbedtls_free(key); in mbedtls_rsa_pkcs1_encrypt()
323 unsigned char *key; in mbedtls_rsa_pkcs1_decrypt() local
345 if (!key) { in mbedtls_rsa_pkcs1_decrypt()
366 mbedtls_free(key); in mbedtls_rsa_pkcs1_decrypt()
388 unsigned char *key; in mbedtls_rsa_pkcs1_sign() local
436 if (!key) { in mbedtls_rsa_pkcs1_sign()
454 mbedtls_free(key); in mbedtls_rsa_pkcs1_sign()
478 unsigned char *key; in mbedtls_rsa_pkcs1_verify() local
[all …]
/AliOS-Things-master/components/oss/src/resumable/
A DUploadObjectRequest.cc27 UploadObjectRequest::UploadObjectRequest(const std::string &bucket, const std::string &key, in UploadObjectRequest() argument
30 OssResumableBaseRequest(bucket, key, checkpointDir, partSize, threadNum), in UploadObjectRequest()
46 UploadObjectRequest::UploadObjectRequest(const std::string &bucket, const std::string &key, in UploadObjectRequest() argument
49 UploadObjectRequest(bucket, key, filePath, checkpointDir, partSize, threadNum) in UploadObjectRequest()
54 UploadObjectRequest::UploadObjectRequest(const std::string &bucket, const std::string &key, in UploadObjectRequest() argument
59 UploadObjectRequest::UploadObjectRequest(const std::string &bucket, const std::string &key, in UploadObjectRequest() argument
64 UploadObjectRequest::UploadObjectRequest(const std::string &bucket, const std::string &key, in UploadObjectRequest() argument
70 UploadObjectRequest::UploadObjectRequest(const std::string &bucket, const std::string &key, in UploadObjectRequest() argument
73 OssResumableBaseRequest(bucket, key, checkpointDir, partSize, threadNum), in UploadObjectRequest()
96 UploadObjectRequest::UploadObjectRequest(const std::string &bucket, const std::string &key, in UploadObjectRequest() argument
[all …]
A DMultiCopyObjectRequest.cc27 MultiCopyObjectRequest::MultiCopyObjectRequest(const std::string &bucket, const std::string &key, in MultiCopyObjectRequest() argument
32 MultiCopyObjectRequest::MultiCopyObjectRequest(const std::string &bucket, const std::string &key, in MultiCopyObjectRequest() argument
38 MultiCopyObjectRequest::MultiCopyObjectRequest(const std::string &bucket, const std::string &key, in MultiCopyObjectRequest() argument
44 MultiCopyObjectRequest::MultiCopyObjectRequest(const std::string &bucket, const std::string &key, in MultiCopyObjectRequest() argument
47 MultiCopyObjectRequest(bucket, key, srcBucket, srcKey, checkpointDir, partSize, threadNum) in MultiCopyObjectRequest()
52 MultiCopyObjectRequest::MultiCopyObjectRequest(const std::string &bucket, const std::string &key, in MultiCopyObjectRequest() argument
55 OssResumableBaseRequest(bucket, key, checkpointDir, partSize, threadNum), in MultiCopyObjectRequest()
63 MultiCopyObjectRequest::MultiCopyObjectRequest(const std::string &bucket, const std::string &key, in MultiCopyObjectRequest() argument
69 MultiCopyObjectRequest::MultiCopyObjectRequest(const std::string &bucket, const std::string &key, in MultiCopyObjectRequest() argument
78 MultiCopyObjectRequest(bucket, key, srcBucket, srcKey, checkpointDir, partSize, threadNum) in MultiCopyObjectRequest()
[all …]
/AliOS-Things-master/components/kv/src/
A Dkv_aos.c43 int aos_kv_set(const char *key, const void *value, int len, int sync) in aos_kv_set() argument
45 return _kv_to_aos_res(kv_item_set(key, value, len)); in aos_kv_set()
48 int aos_kv_get(const char *key, void *buffer, int *buffer_len) in aos_kv_get() argument
50 return _kv_to_aos_res(kv_item_get(key, buffer, (int32_t *)buffer_len)); in aos_kv_get()
53 int aos_kv_del(const char *key) in aos_kv_del() argument
55 return _kv_to_aos_res(kv_item_delete(key)); in aos_kv_del()
63 int aos_kv_secure_set(const char *key, const void *value, int len, int sync) in aos_kv_secure_set() argument
65 return _kv_to_aos_res(kv_item_secure_set(key, value, len)); in aos_kv_secure_set()
68 int aos_kv_secure_get(const char *key, void *buffer, int *buffer_len) in aos_kv_secure_get() argument
70 return _kv_to_aos_res(kv_item_secure_get(key, buffer, (int32_t *)buffer_len)); in aos_kv_secure_get()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/ruy/ruy/
A Dprepacked_cache.cc50 const PrepackedCache::Key& key) const { in operator ()()
65 static_cast<int>(key.packed_layout.order) + in operator ()()
67 key.packed_layout.stride * 3 + key.packed_layout.kernel.rows * 5 + in operator ()()
68 key.packed_layout.kernel.cols * 7 + key.packed_layout.rows * 11 + in operator ()()
69 key.packed_layout.cols * 13; in operator ()()
82 Key key; in Get() local
83 key.src_data = src_data; in Get()
84 key.packed_layout = packed_matrix->layout; in Get()
85 key.zero_point = packed_matrix->zero_point; in Get()
86 const auto& itr = cache_.find(key); in Get()
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/utils/
A Dcolor_cache_utils.h40 const VP8LColorCache* const cc, uint32_t key) { in VP8LColorCacheLookup() argument
41 assert((key >> cc->hash_bits_) == 0u); in VP8LColorCacheLookup()
42 return cc->colors_[key]; in VP8LColorCacheLookup()
46 uint32_t key, uint32_t argb) { in VP8LColorCacheSet() argument
47 assert((key >> cc->hash_bits_) == 0u); in VP8LColorCacheSet()
48 cc->colors_[key] = argb; in VP8LColorCacheSet()
53 const int key = VP8LHashPix(argb, cc->hash_shift_); in VP8LColorCacheInsert() local
54 cc->colors_[key] = argb; in VP8LColorCacheInsert()
65 const int key = VP8LHashPix(argb, cc->hash_shift_); in VP8LColorCacheContains() local
66 return (cc->colors_[key] == argb) ? key : -1; in VP8LColorCacheContains()
/AliOS-Things-master/kernel/rhino/
A Dk_cfs.c13 static void node_insert(struct k_rbtree_root_t *root, cfs_node *node, lr_timer_t key) in node_insert() argument
21 if (key <= my->key) in node_insert()
23 else if (key > my->key) in node_insert()
27 node->key = key; in node_insert()
34 void cfs_node_insert(cfs_node *node, lr_timer_t key) in cfs_node_insert() argument
36 node_insert(&cfs_root, node, key); in cfs_node_insert()
55 return node_cfs->key; in cfs_node_min_get()
/AliOS-Things-master/components/mbedtls/include/mbedtls/
A Ddes.h133 void mbedtls_des_key_set_parity( unsigned char key[MBEDTLS_DES_KEY_SIZE] );
149 int mbedtls_des_key_check_key_parity( const unsigned char key[MBEDTLS_DES_KEY_SIZE] );
162 int mbedtls_des_key_check_weak( const unsigned char key[MBEDTLS_DES_KEY_SIZE] );
176 int mbedtls_des_setkey_enc( mbedtls_des_context *ctx, const unsigned char key[MBEDTLS_DES_KEY_SIZE]…
190 int mbedtls_des_setkey_dec( mbedtls_des_context *ctx, const unsigned char key[MBEDTLS_DES_KEY_SIZE]…
201 const unsigned char key[MBEDTLS_DES_KEY_SIZE * 2] );
212 const unsigned char key[MBEDTLS_DES_KEY_SIZE * 2] );
223 const unsigned char key[MBEDTLS_DES_KEY_SIZE * 3] );
234 const unsigned char key[MBEDTLS_DES_KEY_SIZE * 3] );
339 const unsigned char key[MBEDTLS_DES_KEY_SIZE] );
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/inc/platform/
A Daes_api.h53 bool aes128_ecb_encrypt(uint8_t plaintext[16], const uint8_t key[16], uint8_t *encrypted);
64 bool aes128_ecb_decrypt(uint8_t *input, const uint8_t *key, uint8_t *output);
75 bool aes128_ecb_encrypt_msb2lsb(uint8_t plaintext[16], const uint8_t key[16],
87 bool aes128_ecb_decrypt_msb2lsb(uint8_t *input, const uint8_t *key, uint8_t *output);
99 bool aes256_ecb_encrypt(uint8_t plaintext[16], const uint8_t key[32], uint8_t *encrypted);
110 bool aes256_ecb_decrypt(uint8_t *input, const uint8_t *key, uint8_t *output);
121 bool aes256_ecb_encrypt_msb2lsb(uint8_t plaintext[16], const uint8_t key[32],
133 bool aes256_ecb_decrypt_msb2lsb(uint8_t *input, const uint8_t *key, uint8_t *output);
/AliOS-Things-master/components/py_engine/tests/basics/
A Dbuiltin_minmax.py24 print(min(lst, key=lambda x:x))
25 print(min(lst, key=lambda x:-x))
26 print(min(1, 2, 3, 4, key=lambda x:-x))
27 print(min(4, 3, 2, 1, key=lambda x:-x))
28 print(max(lst, key=lambda x:x))
29 print(max(lst, key=lambda x:-x))
30 print(max(1, 2, 3, 4, key=lambda x:-x))
31 print(max(4, 3, 2, 1, key=lambda x:-x))
/AliOS-Things-master/components/py_engine/modules/kv/
A Dmodkv.c21 char *key; in obj_setStorageSync() local
30 key = (char *)mp_obj_str_get_str(args[0]); in obj_setStorageSync()
34 ret = aos_kv_set(key, value, value_len, 1); in obj_setStorageSync()
49 char *key; in obj_getStorageSync() local
57 key = (char *)mp_obj_str_get_str(args[0]); in obj_getStorageSync()
64 ret = aos_kv_get(key, value, &value_len); in obj_getStorageSync()
66 LOGE(LOG_TAG, "aos_kv_get failed key = %s;\n", key); in obj_getStorageSync()
84 char *key; in obj_removeStorageSync() local
91 key = (char *)mp_obj_str_get_str(args[0]); in obj_removeStorageSync()
92 LOGD(LOG_TAG, "%s:key = %s;\n", __func__, key); in obj_removeStorageSync()
[all …]
/AliOS-Things-master/components/freetype/src/cache/
A Dftcmru.h91 FT_Pointer key );
95 FT_Pointer key,
100 FT_Pointer key,
147 FT_Pointer key,
157 FT_Pointer key );
162 #define FTC_MRULIST_LOOKUP_CMP( list, key, compare, node, error ) \ argument
196 #define FTC_MRULIST_LOOKUP( list, key, node, error ) \ argument
203 FT_Pointer key );
207 FT_Pointer key,
210 #define FTC_MRULIST_LOOKUP( list, key, node, error ) \ argument
[all …]
/AliOS-Things-master/components/linkkit/external/nghttp2/
A Dnghttp2_map.c85 void nghttp2_map_entry_init(nghttp2_map_entry *entry, key_type key) in nghttp2_map_entry_init() argument
87 entry->key = key; in nghttp2_map_entry_init()
93 static uint32_t hash(int32_t key, uint32_t mod) in hash() argument
95 uint32_t h = (uint32_t)key; in hash()
104 uint32_t h = hash(entry->key, tablelen); in insert()
111 if (p->key == entry->key) { in insert()
172 h = hash(key, map->tablelen); in nghttp2_map_find()
174 if (entry->key == key) { in nghttp2_map_find()
181 int nghttp2_map_remove(nghttp2_map *map, key_type key) in nghttp2_map_remove() argument
186 h = hash(key, map->tablelen); in nghttp2_map_remove()
[all …]
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/nvrecord/
A Dnvrec_config.h28 char *key; member
60 bool nvrec_config_has_key(const nvrec_config_t *config, const char *section, const char *key);
66 int nvrec_config_get_int(const nvrec_config_t *config, const char *section, const char *key, int de…
71 bool nvrec_config_get_bool(const nvrec_config_t *config, const char *section, const char *key, bool…
77 …_get_string(const nvrec_config_t *config, const char *section, const char *key, const char *def_va…
82 void nvrec_config_set_int(nvrec_config_t *config, const char *section, const char *key, int value);
87 void nvrec_config_set_bool(nvrec_config_t *config, const char *section, const char *key, bool value…
92 void nvrec_config_set_string(nvrec_config_t *config, const char *section, const char *key, const ch…
/AliOS-Things-master/components/SDL2/src/events/
A DSDL_keyboard.c1013 switch (key) { in SDL_GetKeyName()
1031 if (key >= 'a' && key <= 'z') { in SDL_GetKeyName()
1032 key -= 32; in SDL_GetKeyName()
1044 SDL_Keycode key; in SDL_GetKeyFromName() local
1053 if (key >= 0xF0) { in SDL_GetKeyFromName()
1060 return key; in SDL_GetKeyFromName()
1069 return key; in SDL_GetKeyFromName()
1077 return key; in SDL_GetKeyFromName()
1082 if (key >= 'A' && key <= 'Z') { in SDL_GetKeyFromName()
1083 key += 32; in SDL_GetKeyFromName()
[all …]

Completed in 32 milliseconds

12345678910>>...28