Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 25 of 64) sorted by relevance

123

/AliOS-Things-master/hardware/chip/haas1000/drivers/net/net_os/
A Dnet_atomic.h13 __LDREXW((volatile uint32_t *)&at->counter); in atomic_set()
19 return (*(volatile int *)&(v)->counter); in atomic_read()
28 result = __LDREXW((volatile uint32_t *)&v->counter); in atomic_add()
30 ret = __STREXW(result, (volatile uint32_t *)&v->counter); in atomic_add()
41 result = __LDREXW((volatile uint32_t *)&v->counter); in atomic_sub()
54 result = __LDREXW((volatile uint32_t *)&v->counter); in atomic_add_return()
68 result = __LDREXW((volatile uint32_t *)&v->counter); in atomic_sub_return()
84 __LDREXW((volatile uint32_t *)&v->counter); in atomic64_set()
88 __LDREXW((volatile uint32_t *)&v->counter + 1); in atomic64_set()
110 result = __LDREXW((volatile uint32_t *)&v->counter); in atomic_xchg()
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/arm-neon/
A Dlinux.c41 int counter; in png_have_neon() local
43 for (state=StartLine, counter=0;;) in png_have_neon()
63 counter=0; in png_have_neon()
69 if ((ch & ~0x20) == ch_feature[counter]) in png_have_neon()
71 if (++counter == (sizeof ch_feature)) in png_have_neon()
112 counter = 0; in png_have_neon()
117 if ((ch & ~0x20) == ch_neon[counter]) in png_have_neon()
119 if (++counter == (sizeof ch_neon)) in png_have_neon()
/AliOS-Things-master/components/amp/utils/checksum/
A Dcrc16.c55 int counter; in utils_crc16() local
57 for (counter = 0; counter < len; counter++) in utils_crc16()
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/tests/
A Dtest_worker.js26 var counter;
61 counter = 0;
67 assert(ev.num, counter);
68 counter++;
69 if (counter == 10) {
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/mlir/testing/op_tests/
A Dwhile_loop.py62 def cond_fn(counter, value, increment_value): argument
65 return counter < num_iterations_scalar
67 def body_fn(counter, value, increment_value): argument
68 new_counter = counter + 1
77 counter, value, result_increment_value = tf.while_loop(
80 increment_value], [counter, value, result_increment_value]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/ram_common/
A Drtl8721d_rtc.c69 u32 counter = 0x00; in RTC_EnterInitMode() local
82 counter++; in RTC_EnterInitMode()
131 u32 counter = 0; in RTC_WaitForSynchro() local
150 counter++; in RTC_WaitForSynchro()
440 u32 counter = 0; in RTC_DayIntClear() local
456 counter++; in RTC_DayIntClear()
583 u32 counter = 0; in RTC_SetAlarm() local
643 counter++; in RTC_SetAlarm()
769 counter++; in RTC_AlarmCmd()
801 counter++; in RTC_AlarmClear()
[all …]
/AliOS-Things-master/components/lwip/lwip2.0.0/core/ipv6/
A Dnd6.c707 neighbor_cache[i].counter.probes_sent++; in nd6_tmr()
722 neighbor_cache[i].counter.stale_time = 0; in nd6_tmr()
731 neighbor_cache[i].counter.stale_time++; in nd6_tmr()
734 if (neighbor_cache[i].counter.delay_time <= 1) { in nd6_tmr()
737 neighbor_cache[i].counter.probes_sent = 0; in nd6_tmr()
739 neighbor_cache[i].counter.delay_time--; in nd6_tmr()
749 neighbor_cache[i].counter.probes_sent++; in nd6_tmr()
1222 time = neighbor_cache[i].counter.probes_sent; in nd6_new_neighbor_cache_entry()
1239 time = neighbor_cache[i].counter.probes_sent; in nd6_new_neighbor_cache_entry()
1278 neighbor_cache[i].counter.reachable_time = 0; in nd6_free_neighbor_cache_entry()
[all …]
/AliOS-Things-master/components/SDL2/src/timer/windows/
A DSDL_systimer.c149 LARGE_INTEGER counter; in SDL_GetPerformanceCounter() local
151 if (!QueryPerformanceCounter(&counter)) { in SDL_GetPerformanceCounter()
154 return counter.QuadPart; in SDL_GetPerformanceCounter()
/AliOS-Things-master/hardware/chip/rtl872xd/aos/
A Daos_osdep.h48 #define atomic_read(v) ((v)->counter)
59 #define atomic_set(v,i) ((v)->counter = (i))
118 typedef struct {volatile int counter;} atomic_t; member
A Daos_osdep.c444 v->counter += i; in _aos_ATOMIC_ADD()
454 v->counter -= i; in _aos_ATOMIC_SUB()
473 temp = v->counter; in _aos_ATOMIC_ADD_RETURN()
475 v->counter = temp; in _aos_ATOMIC_ADD_RETURN()
486 temp = v->counter; in _aos_ATOMIC_SUB_RETURN()
488 v->counter = temp; in _aos_ATOMIC_SUB_RETURN()
/AliOS-Things-master/components/epoll/example/
A Dtest_device.c26 int counter; member
92 pdev->counter ++; in _event_write()
134 int cnt = pdev->counter; in event_read()
154 if (-- pdev->counter == 0) { in event_read()
180 if (pdev->counter) { in event_poll()
/AliOS-Things-master/components/select/example/
A Dtest_device.c26 int counter; member
92 pdev->counter ++; in _event_write()
134 int cnt = pdev->counter; in event_read()
154 if (-- pdev->counter == 0) { in event_read()
180 if (pdev->counter) { in event_poll()
/AliOS-Things-master/components/mbedtls/include/mbedtls/
A Dchacha20.h141 uint32_t counter );
207 uint32_t counter,
/AliOS-Things-master/components/SDL2/src/test/
A DSDL_test_fuzzer.c510 int counter; in SDLTest_RandomAsciiStringOfSize() local
523 for(counter = 0; counter < size; ++counter) { in SDLTest_RandomAsciiStringOfSize()
524 string[counter] = (char)SDLTest_RandomIntegerInRange(32, 126); in SDLTest_RandomAsciiStringOfSize()
527 string[counter] = '\0'; in SDLTest_RandomAsciiStringOfSize()
A DSDL_test_harness.c58 int counter; in SDLTest_GenerateRunSeed() local
76 for (counter = 0; counter < length; counter++) { in SDLTest_GenerateRunSeed()
82 seed[counter] = ch; in SDLTest_GenerateRunSeed()
/AliOS-Things-master/components/mbedtls/library/
A Dpkcs5.c232 unsigned char counter[4]; in mbedtls_pkcs5_pbkdf2_hmac() local
234 memset( counter, 0, 4 ); in mbedtls_pkcs5_pbkdf2_hmac()
235 counter[3] = 1; in mbedtls_pkcs5_pbkdf2_hmac()
252 if( ( ret = mbedtls_md_hmac_update( ctx, counter, 4 ) ) != 0 ) in mbedtls_pkcs5_pbkdf2_hmac()
286 if( ++counter[i - 1] != 0 ) in mbedtls_pkcs5_pbkdf2_hmac()
A Dchacha20.c234 uint32_t counter ) in mbedtls_chacha20_starts() argument
240 ctx->state[12] = counter; in mbedtls_chacha20_starts()
322 uint32_t counter, in mbedtls_chacha20_crypt() argument
341 ret = mbedtls_chacha20_starts( &ctx, nonce, counter ); in mbedtls_chacha20_crypt()
A Dctr_drbg.c295 if( ++ctx->counter[i - 1] != 0 ) in ctr_drbg_update_internal()
301 … if( ( ret = mbedtls_aes_crypt_ecb( &ctx->aes_ctx, MBEDTLS_AES_ENCRYPT, ctx->counter, p ) ) != 0 ) in ctr_drbg_update_internal()
315 memcpy( ctx->counter, tmp + MBEDTLS_CTR_DRBG_KEYSIZE, MBEDTLS_CTR_DRBG_BLOCKSIZE ); in ctr_drbg_update_internal()
493 if( ++ctx->counter[i - 1] != 0 ) in mbedtls_ctr_drbg_random_with_add()
499 …if( ( ret = mbedtls_aes_crypt_ecb( &ctx->aes_ctx, MBEDTLS_AES_ENCRYPT, ctx->counter, tmp ) ) != 0 ) in mbedtls_ctr_drbg_random_with_add()
/AliOS-Things-master/components/SDL2/test/
A Dtestautomation_stdlib.c130 int counter; in stdlib_getsetenv() local
141 for(counter = 0; counter < nameLen; counter++) { in stdlib_getsetenv()
142 name[counter] = (char)SDLTest_RandomIntegerInRange(65, 90); in stdlib_getsetenv()
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/
A Dlpn.c196 .lpn_counter = sys_cpu_to_be16(bt_mesh.lpn.counter), in send_friend_clear()
311 .lpn_counter = sys_cpu_to_be16(lpn->counter), in send_friend_req()
520 cred = friend_cred_create(sub, lpn->frnd, lpn->counter, frnd_counter); in bt_mesh_lpn_friend_offer()
542 lpn->counter++; in bt_mesh_lpn_friend_offer()
552 u16_t addr, counter; in bt_mesh_lpn_friend_clear_cfm() local
565 counter = sys_be16_to_cpu(msg->lpn_counter); in bt_mesh_lpn_friend_clear_cfm()
567 BT_DBG("LPNAddress 0x%04x LPNCounter 0x%04x", addr, counter); in bt_mesh_lpn_friend_clear_cfm()
569 if (addr != bt_mesh_primary_addr() || counter != lpn->counter) { in bt_mesh_lpn_friend_clear_cfm()
769 lpn->counter++; in lpn_timeout()
/AliOS-Things-master/components/freetype/src/pshinter/
A Dpshrec.c723 PS_Mask counter = dim->counters.masks; in ps_dimension_add_counter() local
728 for ( ; count > 0; count--, counter++ ) in ps_dimension_add_counter()
730 if ( ps_mask_test_bit( counter, hint1 ) || in ps_dimension_add_counter()
731 ps_mask_test_bit( counter, hint2 ) || in ps_dimension_add_counter()
732 ps_mask_test_bit( counter, hint3 ) ) in ps_dimension_add_counter()
739 error = ps_mask_table_alloc( &dim->counters, memory, &counter ); in ps_dimension_add_counter()
745 error = ps_mask_set_bit( counter, hint1, memory ); in ps_dimension_add_counter()
749 error = ps_mask_set_bit( counter, hint2, memory ); in ps_dimension_add_counter()
753 error = ps_mask_set_bit( counter, hint3, memory ); in ps_dimension_add_counter()
1220 funcs->counter = (T2_Hints_CounterFunc)ps_hints_t2counter; in t2_hints_funcs_init()
/AliOS-Things-master/components/SDL2/src/image/
A Dminiz.h1480 …r (counter = 0; counter < 4; ++counter) { if (num_bits) TINFL_GET_BITS(6, r->m_raw_header[counter]… in tinfl_decompress()
1487 counter--; in tinfl_decompress()
1489 while (counter) in tinfl_decompress()
1521counter = 0; counter < 3; counter++) { TINFL_GET_BITS(11, r->m_table_sizes[counter], "\05\05\04"[c… in tinfl_decompress()
1552 for (counter = 0; counter < (r->m_table_sizes[0] + r->m_table_sizes[1]); ) in tinfl_decompress()
1560 …TINFL_MEMSET(r->m_len_codes + counter, (dist == 16) ? r->m_len_codes[counter - 1] : 0, s); counter in tinfl_decompress()
1615 counter = sym2; in tinfl_decompress()
1624 num_extra = s_length_extra[counter - 257]; counter = s_length_base[counter - 257]; in tinfl_decompress()
1641 while (counter--) in tinfl_decompress()
1649 else if ((counter >= 9) && (counter <= dist)) in tinfl_decompress()
[all …]
/AliOS-Things-master/components/oss/src/encryption/
A DCipher.cc78 ByteBuffer SymmetricCipher::IncCTRCounter(const ByteBuffer& counter, uint64_t numberOfBlocks) in IncCTRCounter() argument
80 ByteBuffer ctrCounter(counter); in IncCTRCounter()
/AliOS-Things-master/hardware/chip/haas1000/drivers/net/
A Dnet_defs.h182 int counter; member
186 uint64_t counter; member
/AliOS-Things-master/components/py_engine/engine/extmod/
A Dmoducryptolib.c147 uint8_t *const counter = ctx->iv; in aes_process_ctr_impl() local
151 aes_process_ecb_impl(ctx, counter, ctr_params->encrypted_counter, true); in aes_process_ctr_impl()
155 if (++counter[i] != 0) { in aes_process_ctr_impl()

Completed in 53 milliseconds

123