/nrf52832-nimble/rt-thread/tools/kconfig-frontends/libs/parser/ |
H A D | yconf.y | 598 static void print_quoted_string(FILE *out, const char *str) in print_quoted_string() argument 603 putc('"', out); in print_quoted_string() 607 fprintf(out, "%.*s", len, str); in print_quoted_string() 608 fputs("\\\"", out); in print_quoted_string() 611 fputs(str, out); in print_quoted_string() 612 putc('"', out); in print_quoted_string() 615 static void print_symbol(FILE *out, struct menu *menu) in print_symbol() argument 621 fprintf(out, "\nchoice\n"); in print_symbol() 623 fprintf(out, "\nconfig %s\n", sym->name); in print_symbol() 626 fputs(" boolean\n", out); in print_symbol() [all …]
|
H A D | util.c | 40 FILE *out; in file_write_dep() local 44 out = fopen("..config.tmp", "w"); in file_write_dep() 45 if (!out) in file_write_dep() 47 fprintf(out, "deps_config := \\\n"); in file_write_dep() 50 fprintf(out, "\t%s \\\n", file->name); in file_write_dep() 52 fprintf(out, "\t%s\n", file->name); in file_write_dep() 54 fprintf(out, "\n%s: \\\n" in file_write_dep() 68 fprintf(out, "ifneq \"$(%s)\" \"%s\"\n", env_sym->name, value); in file_write_dep() 69 fprintf(out, "%s: FORCE\n", conf_get_autoconfig_name()); in file_write_dep() 70 fprintf(out, "endif\n"); in file_write_dep() [all …]
|
H A D | confdata.c | 462 /* Reset a string value if it's out of range */ in conf_read() 665 * Write out a minimal config. 672 FILE *out; in conf_write_defconfig() local 674 out = fopen(filename, "w"); in conf_write_defconfig() 675 if (!out) in conf_write_defconfig() 720 conf_write_symbol(out, sym, &kconfig_printer_cb, NULL); in conf_write_defconfig() 737 fclose(out); in conf_write_defconfig() 743 FILE *out; in conf_write() local 777 out = fopen(tmpname, "w"); in conf_write() 780 out = fopen(newname, "w"); in conf_write() [all …]
|
H A D | yconf.c | 508 by yylex, with out-of-bounds checking. */ 516 as returned by yylex, without out-of-bounds checking. */ 2354 static void print_quoted_string(FILE *out, const char *str) in print_quoted_string() argument 2359 putc('"', out); in print_quoted_string() 2363 fprintf(out, "%.*s", len, str); in print_quoted_string() 2364 fputs("\\\"", out); in print_quoted_string() 2367 fputs(str, out); in print_quoted_string() 2368 putc('"', out); in print_quoted_string() 2371 static void print_symbol(FILE *out, struct menu *menu) in print_symbol() argument 2377 fprintf(out, "\nchoice\n"); in print_symbol() [all …]
|
/nrf52832-nimble/rt-thread/components/dfs/filesystems/jffs2/cyg/compress/src/ |
H A D | inffast.c | 33 Decode literal, length, and distance codes and write out the resulting 50 LEN -- ran out of enough output space or enough available input 74 unsigned char FAR *out; /* local strm->next_out */ local 76 unsigned char FAR *end; /* while out < end, enough space available */ 101 out = strm->next_out - OFF; 102 beg = out - (start - strm->avail_out); 103 end = out + (strm->avail_out - 257); 137 PUP(out) = (unsigned char)(this.val); 186 op = (unsigned)(out - beg); /* max distance in output */ 200 PUP(out) = PUP(from); [all …]
|
H A D | minigzip.c | 75 void gz_compress OF((FILE *in, gzFile out)); 77 int gz_compress_mmap OF((FILE *in, gzFile out)); 79 void gz_uncompress OF((gzFile in, FILE *out)); 98 void gz_compress(in, out) in gz_compress() argument 100 gzFile out; 110 if (gz_compress_mmap(in, out) == Z_OK) return; 120 if (gzwrite(out, buf, (unsigned)len) != len) error(gzerror(out, &err)); 123 if (gzclose(out) != Z_OK) error("failed gzclose"); 131 int gz_compress_mmap(in, out) in gz_compress_mmap() argument 133 gzFile out; [all …]
|
/nrf52832-nimble/packages/NimBLE-latest/ext/tinycrypt/include/tinycrypt/ |
H A D | aes.h | 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 76 * @param s IN/OUT -- initialized struct tc_aes_key_sched_struct 83 * Encrypts contents of in buffer into out buffer under key; 86 * out and in point to 16 byte buffers 88 * returns TC_CRYPTO_FAIL (0) if: out == NULL or in == NULL or s == NULL 89 * @param out IN/OUT -- buffer to receive ciphertext block 93 int tc_aes_encrypt(uint8_t *out, const uint8_t *in, 107 * @param s IN/OUT -- initialized struct tc_aes_key_sched_struct 114 * Decrypts in buffer into out buffer under key schedule s 116 * returns TC_CRYPTO_FAIL (0) if: out is NULL or in is NULL or s is NULL [all …]
|
H A D | cbc_mode.h | 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 85 * CBC encrypts inlen bytes of the in buffer into the out buffer 86 * using the encryption key schedule provided, prepends iv to out 89 * out == NULL or 99 * - out buffer is large enough to hold the ciphertext + iv 100 * - out buffer is a contiguous buffer 103 * @param out IN/OUT -- buffer to receive the ciphertext 110 int tc_cbc_mode_encrypt(uint8_t *out, unsigned int outlen, const uint8_t *in, 116 * CBC decrypts inlen bytes of the in buffer into the out buffer 120 * out == NULL or [all …]
|
H A D | ctr_prng.h | 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 56 * 4) call tc_ctr_prng_uninstantiate to zero out the prng context 93 * @param ctx IN/OUT -- the PRNG context to initialize 120 * @param ctx IN/OUT -- the PRNG state 134 * Generates outlen pseudo-random bytes into out buffer, updates prng 139 * out == NULL, 142 * @param ctx IN/OUT -- the PRNG context 145 * @param out IN/OUT -- buffer to receive output 146 * @param outlen IN -- size of out buffer in bytes 151 uint8_t * const out, [all …]
|
H A D | hmac_prng.h | 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 65 * 3) call tc_hmac_prng_generate to out put the pseudo-random data. 111 * @param prng IN/OUT -- the PRNG state to initialize 133 * @param prng IN/OUT -- the PRNG state 145 * Generates outlen pseudo-random bytes into out buffer, updates prng 149 * out == NULL, 154 * @param out IN/OUT -- buffer to receive output 155 * @param outlen IN -- size of out buffer in bytes 156 * @param prng IN/OUT -- the PRNG state 158 int tc_hmac_prng_generate(uint8_t *out, unsigned int outlen, TCHmacPrng_t prng);
|
H A D | ctr_mode.h | 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 79 * CTR mode encrypts (or decrypts) inlen bytes from in buffer into out buffer 82 * out == NULL or 90 * - out points to inlen bytes 94 * @param out OUT -- produced ciphertext (plaintext) 98 * @param ctr IN/OUT -- the current counter value 101 int tc_ctr_mode(uint8_t *out, unsigned int outlen, const uint8_t *in,
|
H A D | ecc.h | 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 55 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 128 * @param X1 IN/OUT -- x coordinate 129 * @param Y1 IN/OUT -- y coordinate 130 * @param Z1 IN/OUT -- z coordinate 138 * @param result OUT -- x^3 + ax + b 148 * @param result OUT -- product % curve_p 200 * @param random OUT -- random integer in the range 0 < random < top 262 * @param public_key OUT -- Will be filled in with the corresponding public key 272 * @param result OUT -- public-key [all …]
|
H A D | ccm_mode.h | 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 118 * out == NULL or 126 * @param out OUT -- encrypted data 134 * @note: out buffer should be at least (plen + c->mlen) bytes long. 156 int tc_ccm_generation_encryption(uint8_t *out, unsigned int olen, 165 * out == NULL or 173 * @param out OUT -- decrypted data 180 * @note: out buffer should be at least (plen - c->mlen) bytes long. 202 int tc_ccm_decryption_verification(uint8_t *out, unsigned int olen,
|
H A D | hmac.h | 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 60 * 4) call tc_hmac_final to out put the tag. 88 * @param ctx IN/OUT -- the struct tc_hmac_state_struct to initial 100 * @param ctx IN/OUT -- struct tc_hmac_state_struct buffer to init 110 * @param ctx IN/OUT -- state of HMAC computation so far 129 * @param tag IN/OUT -- buffer to receive computed HMAC tag 131 * @param ctx IN/OUT -- the HMAC state for computing tag
|
/nrf52832-nimble/nordic/cmsis/include/ |
H A D | arm_math.h | 37 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 444 q31_t out; in arm_recip_q31() local 466 out = pRecipTable[index]; in arm_recip_q31() 472 tempVal = (uint32_t) (((q63_t) in * out) >> 31); in arm_recip_q31() 475 /* out = (q31_t) (((q63_t) out * tempVal) >> 30); */ in arm_recip_q31() 476 out = clip_q63_to_q31(((q63_t) out * tempVal) >> 30); in arm_recip_q31() 480 *dst = out; in arm_recip_q31() 482 /* return num of signbits of out = 1/in value */ in arm_recip_q31() 495 q15_t out = 0; in arm_recip_q15() local 517 out = pRecipTable[index]; in arm_recip_q15() [all …]
|
/nrf52832-nimble/rt-thread/components/CMSIS/Include/ |
H A D | arm_math.h | 37 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 522 uint32_t out, tempVal; in arm_recip_q31() local 543 out = pRecipTable[index]; in arm_recip_q31() 549 tempVal = (q31_t) (((q63_t) in * out) >> 31u); in arm_recip_q31() 552 //out = (q31_t) (((q63_t) out * tempVal) >> 30u); in arm_recip_q31() 553 out = (q31_t) clip_q63_to_q31(((q63_t) out * tempVal) >> 30u); in arm_recip_q31() 557 *dst = out; in arm_recip_q31() 559 /* return num of signbits of out = 1/in value */ in arm_recip_q31() 573 uint32_t out = 0, tempVal = 0; in arm_recip_q15() local 594 out = pRecipTable[index]; in arm_recip_q15() [all …]
|
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/test/unit/core/ |
H A D | test_pbuf.c | 152 u8_t *out; in START_TEST() local 167 out = (u8_t*)p->payload; in START_TEST() 169 fail_unless(out[i] == testdata[i], in START_TEST() 170 "Bad data at pos %d, was %02X, expected %02X", i, out[i], testdata[i]); in START_TEST() 177 out = (u8_t*)p->payload; in START_TEST() 178 fail_unless(out[p->len - 1] == testdata[0], in START_TEST() 179 "Bad data at pos %d, was %02X, expected %02X", p->len - 1, out[p->len - 1], testdata[0]); in START_TEST() 180 out = (u8_t*)q->payload; in START_TEST() 182 fail_unless(out[i-1] == testdata[i], in START_TEST() 183 "Bad data at pos %d, was %02X, expected %02X", p->len - 1 + i, out[i-1], testdata[i]); in START_TEST() [all …]
|
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/test/unit/core/ |
H A D | test_pbuf.c | 181 u8_t *out; in START_TEST() local 196 out = (u8_t*)p->payload; in START_TEST() 198 fail_unless(out[i] == testdata[i], in START_TEST() 199 "Bad data at pos %d, was %02X, expected %02X", i, out[i], testdata[i]); in START_TEST() 206 out = (u8_t*)p->payload; in START_TEST() 207 fail_unless(out[p->len - 1] == testdata[0], in START_TEST() 208 "Bad data at pos %d, was %02X, expected %02X", p->len - 1, out[p->len - 1], testdata[0]); in START_TEST() 209 out = (u8_t*)q->payload; in START_TEST() 211 fail_unless(out[i-1] == testdata[i], in START_TEST() 212 "Bad data at pos %d, was %02X, expected %02X", p->len - 1 + i, out[i-1], testdata[i]); in START_TEST() [all …]
|
/nrf52832-nimble/packages/NimBLE-latest/ext/tinycrypt/src/ |
H A D | cbc_mode.c | 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 37 int tc_cbc_mode_encrypt(uint8_t *out, unsigned int outlen, const uint8_t *in, in tc_cbc_mode_encrypt() argument 46 if (out == (uint8_t *) 0 || in tc_cbc_mode_encrypt() 60 (void)_copy(out, TC_AES_BLOCK_SIZE, iv, TC_AES_BLOCK_SIZE); in tc_cbc_mode_encrypt() 61 out += TC_AES_BLOCK_SIZE; in tc_cbc_mode_encrypt() 67 (void)_copy(out, TC_AES_BLOCK_SIZE, in tc_cbc_mode_encrypt() 69 out += TC_AES_BLOCK_SIZE; in tc_cbc_mode_encrypt() 77 int tc_cbc_mode_decrypt(uint8_t *out, unsigned int outlen, const uint8_t *in, in tc_cbc_mode_decrypt() argument 87 if (out == (uint8_t *) 0 || in tc_cbc_mode_decrypt() 110 *out++ = buffer[m++] ^ *p++; in tc_cbc_mode_decrypt()
|
H A D | ccm_mode.c | 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 93 static int ccm_ctr_mode(uint8_t *out, unsigned int outlen, const uint8_t *in, in ccm_ctr_mode() argument 103 if (out == (uint8_t *) 0 || in ccm_ctr_mode() 128 *out++ = buffer[i % (TC_AES_BLOCK_SIZE)] ^ *in++; in ccm_ctr_mode() 137 int tc_ccm_generation_encryption(uint8_t *out, unsigned int olen, in tc_ccm_generation_encryption() argument 144 if ((out == (uint8_t *) 0) || in tc_ccm_generation_encryption() 184 ccm_ctr_mode(out, plen, payload, plen, b, c->sched); in tc_ccm_generation_encryption() 190 out += plen; in tc_ccm_generation_encryption() 192 *out++ = tag[i] ^ b[i]; in tc_ccm_generation_encryption() 198 int tc_ccm_decryption_verification(uint8_t *out, unsigned int olen, in tc_ccm_decryption_verification() argument [all …]
|
H A D | aes_decrypt.c | 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 73 static inline void mult_row_column(uint8_t *out, const uint8_t *in) in mult_row_column() argument 75 out[0] = multe(in[0]) ^ multb(in[1]) ^ multd(in[2]) ^ mult9(in[3]); in mult_row_column() 76 out[1] = mult9(in[0]) ^ multe(in[1]) ^ multb(in[2]) ^ multd(in[3]); in mult_row_column() 77 out[2] = multd(in[0]) ^ mult9(in[1]) ^ multe(in[2]) ^ multb(in[3]); in mult_row_column() 78 out[3] = multb(in[0]) ^ multd(in[1]) ^ mult9(in[2]) ^ multe(in[3]); in mult_row_column() 129 int tc_aes_decrypt(uint8_t *out, const uint8_t *in, const TCAesKeySched_t s) in tc_aes_decrypt() argument 134 if (out == (uint8_t *) 0) { in tc_aes_decrypt() 157 (void)_copy(out, sizeof(state), state, sizeof(state)); in tc_aes_decrypt() 159 /*zeroing out the state buffer */ in tc_aes_decrypt()
|
/nrf52832-nimble/nordic/nrfx/drivers/include/ |
H A D | nrfx_usbd.h | 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 58 * This number would be shared between IN and OUT endpoint. 87 * @brief Create identifier for OUT endpoint. 89 * Simple macro to create OUT endpoint identifier for given endpoint number. 106 NRFX_USBD_EPOUT0 = NRF_USBD_EPOUT(0), /**< Endpoint OUT 0 */ 107 NRFX_USBD_EPOUT1 = NRF_USBD_EPOUT(1), /**< Endpoint OUT 1 */ 108 NRFX_USBD_EPOUT2 = NRF_USBD_EPOUT(2), /**< Endpoint OUT 2 */ 109 NRFX_USBD_EPOUT3 = NRF_USBD_EPOUT(3), /**< Endpoint OUT 3 */ 110 NRFX_USBD_EPOUT4 = NRF_USBD_EPOUT(4), /**< Endpoint OUT 4 */ 111 NRFX_USBD_EPOUT5 = NRF_USBD_EPOUT(5), /**< Endpoint OUT 5 */ [all …]
|
H A D | nrfx_systick.h | 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 80 * It can be used to check time-out by @ref nrfx_systick_test. 82 * @param[out] p_state The pointer to the state variable to be filled 90 * @param[in] us Required time-out. 92 * @retval true If current time is higher than specified state plus given time-out. 93 * @retval false If current time is lower than specified state plus given time-out
|
/nrf52832-nimble/rt-thread/tools/ |
H A D | vs2012.py | 155 out = file(target, 'wb') 156 out.write('<?xml version="1.0" encoding="UTF-8"?>\r\n') 221 …out.write(r'<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com… 222 out.write(vcxproj_string[len(root_node):]) 223 out.close() 227 out = file('project.vcxproj.filters', 'wb') 228 out.write('<?xml version="1.0" encoding="UTF-8"?>\r\n') 230 …out.write(r'<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003… 231 out.write(filter_string[len(root_node):]) 232 out.close()
|
/nrf52832-nimble/rt-thread/tools/kconfig-frontends/utils/ |
H A D | gettext.c | 74 goto out; in file_line__new() 79 out: in file_line__new() 98 goto out; in message__new() 110 out: in message__new() 117 goto out; in message__new() 140 goto out; in message__add_file_line() 145 out: in message__add_file_line()
|