Home
last modified time | relevance | path

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

1234

/components/libc/posix/pthreads/
A Dpthread_tls.c49 void *pthread_getspecific(pthread_key_t key) in pthread_getspecific() argument
62 if ((key < PTHREAD_KEY_MAX) && (_thread_keys[key].is_used)) in pthread_getspecific()
63 return ptd->tls[key]; in pthread_getspecific()
100 int pthread_setspecific(pthread_key_t key, const void *value) in pthread_setspecific() argument
116 if ((key < PTHREAD_KEY_MAX) && _thread_keys[key].is_used) in pthread_setspecific()
118 ptd->tls[key] = (void *)value; in pthread_setspecific()
168 *key = index; in pthread_key_create()
205 int pthread_key_delete(pthread_key_t key) in pthread_key_delete() argument
207 if (key >= PTHREAD_KEY_MAX) in pthread_key_delete()
211 _thread_keys[key].is_used = 0; in pthread_key_delete()
[all …]
/components/drivers/usb/cherryusb/platform/lvgl/
A Dusbh_hid_lvgl.c157 data->key = ctx->kb.last_key; in usbh_hid_lvgl_read_keyboard()
229 data->key = ctx->kb.last_key; in usbh_hid_lvgl_read_keyboard()
341 if ((key >= HID_KBD_USAGE_A) && (key <= HID_KBD_USAGE_QUESTION)) { in usb_hid_get_keyboard_char()
342 ret_key = (cap_lock == false) ? keycode2ascii[key][0] : keycode2ascii[key][1]; in usb_hid_get_keyboard_char()
343 } else if ((key >= HID_KBD_USAGE_1) && (key <= HID_KBD_USAGE_QUESTION)) { in usb_hid_get_keyboard_char()
345 } else if ((key >= HID_KBD_USAGE_KPD1) && (key <= HID_KBD_USAGE_KPD0)) { in usb_hid_get_keyboard_char()
347 } else if ((key >= HID_KBD_USAGE_KPDDIV) && (key <= HID_KBD_USAGE_KPDEMTER)) { in usb_hid_get_keyboard_char()
348 switch (key) { in usb_hid_get_keyboard_char()
382 … if ((keyboard->key[i] <= HID_KBD_USAGE_MAX) && (keyboard->key[i] > HID_KBD_USAGE_NONE)) { in usbh_hid_keyboard_callback()
383 char key = 0; in usbh_hid_keyboard_callback() local
[all …]
/components/net/lwip/lwip-2.1.2/src/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 …]
/components/net/lwip/lwip-2.0.3/src/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 …]
/components/lwp/
A Dlwp_futex_table.c15 rt_err_t futex_global_table_add(struct shared_futex_key *key, rt_futex_t futex) in futex_global_table_add() argument
19 futex->entry.key.mobj = key->mobj; in futex_global_table_add()
20 futex->entry.key.offset = key->offset; in futex_global_table_add()
22 RT_UTHASH_ADD(_futex_hash_head, key, sizeof(struct shared_futex_key), entry); in futex_global_table_add()
26 rt_err_t futex_global_table_find(struct shared_futex_key *key, rt_futex_t *futex) in futex_global_table_find() argument
32 RT_UTHASH_FIND(_futex_hash_head, key, sizeof(struct shared_futex_key), entry); in futex_global_table_find()
48 rt_err_t futex_global_table_delete(struct shared_futex_key *key) in futex_global_table_delete() argument
53 RT_UTHASH_FIND(_futex_hash_head, key, sizeof(struct shared_futex_key), entry); in futex_global_table_delete()
A Dlwp_futex_internal.h33 DEFINE_RT_UTHASH_TYPE(shared_futex_entry, struct shared_futex_key, key);
50 rt_err_t futex_global_table_add(struct shared_futex_key *key, rt_futex_t futex);
51 rt_err_t futex_global_table_find(struct shared_futex_key *key, rt_futex_t *futex);
52 rt_err_t futex_global_table_delete(struct shared_futex_key *key);
A Dlwp_avl.c81 avl_key_t key = node_to_delete->avl_key; in lwp_avl_remove() local
97 if (key == node->avl_key) in lwp_avl_remove()
99 if (key < node->avl_key) in lwp_avl_remove()
137 avl_key_t key = new_node->avl_key; in lwp_avl_insert() local
149 if (key < node->avl_key) in lwp_avl_insert()
161 struct lwp_avl_struct *lwp_avl_find(avl_key_t key, struct lwp_avl_struct *ptree) in lwp_avl_find() argument
169 if (key == ptree->avl_key) in lwp_avl_find()
171 if (key < ptree->avl_key) in lwp_avl_find()
A Dlwp_shm.c29 size_t key; member
109 static int _lwp_shmget(size_t key, size_t size, int create) in _lwp_shmget() argument
118 node_key = lwp_avl_find(key, shm_tree_key); in _lwp_shmget()
153 p->key = key; in _lwp_shmget()
166 node_key->avl_key = p->key; in _lwp_shmget()
193 int lwp_shmget(size_t key, size_t size, int create) in lwp_shmget() argument
198 ret = _lwp_shmget(key, size, create); in lwp_shmget()
216 node_key = lwp_avl_find(p->key, shm_tree_key); in shm_id_to_node()
450 rt_kprintf("0x%08x 0x%08x 0x%08x %8d\n", p->key, p->addr, p->size, id); in _shm_info()
/components/net/lwip/lwip-1.4.1/src/netif/ppp/
A Dchpms.c176 MakeKey(key, des_key); in DesEncrypt()
206 MakeKey(key, des_key); in DesEncrypt()
283 des_key[0] = Get7Bits(key, 0); in MakeKey()
284 des_key[1] = Get7Bits(key, 7); in MakeKey()
285 des_key[2] = Get7Bits(key, 14); in MakeKey()
286 des_key[3] = Get7Bits(key, 21); in MakeKey()
287 des_key[4] = Get7Bits(key, 28); in MakeKey()
288 des_key[5] = Get7Bits(key, 35); in MakeKey()
289 des_key[6] = Get7Bits(key, 42); in MakeKey()
290 des_key[7] = Get7Bits(key, 49); in MakeKey()
[all …]
/components/net/lwip/lwip-2.0.3/src/apps/snmp/
A Dsnmpv3_mbedtls.c53 const u8_t* key, u8_t algo, u8_t* hmac_out) in snmpv3_auth() argument
77 if (mbedtls_md_hmac_starts(&ctx, key, key_len) != 0) { in snmpv3_auth()
145 iv_local[i] = priv_param[i] ^ key[i + 8]; in snmpv3_crypt()
258 mbedtls_md5_finish(&MD, key); /* tell MD5 we're done */ in snmpv3_password_to_key_md5()
266 SMEMCPY(password_buf, key, 16); in snmpv3_password_to_key_md5()
268 SMEMCPY(password_buf + 16 + engineLength, key, 16); in snmpv3_password_to_key_md5()
272 mbedtls_md5_finish(&MD, key); in snmpv3_password_to_key_md5()
311 mbedtls_sha1_finish(&SH, key); /* tell SHA we're done */ in snmpv3_password_to_key_sha()
319 SMEMCPY(password_buf, key, 20); in snmpv3_password_to_key_sha()
321 SMEMCPY(password_buf + 20 + engineLength, key, 20); in snmpv3_password_to_key_sha()
[all …]
/components/net/lwip/lwip-2.1.2/src/apps/snmp/
A Dsnmpv3_mbedtls.c53 const u8_t *key, snmpv3_auth_algo_t algo, u8_t *hmac_out) in snmpv3_auth() argument
77 if (mbedtls_md_hmac_starts(&ctx, key, key_len) != 0) { in snmpv3_auth()
145 iv_local[i] = priv_param[i] ^ key[i + 8]; in snmpv3_crypt()
269 mbedtls_md5_finish(&MD, key); /* tell MD5 we're done */ in snmpv3_password_to_key_md5()
277 SMEMCPY(password_buf, key, 16); in snmpv3_password_to_key_md5()
279 SMEMCPY(password_buf + 16 + engineLength, key, 16); in snmpv3_password_to_key_md5()
283 mbedtls_md5_finish(&MD, key); in snmpv3_password_to_key_md5()
322 mbedtls_sha1_finish(&SH, key); /* tell SHA we're done */ in snmpv3_password_to_key_sha()
330 SMEMCPY(password_buf, key, 20); in snmpv3_password_to_key_sha()
332 SMEMCPY(password_buf + 20 + engineLength, key, 20); in snmpv3_password_to_key_sha()
[all …]
/components/drivers/hwcrypto/
A Dhw_symmetric.c95 rt_err_t rt_hwcrypto_symmetric_setkey(struct rt_hwcrypto_ctx *ctx, const rt_uint8_t *key, rt_uint32… in rt_hwcrypto_symmetric_setkey() argument
102 rt_memcpy(symmetric_ctx->key, key, bitlen >> 3); in rt_hwcrypto_symmetric_setkey()
122 int rt_hwcrypto_symmetric_getkey(struct rt_hwcrypto_ctx *ctx, rt_uint8_t *key, rt_uint32_t bitlen) in rt_hwcrypto_symmetric_getkey() argument
128 rt_memcpy(key, symmetric_ctx->key, symmetric_ctx->key_bitlen >> 3); in rt_hwcrypto_symmetric_getkey()
234 rt_memcpy(symmetric_des->key, symmetric_src->key, symmetric_src->key_bitlen >> 3); in rt_hwcrypto_symmetric_cpy()
258 rt_memset(symmetric_ctx->key, 0, RT_HWCRYPTO_KEYBIT_MAX_SIZE >> 3); in rt_hwcrypto_symmetric_reset()
A Dhw_gcm.c115 const rt_uint8_t *key, rt_uint32_t bitlen) in rt_hwcrypto_gcm_setkey() argument
117 return rt_hwcrypto_symmetric_setkey(ctx, key, bitlen); in rt_hwcrypto_gcm_setkey()
130 rt_uint8_t *key, rt_uint32_t bitlen) in rt_hwcrypto_gcm_getkey() argument
132 return rt_hwcrypto_symmetric_getkey(ctx, key, bitlen); in rt_hwcrypto_gcm_getkey()
/components/drivers/include/ipc/
A Dwaitqueue.h22 typedef int (*rt_wqueue_func_t)(struct rt_wqueue_node *wait, void *key);
31 rt_uint32_t key; member
35 int __wqueue_default_wake(struct rt_wqueue_node *wait, void *key);
51 void rt_wqueue_wakeup(rt_wqueue_t *queue, void *key);
52 void rt_wqueue_wakeup_all(rt_wqueue_t *queue, void *key);
/components/mm/
A Davl_adpt.c99 struct rt_varea *_aspace_bst_search(struct rt_aspace *aspace, void *key) in _aspace_bst_search() argument
102 struct _mm_range range = {key, key}; in _aspace_bst_search()
154 rt_ubase_t key = (rt_ubase_t)varea->start; in _aspace_bst_insert() local
162 if (key < (rt_ubase_t)data->start) in _aspace_bst_insert()
164 else if (key > (rt_ubase_t)data->start) in _aspace_bst_insert()
/components/net/lwip/lwip-2.1.2/src/netif/ppp/polarssl/
A Ddes.c300 static void des_setkey( unsigned long SK[32], unsigned char key[8] ) in des_setkey()
305 GET_ULONG_BE( X, key, 0 ); in des_setkey()
306 GET_ULONG_BE( Y, key, 4 ); in des_setkey()
372 void des_setkey_enc( des_context *ctx, unsigned char key[8] ) in des_setkey_enc()
374 des_setkey( ctx->sk, key ); in des_setkey_enc()
380 void des_setkey_dec( des_context *ctx, unsigned char key[8] ) in des_setkey_dec()
384 des_setkey( ctx->sk, key ); in des_setkey_dec()
/components/net/lwip/lwip-2.0.3/src/netif/ppp/polarssl/
A Ddes.c300 static void des_setkey( unsigned long SK[32], unsigned char key[8] ) in des_setkey()
305 GET_ULONG_BE( X, key, 0 ); in des_setkey()
306 GET_ULONG_BE( Y, key, 4 ); in des_setkey()
372 void des_setkey_enc( des_context *ctx, unsigned char key[8] ) in des_setkey_enc()
374 des_setkey( ctx->sk, key ); in des_setkey_enc()
380 void des_setkey_dec( des_context *ctx, unsigned char key[8] ) in des_setkey_dec()
384 des_setkey( ctx->sk, key ); in des_setkey_dec()
/components/drivers/ipc/
A Dwaitqueue.c65 int __wqueue_default_wake(struct rt_wqueue_node *wait, void *key) in __wqueue_default_wake() argument
80 void rt_wqueue_wakeup(rt_wqueue_t *queue, void *key) in rt_wqueue_wakeup() argument
100 if (entry->wakeup(entry, key) == 0) in rt_wqueue_wakeup()
136 void rt_wqueue_wakeup_all(rt_wqueue_t *queue, void *key) in rt_wqueue_wakeup_all() argument
156 if (entry->wakeup(entry, key) == 0) in rt_wqueue_wakeup_all()
217 __wait.key = 0; in _rt_wqueue_wait()
/components/drivers/wlan/
A Ddev_wlan_cfg.c282 if ((idx == 0) && (cfg_cache->cfg_info[i].key.len == cfg_info->key.len) && in rt_wlan_cfg_save()
283 … (rt_memcmp(&cfg_cache->cfg_info[i].key.val[0], &cfg_info->key.val[0], cfg_info->key.len) == 0)) in rt_wlan_cfg_save()
397 struct rt_wlan_key *key; in rt_wlan_cfg_dump() local
407 key = &cfg_cache->cfg_info[index].key; in rt_wlan_cfg_dump()
414 if (key->len) in rt_wlan_cfg_dump()
415 rt_kprintf("%-32.32s", &key->val[0]); in rt_wlan_cfg_dump()
/components/libc/posix/io/poll/
A Dpoll.c61 static int __wqueue_pollwake(struct rt_wqueue_node *wait, void *key) in __wqueue_pollwake() argument
67 if (key && !((rt_ubase_t)key & wait->key)) in __wqueue_pollwake()
79 return __wqueue_default_wake(wait, key); in __wqueue_pollwake()
104 node->wqn.key = req->_key; in _poll_add()
/components/libc/cplusplus/cpp11/armclang/
A Dthread.cpp98 pthread_key_t key; in __ARM_TPL_tls_create() local
100 if (pthread_key_create(&key, __at_exit) == 0) in __ARM_TPL_tls_create()
102 *__key = key; in __ARM_TPL_tls_create()
/components/net/lwip/lwip-2.1.2/src/include/netif/ppp/polarssl/
A Ddes.h65 void des_setkey_enc( des_context *ctx, unsigned char key[8] );
73 void des_setkey_dec( des_context *ctx, unsigned char key[8] );
/components/net/lwip/lwip-2.0.3/src/include/netif/ppp/polarssl/
A Ddes.h65 void des_setkey_enc( des_context *ctx, unsigned char key[8] );
73 void des_setkey_dec( des_context *ctx, unsigned char key[8] );

Completed in 38 milliseconds

1234