Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 153) sorted by relevance

1234567

/hal_espressif-latest/components/esp_hw_support/include/
Dspinlock.h31 #define SPINLOCK_INITIALIZER {.owner = SPINLOCK_FREE,.count = 0}
36 NEED_VOLATILE_MUX uint32_t count; member
48 lock->count = 0; in spinlock_initialize()
90 … assert(lock->count > 0 && lock->count < 0xFF); // Bad count value implies memory corruption in spinlock_acquire()
91 lock->count++; in spinlock_acquire()
122 … assert(lock->count == 0); // This is the first time the lock is set, so count should still be 0 in spinlock_acquire()
123 lock->count++; // Finally, we increment the lock count in spinlock_acquire()
126 assert(lock->count < 0xFF); // Bad count value implies memory corruption in spinlock_acquire()
161 lock->count--; in spinlock_release()
163 if (!lock->count) { // If this is the last recursive release of the lock, mark the lock as free in spinlock_release()
[all …]
/hal_espressif-latest/components/heap/
Dheap_task_info.c31 size_t count = *params->num_totals; in heap_caps_get_per_task_info() local
36 for (size_t i = 0; i < count; ++i) { in heap_caps_get_per_task_info()
39 params->totals[i].count[type] = 0; in heap_caps_get_per_task_info()
76 for (i = 0; i < count; ++i) { in heap_caps_get_per_task_info()
81 if (i < count) { in heap_caps_get_per_task_info()
83 params->totals[i].count[type] += 1; in heap_caps_get_per_task_info()
86 if (count < params->max_totals) { in heap_caps_get_per_task_info()
87 params->totals[count].task = btask; in heap_caps_get_per_task_info()
88 params->totals[count].size[type] = bsize; in heap_caps_get_per_task_info()
89 params->totals[i].count[type] = 1; in heap_caps_get_per_task_info()
[all …]
Dheap_trace_standalone.c48 size_t count; member
177 records.count = 0; in heap_trace_start()
208 return records.count; in heap_trace_get_count()
221 if (index >= records.count) { in heap_trace_get()
270 summary->count = records.count; in heap_trace_summary()
297 size_t start_count = records.count; in heap_trace_dump_base()
300 records.count, records.capacity); in heap_trace_dump_base()
306 for (int i = 0; i < records.count; i++) { in heap_trace_dump_base()
365 records.count, records.capacity, records.high_water_mark); in heap_trace_dump_base()
375 if (start_count != records.count) { // only a problem if trace isn't stopped before dumping in heap_trace_dump_base()
[all …]
/hal_espressif-latest/components/wpa_supplicant/src/crypto/
Dsha1-pbkdf2.c15 size_t ssid_len, int iterations, unsigned int count, in pbkdf2_sha1_f() argument
36 count_buf[0] = (count >> 24) & 0xff; in pbkdf2_sha1_f()
37 count_buf[1] = (count >> 16) & 0xff; in pbkdf2_sha1_f()
38 count_buf[2] = (count >> 8) & 0xff; in pbkdf2_sha1_f()
39 count_buf[3] = count & 0xff; in pbkdf2_sha1_f()
75 unsigned int count = 0; in pbkdf2_sha1() local
81 count++; in pbkdf2_sha1()
83 count, digest)) in pbkdf2_sha1()
Dmd4-internal.c19 u64 count; /* number of bits, mod 2^64 */ member
100 ctx->count = 0; in MD4Init()
116 have = (size_t)((ctx->count >> 3) & (MD4_BLOCK_LENGTH - 1)); in MD4Update()
120 ctx->count += (u64)len << 3; in MD4Update()
150 u8 count[8]; in MD4Pad() local
154 PUT_64BIT_LE(count, ctx->count); in MD4Pad()
158 ((ctx->count >> 3) & (MD4_BLOCK_LENGTH - 1)); in MD4Pad()
162 MD4Update(ctx, count, 8); in MD4Pad()
Dsha1-internal.c165 context->count[0], context->count[1], in SHAPrintContext()
242 context->count[0] = context->count[1] = 0; in SHA1Init()
256 j = (context->count[0] >> 3) & 63; in SHA1Update()
257 if ((context->count[0] += len << 3) < (len << 3)) in SHA1Update()
258 context->count[1]++; in SHA1Update()
259 context->count[1] += (len >> 29); in SHA1Update()
285 ((context->count[(i >= 4 ? 0 : 1)] >> in SHA1Final()
289 while ((context->count[0] & 504) != 448) { in SHA1Final()
302 os_memset(context->count, 0, 8); in SHA1Final()
/hal_espressif-latest/components/wpa_supplicant/src/utils/
Dbase64.c88 size_t i, count, olen; in base64_gen_decode() local
97 count = 0; in base64_gen_decode()
100 count++; in base64_gen_decode()
103 if (count == 0) in base64_gen_decode()
105 extra_pad = (4 - count % 4) % 4; in base64_gen_decode()
107 olen = (count + extra_pad) / 4 * 3; in base64_gen_decode()
112 count = 0; in base64_gen_decode()
126 block[count] = tmp; in base64_gen_decode()
127 count++; in base64_gen_decode()
128 if (count == 4) { in base64_gen_decode()
[all …]
/hal_espressif-latest/components/wpa_supplicant/src/tls/
Dtlsv1_server.c380 size_t count; in tlsv1_server_init() local
398 count = 0; in tlsv1_server_init()
400 suites[count++] = TLS_DHE_RSA_WITH_AES_256_CBC_SHA256; in tlsv1_server_init()
401 suites[count++] = TLS_RSA_WITH_AES_256_CBC_SHA256; in tlsv1_server_init()
402 suites[count++] = TLS_DHE_RSA_WITH_AES_256_CBC_SHA; in tlsv1_server_init()
403 suites[count++] = TLS_RSA_WITH_AES_256_CBC_SHA; in tlsv1_server_init()
404 suites[count++] = TLS_DHE_RSA_WITH_AES_128_CBC_SHA256; in tlsv1_server_init()
405 suites[count++] = TLS_RSA_WITH_AES_128_CBC_SHA256; in tlsv1_server_init()
406 suites[count++] = TLS_DHE_RSA_WITH_AES_128_CBC_SHA; in tlsv1_server_init()
407 suites[count++] = TLS_RSA_WITH_AES_128_CBC_SHA; in tlsv1_server_init()
[all …]
Dtlsv1_client.c468 size_t count; in tlsv1_client_init() local
484 count = 0; in tlsv1_client_init()
487 suites[count++] = TLS_DHE_RSA_WITH_AES_256_CBC_SHA256; in tlsv1_client_init()
489 suites[count++] = TLS_RSA_WITH_AES_256_CBC_SHA256; in tlsv1_client_init()
491 suites[count++] = TLS_DHE_RSA_WITH_AES_256_CBC_SHA; in tlsv1_client_init()
493 suites[count++] = TLS_RSA_WITH_AES_256_CBC_SHA; in tlsv1_client_init()
495 suites[count++] = TLS_DHE_RSA_WITH_AES_128_CBC_SHA256; in tlsv1_client_init()
497 suites[count++] = TLS_RSA_WITH_AES_128_CBC_SHA256; in tlsv1_client_init()
499 suites[count++] = TLS_DHE_RSA_WITH_AES_128_CBC_SHA; in tlsv1_client_init()
501 suites[count++] = TLS_RSA_WITH_AES_128_CBC_SHA; in tlsv1_client_init()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/api/
Desp_gattc_api.c254 … esp_gattc_service_elem_t *result, uint16_t *count, uint16_t offset) in esp_ble_gattc_get_service() argument
258 if (result == NULL || count == NULL || *count == 0) { in esp_ble_gattc_get_service()
263 return btc_ble_gattc_get_service(conn_hdl, svc_uuid, result, count, offset); in esp_ble_gattc_get_service()
272 uint16_t *count, uint16_t offset) in esp_ble_gattc_get_all_char() argument
277 *count = 0; in esp_ble_gattc_get_all_char()
281 if (result == NULL || count == NULL || *count == 0) { in esp_ble_gattc_get_all_char()
286 return btc_ble_gattc_get_all_char(conn_hdl, start_handle, end_handle, result, count, offset); in esp_ble_gattc_get_all_char()
293 uint16_t *count, uint16_t offset) in esp_ble_gattc_get_all_descr() argument
301 if (result == NULL || count == NULL || *count == 0) { in esp_ble_gattc_get_all_descr()
306 return btc_ble_gattc_get_all_descr(conn_hdl, char_handle, result, count, offset); in esp_ble_gattc_get_all_descr()
[all …]
/hal_espressif-latest/components/esp_pm/
Dpm_locks.c25 size_t count; /*!< lock count */ member
86 if (handle->count > 0) { in esp_pm_lock_delete()
107 if (handle->count++ == 0) { in esp_pm_lock_acquire()
133 if (handle->count == 0) { in esp_pm_lock_release()
137 if (--handle->count == 0) { in esp_pm_lock_release()
191 if (it->count > 0) { in esp_pm_dump_locks()
196 it->count, it->times_taken, time_held, in esp_pm_dump_locks()
199 snprintf(buf, len, "%-14s %-5d %-8d\n", s_lock_type_names[it->type], it->arg, it->count); in esp_pm_dump_locks()
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/std/include/
Dbtc_gattc.h207 uint16_t *count, uint16_t offset);
212 uint16_t *count, uint16_t offset);
216 uint16_t *count, uint16_t offset);
222 uint16_t *count);
229 uint16_t *count);
235 uint16_t *count);
242 uint16_t *count);
249 uint16_t *count);
252 esp_gattc_db_elem_t *db, uint16_t *count);
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/std/gatt/
Dbtc_gattc.c245 static void btc_gattc_fill_gatt_db_conversion(uint16_t count, uint16_t num, esp_gatt_db_attr_type_t… in btc_gattc_fill_gatt_db_conversion() argument
249 uint16_t db_size = (count + offset > num) ? (num - offset) : count; in btc_gattc_fill_gatt_db_conversion()
317 uint16_t *count, uint16_t offset) in btc_ble_gattc_get_service() argument
337 *count = 0; in btc_ble_gattc_get_service()
340 …btc_gattc_fill_gatt_db_conversion(*count, svc_num, ESP_GATT_DB_PRIMARY_SERVICE, offset, (void *)re… in btc_ble_gattc_get_service()
343 *count = svc_num; in btc_ble_gattc_get_service()
358 uint16_t *count, uint16_t offset) in btc_ble_gattc_get_all_char() argument
369 *count = 0; in btc_ble_gattc_get_all_char()
372 …btc_gattc_fill_gatt_db_conversion(*count, char_num, ESP_GATT_DB_CHARACTERISTIC, offset, (void *)re… in btc_ble_gattc_get_all_char()
375 *count = char_num; in btc_ble_gattc_get_all_char()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/std/avrc/
Dbta_avrc_co.c67 UINT8 count = 0; in bta_avrc_co_rn_evt_cap() local
70 event_ids[count++] = i; in bta_avrc_co_rn_evt_cap()
73 return count; in bta_avrc_co_rn_evt_cap()
/hal_espressif-latest/components/heap/port/
Dmemory_layout_utils.c66 static void s_prepare_reserved_regions(soc_reserved_region_t *reserved, size_t count) in s_prepare_reserved_regions() argument
74 …memcpy(reserved + 1, &soc_reserved_memory_region_start, (count - 1) * sizeof(soc_reserved_region_t… in s_prepare_reserved_regions()
76 memcpy(reserved, &soc_reserved_memory_region_start, count * sizeof(soc_reserved_region_t)); in s_prepare_reserved_regions()
80 qsort(reserved, count, sizeof(soc_reserved_region_t), s_compare_reserved_regions); in s_prepare_reserved_regions()
86 ESP_EARLY_LOGD(TAG, "Checking %d reserved memory ranges:", count); in s_prepare_reserved_regions()
87 for (size_t i = 0; i < count; i++) { in s_prepare_reserved_regions()
93 if (i < count - 1) { in s_prepare_reserved_regions()
/hal_espressif-latest/components/bt/host/bluedroid/stack/avrc/
Davrc_pars_ct.c99 BE_STREAM_TO_UINT8 (p_result->get_caps.count, p); in avrc_pars_vendor_rsp()
101 if (p_result->get_caps.count > AVRC_CAP_MAX_NUM_EVT_ID) { in avrc_pars_vendor_rsp()
104 BE_STREAM_TO_ARRAY(p, p_result->get_caps.param.event_id, p_result->get_caps.count); in avrc_pars_vendor_rsp()
107 if (p_result->get_caps.count > AVRC_CAP_MAX_NUM_COMP_ID) { in avrc_pars_vendor_rsp()
110 for (int i = 0; i < p_result->get_caps.count; ++i) { in avrc_pars_vendor_rsp()
/hal_espressif-latest/components/wpa_supplicant/src/eap_peer/
Deap_fast_pac.c417 int count = 0; in eap_fast_load_pac() local
442 count++; in eap_fast_load_pac()
474 count, pac_file); in eap_fast_load_pac()
626 int ret, count = 0; in eap_fast_save_pac() local
651 count++; in eap_fast_save_pac()
662 count, pac_file); in eap_fast_save_pac()
678 size_t count; in eap_fast_pac_list_truncate() local
682 count = 0; in eap_fast_pac_list_truncate()
685 count++; in eap_fast_pac_list_truncate()
686 if (count > max_len) in eap_fast_pac_list_truncate()
[all …]
Deap_methods.h16 const struct eap_method * eap_peer_get_methods(size_t *count);
20 size_t *count);
/hal_espressif-latest/components/bt/host/bluedroid/bta/sdp/
Dbta_sdp_act.c288 int count = 0; in bta_create_ops_sdp_record() local
297 if (count == sizeof(record->ops.supported_formats_list)) { in bta_create_ops_sdp_record()
304 record->ops.supported_formats_list[count] = p_sattr->attr_value.v.u8; in bta_create_ops_sdp_record()
305 count++; in bta_create_ops_sdp_record()
313 if (record->ops.supported_formats_list_len != count) { in bta_create_ops_sdp_record()
317 record->ops.supported_formats_list_len , count); in bta_create_ops_sdp_record()
320 record->ops.supported_formats_list_len = count; in bta_create_ops_sdp_record()
397 int count = 0; in bta_sdp_search_cback() local
420 bta_create_mas_sdp_record(&evt_data.records[count], p_rec); in bta_sdp_search_cback()
423 bta_create_mns_sdp_record(&evt_data.records[count], p_rec); in bta_sdp_search_cback()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/api/include/api/
Desp_gattc_api.h453 … esp_gattc_service_elem_t *result, uint16_t *count, uint16_t offset);
481 uint16_t *count, uint16_t offset);
507 uint16_t *count, uint16_t offset);
536 uint16_t *count);
566 uint16_t *count);
593 uint16_t *count);
621 uint16_t *count);
651 uint16_t *count);
675 esp_gattc_db_elem_t *db, uint16_t *count);
/hal_espressif-latest/components/bt/host/bluedroid/external/sbc/decoder/srce/
Dbitalloc.c272 OI_UINT count; in adjustToFitBitpool() local
292 count = (total & 0xFFFF) + (total >> 16); in adjustToFitBitpool()
293 count = (count & 0xFF) + (count >> 8); in adjustToFitBitpool()
296 if (count > bitpool) { in adjustToFitBitpool()
300 bitcount = count; in adjustToFitBitpool()
/hal_espressif-latest/components/bt/host/bluedroid/bta/gatt/
Dbta_gattc_api.c354 btgatt_db_element_t **db, UINT16 *count) in BTA_GATTC_GetServiceWithUUID() argument
356 bta_gattc_get_service_with_uuid(conn_id, svc_uuid, db, count); in BTA_GATTC_GetServiceWithUUID()
360 btgatt_db_element_t **db, UINT16 *count) in BTA_GATTC_GetAllChar() argument
371 count); in BTA_GATTC_GetAllChar()
375 btgatt_db_element_t **db, UINT16 *count) in BTA_GATTC_GetAllDescriptor() argument
386 count); in BTA_GATTC_GetAllDescriptor()
390 btgatt_db_element_t **db, UINT16 *count) in BTA_GATTC_GetCharByUUID() argument
401 count); in BTA_GATTC_GetCharByUUID()
406 btgatt_db_element_t **db, UINT16 *count) in BTA_GATTC_GetDescrByUUID() argument
417 count); in BTA_GATTC_GetDescrByUUID()
[all …]
Dbta_gatts_main.c157 uint8_t count = 0; in bta_gatts_srvc_active_count() local
161 count++; in bta_gatts_srvc_active_count()
165 return count; in bta_gatts_srvc_active_count()
/hal_espressif-latest/components/bt/host/bluedroid/stack/btm/
Dbtm_main.c129 uint8_t count = 0; in btm_acl_active_count() local
134 count++; in btm_acl_active_count()
138 return count; in btm_acl_active_count()
/hal_espressif-latest/components/bt/host/bluedroid/bta/dm/
Dbta_dm_pm.c366 for (j = 0; j < bta_dm_conn_srvcs.count ; j++) { in bta_dm_pm_cback()
380 if (j != bta_dm_conn_srvcs.count) { in bta_dm_pm_cback()
381 bta_dm_conn_srvcs.count--; in bta_dm_pm_cback()
383 for (; j < bta_dm_conn_srvcs.count ; j++) { in bta_dm_pm_cback()
392 } else if (j == bta_dm_conn_srvcs.count ) { in bta_dm_pm_cback()
394 if (bta_dm_conn_srvcs.count == BTA_DM_NUM_CONN_SRVS) { in bta_dm_pm_cback()
407 bta_dm_conn_srvcs.count++; in bta_dm_pm_cback()
496 if (!bta_dm_cb.device_list.count) { in bta_dm_pm_set_mode()
509 for (i = 0; i < bta_dm_conn_srvcs.count ; i++) { in bta_dm_pm_set_mode()
744 for (i = 0; i < bta_dm_conn_srvcs.count ; i++) { in bta_dm_pm_ssr()
[all …]

1234567