/nrf52832-nimble/rt-thread/components/dfs/filesystems/jffs2/kernel/ |
H A D | rbtree.c | 106 #define RB_ROTATE_LEFT(head, elm, tmp) do { \ argument 107 (tmp) = RB_RIGHT(elm); \ 108 if ((RB_RIGHT(elm) = RB_LEFT(tmp))) { \ 109 RB_PARENT(RB_LEFT(tmp)) = (elm); \ 112 if ((RB_PARENT(tmp) = RB_PARENT(elm))) { \ 114 RB_LEFT(RB_PARENT(elm)) = (tmp); \ 116 RB_RIGHT(RB_PARENT(elm)) = (tmp); \ 118 (head)->rb_node = (tmp); \ 119 RB_LEFT(tmp) = (elm); \ 120 RB_PARENT(elm) = (tmp); \ [all …]
|
/nrf52832-nimble/packages/NimBLE-latest/ext/tinycrypt/src/ |
H A D | ecc.c | 225 uECC_word_t tmp[NUM_ECC_WORDS]; in uECC_vli_cmp() local 226 uECC_word_t neg = !!uECC_vli_sub(tmp, left, right, num_words); in uECC_vli_cmp() 227 uECC_word_t equal = uECC_vli_isZero(tmp, num_words); in uECC_vli_cmp() 324 uECC_word_t tmp[2 * NUM_ECC_WORDS]; in uECC_vli_mmod() local 325 uECC_word_t *v[2] = {tmp, product}; in uECC_vli_mmod() 523 unsigned int tmp[NUM_ECC_WORDS]; in vli_mmod_fast_secp256r1() local 530 tmp[0] = tmp[1] = tmp[2] = 0; in vli_mmod_fast_secp256r1() 531 tmp[3] = product[11]; in vli_mmod_fast_secp256r1() 532 tmp[4] = product[12]; in vli_mmod_fast_secp256r1() 533 tmp[5] = product[13]; in vli_mmod_fast_secp256r1() [all …]
|
H A D | ecc_dsa.c | 104 uECC_word_t tmp[NUM_ECC_WORDS]; in uECC_sign_with_k() local 106 uECC_word_t *k2[2] = {tmp, s}; in uECC_sign_with_k() 119 carry = regularize_k(k, tmp, s, curve); in uECC_sign_with_k() 128 uECC_vli_clear(tmp, num_n_words); in uECC_sign_with_k() 129 tmp[0] = 1; in uECC_sign_with_k() 131 else if (!uECC_generate_random_int(tmp, curve->n, num_n_words)) { in uECC_sign_with_k() 137 uECC_vli_modMult(k, k, tmp, curve->n, num_n_words); /* k' = rand * k */ in uECC_sign_with_k() 139 uECC_vli_modMult(k, k, tmp, curve->n, num_n_words); /* k = 1 / k */ in uECC_sign_with_k() 144 uECC_vli_bytesToNative(tmp, private_key, BITS_TO_BYTES(curve->num_n_bits)); in uECC_sign_with_k() 148 uECC_vli_modMult(s, tmp, s, curve->n, num_n_words); /* s = r*d */ in uECC_sign_with_k() [all …]
|
H A D | ecc_dh.c | 151 uECC_word_t tmp[NUM_ECC_WORDS]; in uECC_shared_secret() local 152 uECC_word_t *p2[2] = {_private, tmp}; in uECC_shared_secret() 172 carry = regularize_k(_private, _private, tmp, curve); in uECC_shared_secret() 195 memset(tmp, 0, sizeof(tmp)); in uECC_shared_secret()
|
/nrf52832-nimble/packages/NimBLE-latest/apps/blemesh_models_example_2/src/ |
H A D | state_binding.c | 59 float tmp; in state_binding() local 65 tmp = (light_ctl_srv_user_data.temp - in state_binding() 67 tmp = tmp / (light_ctl_srv_user_data.temp_range_max - in state_binding() 69 gen_level_srv_s0_user_data.level = tmp - 32768; in state_binding() 74 tmp = (float) (light_ctl_srv_user_data.temp_range_max - in state_binding() 76 tmp = (gen_level_srv_s0_user_data.level + 32768) * tmp; in state_binding() 78 light_ctl_srv_user_data.temp_range_min + tmp; in state_binding() 169 tmp = ((float) light_lightness_srv_user_data.actual / 65535); in state_binding() 170 light_lightness_srv_user_data.linear = ceiling(65535 * tmp * tmp); in state_binding()
|
/nrf52832-nimble/rt-thread/components/net/uip/uip/ |
H A D | uiplib.c | 45 unsigned char tmp; in uiplib_ipaddrconv() local 49 tmp = 0; in uiplib_ipaddrconv() 60 *ipaddr = tmp; in uiplib_ipaddrconv() 62 tmp = 0; in uiplib_ipaddrconv() 64 tmp = (tmp * 10) + (c - '0'); in uiplib_ipaddrconv()
|
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/core/ |
H A D | def.c | 202 char *tmp = result + bufsize - 1; in lwip_itoa() local 219 *tmp = 0; in lwip_itoa() 220 while ((n != 0) && (tmp > res)) { in lwip_itoa() 222 tmp--; in lwip_itoa() 223 *tmp = val; in lwip_itoa() 231 if (*tmp == 0) { in lwip_itoa() 238 memmove(res, tmp, (size_t)((result + bufsize) - tmp)); in lwip_itoa()
|
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/test/fuzz/ |
H A D | output_to_pcap.sh | 15 hexdump -C $i > $1/$$.tmp 16 text2pcap $1/$$.tmp ${i}.pcap 23 hexdump -C $i > $1/$$.tmp 24 text2pcap $1/$$.tmp ${i}.pcap 27 rm -f $1/$$.tmp
|
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/test/fuzz/ |
H A D | output_to_pcap.sh | 15 hexdump -C $i > $1/$$.tmp 16 text2pcap $1/$$.tmp ${i}.pcap 23 hexdump -C $i > $1/$$.tmp 24 text2pcap $1/$$.tmp ${i}.pcap 27 rm -f $1/$$.tmp
|
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/netif/ppp/ |
H A D | vj.c | 101 u32_t tmp = ntohl(f) + ((cp[1] << 8) | cp[2]); \ 102 (f) = htonl(tmp); \ 105 u32_t tmp = ntohl(f) + (u32_t)*cp++; \ 106 (f) = htonl(tmp); \ 112 u_short tmp = ntohs(f) + (((u_short)cp[1] << 8) | cp[2]); \ 113 (f) = htons(tmp); \ 116 u_short tmp = ntohs(f) + (u_short)*cp++; \ 117 (f) = htons(tmp); \ 471 u32_t tmp; in vj_uncompress_tcp() local 517 tmp = ntohl(th->ackno) + i; in vj_uncompress_tcp() [all …]
|
H A D | randm.c | 126 u_char tmp[16]; in avGenRand() local 134 MD5Final(tmp, &md5); in avGenRand() 136 MEMCPY(buf, tmp, n); in avGenRand()
|
/nrf52832-nimble/rt-thread/tools/kconfig-frontends/libs/parser/ |
H A D | expr.c | 248 struct expr *tmp; in expr_eliminate_yn() local 264 tmp = e->right.expr; in expr_eliminate_yn() 266 free(tmp); in expr_eliminate_yn() 280 tmp = e->left.expr; in expr_eliminate_yn() 282 free(tmp); in expr_eliminate_yn() 293 tmp = e->right.expr; in expr_eliminate_yn() 295 free(tmp); in expr_eliminate_yn() 309 tmp = e->left.expr; in expr_eliminate_yn() 311 free(tmp); in expr_eliminate_yn() 363 struct expr *tmp; in expr_join_or() local [all …]
|
/nrf52832-nimble/rt-thread/components/dfs/filesystems/jffs2/cyg/compress/src/ |
H A D | Make_vms.com | 420 $ anal/obj/gsd 'f /out=x.tmp 421 $ open/read xtmp x.tmp 436 $ search a.tmp "symbol:","EGSY$V_DEF 1","EGSY$V_NORM 1"/out=b.tmp 438 $ search b.tmp "EGSY$V_NORM 1"/wind=(0,1) /out=c.tmp 439 $ search c.tmp "symbol:"/out=d.tmp 441 $ edito/edt/command=sys$input d.tmp 446 $ search b.tmp "EGSY$V_DEF 1"/wind=(0,1) /out=e.tmp 447 $ search e.tmp "symbol:"/out=f.tmp 449 $ edito/edt/command=sys$input f.tmp 453 $ sort/nodupl d.tmp,f.tmp 'p2' [all …]
|
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/netif/ppp/ |
H A D | vj.c | 504 u32_t tmp; in vj_uncompress_tcp() local 550 tmp = lwip_ntohl(th->ackno) + i; in vj_uncompress_tcp() 551 th->ackno = lwip_htonl(tmp); in vj_uncompress_tcp() 552 tmp = lwip_ntohl(th->seqno) + i; in vj_uncompress_tcp() 553 th->seqno = lwip_htonl(tmp); in vj_uncompress_tcp() 559 tmp = lwip_ntohl(th->seqno) + lwip_ntohs(IPH_LEN(&cs->cs_ip)) - cs->cs_hlen; in vj_uncompress_tcp() 560 th->seqno = lwip_htonl(tmp); in vj_uncompress_tcp() 605 tmp = n0->tot_len - vjlen + cs->cs_hlen; in vj_uncompress_tcp() 606 IPH_LEN_SET(&cs->cs_ip, lwip_htons((u16_t)tmp)); in vj_uncompress_tcp() 614 for (tmp = 0; hlen > 0; hlen -= 2) { in vj_uncompress_tcp() [all …]
|
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/netif/ppp/ |
H A D | vj.c | 508 u32_t tmp; in vj_uncompress_tcp() local 554 tmp = lwip_ntohl(th->ackno) + i; in vj_uncompress_tcp() 555 th->ackno = lwip_htonl(tmp); in vj_uncompress_tcp() 556 tmp = lwip_ntohl(th->seqno) + i; in vj_uncompress_tcp() 557 th->seqno = lwip_htonl(tmp); in vj_uncompress_tcp() 563 tmp = lwip_ntohl(th->seqno) + lwip_ntohs(IPH_LEN(&cs->cs_ip)) - cs->cs_hlen; in vj_uncompress_tcp() 564 th->seqno = lwip_htonl(tmp); in vj_uncompress_tcp() 609 tmp = n0->tot_len - vjlen + cs->cs_hlen; in vj_uncompress_tcp() 610 IPH_LEN_SET(&cs->cs_ip, lwip_htons((u16_t)tmp)); in vj_uncompress_tcp() 618 for (tmp = 0; hlen > 0; hlen -= 2) { in vj_uncompress_tcp() [all …]
|
/nrf52832-nimble/rt-thread/src/ |
H A D | kservice.c | 213 char *tmp = (char *)dst, *s = (char *)src; in rt_memcpy() local 216 if (tmp <= s || tmp > (s + count)) in rt_memcpy() 219 *tmp ++ = *s ++; in rt_memcpy() 224 tmp[len - 1] = s[len - 1]; in rt_memcpy() 295 char *tmp = (char *)dest, *s = (char *)src; in rt_memmove() local 297 if (s < tmp && tmp < s + n) in rt_memmove() 299 tmp += n; in rt_memmove() 303 *(--tmp) = *(--s); in rt_memmove() 308 *tmp++ = *s++; in rt_memmove() 514 char *tmp = (char *)rt_malloc(len); in rt_strdup() local [all …]
|
/nrf52832-nimble/rt-thread/components/utilities/zmodem/ |
H A D | zcore.c | 175 rt_int16_t i,c,tmp; in zsend_bin_data() local 212 tmp = *buf++ & 0377; in zsend_bin_data() 215 if ((c = *buf & 0377) == tmp && i < 126 && len>0) in zsend_bin_data() 221 zsend_zdle_char(tmp); in zsend_bin_data() 222 crc = updcrc32(tmp, crc); in zsend_bin_data() 223 if (tmp == ZRESC) in zsend_bin_data() 227 tmp = c; in zsend_bin_data() 231 if (tmp != ZRESC) in zsend_bin_data() 233 zsend_zdle_char(tmp); zsend_zdle_char(tmp); in zsend_bin_data() 234 crc = updcrc32(tmp, crc); in zsend_bin_data() [all …]
|
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/mesh/src/ |
H A D | crypto.c | 133 u8_t tmp[16]; in bt_mesh_k3() local 137 err = bt_mesh_s1("smk3", tmp); in bt_mesh_k3() 142 err = bt_mesh_aes_cmac_one(tmp, n, 16, t); in bt_mesh_k3() 147 err = bt_mesh_aes_cmac_one(t, id64, sizeof(id64), tmp); in bt_mesh_k3() 152 memcpy(out, tmp + 8, 8); in bt_mesh_k3() 160 u8_t tmp[16]; in bt_mesh_k4() local 164 err = bt_mesh_s1("smk4", tmp); in bt_mesh_k4() 169 err = bt_mesh_aes_cmac_one(tmp, n, 16, t); in bt_mesh_k4() 174 err = bt_mesh_aes_cmac_one(t, id6, sizeof(id6), tmp); in bt_mesh_k4() 179 out[0] = tmp[15] & BIT_MASK(6); in bt_mesh_k4() [all …]
|
/nrf52832-nimble/rt-thread/tools/kconfig-frontends/frontends/mconf/ |
H A D | mconf.c | 323 struct subtitle_list *pos, *tmp; in set_subtitle() local 325 for (pos = subtitles; pos != NULL; pos = tmp) { in set_subtitle() 326 tmp = pos->next; in set_subtitle() 348 struct subtitle_list *pos, *tmp; in reset_subtitle() local 350 for (pos = subtitles; pos != NULL; pos = tmp) { in reset_subtitle() 351 tmp = pos->next; in reset_subtitle() 442 struct jump_key *pos, *tmp; in search_conf() local 457 list_for_each_entry_safe(pos, tmp, &head, entries) in search_conf() 471 int type, tmp, doint = 2; in build_conf() local 616 tmp = 2 + strlen(sym_get_string_value(sym)); /* () = 2 */ in build_conf() [all …]
|
/nrf52832-nimble/rt-thread/components/libc/libdl/arch/ |
H A D | arm.c | 17 Elf32_Addr *where, tmp; in dlmodule_relocate() local 40 tmp = sym_val - (Elf32_Addr)where + (addend << 2); in dlmodule_relocate() 41 tmp >>= 2; in dlmodule_relocate() 42 *where = (*where & 0xff000000) | (tmp & 0x00ffffff); in dlmodule_relocate()
|
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/core/ipv4/ |
H A D | inet_chksum.c | 196 u32_t sum = 0, tmp; in lwip_standard_chksum() local 215 tmp = sum + *pl++; /* ping */ in lwip_standard_chksum() 216 if (tmp < sum) { in lwip_standard_chksum() 217 tmp++; /* add back carry */ in lwip_standard_chksum() 220 sum = tmp + *pl++; /* pong */ in lwip_standard_chksum() 221 if (sum < tmp) { in lwip_standard_chksum()
|
/nrf52832-nimble/rt-thread/components/libc/compilers/minilibc/ |
H A D | time.c | 81 time_t tmp; in localtime_r() local 85 tmp = *t + timezone; in localtime_r() 86 return gmtime_r(&tmp, r); in localtime_r() 91 static struct tm tmp; in localtime() local 92 return localtime_r(t, &tmp); in localtime()
|
/nrf52832-nimble/rt-thread/components/dfs/filesystems/elmfat/ |
H A D | dfs_elm.c | 750 WORD tmp; in dfs_elm_stat() local 752 tmp = file_info.fdate; in dfs_elm_stat() 753 day = tmp & 0x1F; /* bit[4:0] Day(1..31) */ in dfs_elm_stat() 754 tmp >>= 5; in dfs_elm_stat() 755 mon = tmp & 0x0F; /* bit[8:5] Month(1..12) */ in dfs_elm_stat() 756 tmp >>= 4; in dfs_elm_stat() 757 year = (tmp & 0x7F) + 1980; /* bit[15:9] Year origin from 1980(0..127) */ in dfs_elm_stat() 759 tmp = file_info.ftime; in dfs_elm_stat() 760 sec = (tmp & 0x1F) * 2; /* bit[4:0] Second/2(0..29) */ in dfs_elm_stat() 761 tmp >>= 5; in dfs_elm_stat() [all …]
|
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/core/ipv4/ |
H A D | ip4_frag.c | 139 struct ip_reassdata *tmp; in ip_reass_tmr() local 141 tmp = r; in ip_reass_tmr() 145 ip_reass_free_complete_datagram(tmp, prev); in ip_reass_tmr() 700 u16_t tmp; in ip4_frag() local 707 tmp = lwip_ntohs(IPH_OFFSET(iphdr)); in ip4_frag() 708 ofo = tmp & IP_OFFMASK; in ip4_frag() 709 LWIP_ERROR("ip_frag(): MF already set", (tmp & IP_MF) == 0, return ERR_VAL); in ip4_frag() 793 tmp = (IP_OFFMASK & (ofo)); in ip4_frag() 795 tmp = tmp | IP_MF; in ip4_frag() 797 IPH_OFFSET_SET(iphdr, lwip_htons(tmp)); in ip4_frag()
|
/nrf52832-nimble/rt-thread/libcpu/arm/s3c44b0/ |
H A D | serial.c | 26 volatile unsigned int tmp; in serial_flush_input() local 29 while(UTRSTAT0 & USTAT_RCV_READY) tmp = URXH0; in serial_flush_input()
|